blob: a7a08be926c9a6bda1cfd99e0fb7fc8f2e1b6323 (
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
|
# $NetBSD: Makefile,v 1.12 2015/03/15 17:41:58 hiramatsu Exp $
#
DISTNAME= enma-1.2.0
PKGREVISION= 3
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=enma/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://enma.sourceforge.net/
COMMENT= Sender authentication milter supporting SPF and Sender ID
LICENSE= 2-clause-bsd
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= gmake
CONFIGURE_ARGS+= --with-libmilter=${BUILDLINK_PREFIX.libmilter}
CONFIGURE_ARGS+= --with-ldns=${BUILDLINK_PREFIX.ldns}
CONFIGURE_ARGS+= --with-ssl=${SSLBASE}
CONFIGURE_ARGS+= --with-resolver=ldns
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
BUILD_DEFS+= VARBASE
CONF_FILES+= share/examples/enma/enma.conf.sample ${PKG_SYSCONFDIR}/enma.conf
RCD_SCRIPTS= enma
.include "../../mk/bsd.prefs.mk"
ENMA_USER?= daemon
ENMA_GROUP?= daemon
PKG_GROUPS_VARS= ENMA_GROUP
PKG_USERS_VARS= ENMA_USER
PKG_GROUPS= ${ENMA_GROUP}
PKG_USERS= ${ENMA_USER}:${ENMA_GROUP}
SUBST_CLASSES+= varbase
SUBST_STAGE.varbase= post-configure
SUBST_FILES.varbase= enma/etc/enma.conf.sample
SUBST_FILES.varbase+= enma/man/enma.1 enma/man/enma.ja.1
SUBST_FILES.varbase+= enma/src/enma_config.c
SUBST_SED.varbase= -e 's;/var/;${VARBASE}/;g'
SUBST_CLASSES+= daemon
SUBST_STAGE.daemon= post-configure
SUBST_FILES.daemon= enma/etc/enma.conf.sample
SUBST_SED.daemon= -e 's;daemon;${ENMA_USER};g'
FILES_SUBST+= ENMA_USER=${ENMA_USER:Q}
FILES_SUBST+= ENMA_GROUP=${ENMA_GROUP:Q}
OWN_DIRS_PERMS+= ${VARBASE}/run/enma ${ENMA_USER} ${ENMA_GROUP} 0700
INSTALLATION_DIRS+= share/examples/enma
post-install:
${INSTALL_DATA} ${WRKSRC}/enma/etc/enma.conf.sample \
${DESTDIR}${PREFIX}/share/examples/enma/enma.conf.sample
.include "../../mail/libmilter/buildlink3.mk"
BUILDLINK_API_DEPENDS.ldns+= ldns>=1.6.0
.include "../../net/ldns/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|