diff options
Diffstat (limited to 'net-misc/bird')
-rw-r--r-- | net-misc/bird/Manifest | 17 | ||||
-rw-r--r-- | net-misc/bird/bird-1.4.5.ebuild | 61 | ||||
-rw-r--r-- | net-misc/bird/bird-1.5.0.ebuild | 61 | ||||
-rw-r--r-- | net-misc/bird/bird-1.6.0.ebuild | 62 | ||||
-rw-r--r-- | net-misc/bird/bird-1.6.1.ebuild | 62 | ||||
-rw-r--r-- | net-misc/bird/bird-1.6.2.ebuild | 62 | ||||
-rw-r--r-- | net-misc/bird/bird-1.6.3.ebuild | 62 | ||||
-rw-r--r-- | net-misc/bird/files/initd-v4-bird-1.3.8 | 40 | ||||
-rw-r--r-- | net-misc/bird/files/initd-v6-bird-1.3.8 | 40 | ||||
-rw-r--r-- | net-misc/bird/metadata.xml | 8 |
10 files changed, 475 insertions, 0 deletions
diff --git a/net-misc/bird/Manifest b/net-misc/bird/Manifest new file mode 100644 index 000000000000..50bfa2c3b360 --- /dev/null +++ b/net-misc/bird/Manifest @@ -0,0 +1,17 @@ +AUX initd-v4-bird-1.3.8 801 SHA256 25d61357a6e47b7e1e82aa2f5343d4cf0bbe97d73a250f5f8a68179ecb457299 SHA512 e878792e589317b743c53fa9fd1f5a4e04c6c97a64946a3e47a910c35d32ad265dcd860935e91950cddb97e1f6ab43c02157a5349e4bd4529cdd1539ca7cf879 WHIRLPOOL 18a0c27e23513b5ee0c45caf1d4bcd294d4d2b8975061327b39768ed639b44b3c6ba475ebc3c8929456299771d4bc2ce8c29259a3a9e5cffa79a3d79aeaecd00 +AUX initd-v6-bird-1.3.8 802 SHA256 e4af0ec5b0a9d742279f6b4be839a592d84046ca0d630537508fd5066f854f87 SHA512 6adb2b7c22696e53644bb5331bcb1b6e84026e41086f6f538c40073a7daa3b0ce3a14e041c2615a72cbe151d6fa8f81b543f85d421f019440ef5b6fd0a556ad9 WHIRLPOOL f84a383aee3cd7d526284b9da2319e00a8f24dc473639784c3399ca8bc8ef8de67fec66cacffbb53c0b97303f40240c8acda8ae9987745c2911f15ef5a1ec97f +DIST bird-1.4.5.tar.gz 1284666 SHA256 ff485f0c64c5f762458e0f09e327e2f518a14b0247194c62ffa480d1eb3f9ffc SHA512 fba60e7daacfdf86e3fa9cb4dc627d33928b4b84dca98d3bfbd378265e422b7ecfe10c2d17369d295afe8a5f1f2e771209bbd54710485a19d64e6551f16d6b94 WHIRLPOOL 894401301e1756f2b2cf27d6829a911e51f81569a92b375ec0a504f1aa1563b37396eb929ccf1423e5387ca181ab2669a08a26040da52c4134128ebc5bc36ba4 +DIST bird-1.5.0.tar.gz 1300141 SHA256 79d5c4254e25f5890626830ca42aae03735716bdf152ddd8368473d2b3c17b5d SHA512 6814a1393d192083bc9807fd9c56e4bfe169aa34b70811f10da61c79d2fd4b18827bd4f3ea70d9ceba32125e54afb3f8df388416bff619c6f7e838a171f70ae8 WHIRLPOOL 2bd9429fef41dc4be09c9ece7ea6a109237c8d405ef16f5748516a3ec6ce3423ae05796e9ea875d08e476ea0da91ae617a9a90f574085decdab2bcdc40a7274d +DIST bird-1.6.0.tar.gz 1273899 SHA256 db3dfe37deac73b38b7d6966e577985f7b8e23f246760cb095ad13b0d8010e13 SHA512 3b73c5aa26ac725547d8ff67c35008b6793ef4dc9f22940bacc3871f60abb77e41d93bef0e493d5808eea455e17a04bbba837f16665d726a0a80e73270fed67a WHIRLPOOL 05abee4f45e687c9ff7e31fef3b9a8385081ead8d13b723cb0c79faf59964f9cec46f337eecc2207d0cf2c67c2ad9ea04c096a13465b81a89eba5effe7bba9d1 +DIST bird-1.6.1.tar.gz 1286450 SHA256 23ab3cbbf879f1b672e8c20f2e198d4e6342b2ca50893f9a70473d99a1f8ef25 SHA512 ac95aafdc0c94af32a9a78c7d9746bc085d6c4ba74e1acbf5ddf9c1f80a035ce6ece2adf66b1de54c9405e0887c79c6bbde3657c6c7cb727869b661fb7105196 WHIRLPOOL b7bba4586680c6dd990a244d73565d5209a668b6c6ec39459155ba3f2c5c38343c7bdf10a11c6000cca0b3663931e2d52bb5503c9d1329a62c4040dbdca3b037 +DIST bird-1.6.2.tar.gz 1300037 SHA256 8853f857045057e02c645232629754e9f5554eafa9d19fdef6097af72a3a98f6 SHA512 a45ef7fba6caec3ae3908a4cad83d5b5d75533f625bd9fd75d4c42aa1642e76ffd01b2d4f2fbaeffc298b525f426c726432a092d15c9d23e7ccf9ddfa6beeaa1 WHIRLPOOL 98dd7e227ec4d72b1efe6d9f5798ed9b9f1b30b601883095528bbaf875ca8f33e9549d3f8b5adb2163cf1a4a36c9d4f926c0790c806b61f1628d211aaec9c8ca +DIST bird-1.6.3.tar.gz 1337198 SHA256 39c51cf57c3ba8b5978b2a657ffa2f647ec7f3ae643e91cf42ee5cb070cf7e7c SHA512 d0f044cbbb3e5fe0624ad8ae58f5fa352ff41a9cd73f37d803431d9d148927bce52d8f2b82e31dd65c753c55b1034aaf8e15739a511e42cd2dd122b5cd1e15df WHIRLPOOL 08172f354df6955e1a4542faf51f3f1d7754a2d2f3c1dd2f19679f46c059874bc96d615a4f342cd6f7ccb60a4ef63bdb917a2af6a38538d210fa82435fbc964e +EBUILD bird-1.4.5.ebuild 1115 SHA256 3495e6dc7f10dd4fe3b2989179c4db127d9abe8f87420f9996a65cdd68268619 SHA512 8cadb81688945095b460e473dec075b6727752320e312603e9540c7d12f845c1ca5fb7c396050aa88de21b487190d0d72b1175722f06e00409d33844eff4f210 WHIRLPOOL a7325979184f246ac0103bf2e6affc57f9305849834adcd31d5fdd114136b3e1868356fae66916447dded1b5b1201dca09f8ff83108ed4315ea0575de3e1d8a2 +EBUILD bird-1.5.0.ebuild 1115 SHA256 cc10299fb130197fc5b84206bcc22757843e070ca60a692db83f741b839c03a8 SHA512 aa25e90d6aaa996b98767170412fe10d10ac9f75723651eb19a97db1d746cc634e061b193e8499bb0ac6adea9fbf261c9ee4098126b8ae1283e6c33d8ebbf8a1 WHIRLPOOL 2a77695f4f0dea02d083425792d5b107d012a230ab0f5010cdef317dad3da6cd9549c8b5a160f92c6272ba9df801508a87d89fc654c9a0f0c81f50765aeffd94 +EBUILD bird-1.6.0.ebuild 1128 SHA256 59c0e0398a4ab03f023dd51cf8e2356b2a97894ab2a37dd824e51e203c7b7868 SHA512 ff07b85bd0bcf0b9483099eccaaf2f1ccee42918d99416235330a5c43d6be7798a8981599020767569bf26c3ef52b82034ea5f0a2043c00d2c81b2849539babf WHIRLPOOL 9f27bab23500cbdfab0a1ea72a92b49108e90b0186b9f2c7111be4afdc188ee3addfa89eb660a34546490bf2cf62c658c32234eeb0f5bb9505ddaeb208ea197a +EBUILD bird-1.6.1.ebuild 1128 SHA256 59c0e0398a4ab03f023dd51cf8e2356b2a97894ab2a37dd824e51e203c7b7868 SHA512 ff07b85bd0bcf0b9483099eccaaf2f1ccee42918d99416235330a5c43d6be7798a8981599020767569bf26c3ef52b82034ea5f0a2043c00d2c81b2849539babf WHIRLPOOL 9f27bab23500cbdfab0a1ea72a92b49108e90b0186b9f2c7111be4afdc188ee3addfa89eb660a34546490bf2cf62c658c32234eeb0f5bb9505ddaeb208ea197a +EBUILD bird-1.6.2.ebuild 1128 SHA256 59c0e0398a4ab03f023dd51cf8e2356b2a97894ab2a37dd824e51e203c7b7868 SHA512 ff07b85bd0bcf0b9483099eccaaf2f1ccee42918d99416235330a5c43d6be7798a8981599020767569bf26c3ef52b82034ea5f0a2043c00d2c81b2849539babf WHIRLPOOL 9f27bab23500cbdfab0a1ea72a92b49108e90b0186b9f2c7111be4afdc188ee3addfa89eb660a34546490bf2cf62c658c32234eeb0f5bb9505ddaeb208ea197a +EBUILD bird-1.6.3.ebuild 1128 SHA256 59c0e0398a4ab03f023dd51cf8e2356b2a97894ab2a37dd824e51e203c7b7868 SHA512 ff07b85bd0bcf0b9483099eccaaf2f1ccee42918d99416235330a5c43d6be7798a8981599020767569bf26c3ef52b82034ea5f0a2043c00d2c81b2849539babf WHIRLPOOL 9f27bab23500cbdfab0a1ea72a92b49108e90b0186b9f2c7111be4afdc188ee3addfa89eb660a34546490bf2cf62c658c32234eeb0f5bb9505ddaeb208ea197a +MISC ChangeLog 4135 SHA256 b24adc62e6ae70e2eb35ff83588cf822610812cc08d1954dfd16c25d187e5077 SHA512 3eac369dcb546b9d62379c8b4fcd6526518b3ca1f890fd899c5309b10a183f11711391ca9406595d96bce27bcd00c9760134ed958d9f3a05818be2a8732c318e WHIRLPOOL a22faeb1f50807634a3a5f35cc7cf051eb8faa9c542bebcbbda9777bb621a2445044fbe917265fe0750e0eee7f7a5988eca95670fdec5e79d850c889d2751e59 +MISC ChangeLog-2015 9207 SHA256 6422d7676716580b23f4be188cdb922272b09bbb3fcd36d8cef941ca51d0837c SHA512 826847c41f522b45bb631addc400903fcd10b56f070058ee375bd10592c8e7158b9147806e672c5011311837108ae11f06f19a48fdafa44fb52e45a4b87f7da6 WHIRLPOOL 5c6f3c112506f4456d12137e48f2efba4ef7e1e7aa2ebe2ad0f1b3039df80e42909eab34b70bacca56f9010bc73b77c2320e1ea40976475d575dd9a908b15c29 +MISC metadata.xml 245 SHA256 c8964f140b486f6785a7576737b490c7014d31a7b19e5118f05cb736ab2d2601 SHA512 c3c7907e50537dd94fdcec1da306eee2f050e5a456d369cd3df8c9bf36c810d811fe547418a8025e533916eb52a742d9feafae647b2957820d99ed962dad302e WHIRLPOOL 6a28ad9ed8e4870f04f5857e38bf3f6025f495b76106daa9762335dcae27e14e2dac260e1899bc73d62e4570beb9de6471175a5d5f05677d46d2b0941a138cd3 diff --git a/net-misc/bird/bird-1.4.5.ebuild b/net-misc/bird/bird-1.4.5.ebuild new file mode 100644 index 000000000000..4804c17b02d8 --- /dev/null +++ b/net-misc/bird/bird-1.4.5.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 or IPv6" +HOMEPAGE="http://bird.network.cz" +SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug ipv6" + +RDEPEND="sys-libs/ncurses + sys-libs/readline" +DEPEND="sys-devel/flex + sys-devel/bison + sys-devel/m4" + +src_prepare() { + mkdir ipv6 + tar c --exclude ipv6 . | tar x -C ipv6 +} + +src_configure() { + econf \ + --enable-client \ + --disable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + + if use ipv6; then + cd ipv6 + econf \ + --enable-client \ + --enable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + fi +} + +src_compile() { + emake + if use ipv6; then + cd ipv6 + emake + fi +} + +src_install() { + if use ipv6; then + newbin ipv6/birdc birdc6 + newsbin ipv6/bird bird6 + newinitd "${FILESDIR}/initd-v6-${PN}-1.3.8" bird6 + fi + dobin birdc + dosbin bird + newinitd "${FILESDIR}/initd-v4-${PN}-1.3.8" bird + dodoc doc/bird.conf.example +} diff --git a/net-misc/bird/bird-1.5.0.ebuild b/net-misc/bird/bird-1.5.0.ebuild new file mode 100644 index 000000000000..2cad4e37a202 --- /dev/null +++ b/net-misc/bird/bird-1.5.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 or IPv6" +HOMEPAGE="http://bird.network.cz" +SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug ipv6" + +RDEPEND="sys-libs/ncurses + sys-libs/readline" +DEPEND="sys-devel/flex + sys-devel/bison + sys-devel/m4" + +src_prepare() { + mkdir ipv6 + tar c --exclude ipv6 . | tar x -C ipv6 +} + +src_configure() { + econf \ + --enable-client \ + --disable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + + if use ipv6; then + cd ipv6 + econf \ + --enable-client \ + --enable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + fi +} + +src_compile() { + emake + if use ipv6; then + cd ipv6 + emake + fi +} + +src_install() { + if use ipv6; then + newbin ipv6/birdc birdc6 + newsbin ipv6/bird bird6 + newinitd "${FILESDIR}/initd-v6-${PN}-1.3.8" bird6 + fi + dobin birdc + dosbin bird + newinitd "${FILESDIR}/initd-v4-${PN}-1.3.8" bird + dodoc doc/bird.conf.example +} diff --git a/net-misc/bird/bird-1.6.0.ebuild b/net-misc/bird/bird-1.6.0.ebuild new file mode 100644 index 000000000000..580dd5694106 --- /dev/null +++ b/net-misc/bird/bird-1.6.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 or IPv6" +HOMEPAGE="http://bird.network.cz" +SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug ipv6" + +RDEPEND="sys-libs/ncurses + sys-libs/readline" +DEPEND="sys-devel/flex + sys-devel/bison + sys-devel/m4" + +src_prepare() { + mkdir ipv6 + tar c --exclude ipv6 . | tar x -C ipv6 + eapply_user +} + +src_configure() { + econf \ + --enable-client \ + --disable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + + if use ipv6; then + cd ipv6 + econf \ + --enable-client \ + --enable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + fi +} + +src_compile() { + emake + if use ipv6; then + cd ipv6 + emake + fi +} + +src_install() { + if use ipv6; then + newbin ipv6/birdc birdc6 + newsbin ipv6/bird bird6 + newinitd "${FILESDIR}/initd-v6-${PN}-1.3.8" bird6 + fi + dobin birdc + dosbin bird + newinitd "${FILESDIR}/initd-v4-${PN}-1.3.8" bird + dodoc doc/bird.conf.example +} diff --git a/net-misc/bird/bird-1.6.1.ebuild b/net-misc/bird/bird-1.6.1.ebuild new file mode 100644 index 000000000000..580dd5694106 --- /dev/null +++ b/net-misc/bird/bird-1.6.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 or IPv6" +HOMEPAGE="http://bird.network.cz" +SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug ipv6" + +RDEPEND="sys-libs/ncurses + sys-libs/readline" +DEPEND="sys-devel/flex + sys-devel/bison + sys-devel/m4" + +src_prepare() { + mkdir ipv6 + tar c --exclude ipv6 . | tar x -C ipv6 + eapply_user +} + +src_configure() { + econf \ + --enable-client \ + --disable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + + if use ipv6; then + cd ipv6 + econf \ + --enable-client \ + --enable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + fi +} + +src_compile() { + emake + if use ipv6; then + cd ipv6 + emake + fi +} + +src_install() { + if use ipv6; then + newbin ipv6/birdc birdc6 + newsbin ipv6/bird bird6 + newinitd "${FILESDIR}/initd-v6-${PN}-1.3.8" bird6 + fi + dobin birdc + dosbin bird + newinitd "${FILESDIR}/initd-v4-${PN}-1.3.8" bird + dodoc doc/bird.conf.example +} diff --git a/net-misc/bird/bird-1.6.2.ebuild b/net-misc/bird/bird-1.6.2.ebuild new file mode 100644 index 000000000000..580dd5694106 --- /dev/null +++ b/net-misc/bird/bird-1.6.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 or IPv6" +HOMEPAGE="http://bird.network.cz" +SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug ipv6" + +RDEPEND="sys-libs/ncurses + sys-libs/readline" +DEPEND="sys-devel/flex + sys-devel/bison + sys-devel/m4" + +src_prepare() { + mkdir ipv6 + tar c --exclude ipv6 . | tar x -C ipv6 + eapply_user +} + +src_configure() { + econf \ + --enable-client \ + --disable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + + if use ipv6; then + cd ipv6 + econf \ + --enable-client \ + --enable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + fi +} + +src_compile() { + emake + if use ipv6; then + cd ipv6 + emake + fi +} + +src_install() { + if use ipv6; then + newbin ipv6/birdc birdc6 + newsbin ipv6/bird bird6 + newinitd "${FILESDIR}/initd-v6-${PN}-1.3.8" bird6 + fi + dobin birdc + dosbin bird + newinitd "${FILESDIR}/initd-v4-${PN}-1.3.8" bird + dodoc doc/bird.conf.example +} diff --git a/net-misc/bird/bird-1.6.3.ebuild b/net-misc/bird/bird-1.6.3.ebuild new file mode 100644 index 000000000000..580dd5694106 --- /dev/null +++ b/net-misc/bird/bird-1.6.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 or IPv6" +HOMEPAGE="http://bird.network.cz" +SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug ipv6" + +RDEPEND="sys-libs/ncurses + sys-libs/readline" +DEPEND="sys-devel/flex + sys-devel/bison + sys-devel/m4" + +src_prepare() { + mkdir ipv6 + tar c --exclude ipv6 . | tar x -C ipv6 + eapply_user +} + +src_configure() { + econf \ + --enable-client \ + --disable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + + if use ipv6; then + cd ipv6 + econf \ + --enable-client \ + --enable-ipv6 \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable debug) + fi +} + +src_compile() { + emake + if use ipv6; then + cd ipv6 + emake + fi +} + +src_install() { + if use ipv6; then + newbin ipv6/birdc birdc6 + newsbin ipv6/bird bird6 + newinitd "${FILESDIR}/initd-v6-${PN}-1.3.8" bird6 + fi + dobin birdc + dosbin bird + newinitd "${FILESDIR}/initd-v4-${PN}-1.3.8" bird + dodoc doc/bird.conf.example +} diff --git a/net-misc/bird/files/initd-v4-bird-1.3.8 b/net-misc/bird/files/initd-v4-bird-1.3.8 new file mode 100644 index 000000000000..c7c6a0b63af7 --- /dev/null +++ b/net-misc/bird/files/initd-v4-bird-1.3.8 @@ -0,0 +1,40 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +EXE=bird +SOCK="/var/run/${EXE}.ctl" + +depend() { + need net + use logger +} + +checkconfig() { + if [ ! -f "/etc/${EXE}.conf" ]; then + eerror "Please create /etc/${EXE}.conf" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + ebegin "Starting BIRD" + start-stop-daemon --start --exec /usr/sbin/${EXE} -- -c "/etc/${EXE}.conf" -s "${SOCK}" + eend $? "Failed to start BIRD" +} + +stop() { + ebegin "Stopping BIRD" + start-stop-daemon --stop --exec /usr/sbin/${EXE} + eend $? "Failed to stop BIRD" +} + +reload() { + ebegin "Reloading BIRD" + start-stop-daemon --stop --signal HUP --oknodo --exec /usr/sbin/${EXE} + eend $? "Failed to reload BIRD" +} diff --git a/net-misc/bird/files/initd-v6-bird-1.3.8 b/net-misc/bird/files/initd-v6-bird-1.3.8 new file mode 100644 index 000000000000..94ba4426e5dd --- /dev/null +++ b/net-misc/bird/files/initd-v6-bird-1.3.8 @@ -0,0 +1,40 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +EXE=bird6 +SOCK="/var/run/${EXE}.ctl" + +depend() { + need net + use logger +} + +checkconfig() { + if [ ! -f "/etc/${EXE}.conf" ]; then + eerror "Please create /etc/${EXE}.conf" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + ebegin "Starting BIRD" + start-stop-daemon --start --exec /usr/sbin/${EXE} -- -c "/etc/${EXE}.conf" -s "${SOCK}" + eend $? "Failed to start BIRD" +} + +stop() { + ebegin "Stopping BIRD" + start-stop-daemon --stop --exec /usr/sbin/${EXE} + eend $? "Failed to stop BIRD" +} + +reload() { + ebegin "Reloading BIRD" + start-stop-daemon --stop --signal HUP --oknodo --exec /usr/sbin/${EXE} + eend $? "Failed to reload BIRD" +} diff --git a/net-misc/bird/metadata.xml b/net-misc/bird/metadata.xml new file mode 100644 index 000000000000..1a06e96ebdc7 --- /dev/null +++ b/net-misc/bird/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> + </maintainer> +</pkgmetadata> |