mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
dce5f5fb6e
- Use ETCDIR - Support STAGEDIR - While I'm here: - Fix STAGEDIR prefix in PREFIX/sbin/rmail - Convert to new options helper - Simplify Makefile - Sort PLIST PR: ports/189661 Submitted by: Muhammad Moinur Rahman <5u623l20@gmail.com> (maintainer)
46 lines
1.5 KiB
Makefile
46 lines
1.5 KiB
Makefile
# Created by: Andrey Slusar <anray@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= masqmail
|
|
PORTVERSION= 0.3.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://marmaro.de/prog/masqmail/files/
|
|
|
|
MAINTAINER= 5u623l20@gmail.com
|
|
COMMENT= Mail server for hosts, not permanently connected to the internet
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USE_GNOME= glib20
|
|
USES= pkgconfig
|
|
USE_RC_SUBR= masqmail
|
|
GNU_CONFIGURE= yes
|
|
CFLAGS+= -Wno-trigraphs
|
|
CONFIGURE_ARGS= --with-user=mailnull --with-group=mail \
|
|
--with-confdir=${ETCDIR} --with-logdir=/var/log/masqmail
|
|
|
|
OPTIONS_DEFINE= RESOLVER AUTH DEBUG DOCS
|
|
OPTIONS_DEFAULT= RESOLVER AUTH
|
|
RESOLVER_DESC= Resolver
|
|
AUTH_DESC= SMTP AUTH (RFC2554) support
|
|
|
|
AUTH_CONFIGURE_ENABLE= auth
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
|
RESOLVER_CONFIGURE_ENABLE= resolver
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/sed.*SENDMAIL/ s|$$(DESTDIR)||' ${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/masqmail.conf ${STAGEDIR}${ETCDIR}/masqmail.conf-dist
|
|
${INSTALL_DATA} ${WRKSRC}/examples/example.route ${STAGEDIR}${ETCDIR}/masqmail.route-dist
|
|
${INSTALL_DATA} ${WRKSRC}/examples/localnet.route ${STAGEDIR}${ETCDIR}/localnet.route-dist
|
|
${INSTALL_DATA} ${WRKSRC}/examples/openssl.route ${STAGEDIR}${ETCDIR}/openssl.route-dist
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/docs
|
|
cd ${WRKSRC} && ${CP} ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/docs/
|
|
|
|
.include <bsd.port.mk>
|