blob: 8677c782731d725a6276cb326f3db5db0601d405 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# $FreeBSD$
PORTNAME= mod_asn
PORTVERSION= 1.7
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
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>
|