diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-12 02:14:13 +0000 |
commit | a459d6adc77b22d7efa499cea1bcfbae7c929a42 (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /time/anacron | |
parent | 7854cf84ecbcc45c6b18092fadae7896937e468a (diff) | |
download | pkgsrc-a459d6adc77b22d7efa499cea1bcfbae7c929a42.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'time/anacron')
-rw-r--r-- | time/anacron/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/time/anacron/Makefile b/time/anacron/Makefile index 068af17010e..d3e1b56196c 100644 --- a/time/anacron/Makefile +++ b/time/anacron/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2007/01/07 09:14:14 rillig Exp $ +# $NetBSD: Makefile,v 1.11 2008/06/12 02:14:52 joerg Exp $ # DISTNAME= anacron-2.3 @@ -10,6 +10,8 @@ MAINTAINER= jmmv@NetBSD.org HOMEPAGE= http://anacron.sourceforge.net/ COMMENT= Periodic command scheduler +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= gmake .include "../../mk/bsd.prefs.mk" @@ -52,11 +54,13 @@ OWN_DIRS= /var/spool/anacron RCD_SCRIPTS= anacron -INSTALLATION_DIRS= ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin +INSTALLATION_DIRS= ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin ${EGDIR} + +INSTALL_MAKE_FLAGS= BINDIR=${DESTDIR}${PREFIX}/sbin \ + MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR} post-install: - ${INSTALL_DATA_DIR} ${EGDIR} - ${INSTALL_DATA} ${FILESDIR}/anacrontab.FreeBSD ${EGDIR} - ${INSTALL_DATA} ${FILESDIR}/anacrontab.NetBSD ${EGDIR} + ${INSTALL_DATA} ${FILESDIR}/anacrontab.FreeBSD ${DESTDIR}${EGDIR} + ${INSTALL_DATA} ${FILESDIR}/anacrontab.NetBSD ${DESTDIR}${EGDIR} .include "../../mk/bsd.pkg.mk" |