blob: be3184e830647cb03da6cc51685c24e7421736ac (
plain) (
blame)
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
|
# Created by: clive
# $FreeBSD$
PORTNAME= nullmailer
PORTVERSION= 1.13
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= http://untroubled.org/nullmailer/ \
http://untroubled.org/nullmailer/archive/
MAINTAINER= uffe@uffe.org
COMMENT= MTA for hosts which relay to a fixed set of smart relays
LICENSE= GPLv2
LOCALSTATEDIR= /var/spool
.if defined(MAINTAINER_MODE)
UID_FILES+= ../../UIDs
GID_FILES+= ../../GIDs
.endif
USERS= nullmail
GROUPS= nullmail
NULLMAIL_UID= 522
NULLMAIL_GID= 522
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--localstatedir=${LOCALSTATEDIR}
USE_SUBMAKE= yes
USE_RC_SUBR= ${PORTNAME}
SUB_FILES+= pkg-install pkg-deinstall pkg-message
PKGINSTALL= ${WRKDIR}/pkg-install
PKGMESSAGE= ${WRKDIR}/pkg-message
PLIST_SUB+= LOCALSTATEDIR=${LOCALSTATEDIR} NULLMAIL_USER=${USERS}
SUB_LIST+= LOCALSTATEDIR=${LOCALSTATEDIR} NULLMAIL_USER=${USERS}
OPTIONS_DEFINE= GNUTLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+= libgnutls.so:security/gnutls
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lgnutls
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+=--enable-tls
.else
CONFIGURE_ARGS+=--disable-tls
.endif
post-install:
${INSTALL_DATA} -c ${FILESDIR}/remotes.sample ${STAGEDIR}${ETCDIR}
${ECHO} 'hostname' > ${STAGEDIR}${ETCDIR}/me.sample
.include <bsd.port.mk>
|