diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 17:57:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 17:57:17 +0000 |
commit | a80fd13efc426f96e55870df48a2030daea0f14b (patch) | |
tree | ea772f1017a149bdf8c86107c24d16246695614e /mail/mailserv | |
parent | 31c6c3a796edf9dd9bae5586339c5e2e023ca408 (diff) | |
download | pkgsrc-a80fd13efc426f96e55870df48a2030daea0f14b.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'mail/mailserv')
-rw-r--r-- | mail/mailserv/Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/mail/mailserv/Makefile b/mail/mailserv/Makefile index 09250f3df41..68acadc1b55 100644 --- a/mail/mailserv/Makefile +++ b/mail/mailserv/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2006/10/04 21:47:16 wiz Exp $ +# $NetBSD: Makefile,v 1.16 2008/03/04 17:57:18 jlam Exp $ # DISTNAME= mailserv @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.barelyfitz.com/projects/mailserv/ COMMENT= WWW interface to several types of mailing list servers +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} DIST_SUBDIR= ${PKGNAME_NOREV} @@ -39,19 +41,19 @@ do-configure: .endfor do-install: - ${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/cgi-bin/mailserv - ${INSTALL_SCRIPT} ${WRKSRC}/mailserv ${PREFIX}/libexec/cgi-bin/mailserv - ${INSTALL_SCRIPT} ${WRKSRC}/cgi-lib.pl ${PREFIX}/libexec/cgi-bin/mailserv - ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/libexec/cgi-bin/mailserv + ${INSTALL_SCRIPT} ${WRKSRC}/mailserv ${DESTDIR}${PREFIX}/libexec/cgi-bin/mailserv + ${INSTALL_SCRIPT} ${WRKSRC}/cgi-lib.pl ${DESTDIR}${PREFIX}/libexec/cgi-bin/mailserv + ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} .for cf in listproc listserv mail-list maiser majordomo-admin \ majordomo-share majordomo mlp pmdf smartlist subscribe - ${INSTALL_DATA} ${WRKSRC}/${cf}.cf ${EGDIR} - cd ${PREFIX}/libexec/cgi-bin/mailserv && \ + ${INSTALL_DATA} ${WRKSRC}/${cf}.cf ${DESTDIR}${EGDIR} + cd ${DESTDIR}${PREFIX}/libexec/cgi-bin/mailserv && \ ${LN} -s mailserv ${cf} .endfor - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mailserv + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mailserv .for doc in ChangeLog LICENSE README - ${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/mailserv + ${INSTALL_DATA} ${WRKSRC}/${doc} ${DESTDIR}${PREFIX}/share/doc/mailserv .endfor .include "../../mk/bsd.pkg.mk" |