pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/deliver Convert to options framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/40f0bbbb6c50
branches: trunk
changeset: 494996:40f0bbbb6c50
user: wiz <wiz%pkgsrc.org@localhost>
date: Wed Jun 01 14:45:01 2005 +0000
description:
Convert to options framework.
Replace undocumented DELIVER_CONF_PREFIX with plain PKG_SYSCONFDIR handling.
Remove unneeded inclusion of bsd.man.mk.
diffstat:
mail/deliver/Makefile | 22 +++++++++-------------
1 files changed, 9 insertions(+), 13 deletions(-)
diffs (51 lines):
diff -r 58cf77b00aba -r 40f0bbbb6c50 mail/deliver/Makefile
--- a/mail/deliver/Makefile Wed Jun 01 14:38:39 2005 +0000
+++ b/mail/deliver/Makefile Wed Jun 01 14:45:01 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2004/05/28 01:09:01 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2005/06/01 14:45:01 wiz Exp $
DISTNAME= deliver-2.1.14
PKGREVISION= 1
@@ -9,22 +9,19 @@
HOMEPAGE= http://deliver.sourceforge.net/
COMMENT= Local mail delivery agent with shell-script control
-.include "../../mk/bsd.prefs.mk"
-
-# Deliver prefers to be installed suid root, but by default we don't do that.
-DELIVER_SUID?= NO
+PKG_SYSCONFSUBDIR= deliver
-# Use DELIVER_CONF_PREFIX from /etc/mk.conf, if defined.
-# If this specifies a directory that will contain files other than deliver's
-# delivery files, you may also want to add a suffix like "deliver.", to
-# identify the "sys", "post", and "err" delivery files as owned by deliver.
-DELIVER_CONF_PREFIX?= ${PREFIX}/etc/deliver/
+PKG_OPTIONS_VAR= PKG_OPTIONS.deliver
+PKG_SUPPORTED_OPTIONS= deliver-suid
+PKG_OPTIONS_LEGACY_VARS+= DELIVER_SUID:deliver-suid
+
+.include "../../mk/bsd.options.mk"
pre-configure:
cd ${WRKSRC}; \
for FILE in config.h deliver.8 conf/os-netbsd.h; do \
${MV} $${FILE} $${FILE}.bak; \
- ${SED} -e 's#@DELIVER_CONF_PREFIX@#${DELIVER_CONF_PREFIX}#g' \
+ ${SED} -e 's#@DELIVER_CONF_PREFIX@#${PKG_SYSCONFDIR}#g' \
-e 's#@PREFIX@#${PREFIX}#g' \
< $${FILE}.bak > $${FILE}; \
done; \
@@ -46,10 +43,9 @@
cd ${WRKSRC}/samples; \
${INSTALL_DATA} README p-aliases s-aliases u-chip u-notify u-vacation \
${PREFIX}/share/examples/deliver
-.if defined(DELIVER_SUID) && ${DELIVER_SUID} == YES
+.if !empty(PKG_OPTIONS:Mdeliver-suid)
${CHOWN} root ${PREFIX}/bin/deliver
${CHMOD} u+s ${PREFIX}/bin/deliver
.endif
.include "../../mk/bsd.pkg.mk"
-.include <bsd.man.mk>
Home |
Main Index |
Thread Index |
Old Index