pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/dspam The dspam binary must be setuid to the dspa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8ad51022da17
branches:  trunk
changeset: 479186:8ad51022da17
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Aug 07 06:12:20 2004 +0000

description:
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:

 mail/dspam/Makefile |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 1392c191c938 -r 8ad51022da17 mail/dspam/Makefile
--- a/mail/dspam/Makefile       Fri Aug 06 21:27:52 2004 +0000
+++ b/mail/dspam/Makefile       Sat Aug 07 06:12:20 2004 +0000
@@ -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 @@
 
 USE_BUILDLINK3=                yes
 USE_LIBTOOL=           yes
-USE_PKGINSTALL=                yes
 
 USE_PERL5=             yes
 REPLACE_PERL=          tools/dspam_genaliases.in                       \
@@ -44,8 +43,6 @@
 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 @@
 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}



Home | Main Index | Thread Index | Old Index