mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
f935a609c5
supports them. This is determined by running ``configure --help'' in do-configure target and set the shell variable _LATE_CONFIGURE_ARGS which is then passed to CONFIGURE_ARGS. - Remove --mandir and --infodir in ports' Makefile where applicable Few ports use REINPLACE_CMD to achieve the same effect, remove them too. - Correct some manual pages location from PREFIX/man to MANPREFIX/man - Define INFO_PATH where necessary - Document that .info files are installed in a subdirectory relative to PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and subdirectory detection. PR: ports/111470 Approved by: portmgr Discussed with: stas (Mk/*), gerald (info related stuffs) Tested by: pointyhat exp run
76 lines
2.1 KiB
Makefile
76 lines
2.1 KiB
Makefile
# Ports collection makefile for: masqmail
|
|
# Date created: 4 Apr 2004
|
|
# Whom: Andrey Slusar <anray@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= masqmail
|
|
PORTVERSION= 0.2.21
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
|
|
|
|
MAINTAINER= anray@FreeBSD.org
|
|
COMMENT= Mail server for hosts, not permanently connected to the internet
|
|
|
|
MAN5= masqmail.aliases.5 masqmail.conf.5 masqmail.get.5 masqmail.route.5
|
|
MAN8= masqmail.8 mservdetect.8
|
|
|
|
GNU_CONFIGURE= yes
|
|
CFLAGS+= -Wno-trigraphs
|
|
CONFIGURE_ARGS+= --with-user=mailnull --with-group=mail \
|
|
--with-confdir=${PREFIX}/etc/masqmail --with-logdir=/var/log/masqmail
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
.if defined(WITH_LIBCRYPTO)
|
|
CONFIGURE_ARGS+= --with-libcrypto
|
|
.endif
|
|
.if defined(WITHOUT_POP3)
|
|
CONFIGURE_ARGS+= --disable-pop3
|
|
.endif
|
|
.if defined(WITHOUT_SMTP)
|
|
CONFIGURE_ARGS+= --disable-smtp-server
|
|
.endif
|
|
.if defined(WITHOUT_RESOLVER)
|
|
CONFIGURE_ARGS+= --disable-resolver
|
|
.endif
|
|
.if defined(WITH_MAILDIR)
|
|
CONFIGURE_ARGS+= --enable-maildir
|
|
.endif
|
|
.if defined(WITH_MSERVER)
|
|
CONFIGURE_ARGS+= --enable-mserver
|
|
.endif
|
|
.if defined(WITH_AUTH)
|
|
CONFIGURE_ARGS+= --enable-auth
|
|
.endif
|
|
.if defined(WITH_IDENT)
|
|
CONFIGURE_ARGS+= --enable-ident
|
|
.endif
|
|
|
|
USE_GNOME= glib20
|
|
USE_RC_SUBR= yes
|
|
|
|
post-build:
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
|
|
-e 's,%%RC_SUBR%%,${RC_SUBR},g' \
|
|
${FILESDIR}/masqmail.sh > ${WRKDIR}/masqmail.sh
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/masqmail.sh ${PREFIX}/etc/rc.d/masqmail.sh
|
|
${MKDIR} ${PREFIX}/etc/masqmail
|
|
${CHOWN} mailnull:mail ${PREFIX}/etc/masqmail
|
|
${INSTALL_DATA} -o mailnull -g mail ${WRKSRC}/examples/masqmail.conf ${PREFIX}/etc/masqmail/masqmail.conf-dist
|
|
${INSTALL_DATA} -o mailnull -g mail ${WRKSRC}/examples/example.get ${PREFIX}/etc/masqmail/masqmail.get-dist
|
|
${INSTALL_DATA} -o mailnull -g mail ${WRKSRC}/examples/example.route ${PREFIX}/etc/masqmail/masqmail.route-dist
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for i in AUTHORS COPYING INSTALL NEWS README TODO
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|