summaryrefslogtreecommitdiff
path: root/mail/qpopper/Makefile
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-23 08:14:02 +0000
committerrillig <rillig@pkgsrc.org>2006-10-23 08:14:02 +0000
commitb5be42d211296092b097ad991f907ebd5c8bca53 (patch)
tree25df9d9bcfa29272e5d6ffd54b6fe5e92e8e939e /mail/qpopper/Makefile
parentf0c68f8eb8a5576b7205260cb05e3724a2bbe17b (diff)
downloadpkgsrc-b5be42d211296092b097ad991f907ebd5c8bca53.tar.gz
Fixed pkglint warnings and made the package work for unprivileged users.
Diffstat (limited to 'mail/qpopper/Makefile')
-rw-r--r--mail/qpopper/Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/mail/qpopper/Makefile b/mail/qpopper/Makefile
index caee0e5884f..7736a0b6e6d 100644
--- a/mail/qpopper/Makefile
+++ b/mail/qpopper/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.56 2006/05/05 02:51:35 taca Exp $
+# $NetBSD: Makefile,v 1.57 2006/10/23 08:14:02 rillig Exp $
#
DISTNAME= qpopper${VERSION}
@@ -25,7 +25,9 @@ CONFIGURE_ARGS+= --enable-apop=${QPOPPER_APOP_AUTH:Q} \
QPOPPER_USER?= pop
QPOPPER_GROUP?= mail
QPOPPER_APOP_AUTH?= ${PKG_SYSCONFDIR}/apop.auth
-DB_SUFFIX?= db
+
+BUILD_DEFS+= QPOPPER_USER QPOPPER_GROUP
+BUILD_DEFS+= QPOPPER_APOP_AUTH
.if defined(QPOPPER_SPOOL_DIR)
CONFIGURE_ARGS+= --enable-spool-dir=${QPOPPER_SPOOL_DIR:Q}
@@ -38,10 +40,15 @@ MESSAGE_SUBST+= RCD_SCRIPTS=${RCD_SCRIPTS} \
PKG_USERS?= ${QPOPPER_USER}:${QPOPPER_GROUP}
MAKE_ENV+= BINGRP=${BINGRP:Q}
-pre-build:
- ${SED} -e "s|/usr/local/lib|${PREFIX}/libexec|g" \
- ${WRKSRC}/man/popper.8 > ${WRKSRC}/man/popper.8.$$ && \
- ${MV} -f ${WRKSRC}/man/popper.8.$$ ${WRKSRC}/man/popper.8
+SUBST_CLASSES+= root
+SUBST_STAGE.root= pre-configure
+SUBST_FILES.root= Makefile.in */Makefile.in
+SUBST_SED.root= -e 's,-o root,-o ${ROOT_USER},g'
+
+SUBST_CLASSES+= libexec
+SUBST_STAGE.libexec= pre-configure
+SUBST_FILES.libexec= man/popper.8
+SUBST_SED.libexec= -e "s|/usr/local/lib|${PREFIX}/libexec|g"
post-install:
${INSTALL_DATA} ${WRKSRC}/License.txt \