summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-05-29 16:33:10 +0000
committertnn <tnn@pkgsrc.org>2008-05-29 16:33:10 +0000
commiteabbfe4a186a2eab1ea4ab238b373288ac034476 (patch)
tree898a6f1d6342089512799c7f1766d47562d4a3a4 /pkgtools
parent25565396dbd553bf3efb5049bbe1f7ad72e1a855 (diff)
downloadpkgsrc-eabbfe4a186a2eab1ea4ab238b373288ac034476.tar.gz
Make it DESTDIR ready.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/shlock/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgtools/shlock/Makefile b/pkgtools/shlock/Makefile
index 8614724d62d..cc2d6762ea8 100644
--- a/pkgtools/shlock/Makefile
+++ b/pkgtools/shlock/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/12/19 13:28:20 rillig Exp $
+# $NetBSD: Makefile,v 1.19 2008/05/29 16:33:10 tnn Exp $
#
DISTNAME= shlock-20020114
@@ -10,7 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE=
COMMENT= Shell utility to perform dot-locking
-WRKSRC= ${WRKDIR}
+PKG_DESTDIR_SUPPORT= user-destdir
+
EXTRACT_ONLY= #empty
NO_CHECKSUM= yes
MANCOMPRESSED_IF_MANZ= yes
@@ -19,6 +20,8 @@ BUILD_DEFS+= MANINSTALL
MAKE_ENV+= ${BSD_MAKE_ENV}
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/cat1
+
.include "../../mk/bsd.prefs.mk"
PKGSRC_LOCKTYPE= none # avoid "bootstrapping problem"
@@ -30,9 +33,7 @@ MANINSTALL=
.endif
post-extract:
- @for FILE in Makefile shlock.c shlock.1; do \
- ${CP} ${FILESDIR}/$$FILE ${WRKSRC}; \
- done
+ ${CP} -R ${FILESDIR} ${WRKSRC}
pre-install:
@${RM} -f ${PLIST_SRC}