40843b1ccb
apache22 and apache25 had been removed a long time ago however the apache.mk file has never been refactored and is out of sync from the file Mk/bsd.default-versions.mk. These changes refactors the removals of the older versions. In addition: - Move some keywords like USE_APACHE, USE_APACHE_BUILD, USE_APACHE_RUN from SANITY_DEPRECATED to SANITY_UNSUPPORTED - Remove apache versions from ports Makefiles as currently there is only one available version in the tree. However the version checks are still valid and should work flawlessly whenever a new version is added. For example USES=apache:2.2+ are simply replaced with USES=apache. As currently there are no other versions available for test this could not be checked on it's own ground. - Update FOO_USE=APACHE=yes to FOO_USES=apache - Remove trailing whitespaces Approved by: portmgr Differential Revision: https://reviews.freebsd.org/D38113
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
PORTNAME= qpsmtpd
|
|
PORTVERSION= 0.93
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 3
|
|
CATEGORIES= mail perl5
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= noc-ports@biglist.com
|
|
COMMENT= Flexible SMTP daemon written in Perl and featuring a plugin API
|
|
WWW= https://smtpd.develooper.com/
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= spamd:mail/spamassassin \
|
|
p5-Mail-Tools>=0:mail/p5-Mail-Tools \
|
|
p5-Net-DNS>=0.39:dns/p5-Net-DNS \
|
|
p5-Net-IP>=0:net-mgmt/p5-Net-IP
|
|
|
|
OPTIONS_DEFINE= MODPERL DOCS EXAMPLES
|
|
OPTIONS_DEFAULT=MODPERL
|
|
MODPERL_DESC= Apache Support via mod_perl
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= smtpd
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMODPERL}
|
|
USES+= apache:run
|
|
RUN_DEPENDS+= ${APACHE_PKGNAMEPREFIX}mod_perl2>=0:www/mod_perl2
|
|
.endif
|
|
|
|
USES+= perl5
|
|
USE_PERL5= configure
|
|
NO_ARCH= yes
|
|
|
|
USE_RC_SUBR= qpsmtpd
|
|
|
|
SUB_LIST+= PERL=${PERL}
|
|
SUB_FILES+= pkg-message
|
|
|
|
pre-configure:
|
|
@${RM} ${WRKSRC}/plugins/milter
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins
|
|
(cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/plugins)
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README* ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/config.sample/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|