pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

attempt at having bird 1.6.3 available on netbsd..



Module Name:	pkgsrc-wip
Committed By:	Anders Mundt Due <amd%pd-house.dk@localhost>
Pushed By:	amd
Date:		Fri Dec 30 12:00:37 2016 +0100
Changeset:	1b90651f7a87cd502d59799c4439521c2e15f64a

Added Files:
	bird/DESCR
	bird/Makefile
	bird/Makefile.common
	bird/PLIST
	bird/distinfo
	bird/files/bird.sh
	bird/files/bird6.sh
	bird/patches/patch-configure
	bird/patches/patch-tools_Makefile.in
	bird6/Makefile

Log Message:
attempt at having bird 1.6.3 available on netbsd..

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1b90651f7a87cd502d59799c4439521c2e15f64a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 bird/DESCR                           | 14 ++++++++++++
 bird/Makefile                        |  3 +++
 bird/Makefile.common                 | 41 ++++++++++++++++++++++++++++++++++++
 bird/PLIST                           |  5 +++++
 bird/distinfo                        |  8 +++++++
 bird/files/bird.sh                   | 18 ++++++++++++++++
 bird/files/bird6.sh                  | 18 ++++++++++++++++
 bird/patches/patch-configure         | 20 ++++++++++++++++++
 bird/patches/patch-tools_Makefile.in | 27 ++++++++++++++++++++++++
 bird6/Makefile                       |  7 ++++++
 10 files changed, 161 insertions(+)

diffs:
diff --git a/bird/DESCR b/bird/DESCR
new file mode 100644
index 0000000..25c4157
--- /dev/null
+++ b/bird/DESCR
@@ -0,0 +1,14 @@
+The BIRD project aims to develop a fully functional dynamic IP routing daemon
+primarily targetted on (but not limited to) UNIX-like systems and distributed
+under the GNU General Public License.
+
++ The bird package is for IPv4, bird6 for IPv6
++ Multiple routing tables
++ BGP
++ RIP
++ OSPF
++ Static routes
++ Inter-table protocol
++ Command-line interface
++ Soft reconfiguration
++ Powerful language for route filtering
diff --git a/bird/Makefile b/bird/Makefile
new file mode 100644
index 0000000..6d9ab93
--- /dev/null
+++ b/bird/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.3 2015/08/18 07:31:14 wiz Exp $
+
+.include "../bird/Makefile.common"
diff --git a/bird/Makefile.common b/bird/Makefile.common
new file mode 100644
index 0000000..1313f93
--- /dev/null
+++ b/bird/Makefile.common
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile.common,v 1.7 2015/02/03 13:58:32 mef Exp $
+# used by net/bird/Makefile
+# used by net/bird6/Makefile
+
+DISTNAME=	bird-1.6.3
+PKGNAME=	${DISTNAME:S/bird/bird${BIRD6}/}
+CATEGORIES=	net
+MASTER_SITES=	ftp://bird.network.cz/pub/bird/
+
+MAINTAINER=	amd%pd-house.info@localhost
+HOMEPAGE=	http://bird.network.cz/
+COMMENT=	The BIRD Internet Routing Daemon
+LICENSE=	gnu-gpl-v2
+
+# Has hardcoded BSD/Linux support.
+NOT_FOR_PLATFORM=	SunOS-*-*
+
+USE_LIBTOOL=		yes
+GNU_CONFIGURE=		yes
+USE_TOOLS+=		gmake flex bison
+
+CONFIGURE_ARGS+=	--localstatedir=/var
+BIRD6?=			# empty
+PLIST_SUBST+=		BIRD6=${BIRD6}
+
+FILESDIR=               ${.CURDIR}/../bird/files
+PATCHDIR=               ${.CURDIR}/../bird/patches
+DISTINFO_FILE=		${.CURDIR}/../bird/distinfo
+PLIST_SRC=		${.CURDIR}/../bird/PLIST
+DESCR_SRC=		${.CURDIR}/../bird/DESCR
+
+RCD_SCRIPTS+=		bird${BIRD6}
+
+EGDIR=			${PREFIX}/share/examples/bird${BIRD6}
+ALL_ENV+=		EGDIR=${EGDIR}
+CONF_FILES=		${EGDIR}/bird${BIRD6}.conf ${PKG_SYSCONFDIR}/bird${BIRD6}.conf
+
+.include "../../devel/readline/buildlink3.mk"
+.include "../../devel/ncurses/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/bird/PLIST b/bird/PLIST
new file mode 100644
index 0000000..ffe9fad
--- /dev/null
+++ b/bird/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.3 2014/03/28 23:27:16 pettai Exp $
+sbin/bird${BIRD6}
+sbin/birdc${BIRD6}
+sbin/birdcl${BIRD6}
+share/examples/bird${BIRD6}/bird${BIRD6}.conf
diff --git a/bird/distinfo b/bird/distinfo
new file mode 100644
index 0000000..4c78066
--- /dev/null
+++ b/bird/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.9 2015/11/04 00:34:54 agc Exp $
+
+SHA1 (bird-1.6.3.tar.gz) = a6714488c4466778abeaba14ca9441066283676e
+RMD160 (bird-1.6.3.tar.gz) = 238e113ebbe1871413bce307cd5303f92bc21fe9
+SHA512 (bird-1.6.3.tar.gz) = d0f044cbbb3e5fe0624ad8ae58f5fa352ff41a9cd73f37d803431d9d148927bce52d8f2b82e31dd65c753c55b1034aaf8e15739a511e42cd2dd122b5cd1e15df
+Size (bird-1.6.3.tar.gz) = 1337198 bytes
+SHA1 (patch-configure) = b22044e5be530867a05406d4b32d789933993d53
+SHA1 (patch-tools_Makefile.in) = 4a6ad298abbe8c42627528c9156ce581a6e07917
diff --git a/bird/files/bird.sh b/bird/files/bird.sh
new file mode 100644
index 0000000..9b3c26e
--- /dev/null
+++ b/bird/files/bird.sh
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+#	$NetBSD: bird.sh,v 1.1.1.1 2012/01/22 02:53:01 agc Exp $
+#
+# PROVIDE: bird
+# REQUIRE: DAEMON NETWORKING
+
+if [ -f /etc/rc.subr ]
+then
+	. /etc/rc.subr
+fi
+
+name="bird"
+rcvar="${name}"
+command="@PREFIX@/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/bird/files/bird6.sh b/bird/files/bird6.sh
new file mode 100644
index 0000000..0a2fe38
--- /dev/null
+++ b/bird/files/bird6.sh
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+#	$NetBSD: bird6.sh,v 1.1.1.1 2012/01/22 02:53:01 agc Exp $
+#
+# PROVIDE: bird6
+# REQUIRE: DAEMON NETWORKING
+
+if [ -f /etc/rc.subr ]
+then
+	. /etc/rc.subr
+fi
+
+name="bird6"
+rcvar="${name}"
+command="@PREFIX@/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/bird/patches/patch-configure b/bird/patches/patch-configure
new file mode 100644
index 0000000..430dd0e
--- /dev/null
+++ b/bird/patches/patch-configure
@@ -0,0 +1,20 @@
+$NetBSD: patch-configure,v 1.4 2015/02/03 13:58:32 mef Exp $
+
+date: 2013-10-21 03:00:57 +0900;  author: joerg;  state: Exp;  lines: +12 -1;  commitid: 17vYRnrUrAvnK3ax;
+Prefix rpath options with -Wl.
+
+--- configure.orig	2013-07-28 18:57:59.000000000 +0000
++++ configure
+@@ -4442,12 +4442,8 @@ else
+ 				default_iproutedir="/etc/iproute2"
+ 				;;
+ 		ipv6:netbsd*)	sysdesc=bsd-v6
+-				CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
+-				LDFLAGS="$LDFLAGS -L/usr/pkg/lib -R/usr/pkg/lib"
+ 				;;
+ 		ipv4:netbsd*)	sysdesc=bsd
+-				CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
+-				LDFLAGS="$LDFLAGS -L/usr/pkg/lib -R/usr/pkg/lib"
+ 				;;
+ 		ipv6:freebsd*)	sysdesc=bsd-v6
+ 				;;
diff --git a/bird/patches/patch-tools_Makefile.in b/bird/patches/patch-tools_Makefile.in
new file mode 100644
index 0000000..f2b1573
--- /dev/null
+++ b/bird/patches/patch-tools_Makefile.in
@@ -0,0 +1,27 @@
+$NetBSD: patch-tools_Makefile.in,v 1.3 2015/02/03 13:58:32 mef Exp $
+
+install the example config files into the correct directory
+
+--- tools/Makefile.in.orig	2015-02-03 22:44:02.000000000 +0900
++++ tools/Makefile.in	2015-02-03 22:49:01.000000000 +0900
+@@ -68,17 +68,14 @@ tags:
+ 	cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) $(client-dirs) -name *.[chY]`
+ 
+ install: all
+-	$(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) $(DESTDIR)/@runtimedir@
++	$(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(EGDIR) $(DESTDIR)/@runtimedir@
+ 	$(INSTALL_PROGRAM) $(exedir)/bird $(DESTDIR)/$(sbindir)/bird@SUFFIX@
+ 	$(INSTALL_PROGRAM) $(exedir)/birdcl $(DESTDIR)/$(sbindir)/birdcl@SUFFIX@
+ 	if test -n "@CLIENT@" ; then								\
+ 		$(INSTALL_PROGRAM) $(exedir)/birdc $(DESTDIR)/$(sbindir)/birdc@SUFFIX@ ;	\
+ 	fi
+-	if ! test -f $(DESTDIR)/@CONFIG_FILE@ ; then						\
+-		$(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)/@CONFIG_FILE@ ;	\
+-	else											\
+-		echo "Not overwriting old bird@SUFFIX@.conf" ;					\
+-	fi
++
++	$(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)/$(EGDIR)/bird@SUFFIX@.conf
+ 
+ install-docs:
+ 	$(INSTALL) -d $(DESTDIR)/$(docdir)
diff --git a/bird6/Makefile b/bird6/Makefile
new file mode 100644
index 0000000..f331979
--- /dev/null
+++ b/bird6/Makefile
@@ -0,0 +1,7 @@
+# $NetBSD: Makefile,v 1.2 2015/08/17 17:11:27 wiz Exp $
+
+CONFIGURE_ARGS+=	--enable-ipv6
+BIRD6=			6
+
+#PKGREVISION= 1
+.include "../bird/Makefile.common"


Home | Main Index | Thread Index | Old Index