summaryrefslogtreecommitdiff
path: root/mail/ingo/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 17:57:17 +0000
committerjlam <jlam>2008-03-04 17:57:17 +0000
commitbdd0c18aec7b66f61e3330e8817dc56f3935ec5e (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /mail/ingo/Makefile
parent3fb238c0b22ac51fd38f31b091b73ec6488f8dd9 (diff)
downloadpkgsrc-bdd0c18aec7b66f61e3330e8817dc56f3935ec5e.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'mail/ingo/Makefile')
-rw-r--r--mail/ingo/Makefile42
1 files changed, 23 insertions, 19 deletions
diff --git a/mail/ingo/Makefile b/mail/ingo/Makefile
index 7f98e4f743f..2a144703bdc 100644
--- a/mail/ingo/Makefile
+++ b/mail/ingo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2008/01/09 21:48:51 adrianp Exp $
+# $NetBSD: Makefile,v 1.12 2008/03/04 17:57:18 jlam Exp $
DISTNAME= ingo-h3-${INGOVER}
PKGNAME= ingo-${INGOVER}
@@ -12,6 +12,8 @@ COMMENT= Horde based generic and complete mail filter rule frontend
DEPENDS+= horde>=3.0.0:../../www/horde
+PKG_DESTDIR_SUPPORT= destdir
+
.include "../../mk/bsd.prefs.mk"
DOCDIR= ${PREFIX}/share/doc/ingo
@@ -58,31 +60,33 @@ do-build:
${FIND} ${WRKSRC} -name .htaccess -print | ${XARGS} ${RM} -f
do-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA_DIR} ${INGODIR}
- ${INSTALL_DATA_DIR} ${INGODIR}/config
- ${INSTALL_DATA} ${WRKSRC}/ingo.conf.dist ${EGDIR}/ingo.conf
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/INSTALL ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/RELEASE_NOTES ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/UPGRADING ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${INGODIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${INGODIR}/config
+ ${INSTALL_DATA} ${WRKSRC}/ingo.conf.dist ${DESTDIR}${EGDIR}/ingo.conf
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/INSTALL ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/RELEASE_NOTES ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/UPGRADING ${DESTDIR}${DOCDIR}
. for d in ${PAXDIRS}
- ${INSTALL_DATA_DIR} ${INGODIR}/${d:Q}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${INGODIR}/${d:Q}
. endfor
. for d in ${PAXDIRS}
- cd ${WRKSRC}/${d:Q} && ${PAX} -rwpma . ${INGODIR}/${d:Q}
+ cd ${WRKSRC}/${d:Q} && ${PAX} -rwpma . ${DESTDIR}${INGODIR}/${d:Q}
. endfor
- ${INSTALL_DATA} ${WRKSRC}/config/*.dist ${INGODIR}/config
- ${INSTALL_DATA} ${WRKSRC}/*.php ${INGODIR}
- ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INGODIR}
- ${FIND} ${INGODIR} -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
- ${FIND} ${INGODIR} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
- ${CHOWN} ${APACHE_USER}:${SHAREGRP} ${INGODIR}/config
- ${CHMOD} 0750 ${INGODIR}/config
+ ${INSTALL_DATA} ${WRKSRC}/config/*.dist ${DESTDIR}${INGODIR}/config
+ ${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${INGODIR}
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${INGODIR}
+ ${FIND} ${DESTDIR}${INGODIR} -type d -print | \
+ ${XARGS} ${CHMOD} ${PKGDIRMODE}
+ ${FIND} ${DESTDIR}${INGODIR} -type f -print | \
+ ${XARGS} ${CHMOD} ${SHAREMODE}
+ ${CHOWN} ${APACHE_USER}:${SHAREGRP} ${DESTDIR}${INGODIR}/config
+ ${CHMOD} 0750 ${DESTDIR}${INGODIR}/config
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"