use SYSCONFDIR/BASESYSCONFDIR to avoid "CONFIGURE_STYLE=gnu old" hack

This commit is contained in:
sthen 2012-01-17 17:22:56 +00:00
parent 5c54bb26a9
commit c598d08ea3
3 changed files with 9 additions and 12 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.23 2011/11/16 00:20:09 sthen Exp $
# $OpenBSD: Makefile,v 1.24 2012/01/17 17:22:56 sthen Exp $
COMMENT= multi-threaded routing daemon
DISTNAME= quagga-0.99.19
REVISION= 1
REVISION= 2
SHARED_LIBS= ospf 0.0 \
ospfapiclient 0.0 \
zebra 0.0
@ -21,23 +21,20 @@ PERMIT_DISTFILES_FTP= Yes
WANTLIB= c curses m readline termcap
STATEDIR?= /var/quagga
SUBST_VARS= CONFDIR STATEDIR
SUBST_VARS= STATEDIR
BUILD_DEPENDS= lang/gawk
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFDIR= ${SYSCONFDIR}/quagga
SYSCONFDIR= ${BASESYSCONFDIR}/quagga
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu old
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --includedir=${LOCALBASE}/include/quagga \
--sysconfdir=${CONFDIR} \
--localstatedir=${STATEDIR} \
--enable-user=_quagga \
--enable-group=_quagga \
--enable-vty-group=_quagga \
--enable-vtysh \
--mandir=${LOCALBASE}/man \
--infodir=${LOCALBASE}/info
--enable-vtysh
.if ${MACHINE_ARCH:Mhppa} || ${MACHINE_ARCH:Marm}
CONFIGURE_ARGS+= --disable-pie
.endif

View File

@ -1,3 +1,3 @@
Sample Quagga configuration files have been installed in
${PREFIX}/share/examples/quagga. You will need to install your
configuration files in the ${CONFDIR} directory.
configuration files in the ${SYSCONFDIR} directory.

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.12 2011/09/27 09:45:53 sthen Exp $
@comment $OpenBSD: PLIST,v 1.13 2012/01/17 17:22:56 sthen Exp $
@conflict zebra-*
@newgroup _quagga:525
@newuser _quagga:525:_quagga:daemon:Quagga Account:/nonexistent:/sbin/nologin
@ -94,5 +94,5 @@ share/examples/quagga/vtysh.conf.sample
share/examples/quagga/zebra.conf.sample
@owner _quagga
@group _quagga
@sample ${SYSCONFDIR}/quagga/
@sample ${SYSCONFDIR}/
@sample ${STATEDIR}/