| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.105 2020/06/02 08:24:14 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.106 2020/06/02 15:04:27 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= dspam-3.10.2 | | 3 | DISTNAME= dspam-3.10.2 |
4 | PKGREVISION= 29 | | 4 | PKGREVISION= 29 |
5 | CATEGORIES= mail | | 5 | CATEGORIES= mail |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dspam/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dspam/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://dspam.sourceforge.net/ | | 9 | HOMEPAGE= http://dspam.sourceforge.net/ |
10 | COMMENT= Extremely scalable, statistical-hybrid anti-spam filter | | 10 | COMMENT= Extremely scalable, statistical-hybrid anti-spam filter |
11 | | | 11 | |
12 | LICENSE= gnu-gpl-v2 | | 12 | LICENSE= gnu-gpl-v2 |
13 | | | 13 | |
14 | GNU_CONFIGURE= yes | | 14 | GNU_CONFIGURE= yes |
| @@ -101,26 +101,27 @@ CONF_FILES_PERMS+= ${EGDIR}/cgi-default. | | | @@ -101,26 +101,27 @@ CONF_FILES_PERMS+= ${EGDIR}/cgi-default. |
101 | CONF_FILES_PERMS+= ${EGDIR}/configure.pl ${PKG_SYSCONFDIR}/configure.pl \ | | 101 | CONF_FILES_PERMS+= ${EGDIR}/configure.pl ${PKG_SYSCONFDIR}/configure.pl \ |
102 | ${DSPAM_WWWUSER} ${DSPAM_WWWGROUP} 0640 | | 102 | ${DSPAM_WWWUSER} ${DSPAM_WWWGROUP} 0640 |
103 | | | 103 | |
104 | PKG_GROUPS= ${DSPAM_GROUP} | | 104 | PKG_GROUPS= ${DSPAM_GROUP} |
105 | PKG_USERS= ${DSPAM_USER}:${DSPAM_GROUP} | | 105 | PKG_USERS= ${DSPAM_USER}:${DSPAM_GROUP} |
106 | SPECIAL_PERMS= ${PREFIX}/bin/dspam ${DSPAM_USER} ${DSPAM_GROUP} \ | | 106 | SPECIAL_PERMS= ${PREFIX}/bin/dspam ${DSPAM_USER} ${DSPAM_GROUP} \ |
107 | ${DSPAM_BINMODE} | | 107 | ${DSPAM_BINMODE} |
108 | OWN_DIRS_PERMS= ${DSPAM_HOME} ${DSPAM_USER} ${DSPAM_WWWGROUP} 0775 | | 108 | OWN_DIRS_PERMS= ${DSPAM_HOME} ${DSPAM_USER} ${DSPAM_WWWGROUP} 0775 |
109 | OWN_DIRS_PERMS+= ${DSPAM_LOGDIR} ${DSPAM_USER} ${DSPAM_GROUP} 0775 | | 109 | OWN_DIRS_PERMS+= ${DSPAM_LOGDIR} ${DSPAM_USER} ${DSPAM_GROUP} 0775 |
110 | OWN_DIRS_PERMS+= ${DSPAM_PIDDIR} ${DSPAM_USER} ${DSPAM_GROUP} 0770 | | 110 | OWN_DIRS_PERMS+= ${DSPAM_PIDDIR} ${DSPAM_USER} ${DSPAM_GROUP} 0770 |
111 | | | 111 | |
112 | FILES_SUBST+= DSPAM_USER=${DSPAM_USER} | | 112 | FILES_SUBST+= DSPAM_USER=${DSPAM_USER} |
113 | FILES_SUBST+= DSPAM_GROUP=${DSPAM_GROUP} | | 113 | FILES_SUBST+= DSPAM_GROUP=${DSPAM_GROUP} |
| | | 114 | FILES_SUBST+= DSPAM_HOME=${DSPAM_HOME} |
114 | FILES_SUBST+= DSPAM_PIDDIR=${DSPAM_PIDDIR} | | 115 | FILES_SUBST+= DSPAM_PIDDIR=${DSPAM_PIDDIR} |
115 | | | 116 | |
116 | SUBST_CLASSES+= conf | | 117 | SUBST_CLASSES+= conf |
117 | SUBST_STAGE.conf= pre-install | | 118 | SUBST_STAGE.conf= pre-install |
118 | SUBST_FILES.conf= src/dspam.conf.in | | 119 | SUBST_FILES.conf= src/dspam.conf.in |
119 | SUBST_SED.conf= -e "s|@dspam_home@|${DSPAM_HOME}|g" | | 120 | SUBST_SED.conf= -e "s|@dspam_home@|${DSPAM_HOME}|g" |
120 | SUBST_SED.conf+= -e "s|@delivery_agent@|${DSPAM_DELIVERY_AGENT_BIN}|g" | | 121 | SUBST_SED.conf+= -e "s|@delivery_agent@|${DSPAM_DELIVERY_AGENT_BIN}|g" |
121 | SUBST_VARS.conf= PREFIX | | 122 | SUBST_VARS.conf= PREFIX |
122 | SUBST_VARS.conf+= VARBASE | | 123 | SUBST_VARS.conf+= VARBASE |
123 | SUBST_VARS.conf+= DSPAM_PIDDIR | | 124 | SUBST_VARS.conf+= DSPAM_PIDDIR |
124 | SUBST_MESSAGE.conf= Fixing configuration file. | | 125 | SUBST_MESSAGE.conf= Fixing configuration file. |
125 | | | 126 | |
126 | post-extract: | | 127 | post-extract: |