Wed Jan 18 14:35:13 2012 UTC ()
Revbump after db5 update


(adam)
diff -r1.28 -r1.29 pkgsrc/mail/postgrey/Makefile

cvs diff -r1.28 -r1.29 pkgsrc/mail/postgrey/Makefile (switch to unified diff)

--- pkgsrc/mail/postgrey/Makefile 2011/02/16 19:37:49 1.28
+++ pkgsrc/mail/postgrey/Makefile 2012/01/18 14:35:13 1.29
@@ -1,86 +1,86 @@ @@ -1,86 +1,86 @@
1# $NetBSD: Makefile,v 1.28 2011/02/16 19:37:49 shattered Exp $ 1# $NetBSD: Makefile,v 1.29 2012/01/18 14:35:13 adam Exp $
2 2
3DISTNAME= postgrey-1.33 3DISTNAME= postgrey-1.33
4PKGREVISION= 2 4PKGREVISION= 3
5CATEGORIES= mail 5CATEGORIES= mail
6MASTER_SITES= http://postgrey.schweikert.ch/pub/ 6MASTER_SITES= http://postgrey.schweikert.ch/pub/
7 7
8MAINTAINER= kim@tac.nyc.ny.us 8MAINTAINER= kim@tac.nyc.ny.us
9HOMEPAGE= http://postgrey.schweikert.ch/ 9HOMEPAGE= http://postgrey.schweikert.ch/
10COMMENT= Postfix Greylist Policy Server 10COMMENT= Postfix Greylist Policy Server
11 11
12DEPENDS+= p5-BerkeleyDB-[0-9]*:../../databases/p5-BerkeleyDB 12DEPENDS+= p5-BerkeleyDB-[0-9]*:../../databases/p5-BerkeleyDB
13DEPENDS+= p5-IO-Multiplex-[0-9]*:../../devel/p5-IO-Multiplex 13DEPENDS+= p5-IO-Multiplex-[0-9]*:../../devel/p5-IO-Multiplex
14DEPENDS+= p5-Net-Server-[0-9]*:../../net/p5-Net-Server 14DEPENDS+= p5-Net-Server-[0-9]*:../../net/p5-Net-Server
15 15
16PKG_DESTDIR_SUPPORT= user-destdir 16PKG_DESTDIR_SUPPORT= user-destdir
17 17
18BDB_ACCEPTED= db4 db5 18BDB_ACCEPTED= db4 db5
19NO_CONFIGURE= yes 19NO_CONFIGURE= yes
20USE_TOOLS+= perl:run 20USE_TOOLS+= perl:run
21 21
22.include "../../mk/bsd.prefs.mk" 22.include "../../mk/bsd.prefs.mk"
23 23
24POSTGREY_USER?= postgrey 24POSTGREY_USER?= postgrey
25POSTGREY_GROUP?= postgrey 25POSTGREY_GROUP?= postgrey
26POSTGREY_DBDIR?= ${VARBASE}/db/${PKGBASE} 26POSTGREY_DBDIR?= ${VARBASE}/db/${PKGBASE}
27 27
28PKG_SYSCONFSUBDIR?= postfix 28PKG_SYSCONFSUBDIR?= postfix
29 29
30DOCDIR= share/doc/${PKGBASE} 30DOCDIR= share/doc/${PKGBASE}
31EGDIR= share/examples/${PKGBASE} 31EGDIR= share/examples/${PKGBASE}
32 32
33RCD_SCRIPTS= postgrey 33RCD_SCRIPTS= postgrey
34PKG_GROUPS= ${POSTGREY_GROUP} 34PKG_GROUPS= ${POSTGREY_GROUP}
35PKG_USERS= ${POSTGREY_USER}:${POSTGREY_GROUP} 35PKG_USERS= ${POSTGREY_USER}:${POSTGREY_GROUP}
36PKG_GROUPS_VARS+= POSTGREY_GROUP 36PKG_GROUPS_VARS+= POSTGREY_GROUP
37PKG_USERS_VARS+= POSTGREY_USER 37PKG_USERS_VARS+= POSTGREY_USER
38 38
39PKG_GECOS.${POSTGREY_USER}= Postgrey Daemon User 39PKG_GECOS.${POSTGREY_USER}= Postgrey Daemon User
40 40
41BUILD_DEFS+= POSTGREY_DBDIR VARBASE 41BUILD_DEFS+= POSTGREY_DBDIR VARBASE
42 42
43.for i in postgrey_whitelist_clients postgrey_whitelist_recipients 43.for i in postgrey_whitelist_clients postgrey_whitelist_recipients
44CONF_FILES+= ${PREFIX}/${EGDIR}/${i} \ 44CONF_FILES+= ${PREFIX}/${EGDIR}/${i} \
45 ${PKG_SYSCONFDIR}/${i} 45 ${PKG_SYSCONFDIR}/${i}
46.endfor 46.endfor
47 47
48OWN_DIRS_PERMS+= ${POSTGREY_DBDIR} \ 48OWN_DIRS_PERMS+= ${POSTGREY_DBDIR} \
49 ${POSTGREY_USER} ${POSTGREY_GROUP} 0775 49 ${POSTGREY_USER} ${POSTGREY_GROUP} 0775
50 50
51FILES_SUBST+= PERL=${PERL5:Q} 51FILES_SUBST+= PERL=${PERL5:Q}
52 52
53SUBST_CLASSES+= postgrey 53SUBST_CLASSES+= postgrey
54SUBST_STAGE.postgrey= pre-build 54SUBST_STAGE.postgrey= pre-build
55SUBST_FILES.postgrey= postgrey 55SUBST_FILES.postgrey= postgrey
56# Perl 56# Perl
57SUBST_SED.postgrey= -e 's,/usr/bin/perl,${PERL5},g' 57SUBST_SED.postgrey= -e 's,/usr/bin/perl,${PERL5},g'
58# User 58# User
59SUBST_SED.postgrey+= -e "s,|| 'postgrey',|| '${POSTGREY_USER}',g" 59SUBST_SED.postgrey+= -e "s,|| 'postgrey',|| '${POSTGREY_USER}',g"
60SUBST_SED.postgrey+= -e "s,default: postgrey,default: ${POSTGREY_USER},g" 60SUBST_SED.postgrey+= -e "s,default: postgrey,default: ${POSTGREY_USER},g"
61SUBST_SED.postgrey+= -e "s,C<postgrey>,C<${POSTGREY_USER}>,g" 61SUBST_SED.postgrey+= -e "s,C<postgrey>,C<${POSTGREY_USER}>,g"
62# Group 62# Group
63SUBST_SED.postgrey+= -e "s,|| 'nogroup',|| '${POSTGREY_GROUP}',g" 63SUBST_SED.postgrey+= -e "s,|| 'nogroup',|| '${POSTGREY_GROUP}',g"
64SUBST_SED.postgrey+= -e "s,default: nogroup,default: ${POSTGREY_GROUP},g" 64SUBST_SED.postgrey+= -e "s,default: nogroup,default: ${POSTGREY_GROUP},g"
65# Database 65# Database
66SUBST_SED.postgrey+= -e 's,/var/spool/postfix/postgrey,${POSTGREY_DBDIR},g' 66SUBST_SED.postgrey+= -e 's,/var/spool/postfix/postgrey,${POSTGREY_DBDIR},g'
67# Config 67# Config
68SUBST_SED.postgrey+= -e 's,/etc/postfix,${PKG_SYSCONFDIR},g' 68SUBST_SED.postgrey+= -e 's,/etc/postfix,${PKG_SYSCONFDIR},g'
69# 69#
70SUBST_MESSAGE.postgrey= Fixing defaults. 70SUBST_MESSAGE.postgrey= Fixing defaults.
71 71
72INSTALLATION_DIRS= sbin ${DOCDIR} ${EGDIR} 72INSTALLATION_DIRS= sbin ${DOCDIR} ${EGDIR}
73 73
74do-build: 74do-build:
75 75
76do-install: 76do-install:
77 ${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${DESTDIR}${PREFIX}/sbin/postgrey 77 ${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${DESTDIR}${PREFIX}/sbin/postgrey
78.for i in COPYING Changes README 78.for i in COPYING Changes README
79 ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${DOCDIR}/${i} 79 ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${DOCDIR}/${i}
80.endfor 80.endfor
81.for i in postgrey_whitelist_clients postgrey_whitelist_recipients 81.for i in postgrey_whitelist_clients postgrey_whitelist_recipients
82 ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${EGDIR}/${i} 82 ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${EGDIR}/${i}
83.endfor 83.endfor
84 84
85.include "../../mk/bdb.buildlink3.mk" 85.include "../../mk/bdb.buildlink3.mk"
86.include "../../mk/bsd.pkg.mk" 86.include "../../mk/bsd.pkg.mk"