aboutsummaryrefslogtreecommitdiff
path: root/sysutils/lockfile-progs/Makefile
blob: 4fba629e19ca95ab5653fbd097f81fbc5b0f40b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Yasuhiro KIMURA <yasu@utahime.org>

PORTNAME=	lockfile-progs
DISTVERSION=	0.1.19
CATEGORIES=	sysutils
MASTER_SITES=	DEBIAN_POOL
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	yasu@FreeBSD.org
COMMENT=	Programs for locking and unlocking files and mailboxes

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	liblockfile.so:devel/liblockfile

ALL_TARGET=	lockfile-create
WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}

PORTDOCS=	TODO changelog

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/lockfile-create ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/lockfile-progs.1 ${STAGEDIR}${MANPREFIX}/man/man1
.for f in lockfile-remove lockfile-touch lockfile-check mail-lock mail-unlock mail-touchlock
	${LN} ${STAGEDIR}${PREFIX}/bin/lockfile-create ${STAGEDIR}${PREFIX}/bin/${f}
	${LN} -s lockfile-progs.1 ${STAGEDIR}${MANPREFIX}/man/man1/${f}.1
.endfor
	${LN} -s lockfile-progs.1 ${STAGEDIR}${MANPREFIX}/man/man1/lockfile-create.1

do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in TODO debian/changelog
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>