summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjlam <jlam>2004-08-07 06:12:20 +0000
committerjlam <jlam>2004-08-07 06:12:20 +0000
commit051b42e41b5d9fb4d672a1603991a1c1007efa60 (patch)
tree099a37da4b57c74f6ff0a1554a9ebdd103a06287 /mail
parent306399a9878c079487afd68656d9519102c28f75 (diff)
downloadpkgsrc-051b42e41b5d9fb4d672a1603991a1c1007efa60.tar.gz
The dspam binary must be setuid to the dspam user, so we must list
the file in SPECIAL_PERMS to ensure that when installing from a binary package, it is automatically set to the correct ownership and file permissions. Also manage ${DSPAM_HOME} using OWN_DIRS_PERMS since it must exist for dspam to work properly, and must also be writable by the dspam user. Bump the PKGREVISION to 3.
Diffstat (limited to 'mail')
-rw-r--r--mail/dspam/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/mail/dspam/Makefile b/mail/dspam/Makefile
index 0b146e9300a..e86c81607c8 100644
--- a/mail/dspam/Makefile
+++ b/mail/dspam/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2004/08/06 21:27:52 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2004/08/07 06:12:20 jlam Exp $
DISTNAME= dspam-3.0.0
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://www.nuclearelephant.com/projects/dspam/sources/
@@ -11,7 +11,6 @@ COMMENT= extremely scalable, statistical-hybrid anti-spam filter
USE_BUILDLINK3= yes
USE_LIBTOOL= yes
-USE_PKGINSTALL= yes
USE_PERL5= yes
REPLACE_PERL= tools/dspam_genaliases.in \
@@ -44,8 +43,6 @@ DSPAM_SIGNATURE_LIFE?= 14
DSPAM_BINMODE?= 4511
DSPAM_USER?= dspam
DSPAM_GROUP?= dspam
-PKG_GROUPS= ${DSPAM_GROUP}
-PKG_USERS= ${DSPAM_USER}:${DSPAM_GROUP}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-chi-square
@@ -65,6 +62,13 @@ CONFIGURE_ARGS+= --with-dspam-home-owner=${DSPAM_USER} \
DOCDIR= ${PREFIX}/share/doc/dspam
DATADIR= ${PREFIX}/share/dspam
+USE_PKGINSTALL= yes
+PKG_GROUPS= ${DSPAM_GROUP}
+PKG_USERS= ${DSPAM_USER}:${DSPAM_GROUP}
+SPECIAL_PERMS= ${PREFIX}/bin/dspam ${DSPAM_USER} ${DSPAM_GROUP} \
+ ${DSPAM_BINMODE}
+OWN_DIRS_PERMS= ${DSPAM_HOME} ${DSPAM_USER} ${DSPAM_GROUP} 0755
+
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}