mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
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
31 lines
940 B
Makefile
31 lines
940 B
Makefile
PORTNAME= mod_asn
|
|
PORTVERSION= 1.7
|
|
PORTREVISION= 2
|
|
CATEGORIES= www
|
|
MASTER_SITES= LOCAL/kuriyama \
|
|
http://mirrorbrain.org/files/releases/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Look up the AS and network prefix of IP address
|
|
WWW= https://mirrorbrain.org/mod_asn/
|
|
|
|
LICENSE= APACHE20
|
|
|
|
LIB_DEPENDS= libapr-1.so:devel/apr1
|
|
|
|
USES= apache
|
|
AP_FAST_BUILD= yes
|
|
MANUAL_PACKAGE_BUILD= devel/apr1 with pgsql option required
|
|
|
|
pre-build:
|
|
@[ -r ${LOCALBASE}/lib/apr-util-1/apr_dbd_pgsql.so ] || (${ECHO_MSG} "APR util with PostgreSQL required."; ${FALSE})
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/asn_import.py ${STAGEDIR}${PREFIX}/bin/asn_import
|
|
${INSTALL_SCRIPT} ${WRKSRC}/asn_get_routeviews.py ${STAGEDIR}${PREFIX}/bin/asn_get_routeviews
|
|
${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/asn.sql ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/mod_asn.conf ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|