47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2005/05/25 01:40:05 rh Exp $
|
|
#
|
|
|
|
DISTNAME= shlock-20020114
|
|
CATEGORIES= pkgtools sysutils
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
#HOMEPAGE=
|
|
COMMENT= Shell utility to perform dot-locking
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
EXTRACT_ONLY= #empty
|
|
NO_CHECKSUM= #defined
|
|
MANCOMPRESSED_IF_MANZ= yes
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
BUILD_DEFS+= MANINSTALL
|
|
|
|
MAKE_ENV+= BINDIR=${LOCALBASE}/bin MANDIR=${LOCALBASE}/man
|
|
MAKE_ENV+= BINOWN=${BINOWN} BINGRP=${BINGRP}
|
|
MAKE_ENV+= MANOWN=${BINOWN} MANGRP=${BINGRP}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
PKGSRC_LOCKTYPE= none # avoid "bootstrapping problem"
|
|
|
|
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin"
|
|
MANINSTALL=
|
|
.endif
|
|
|
|
post-extract:
|
|
@for FILE in Makefile shlock.c shlock.1; do \
|
|
${CP} ${FILESDIR}/$$FILE ${WRKSRC}; \
|
|
done
|
|
|
|
pre-install:
|
|
@${RM} -f ${PLIST_SRC}
|
|
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
|
|
@if [ -n "${MANINSTALL:Mcatinstall}" ]; then \
|
|
${ECHO} man/cat1/shlock.0 >> ${PLIST_SRC}; \
|
|
fi
|
|
@if [ -n "${MANINSTALL:Mmaninstall}" ]; then \
|
|
${ECHO} man/man1/shlock.1 >> ${PLIST_SRC}; \
|
|
fi
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|