blob: e19d738014d23ffd3fb601437499d36b21fa58ba (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.18 2000/01/17 05:06:15 itojun Exp $
# Based on KAME Id: Makefile,v 1.1.2.1.2.1.10.2 1999/01/05 11:03:50 itojun Exp
#
DISTNAME= zebra-0.84a
CATEGORIES= net
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
# you might need debugging, it's a developer release !
#CFLAGS+= -g
MAINTAINER= itojun@itojun.org
HOMEPAGE= http://www.zebra.org/
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra
USE_GTEXINFO= yes
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
.if defined(USE_INET6) && ${USE_INET6} == YES
PLIST_SRC= ${WRKSRC}/PLIST
.else
CONFIGURE_ARGS+=--disable-ospf6d --disable-ripngd
PLIST_SRC= ${PKGDIR}/PLIST
.endif
.if defined(USE_INET6) && ${USE_INET6} == YES
post-patch:
${CAT} ${PKGDIR}/PLIST.v6 ${PKGDIR}/PLIST > ${PLIST_SRC}
.endif
#post-build:
# cd ${WRKSRC}/doc ; \
# ${TOUCH} zebra.texi ; \
# makeinfo --no-split zebra.texi
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/bgpd.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/ospfd.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/ripd.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/zebra.1 ${PREFIX}/man/man1
.if defined(USE_INET6) && ${USE_INET6} == YES
${INSTALL_MAN} ${WRKSRC}/doc/ospf6d.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/ripngd.1 ${PREFIX}/man/man1
.endif
.include "../../mk/bsd.pkg.mk"
|