summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/bird/DESCR3
-rw-r--r--net/bird/Makefile3
-rw-r--r--net/bird/Makefile.common41
-rw-r--r--net/bird/PLIST5
-rw-r--r--net/bird/distinfo6
-rw-r--r--net/bird/files/bird.sh18
-rw-r--r--net/bird/files/bird6.sh18
-rw-r--r--net/bird/patches/patch-tools_Makefile.in26
8 files changed, 120 insertions, 0 deletions
diff --git a/net/bird/DESCR b/net/bird/DESCR
new file mode 100644
index 00000000000..e1ea737e38a
--- /dev/null
+++ b/net/bird/DESCR
@@ -0,0 +1,3 @@
+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.
diff --git a/net/bird/Makefile b/net/bird/Makefile
new file mode 100644
index 00000000000..29976df7be1
--- /dev/null
+++ b/net/bird/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/01/22 02:53:01 agc Exp $
+
+.include "../../net/bird/Makefile.common"
diff --git a/net/bird/Makefile.common b/net/bird/Makefile.common
new file mode 100644
index 00000000000..f08bfdde288
--- /dev/null
+++ b/net/bird/Makefile.common
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2012/01/22 02:53:01 agc Exp $
+# used by net/bird/Makefile
+# used by net/bird6/Makefile
+
+DISTNAME= bird-1.3.6
+PKGNAME= ${DISTNAME:S/bird/bird${BIRD6}/}
+CATEGORIES= net
+MASTER_SITES= ftp://bird.network.cz/pub/bird/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://bird.network.cz/
+COMMENT= The BIRD Internet Routing Daemon
+LICENSE= gnu-gpl-v2
+
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake flex bison
+USE_GNU_READLINE= yes
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+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/net/bird/PLIST b/net/bird/PLIST
new file mode 100644
index 00000000000..a6a4ac01229
--- /dev/null
+++ b/net/bird/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/01/22 02:53:01 agc Exp $
+sbin/bird${BIRD6}
+sbin/birdc${BIRD6}
+share/examples/bird${BIRD6}/bird${BIRD6}.conf
+share/examples/rc.d/bird${BIRD6}
diff --git a/net/bird/distinfo b/net/bird/distinfo
new file mode 100644
index 00000000000..6d218aba2c4
--- /dev/null
+++ b/net/bird/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/01/22 02:53:01 agc Exp $
+
+SHA1 (bird-1.3.6.tar.gz) = 8fdc7afb99b5896e3dec85b8b3ba194c8287bf32
+RMD160 (bird-1.3.6.tar.gz) = d4670d79509fc3975ff86d0b67d60bb507bbbcc6
+Size (bird-1.3.6.tar.gz) = 864775 bytes
+SHA1 (patch-tools_Makefile.in) = b6faf3bc1c866bfc311d74235a92cf3b1f34636f
diff --git a/net/bird/files/bird.sh b/net/bird/files/bird.sh
new file mode 100644
index 00000000000..9b3c26e3d38
--- /dev/null
+++ b/net/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/net/bird/files/bird6.sh b/net/bird/files/bird6.sh
new file mode 100644
index 00000000000..0a2fe381839
--- /dev/null
+++ b/net/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/net/bird/patches/patch-tools_Makefile.in b/net/bird/patches/patch-tools_Makefile.in
new file mode 100644
index 00000000000..a8ddc55d09c
--- /dev/null
+++ b/net/bird/patches/patch-tools_Makefile.in
@@ -0,0 +1,26 @@
+$NetBSD: patch-tools_Makefile.in,v 1.1.1.1 2012/01/22 02:53:01 agc Exp $
+
+install the example config files into the correct directory
+
+--- tools/Makefile.in.orig 2011-03-31 08:29:42.000000000 +0000
++++ tools/Makefile.in
+@@ -55,16 +55,13 @@ 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)/$(localstatedir)/run
++ $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(EGDIR) $(DESTDIR)/$(localstatedir)/run
+ $(INSTALL_PROGRAM) -s $(exedir)/bird $(DESTDIR)/$(sbindir)/bird@SUFFIX6@
+ if test -n "@CLIENT@" ; then \
+ $(INSTALL_PROGRAM) -s $(exedir)/birdc $(DESTDIR)/$(sbindir)/birdc@SUFFIX6@ ; \
+ fi
+- if ! test -f $(DESTDIR)/$(sysconfdir)/bird@SUFFIX6@.conf ; then \
+- $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)/$(sysconfdir)/bird@SUFFIX6@.conf ; \
+- else \
+- echo "Not overwriting old bird@SUFFIX@.conf" ; \
+- fi
++
++ $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)/$(EGDIR)/bird@SUFFIX6@.conf
+
+ install-docs:
+ $(INSTALL) -d $(DESTDIR)/$(docdir)