summaryrefslogtreecommitdiff
path: root/mail/mailfront
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2010-03-15 02:51:24 +0000
committerschmonz <schmonz@pkgsrc.org>2010-03-15 02:51:24 +0000
commitd50d4efe66273c9531639e9d3025ef4f3877ca32 (patch)
tree5b82715f7523fe0f8fd27f191576db81f44dbe80 /mail/mailfront
parent90a431e12afc0f36212ce992e7abb69556342893 (diff)
downloadpkgsrc-d50d4efe66273c9531639e9d3025ef4f3877ca32.tar.gz
DESTDIR support.
Diffstat (limited to 'mail/mailfront')
-rw-r--r--mail/mailfront/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/mailfront/Makefile b/mail/mailfront/Makefile
index 25ec27828b7..f0f9dcc1529 100644
--- a/mail/mailfront/Makefile
+++ b/mail/mailfront/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2009/04/08 01:44:04 schmonz Exp $
+# $NetBSD: Makefile,v 1.11 2010/03/15 02:51:24 schmonz Exp $
#
DISTNAME= mailfront-1.12
@@ -9,6 +9,8 @@ MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://untroubled.org/mailfront/
COMMENT= Mail server network protocol front-ends
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
DEPENDS_QMAIL= qmail>=1.03nb8:../../mail/qmail
DEPENDS+= ${DEPENDS_QMAIL}
@@ -21,16 +23,15 @@ DJB_CONFIG_CMDS+= ${ECHO} ${PREFIX}/include > conf-include; \
RCD_SCRIPTS= smtpfront
INSTALLATION_DIRS= share/doc/mailfront
+INSTALL_ENV+= install_prefix=${DESTDIR:Q}
.include "../../mk/bsd.prefs.mk"
post-install:
cd ${WRKSRC}; \
- for f in *.html; do \
- ${INSTALL_DATA} $${f} ${PREFIX}/share/doc/mailfront; \
- done; \
- for f in ANNOUNCEMENT NEWS README; do \
- ${INSTALL_DATA} $${f} ${PREFIX}/share/doc/mailfront; \
+ for f in ANNOUNCEMENT NEWS README *.html; do \
+ ${INSTALL_DATA} $${f} \
+ ${DESTDIR}${PREFIX}/share/doc/mailfront; \
done
# Detect the PKG_SYSCONFDIR of the installed qmail, so we can create