1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/www/mod_asn/Makefile

34 lines
918 B
Makefile

# $FreeBSD$
PORTNAME= mod_asn
PORTVERSION= 1.5
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://mirrorbrain.org/files/releases/
MASTER_SITE_SUBDIR= kuriyama
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Look up the AS and network prefix of IP address
LIB_DEPENDS= apr-1:${PORTSDIR}/devel/apr1
USE_APACHE= 22
AP_FAST_BUILD= yes
MANUAL_PACKAGE_BUILD= devel/apr1 with pgsql option required
NO_STAGE= yes
.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 ${PREFIX}/bin/asn_import
${INSTALL_SCRIPT} ${WRKSRC}/asn_get_routeviews.py ${PREFIX}/bin/asn_get_routeviews
${MKDIR} ${DATADIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/asn.sql ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/mod_asn.conf ${EXAMPLESDIR}
.include <bsd.port.post.mk>