openbsd-ports/net/quagga/Makefile

63 lines
1.5 KiB
Makefile
Raw Normal View History

2004-01-02 01:50:55 -05:00
# $OpenBSD: Makefile,v 1.2 2004/01/02 06:50:55 david Exp $
COMMENT= "multi-threaded routing daemon"
DISTNAME= quagga-0.96.4
CATEGORIES= net
MASTER_SITES= http://www.quagga.net/download/
HOMEPAGE= http://www.quagga.net/
MAINTAINER= David Krause <david@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
STATEDIR?= /var/zebra
SUBST_VARS= CONFDIR STATEDIR
# you might need debugging, it's a developer release !
#CFLAGS+= -g
USE_GMAKE= Yes
CONFDIR= ${SYSCONFDIR}/zebra
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE=gnu old
CONFIGURE_ARGS+=--includedir=${PREFIX}/include/zebra
CONFIGURE_ARGS+=--sysconfdir=${CONFDIR}
CONFIGURE_ARGS+=--localstatedir=${STATEDIR}
CONFIGURE_ARGS+=--enable-user=_quagga
CONFIGURE_ARGS+=--enable-group=_quagga
CONFIGURE_ENV= LIBS=-lcurses
FLAVORS= snmp
FLAVOR?=
.if ${FLAVOR:L:Msnmp}
LIB_DEPENDS= snmp.42::net/ucd-snmp
CONFIGURE_ARGS+= --enable-snmp
.else
CONFIGURE_ARGS+= --disable-snmp
.endif
post-extract:
.for f in vtysh.1 bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8 quagga.info
@cd ${WRKSRC}/doc; sed \
-e s#/usr/local/etc#@sysconfdir@#g \
-e s#/usr/local/sbin#@prefix@/sbin#g \
${f} > ${f}.in && \
rm -f ${f}
.endfor
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zebra
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/zebra
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/zebra
2004-01-02 01:50:55 -05:00
${INSTALL_DATA} ${WRKSRC}/SERVICES ${PREFIX}/share/doc/zebra
${INSTALL_DATA} ${WRKINST}${SYSCONFDIR}/zebra/* ${PREFIX}/share/examples/zebra
.include <bsd.port.mk>