blob: 5a32cf710eb84c82a0fef8337c19e1d178321fff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# $NetBSD: Makefile,v 1.2 2007/08/20 07:30:09 ghen Exp $
DISTNAME= policyd-1.82
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=policyd/}
MAINTAINER= ghen@NetBSD.org
HOMEPAGE= http://www.policyd.org/
COMMENT= Policy daemon for Postfix with greylisting and throttling
USE_TOOLS+= gmake
USE_LANGUAGES= c c++
BUILD_TARGET= build
MAKE_ENV+= MYSQL_PREFIX=${BUILDLINK_PREFIX.mysql-client}
BUILD_DEFS+= VARBASE
BINDIR= ${PREFIX}/libexec/policyd
DOCDIR= ${PREFIX}/share/doc/policyd
EGDIR= ${PREFIX}/share/examples/policyd
INSTALLATION_DIRS= ${BINDIR} ${DOCDIR} ${EGDIR}
CONF_FILES= ${EGDIR}/policyd.conf ${PKG_SYSCONFDIR}/policyd.conf
RCD_SCRIPTS= policyd
SUBST_CLASSES+= config
SUBST_STAGE.config= post-build
SUBST_FILES.config= policyd.conf
SUBST_SED.config= -e 's,%%VARBASE%%,${VARBASE},'
FILES_SUBST+= BINDIR=${BINDIR}
MESSAGE_SUBST+= BINDIR=${BINDIR}
MESSAGE_SUBST+= EGDIR=${EGDIR}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/policyd ${BINDIR}
${INSTALL_PROGRAM} ${WRKSRC}/cleanup ${BINDIR}
${INSTALL_PROGRAM} ${WRKSRC}/stats ${BINDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/policyd.conf ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/doc/blacklist_helo.sql ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/doc/whitelist.sql ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/DATABASE.mysql ${EGDIR}
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|