741aa71483
Specifically, newer autoconf (> 2.13) has different semantic of the configure target. In short, one should use --build=CONFIGURE_TARGET instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning and the old semantic may be removed in later autoconf releases. To workaround this issue, many ports hack the CONFIGURE_TARGET variable so that it contains the ``--build='' prefix. To solve this issue, under the fact that some ports still have configure script generated by the old autoconf, we use runtime detection in the do-configure target so that the proper argument can be used. Changes to Mk/*: - Add runtime detection magic in bsd.port.mk - Remove CONFIGURE_TARGET hack in various bsd.*.mk - USE_GNOME=gnometarget is now an no-op Changes to individual ports, other than removing the CONFIGURE_TARGET hack: = pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables) - comms/gnuradio - science/abinit - science/elmer-fem - science/elmer-matc - science/elmer-meshgen2d - science/elmerfront - science/elmerpost = use x86_64 as ARCH - devel/g-wrap = other changes - print/magicfilter GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf Total # of ports modified: 1,027 Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes) PR: 126524 (obsoletes 52917) Submitted by: rafan Tested on: two pointyhat 7-amd64 exp runs (by pav) Approved by: portmgr (pav)
75 lines
2 KiB
Makefile
75 lines
2 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
|
|
PORTREVISION= 2
|
|
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
|
|
|
|
.if !defined (NO_INSTALL_MANPAGES)
|
|
MAN5= masqmail.aliases.5 masqmail.conf.5 masqmail.get.5 masqmail.route.5
|
|
MAN8= masqmail.8 mservdetect.8
|
|
.endif
|
|
|
|
GNU_CONFIGURE= yes
|
|
CFLAGS+= -Wno-trigraphs
|
|
CONFIGURE_ARGS+= --with-user=mailnull --with-group=mail \
|
|
--with-confdir=${PREFIX}/etc/masqmail --with-logdir=/var/log/masqmail
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
.if !defined (NOPORTDOCS)
|
|
PORTDOCS= AUTHORS COPYING INSTALL NEWS README TODO
|
|
.endif
|
|
|
|
.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= masqmail
|
|
|
|
post-install:
|
|
${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 ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|