Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / mail / spamd / Makefile
blobb397d42f1b2d7f2af2ffeaa7e2ff4b554c43a4cd
1 # $NetBSD: Makefile,v 1.14 2012/03/06 23:27:15 joerg Exp $
3 DISTNAME= spamd-20060330
4 PKGREVISION= 1
5 CATEGORIES= mail
6 MASTER_SITES= http://nedbsd.nl/~ppostma/pf/
8 MAINTAINER= pkgsrc-users@NetBSD.org
9 HOMEPAGE= http://www.benzedrine.cx/relaydb.html
10 COMMENT= OpenBSD spam deferral daemon
12 ONLY_FOR_PLATFORM= NetBSD-*-* OpenBSD-*-* FreeBSD-*-* DragonFly-*-*
14 NO_CONFIGURE= yes
16 SPAMD_HOME= ${VARBASE}/chroot/spamd
17 OWN_DIRS= ${SPAMD_HOME}
19 CPPFLAGS+= -DPATH_SPAMD_HOME=\"${SPAMD_HOME}\"
20 CPPFLAGS+= -DPATH_SPAMD_DB=\"${VARBASE}/db/spamd\"
21 CPPFLAGS+= -DPATH_PFCTL=\"${PFCTL}\"
22 CPPFLAGS+= -DPATH_SPAMD_CONF=\"${SPAMD_CONF}\"
24 PKG_GROUPS= _spamd
25 PKG_USERS= _spamd:_spamd
26 PKG_GECOS._spamd= Spam Daemon User
27 PKG_HOME._spamd= ${SPAMD_HOME}
29 RCD_SCRIPTS= pfspamd
31 SPAMD_CONF= ${PKG_SYSCONFDIR}/spamd.conf
32 CONF_FILES= ${PREFIX}/share/examples/spamd/spamd.conf ${SPAMD_CONF}
34 SUBST_CLASSES+= fix
35 SUBST_STAGE.fix= post-patch
36 SUBST_FILES.fix= spamd/spamd.8
37 SUBST_FILES.fix+= spamd-setup/spamd-setup.8
38 SUBST_SED.fix= -e 's,/etc/spamd.conf,${SPAMD_CONF},g'
39 SUBST_MESSAGE.fix= Fixing configuration paths.
41 INSTALLATION_DIRS+= libexec sbin ${PKGMANDIR}/cat5 ${PKGMANDIR}/man5
42 INSTALLATION_DIRS+= ${PKGMANDIR}/cat8 ${PKGMANDIR}/man8 share/examples/spamd
44 do-install:
45 ${INSTALL_MAN} ${WRKSRC}/man/spamd.conf.5 \
46 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
47 ${INSTALL_MAN} ${WRKSRC}/spamd/spamd.8 \
48 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
49 ${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 \
50 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
51 ${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 \
52 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
53 ${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 \
54 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
56 ${INSTALL_PROGRAM} ${WRKSRC}/spamd-setup/spamd-setup \
57 ${DESTDIR}${PREFIX}/libexec
58 ${INSTALL_PROGRAM} ${WRKSRC}/spamd/spamd \
59 ${DESTDIR}${PREFIX}/libexec
60 ${INSTALL_PROGRAM} ${WRKSRC}/spamdb/spamdb \
61 ${DESTDIR}${PREFIX}/sbin
62 ${INSTALL_PROGRAM} ${WRKSRC}/spamlogd/spamlogd \
63 ${DESTDIR}${PREFIX}/libexec
64 ${INSTALL_DATA} ${WRKSRC}/etc/spamd.conf ${DESTDIR}${PREFIX}/share/examples/spamd
66 .include "../../mk/pf.buildlink3.mk"
67 .include "../../mk/bsd.pkg.mk"