summaryrefslogtreecommitdiff
path: root/sysutils/slocate/Makefile
blob: 93f66365d3fc97166c4b2865f290a449de40385f (plain)
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
40
41
42
# $NetBSD: Makefile,v 1.1 2012/12/12 15:24:17 wiz Exp $
#

DISTNAME=	slocate-3.1
CATEGORIES=	sysutils
MASTER_SITES=	http://fossies.org/unix/misc/old/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://sourceforge.net/projects/slocate/
COMMENT=	Secure Locate
LICENSE=	gnu-gpl-v2

NO_CONFIGURE=	YES
USE_TOOLS+=	gmake

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${EGDIR}

SLOCATE_GROUP?=		slocate
PKG_GROUPS=		${SLOCATE_GROUP}
PKG_GROUPS_VARS+=	SLOCATE_GROUP

EGDIR=			${PREFIX}/share/examples/slocate
MESSAGE_SUBST+=		EGDIR=${EGDIR}

OWN_DIRS=		${PREFIX}/var/slocate
OWN_DIRS_PERMS+=	${PREFIX}/var/slocate ${ROOT_USER} ${SLOCATE_GROUP} 0750

SPECIAL_PERMS+=		src/slocate ${ROOT_USER} ${SLOCATE_GROUP} 2755

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/slocate ${DESTDIR}${PREFIX}/bin/
	${LN} -f -s ${PREFIX}/bin/slocate ${DESTDIR}${PREFIX}/bin/locate
	${LN} -f -s ${PREFIX}/bin/slocate ${DESTDIR}${PREFIX}/bin/updatedb
	${INSTALL_MAN} ${WRKSRC}/doc/updatedb.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/updatedb.1
	${INSTALL_MAN} ${WRKSRC}/doc/slocate.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/slocate.1
	${LN} -f -s ${PREFIX}/${PKGMANDIR}/man1/slocate.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/locate.1
	${INSTALL_DATA} ${FILESDIR}/updatedb.conf ${DESTDIR}${EGDIR}/updatedb.conf

.include "../../mk/bsd.pkg.mk"