Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2014 00:04:05 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350749 - in head/net/zebra: . files
Message-ID:  <201404100004.s3A045UR012336@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Thu Apr 10 00:04:04 2014
New Revision: 350749
URL: http://svnweb.freebsd.org/changeset/ports/350749
QAT: https://qat.redports.org/buildarchive/r350749/

Log:
  - Take maintainership
  - Stage
  - Convert to OPTION Helpers
  - Fix warning in 'make patch'

Modified:
  head/net/zebra/Makefile
  head/net/zebra/files/patch-ospfd_ospf_lsa.c
  head/net/zebra/pkg-plist

Modified: head/net/zebra/Makefile
==============================================================================
--- head/net/zebra/Makefile	Thu Apr 10 00:03:48 2014	(r350748)
+++ head/net/zebra/Makefile	Thu Apr 10 00:04:04 2014	(r350749)
@@ -9,7 +9,7 @@ MASTER_SITES=	ftp://ftp.pop-pr.rnp.br/pu
 		ftp://ftp.ripe.net/mirrors/sites/ftp.zebra.org/pub/zebra/ \
 		http://ftp.sunet.se/pub/network/zebra/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bdrewery@FreeBSD.org
 COMMENT=	Free RIPv1, RIPv2, OSPFv2, BGP4 route software (server/reflector)
 
 LICENSE=	GPLv2 LGPL21
@@ -28,7 +28,7 @@ USE_SUBMAKE=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/etc/zebra
 
-SCRIPTS_ENV=	WRKDIRPREFIX=${WRKDIRPREFIX}
+SCRIPTS_ENV=	WRKDIRPREFIX="${WRKDIRPREFIX}"
 
 OPTIONS_DEFINE=	IPV6 PAM OSPFNSSA SNMP TCPZEBRA BGPD OSPF6D OSPFD RIPD RIPNGD VTYSH
 
@@ -43,10 +43,22 @@ RIPNGD_DESC=	RIPNGD support
 VTYSH_DESC=	VTYSH support
 
 OPTIONS_DEFAULT=	IPV6 BGPD OSPF6D OSPFD RIPD RIPNGD VTYSH
+OPTIONS_SUB=	yes
 NO_OPTIONS_SORT=	yes
 
-MAN1=		vtysh.1
-MAN8=		bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8
+PAM_CONFIGURE_WITH=		pam
+OSPFNSSA_CONFIGURE_ENABLE=	nssa
+SNMP_CONFIGURE_ENABLE=		snmp
+SNMP_LIB_DEPENDS+=		libsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
+TCPZEBRA_CONFIGURE_ENABLE=	tcp-zebra
+BGPD_CONFIGURE_ENABLE=		bgpd
+OSPF6D_CONFIGURE_ENABLE=	ospf6d
+OSPFD_CONFIGURE_ENABLE=		ospfd
+RIPD_CONFIGURE_ENABLE=		ripd
+RIPNGD_CONFIGURE_ENABLE=	ripngd
+VTYSH_CONFIGURE_ENABLE=		vtysh
+IPV6_CONFIGURE_ENABLE=		ipv6
+
 INFO=		zebra
 
 BGPDARGS?=	-d
@@ -56,80 +68,20 @@ RIPDARGS?=	-d
 RIPNGDARGS?=	-d
 ZEBRAARGS?=	-d
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
-.if empty(PORT_OPTIONS:MIPV6)
-CONFIGURE_ARGS+=--disable-ipv6
-WITHOUT_OSPF6D=	yes
-WITHOUT_RIPNGD=	yes
-.endif
-
-.if ${PORT_OPTIONS:MPAM}
-CONFIGURE_ARGS+=--with-libpam
-.endif
-
-.if ${PORT_OPTIONS:MOSPFNSSA}
-CONFIGURE_ARGS+=--enable-nssa
-.endif
-
-.if ${PORT_OPTIONS:MSNMP}
-CONFIGURE_ARGS+=--enable-snmp
-LIB_DEPENDS+=	snmp:${PORTSDIR}/net-mgmt/net-snmp
-.endif
-
-.if ${PORT_OPTIONS:MTCPZEBRA}
-CONFIGURE_ARGS+=--enable-tcp-zebra
-.endif
-
-.if ${PORT_OPTIONS:MBGPD}
-PLIST_SUB+=	BGPD=""
-.else
-CONFIGURE_ARGS+=--disable-bgpd
-PLIST_SUB+=	BGPD="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MOSPF6D}
-PLIST_SUB+=	OSPF6D=""
-.else
-CONFIGURE_ARGS+=--disable-ospf6d
-PLIST_SUB+=	OSPF6D="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MOSPFD}
-PLIST_SUB+=	OSPF6D=""
-PLIST_SUB+=	OSPFD=""
-.else
-CONFIGURE_ARGS+=--disable-ospfd
-PLIST_SUB+=	OSPFD="@comment "
+.if !${PORT_OPTIONS:MIPV6} && ${PORT_OPTIONS:MOSPF6D}
+IGNORE=		OSPF6D requires IPV6 option.
 .endif
-
-.if ${PORT_OPTIONS:MRIPD}
-PLIST_SUB+=	RIPD=""
-.else
-CONFIGURE_ARGS+=--disable-ripd
-PLIST_SUB+=	RIPD="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MRIPNGD}
-PLIST_SUB+=	RIPNGD=""
-.else
-CONFIGURE_ARGS+=--disable-ripngd
-PLIST_SUB+=	RIPNGD="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MVTYSH}
-PLIST_SUB+=	VTYSH=""
-CONFIGURE_ARGS+=--enable-vtysh
-.else
-PLIST_SUB+=	VTYSH="@comment "
+.if !${PORT_OPTIONS:MIPV6} && ${PORT_OPTIONS:MRIPNGD}
+IGNORE=		RIPNGD requires IPV6 option.
 .endif
 
 post-install:
-	@( cd ${WRKSRC}/doc; ${RM} -f zebra*info*; ${MAKE} zebra.info install )
+	@( cd ${WRKSRC}/doc; ${RM} -f zebra*info*; \
+	   ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} zebra.info install )
 	@${ECHO_MSG} "===>     installing zebra startup file..."
-	${INSTALL_SCRIPT} ${WRKDIR}/zebractl ${PREFIX}/sbin/zebractl
+	${INSTALL_SCRIPT} ${WRKDIR}/zebractl ${STAGEDIR}${PREFIX}/sbin/zebractl
 	@${ECHO_MSG} "done."
-	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>

Modified: head/net/zebra/files/patch-ospfd_ospf_lsa.c
==============================================================================
--- head/net/zebra/files/patch-ospfd_ospf_lsa.c	Thu Apr 10 00:03:48 2014	(r350748)
+++ head/net/zebra/files/patch-ospfd_ospf_lsa.c	Thu Apr 10 00:04:04 2014	(r350749)
@@ -1,6 +1,6 @@
---- ospfd/ospf_lsa.c.orig	Mon Feb 28 03:09:10 2005
-+++ ospfd/ospf_lsa.c	Thu May 19 17:59:09 2005
-@@ -3324,6 +3324,7 @@
+--- ./ospfd/ospf_lsa.c.orig	2005-05-26 11:40:19.000000000 -0500
++++ ./ospfd/ospf_lsa.c	2014-04-09 15:16:46.751621976 -0500
+@@ -3247,6 +3247,7 @@
    listnode node;
    struct ospf *ospf = THREAD_ARG (t);
    int i;
@@ -8,7 +8,7 @@
    list lsa_to_refresh = list_new ();
  
    if (IS_DEBUG_OSPF (lsa, LSA_REFRESH))
-@@ -3331,15 +3332,25 @@
+@@ -3254,16 +3255,26 @@
  
    
    i = ospf->lsa_refresh_queue.index;
@@ -27,11 +27,12 @@
    if (IS_DEBUG_OSPF (lsa, LSA_REFRESH))
      zlog_info ("LSA[Refresh]: ospf_lsa_refresh_walker(): next index %d",
  	       ospf->lsa_refresh_queue.index);
-+
+ 
 +  if (ospf->lsa_refresh_queue.index >= OSPF_LSA_REFRESHER_SLOTS) {
 +    zlog_info ("LSA[Refresh]: ospf_lsa_refresh_walker(): HACK: fixing index: %hu -> 0", ospf->lsa_refresh_queue.index);
 +    ospf->lsa_refresh_queue.index = 0;
 +  }
- 
++
    for (;i != ospf->lsa_refresh_queue.index;
         i = (i + 1) % OSPF_LSA_REFRESHER_SLOTS)
+     {

Modified: head/net/zebra/pkg-plist
==============================================================================
--- head/net/zebra/pkg-plist	Thu Apr 10 00:03:48 2014	(r350748)
+++ head/net/zebra/pkg-plist	Thu Apr 10 00:04:04 2014	(r350749)
@@ -14,4 +14,11 @@ sbin/zebractl
 %%RIPNGD%%etc/zebra/ripngd.conf.sample
 %%VTYSH%%etc/zebra/vtysh.conf.sample
 etc/zebra/zebra.conf.sample
+man/man1/vtysh.1.gz
+man/man8/bgpd.8.gz
+man/man8/ospf6d.8.gz
+man/man8/ospfd.8.gz
+man/man8/ripd.8.gz
+man/man8/ripngd.8.gz
+man/man8/zebra.8.gz
 @dirrm etc/zebra



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404100004.s3A045UR012336>