pkgsrc/sysutils/slocate/Makefile
2017-09-04 18:08:18 +00:00

43 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2017/09/04 18:08:28 wiz Exp $
#
DISTNAME= slocate-3.1
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://fossies.org/unix/misc/old/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://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 ${REAL_ROOT_USER} ${SLOCATE_GROUP} 0750
SPECIAL_PERMS+= src/slocate ${REAL_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"