- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
33 lines
960 B
Makefile
33 lines
960 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= mod_asn
|
|
PORTVERSION= 1.5
|
|
PORTREVISION= 2
|
|
CATEGORIES= www
|
|
MASTER_SITES= LOCAL/kuriyama \
|
|
http://mirrorbrain.org/files/releases/
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
COMMENT= Look up the AS and network prefix of IP address
|
|
|
|
LICENSE= APACHE20
|
|
|
|
LIB_DEPENDS= libapr-1.so:${PORTSDIR}/devel/apr1
|
|
|
|
USE_APACHE= 22
|
|
AP_FAST_BUILD= yes
|
|
MANUAL_PACKAGE_BUILD= devel/apr1 with pgsql option required
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-build:
|
|
@[ -r ${PREFIX}/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.post.mk>
|