2004-04-14 13:23:23 -04:00
|
|
|
# New ports collection makefile for: irrd
|
|
|
|
# Date created: Fri Apr 9 14:12:06 JST 2004
|
2004-04-19 07:02:54 -04:00
|
|
|
# Whom: TAKANO Yuji <takano@net-chef.net>
|
2004-04-14 13:23:23 -04:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= irrd
|
|
|
|
PORTVERSION= 2.1.5
|
|
|
|
CATEGORIES= net ipv6
|
|
|
|
MASTER_SITES= http://www.irrd.net/
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2004-04-19 07:02:54 -04:00
|
|
|
MAINTAINER= takano@net-chef.net
|
2004-04-14 13:23:23 -04:00
|
|
|
COMMENT= Internet Routing Registry database server
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}/src
|
|
|
|
|
2004-06-13 06:21:31 -04:00
|
|
|
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
|
|
|
|
|
2004-04-14 13:23:23 -04:00
|
|
|
MAN8= irrd.8
|
|
|
|
|
|
|
|
IRRD_CONFDIR= ${PREFIX}/etc
|
2004-06-13 06:21:31 -04:00
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
2004-04-14 13:23:23 -04:00
|
|
|
|
2004-06-13 06:21:31 -04:00
|
|
|
USE_RC_SUBR= yes
|
2004-04-14 13:23:23 -04:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= YACC="${YACC}"
|
|
|
|
CONFIGURE_ARGS+= --disable-thread
|
|
|
|
|
|
|
|
.if defined(WITHOUT_IPV6)
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2004-06-13 06:21:31 -04:00
|
|
|
${REINPLACE_CMD} -e 's|/etc/irrd.conf|${IRRD_CONFDIR}/irrd.conf|g' \
|
2004-04-14 13:23:23 -04:00
|
|
|
${WRKSRC}/programs/IRRd/irrd.8 \
|
|
|
|
${WRKSRC}/programs/IRRd/main.c \
|
|
|
|
${WRKSRC}/programs/hdr_comm/read_conf.c \
|
|
|
|
${WRKSRC}/programs/irr_notify/main.c \
|
|
|
|
${WRKSRC}/programs/irr_rpsl_check/main.c \
|
|
|
|
${WRKSRC}/programs/irr_submit/main.c \
|
|
|
|
${WRKSRC}/programs/irrdcacher/irrdcacher \
|
|
|
|
${WRKSRC}/programs/rps_dist/rpsdist.c
|
|
|
|
|
2004-06-13 06:21:31 -04:00
|
|
|
post-build:
|
|
|
|
${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/irrd.sh > ${WRKDIR}/irrd.sh
|
|
|
|
|
2004-04-14 13:23:23 -04:00
|
|
|
post-install:
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/programs/irrdcacher/irrdcacher ${PREFIX}/sbin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/programs/irrdcacher/ripe2rpsl ${PREFIX}/sbin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/programs/irrdcacher/update_source ${PREFIX}/sbin
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../samples/irrd.conf.sample ${IRRD_CONFDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/programs/IRRd/irrd.8 ${PREFIX}/man/man8
|
2004-06-13 06:21:31 -04:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/irrd.sh ${PREFIX}/etc/rc.d
|
2004-04-14 13:23:23 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|