diff options
author | rillig <rillig@pkgsrc.org> | 2006-10-23 08:14:02 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-10-23 08:14:02 +0000 |
commit | 29436688ce2326656c31c5a279dade1df58dbf68 (patch) | |
tree | 25df9d9bcfa29272e5d6ffd54b6fe5e92e8e939e /mail/qpopper/Makefile | |
parent | a0aa4e04572eeb6b30d42eaaf06207d0668fa593 (diff) | |
download | pkgsrc-29436688ce2326656c31c5a279dade1df58dbf68.tar.gz |
Fixed pkglint warnings and made the package work for unprivileged users.
Diffstat (limited to 'mail/qpopper/Makefile')
-rw-r--r-- | mail/qpopper/Makefile | 19 |
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 \ |