diff options
author | ghen <ghen> | 2006-06-06 12:33:52 +0000 |
---|---|---|
committer | ghen <ghen> | 2006-06-06 12:33:52 +0000 |
commit | b6d792dd22a24431fefd37471ee90a2b181babe5 (patch) | |
tree | 43b8dd952ad9327e4384bb2393ae690e9e5c15f3 | |
parent | a1f039ea5ecf328c69448933eedc77dee812d26f (diff) | |
download | pkgsrc-b6d792dd22a24431fefd37471ee90a2b181babe5.tar.gz |
- Advertize GLD_USER and GLD_GROUP as being configurable (add to BUILD_DEFS).
- Fix the default USER and GROUP substitution in the config file.
- Bump PKGREVISION for this.
-rw-r--r-- | mail/gld/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/gld/Makefile b/mail/gld/Makefile index b67ebce36a1..5bd5a4276e4 100644 --- a/mail/gld/Makefile +++ b/mail/gld/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.17 2006/04/23 00:12:38 jlam Exp $ +# $NetBSD: Makefile,v 1.18 2006/06/06 12:33:52 ghen Exp $ # DISTNAME= gld-1.6 +PKGREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.gasmi.net/down/ EXTRACT_SUFX= .tgz @@ -22,6 +23,7 @@ GLD_GROUP?= gld PKG_GROUPS= ${GLD_GROUP} PKG_USERS= ${GLD_USER}:${GLD_GROUP} PKG_GECOS.${GLD_USER}= Greylisting Daemon user +BUILD_DEFS+= GLD_USER GLD_GROUP SUBST_CLASSES+= gld users SUBST_STAGE.gld= post-patch @@ -30,8 +32,8 @@ SUBST_SED.gld= -e "s,/etc,${PKG_SYSCONFDIR}," SUBST_MESSAGE.gld= Fixing harcoded paths. SUBST_STAGE.users= post-patch SUBST_FILES.users= gld.conf -SUBST_SED.users+= -e "s|\#USER=nobody|USER=${GLD_USER}|" -SUBST_SED.users+= -e "s|\#GROUP=nobody|GROUP=${GLD_GROUP}|" +SUBST_SED.users+= -e "s|^USER=nobody|USER=${GLD_USER}|" +SUBST_SED.users+= -e "s|^GROUP=nobody|GROUP=${GLD_GROUP}|" SUBST_MESSAGE.users= Adjusting user/group in configuration file. .include "options.mk" |