blob: d868efb10294185154a00b6ff88fdb1ca6ec9424 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
# $NetBSD: Makefile,v 1.37 2020/08/18 03:30:03 tnn Exp $
DISTNAME= dkim-milter-2.8.3
PKGREVISION= 6
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dkim-milter/}
MAINTAINER= imil@gcu.info
HOMEPAGE= https://sourceforge.net/projects/dkim-milter/
COMMENT= Open source DKIM filter software from Sendmail, Inc
LICENSE= sendmail-open-source-license
PKG_DESTDIR_SUPPORT= destdir
NOT_FOR_UNPRIVILEGED= yes
MAKE_ENV+= M4=${M4:Q}
RCD_SCRIPTS= dkim-filter
USE_BUILTIN.libmilter= no
USE_TOOLS+= gm4
EGDIR= ${PREFIX}/share/examples/dkim-milter
FILES_SUBST+= DKIM_USER=${DKIM_USER:Q} DKIM_GROUP=${DKIM_GROUP:Q}
BUILD_DEFS+= VARBASE DKIM_USER DKIM_GROUP
DKIM_USER?= dkim
DKIM_GROUP?= dkim
PKG_GROUPS= ${DKIM_USER}
PKG_USERS= ${DKIM_USER}:${DKIM_GROUP}
PKG_GROUPS_VARS+= DKIM_GROUP
PKG_USERS_VARS+= DKIM_USER
OWN_DIRS_PERMS+= ${VARBASE}/run/dkim-filter \
${DKIM_USER} ${DKIM_GROUP} 0750
.include "options.mk"
SUBST_CLASSES+= libs
SUBST_STAGE.libs= pre-configure
SUBST_FILES.libs= devtools/Site/site.config.m4
SUBST_FILES.libs+= dkim-filter/dkim-filter.conf.5 dkim-filter/dkim-stats.8
SUBST_FILES.libs+= dkim-filter/Makefile.m4
SUBST_SED.libs+= -e 's|@SSLBASE@|${BUILDLINK_PREFIX.openssl}|g'
SUBST_SED.libs+= -e 's|@LMBASE@|${BUILDLINK_PREFIX.libmilter}|g'
SUBST_SED.libs+= -e 's|@PTHREAD@|${BUILDLINK_PREFIX.pthread}|g'
SUBST_SED.libs+= -e 's|@PTHREAD_LDFLAGS@|${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}|g'
SUBST_VARS.libs= PREFIX
SUBST_VARS.libs+= PKGMANDIR
SUBST_SED.libs+= -e 's|/etc/mail|${PKG_SYSCONFDIR}|g'
SUBST_SED.libs+= -e 's|.I /etc/dkim-filter.conf|.I ${PKG_SYSCONFDIR}/dkim-filter.conf|g'
SUBST_MESSAGE.libs= Fixing Makefile references and man pages.
CONF_FILES= ${EGDIR}/dkim-filter.conf.sample \
${PKG_SYSCONFDIR}/dkim-filter.conf
INSTALLATION_DIRS= libexec ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 \
bin lib include \
share/doc/dkim-milter ${EGDIR} \
share/doc/dkim-milter/libdkim
CPPFLAGS.NetBSD+= -DSM_CONF_STDBOOL_H=1
post-extract:
${CP} ${WRKSRC}/site.config.m4.dist \
${WRKSRC}/devtools/Site/site.config.m4
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build
do-install:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ./Build install
post-install:
${INSTALL_DATA} ${WRKSRC}/dkim-filter/dkim-filter.conf.sample ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/FEATURES ${DESTDIR}${PREFIX}/share/doc/dkim-milter
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${PREFIX}/share/doc/dkim-milter
${INSTALL_DATA} ${WRKSRC}/KNOWNBUGS ${DESTDIR}${PREFIX}/share/doc/dkim-milter
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/dkim-milter
${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES ${DESTDIR}${PREFIX}/share/doc/dkim-milter
cd ${WRKSRC} && for f in draft-*.txt; do \
${INSTALL_DATA} $${f} \
${DESTDIR}${PREFIX}/share/doc/dkim-milter; \
done
cd ${WRKSRC} && for f in rfc*.txt; do \
${INSTALL_DATA} $${f} \
${DESTDIR}${PREFIX}/share/doc/dkim-milter; \
done
cd ${WRKSRC}/libdkim/docs/ && for f in *.html; do \
${INSTALL_DATA} $${f} \
${DESTDIR}${PREFIX}/share/doc/dkim-milter/libdkim; \
done
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/include/dkim.h
. if !empty(PKG_OPTIONS:Mdkim-milter-arlib)
cd ${WRKSRC}/obj.`uname -s`.`uname -r`.`uname -m`/libar && \
${INSTALL_LIB} libar.a ${DESTDIR}${PREFIX}/lib && \
${INSTALL_MAN} ar.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
. endif
. if !empty(PKG_OPTIONS:Mdkim-stats)
cd ${WRKSRC}/obj.`uname -s`.`uname -r`.`uname -m`/dkim-filter && \
${INSTALL_PROGRAM} dkim-stats ${DESTDIR}${PREFIX}/bin && \
${INSTALL_MAN} ${WRKSRC}/dkim-filter/dkim-stats.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
. endif
.include "../../security/openssl/buildlink3.mk"
BUILDLINK_API_DEPENDS.libmilter+= libmilter>=8.13.0
.include "../../mail/libmilter/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|