- Fix LICENSE
- Add LICENSE_FILE - Simplify Makefile - Switch to options helpers
This commit is contained in:
parent
0f5565f5fb
commit
75b95e59bd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=517087
1 changed files with 10 additions and 23 deletions
|
@ -12,44 +12,31 @@ MASTER_SITES= http://untroubled.org/nullmailer/ \
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= MTA for hosts which relay to a fixed set of smart relays
|
||||
|
||||
LICENSE= GPLv2
|
||||
LICENSE= GPLv2+
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
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}
|
||||
CONFIGURE_ARGS= --localstatedir=${LOCALSTATEDIR}
|
||||
|
||||
USE_CXXSTD= gnu++98
|
||||
USE_SUBMAKE= yes
|
||||
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
SUB_FILES+= pkg-install pkg-deinstall pkg-message
|
||||
SUB_FILES= pkg-install pkg-deinstall pkg-message
|
||||
|
||||
PLIST_SUB+= LOCALSTATEDIR=${LOCALSTATEDIR} NULLMAIL_USER=${USERS}
|
||||
SUB_LIST+= LOCALSTATEDIR=${LOCALSTATEDIR} NULLMAIL_USER=${USERS}
|
||||
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
|
||||
GNUTLS_CONFIGURE_ENABLE=tls
|
||||
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
|
||||
GNUTLS_USES= localbase:ldflags
|
||||
GNUTLS_LDFLAGS= -lgnutls
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} -c ${FILESDIR}/remotes.sample ${STAGEDIR}${ETCDIR}
|
||||
|
|
Loading…
Reference in a new issue