2005-05-17 14:46:42 +00:00
|
|
|
# New ports collection makefile for: openbgpd
|
|
|
|
# Date created: May 10 2005
|
|
|
|
# Whom: Florent Thoumie <flz@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= openbgpd
|
2005-07-13 05:29:48 +00:00
|
|
|
PORTVERSION= 3.7
|
2005-11-03 14:40:12 +00:00
|
|
|
PORTREVISION= 2
|
2005-05-17 14:46:42 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.openbsd.org/pub/OpenBSD/OpenBGPD/:openbsd \
|
|
|
|
${MASTER_SITE_LOCAL:S/$/:freebsd/g}
|
|
|
|
MASTER_SITE_SUBDIR= flz/openbgpd/:freebsd
|
2005-05-19 19:58:26 +00:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}.tgz:openbsd,freebsd \
|
2005-05-17 14:46:42 +00:00
|
|
|
if_media.h:freebsd pfkey_compat.c:freebsd
|
|
|
|
DIST_SUBDIR= openbgpd
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tgz
|
|
|
|
|
|
|
|
MAINTAINER= flz@FreeBSD.org
|
|
|
|
COMMENT= Free implementation of the Border Gateway Protocol, Version 4
|
|
|
|
|
2005-11-03 14:40:12 +00:00
|
|
|
CONFLICTS= zebra-0* quagga-0*
|
|
|
|
|
2005-05-17 14:46:42 +00:00
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
USE_RC_SUBR= openbgpd.sh
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
MAKE_ENV= BINDIR="${PREFIX}/sbin" \
|
|
|
|
MANDIR="${PREFIX}/man/man"
|
|
|
|
|
|
|
|
PLIST_FILES= sbin/bgpctl \
|
|
|
|
sbin/bgpd
|
|
|
|
|
|
|
|
MAN5= bgpd.conf.5
|
|
|
|
MAN8= bgpctl.8 \
|
|
|
|
bgpd.8
|
|
|
|
|
|
|
|
SUBDIRS= bgpd \
|
|
|
|
bgpctl
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-05-21 18:39:18 +00:00
|
|
|
.if ${OSVERSION} < 500037
|
|
|
|
IGNORE= Requires macros present in <sys/tree.h>
|
|
|
|
.endif
|
|
|
|
|
2005-05-17 14:46:42 +00:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/if_media.h ${WRKSRC}/bgpctl/
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/pfkey_compat.c ${WRKSRC}/bgpd/
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \
|
|
|
|
${WRKSRC}/bgpd/Makefile \
|
|
|
|
${WRKSRC}/bgpd/bgpd.8 \
|
|
|
|
${WRKSRC}/bgpd/bgpd.h \
|
|
|
|
${WRKSRC}/bgpd/bgpd.conf.5 \
|
2005-10-31 12:05:30 +00:00
|
|
|
${WRKSRC}/bgpctl/Makefile \
|
|
|
|
${WRKSRC}/bgpctl/bgpctl.8
|
2005-07-13 05:29:48 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|__dead ||" \
|
|
|
|
${WRKSRC}/bgpd/bgpd.c ${WRKSRC}/bgpctl/bgpctl.c
|
|
|
|
@${REINPLACE_CMD} -e "s|SIMPLEQ|STAILQ|" ${WRKSRC}/bgpd/*
|
2005-05-17 14:46:42 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
.for i in ${SUBDIRS}
|
|
|
|
cd ${WRKSRC}/$i; make
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for i in ${SUBDIRS}
|
|
|
|
cd ${WRKSRC}/$i; make install ${MAKE_ENV}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|