diff options
author | obache <obache@pkgsrc.org> | 2011-03-01 11:19:49 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-03-01 11:19:49 +0000 |
commit | d5f1e3134807cbc7a96105019f471f318f6b78fc (patch) | |
tree | 2c0aa80d2cb7dfe7f72ed948c83257066da26ee0 /mail | |
parent | e906113a3bd0ed6dfdf95d18002110e3e01fea96 (diff) | |
download | pkgsrc-d5f1e3134807cbc7a96105019f471f318f6b78fc.tar.gz |
destdir installation support.
XXX: for user-destdir, see devtools/M4/UNIX/defines.mk, conf*{OWN,GRP,MODE}.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/dkim-milter/Makefile | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/mail/dkim-milter/Makefile b/mail/dkim-milter/Makefile index 08c036ab9a8..4071df89cf3 100644 --- a/mail/dkim-milter/Makefile +++ b/mail/dkim-milter/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2010/10/18 08:42:31 pettai Exp $ +# $NetBSD: Makefile,v 1.26 2011/03/01 11:19:49 obache Exp $ DISTNAME= dkim-milter-2.8.3 PKGREVISION= 1 @@ -10,6 +10,8 @@ HOMEPAGE= http://sourceforge.net/projects/dkim-milter/ COMMENT= Open source DKIM filter software from Sendmail, Inc LICENSE= sendmail-open-source-license +PKG_DESTDIR_SUPPORT= destdir + MAKE_ENV+= M4=${M4:Q} RCD_SCRIPTS= dkim-filter USE_BUILTIN.libmilter= no @@ -48,6 +50,7 @@ CONF_FILES= ${EGDIR}/dkim-filter.conf.sample \ ${PKG_SYSCONFDIR}/dkim-filter.conf INSTALLATION_DIRS= libexec ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 \ + bin lib include \ share/doc/dkim-milter ${EGDIR} \ share/doc/dkim-milter/libdkim @@ -65,44 +68,44 @@ do-build: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build do-install: - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build install + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ./Build install post-install: - ${INSTALL_DATA} ${WRKSRC}/dkim-filter/dkim-filter.conf.sample ${EGDIR} - ${INSTALL_DATA} ${WRKSRC}/FEATURES ${PREFIX}/share/doc/dkim-milter - ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/dkim-milter - ${INSTALL_DATA} ${WRKSRC}/KNOWNBUGS ${PREFIX}/share/doc/dkim-milter - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dkim-milter - ${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES ${PREFIX}/share/doc/dkim-milter + ${INSTALL_DATA} ${WRKSRC}/dkim-filter/dkim-filter.conf.sample ${DESTDIR}${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/FEATURES ${DESTDIR}${PREFIX}/share/doc/dkim-milter + ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${PREFIX}/share/doc/dkim-milter + ${INSTALL_DATA} ${WRKSRC}/KNOWNBUGS ${DESTDIR}${PREFIX}/share/doc/dkim-milter + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/dkim-milter + ${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES ${DESTDIR}${PREFIX}/share/doc/dkim-milter cd ${WRKSRC} && for f in draft-*.txt; do \ ${INSTALL_DATA} $${f} \ - ${PREFIX}/share/doc/dkim-milter; \ + ${DESTDIR}${PREFIX}/share/doc/dkim-milter; \ done cd ${WRKSRC} && for f in rfc*.txt; do \ ${INSTALL_DATA} $${f} \ - ${PREFIX}/share/doc/dkim-milter; \ + ${DESTDIR}${PREFIX}/share/doc/dkim-milter; \ done cd ${WRKSRC}/libdkim/docs/ && for f in *.html; do \ ${INSTALL_DATA} $${f} \ - ${PREFIX}/share/doc/dkim-milter/libdkim; \ + ${DESTDIR}${PREFIX}/share/doc/dkim-milter/libdkim; \ done - ${CHMOD} ${SHAREMODE} ${PREFIX}/include/dkim.h + ${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/include/dkim.h . if !empty(PKG_OPTIONS:Mdkim-milter-arlib) cd ${WRKSRC}/obj.`uname -s`.`uname -r`.`uname -m`/libar && \ - ${INSTALL_LIB} libar.a ${PREFIX}/lib && \ - ${INSTALL_MAN} ar.3 ${PREFIX}/${PKGMANDIR}/man3 + ${INSTALL_LIB} libar.a ${DESTDIR}${PREFIX}/lib && \ + ${INSTALL_MAN} ar.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3 . endif . if !empty(PKG_OPTIONS:Mdkim-stats) cd ${WRKSRC}/obj.`uname -s`.`uname -r`.`uname -m`/dkim-filter && \ - ${INSTALL_PROGRAM} dkim-stats ${PREFIX}/bin && \ + ${INSTALL_PROGRAM} dkim-stats ${DESTDIR}${PREFIX}/bin && \ ${INSTALL_MAN} ${WRKSRC}/dkim-filter/dkim-stats.8 \ - ${PREFIX}/${PKGMANDIR}/man8 + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 . endif BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.8 |