diff options
author | joerg <joerg@pkgsrc.org> | 2010-06-28 22:43:50 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-06-28 22:43:50 +0000 |
commit | 2069e70b7a1c76b00bd73b0f09a388fbc52b5467 (patch) | |
tree | 8546921f2855bc90d1d806dbe774f0f2737aca60 /net/freeradius | |
parent | 4e00652cecb5e8c71f027d55b5518777413d2c38 (diff) | |
download | pkgsrc-2069e70b7a1c76b00bd73b0f09a388fbc52b5467.tar.gz |
DESTDIR support
Diffstat (limited to 'net/freeradius')
-rw-r--r-- | net/freeradius/Makefile | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile index 93617f141ed..395548cc94f 100644 --- a/net/freeradius/Makefile +++ b/net/freeradius/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.70 2010/05/29 08:51:11 joerg Exp $ +# $NetBSD: Makefile,v 1.71 2010/06/28 22:43:50 joerg Exp $ DISTNAME= freeradius-${RADVER} PKGREVISION= 4 @@ -11,6 +11,7 @@ COMMENT= Free RADIUS server implementation CONFLICTS+= freeradius-2.[0-9]* +PKG_DESTDIR_SUPPORT= user-destdir MAKE_JOBS_SAFE= no .include "../../mk/bsd.prefs.mk" @@ -138,19 +139,15 @@ post-build: ${CP} ${PKGDIR:Q}/MESSAGE.pam ${WRKDIR:Q}/.MESSAGE_SRC.pam .endif +INSTALLATION_DIRS+= ${EGDIR}/certs/demoCA +INSTALL_ENV+= R=${DESTDIR} +MAKE_DIRS_PERMS+= ${PKG_SYSCONFDIR}/certs ${RADIUS_USER} ${RADIUS_GROUP} 0750 +MAKE_DIRS_PERMS+= ${PKG_SYSCONFDIR}/certs/demoCA ${RADIUS_USER} ${RADIUS_GROUP} 0750 + post-install: - ${INSTALL_DATA_DIR} ${EGDIR} - ${INSTALL_DATA_DIR} ${EGDIR}/certs - ${INSTALL_DATA_DIR} ${EGDIR}/certs/demoCA .for f in ${EGFILES} - ${INSTALL_DATA} ${WRKSRC}/raddb/${f} ${EGDIR}/${f} + ${INSTALL_DATA} ${WRKSRC}/raddb/${f} ${DESTDIR}${EGDIR}/${f} .endfor - ${INSTALL_SCRIPT} ${WRKSRC}/src/modules/rlm_perl/example.pl ${EGDIR} - ${MKDIR} ${PKG_SYSCONFDIR}/certs - ${MKDIR} ${PKG_SYSCONFDIR}/certs/demoCA - ${CHOWN} ${RADIUS_USER}:${RADIUS_GROUP} ${PKG_SYSCONFDIR}/certs - ${CHOWN} ${RADIUS_USER}:${RADIUS_GROUP} ${PKG_SYSCONFDIR}/certs/demoCA - ${CHMOD} 0750 ${PKG_SYSCONFDIR}/certs - ${CHMOD} 0750 ${PKG_SYSCONFDIR}/certs/demoCA + ${INSTALL_SCRIPT} ${WRKSRC}/src/modules/rlm_perl/example.pl ${DESTDIR}${EGDIR} .include "../../mk/bsd.pkg.mk" |