diff options
author | joerg <joerg> | 2010-02-17 15:14:05 +0000 |
---|---|---|
committer | joerg <joerg> | 2010-02-17 15:14:05 +0000 |
commit | 2832f977c5be438c768f7505cd37617a6363c9b1 (patch) | |
tree | 66e76d6f9dc64eb7ab8c8012d310eb4770574606 /sysutils/ups-nut | |
parent | 342c1009e3161047f5d8b19a6bf318041837b462 (diff) | |
download | pkgsrc-2832f977c5be438c768f7505cd37617a6363c9b1.tar.gz |
DESTDIR support
Diffstat (limited to 'sysutils/ups-nut')
-rw-r--r-- | sysutils/ups-nut/Makefile | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/sysutils/ups-nut/Makefile b/sysutils/ups-nut/Makefile index 287f2f053ad..d711fab3f1f 100644 --- a/sysutils/ups-nut/Makefile +++ b/sysutils/ups-nut/Makefile @@ -1,4 +1,6 @@ -# $NetBSD: Makefile,v 1.49 2008/01/30 22:10:12 ghen Exp $ +# $NetBSD: Makefile,v 1.50 2010/02/17 15:21:36 joerg Exp $ + +PKG_DESTDIR_SUPPORT= user-destdir .include "Makefile.common" @@ -49,22 +51,16 @@ RCD_SCRIPTS= ups upsd upsdriver upslog upsmon OWN_DIRS= ${NUT_CONFDIR} OWN_DIRS_PERMS= ${NUT_STATEDIR} ${NUT_USER} ${NUT_GROUP} 0770 -pre-install: - ${MKDIR} ${NUT_STATEDIR} - ${MKDIR} ${NUT_DRVDIR} - ${CHOWN} ${NUT_USER} ${NUT_STATEDIR} - ${INSTALL_DATA_DIR} ${NUT_EGDIR} +INSTALLATION_DIRS+= ${NUT_EGDIR} ${NUT_DOCDIR}/cables ${NUT_DOCDIR}/drivers post-install: - ${INSTALL_DATA_DIR} ${NUT_DOCDIR} - ${INSTALL_DATA_DIR} ${NUT_DOCDIR}/cables - ${INSTALL_DATA_DIR} ${NUT_DOCDIR}/drivers + ${INSTALL_DATA_DIR} for f in COPYING CREDITS ChangeLog NEWS README INSTALL UPGRADING; do \ - ${INSTALL_DATA} ${WRKSRC}/$$f ${NUT_DOCDIR}; \ + ${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${NUT_DOCDIR}; \ done - ${INSTALL_DATA} ${WRKSRC}/docs/FAQ ${NUT_DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/data/driver.list ${NUT_DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${NUT_DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/cables/*.txt ${NUT_DOCDIR}/cables + ${INSTALL_DATA} ${WRKSRC}/docs/FAQ ${DESTDIR}${NUT_DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/data/driver.list ${DESTDIR}${NUT_DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DESTDIR}${NUT_DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/cables/*.txt ${DESTDIR}${NUT_DOCDIR}/cables .include "../../mk/bsd.pkg.mk" |