summaryrefslogtreecommitdiff
path: root/net-misc/gvrpcd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/gvrpcd
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/gvrpcd')
-rw-r--r--net-misc/gvrpcd/Manifest8
-rw-r--r--net-misc/gvrpcd/files/conf.gvrpcd6
-rw-r--r--net-misc/gvrpcd/files/gvrpcd-respect-ldflags.patch17
-rw-r--r--net-misc/gvrpcd/files/init.gvrpcd50
-rw-r--r--net-misc/gvrpcd/gvrpcd-1.3.ebuild35
-rw-r--r--net-misc/gvrpcd/metadata.xml16
6 files changed, 132 insertions, 0 deletions
diff --git a/net-misc/gvrpcd/Manifest b/net-misc/gvrpcd/Manifest
new file mode 100644
index 000000000000..b29f8d9c0dde
--- /dev/null
+++ b/net-misc/gvrpcd/Manifest
@@ -0,0 +1,8 @@
+AUX conf.gvrpcd 132 SHA256 56693e8d6c4d97dfcef3d56cef5b60c5ea5010da5335a8b8af431d90ee4c729f SHA512 1b8e5eaef65c4140eb681d8047e2c38c67b6c3895d89b6d809554785f7542764126e43a38a90177805b1c181e168d8896656bc35fbec036e1b30ac1ba51837d0 WHIRLPOOL a85e196e0fe7b0898e9f3b81c7d934e0fbb835bd4d0ec31ef2bd50e3cbd105e3c2ab1b1cc76f58c5662965b05b830fab8a16549bd949a23839b1ed989c922b57
+AUX gvrpcd-respect-ldflags.patch 465 SHA256 b01266572c2c81c1b6c376dec89f32f89853a72d619b293278035e377a28d3df SHA512 c0d0230ed35ca4fb421e4b65333bdef6cb4e5dde954d95b1f56d9bea0b33f6353969294bb30e4c231580d946c65632c49f06eda98fa41064fef6ff12349f2507 WHIRLPOOL 6d676f3e80f2b9f2e556239c93a97e3154141188f150cbc0c5da220e243fb0894c2f04fbf169d156b79e187bcb64043573274fd34aa261578dd47d6cad6012db
+AUX init.gvrpcd 1055 SHA256 427223e41fd8361274f4bc06ab23e0b3cfbbeb7e46719ef2100cad6632ae8b1f SHA512 57fcd87fa6e209907352bd85984120ce2cdcd73cf008f41dab34d0b739d014229d10976416d0c6d4b154b81e36c6ac2e9cc961b79cf3e507a4b9d70d039ecaa7 WHIRLPOOL 98e8778e7593a0c2758b2af706d4e4c501ebefc12cc0228aad4f365942b6cf11c57c37e747607e47a4fbe92648653f2b4bbd0cd3cb988a5827dd002a2e83b3de
+DIST gvrpcd-1.3.tar.gz 12066 SHA256 9069e3f97478498b849122c8306fdb76879bb7010fb2a393f815a8e74d3a1209 SHA512 53f2ad4c9ce5ee2bbf72c691ca0ea1d3d2e22dba98c18cdcbecc09c9082427f8ebc83277b4ffc40fd693652c932a4c093512f99157e82d5a3b97bb6f3d8ff444 WHIRLPOOL 4908bbff6aba30ed406483b541702dff03c3387f8415567fd40cb3520ae58608546a826eb688a558866320e8b19a572d9033ae879e52953737bfcc0d659950f4
+EBUILD gvrpcd-1.3.ebuild 737 SHA256 f14c4ef328a60efed8c819b2f143b53f333fdc8d183541acb5c46510bea88ad4 SHA512 ee9de9b7741ec07bedcabe3d800f33de9feadefcc208087020f4baa670805c2927c738e0b08dad0824c4f7afd5ea8768d8f0cbd64f0c0d51e9d201e3cfec02a6 WHIRLPOOL 058e829f24c8e34f51ce933eda56ed447aa3bd9bd35908be7f13dbadd76254ba1988606332a3758f66db863ff2c805e368a813c998e93562ff5f99948e5e2ceb
+MISC ChangeLog 2627 SHA256 93f8d5c6f8a851eb045793594b5c37131ae3bcb9efdaa4ba8814d58499707617 SHA512 be3e59aa7e3da61a6047724b3edcf307fd5a86419fd98dab25fa5ea37626af8bcde687736f96b475747f219147226632c47ac69188f9f501a1cc6425cccaadc9 WHIRLPOOL ff8006e686611c23e0ca73c81a75bc503901768d71485b0ef07b9fe90eb2763d7cbb70171ba26c8c910ac2ea95c50fb0b62b30d9c38661f2b844c9426e4edc08
+MISC ChangeLog-2015 624 SHA256 9614b7ca5801254bef30f9f6941c2498a88539b25eb23a241a8edfccc27188ec SHA512 0e3923cc9ce3bca600286be3186d48668bb35887940caa399e7040d0506a784f14a5cf1e87888c43779b1151e0e20edeaf763beae924277e0a3a7ae67168321a WHIRLPOOL bb13fb169440a454cbdbb27d6da04ebea0562f4db2b6aa753669bcc4bfffd3e373adeb61f02cf8fa0eae274a3aa3ff701a95ff87151643a2e2b77bf953e29a1b
+MISC metadata.xml 483 SHA256 dcffe3d623b50010f6a64480700aa741e96649530b95591bad80493caefb76e6 SHA512 cab674a9dd6cd23a1be6b39c0d336053c4aedb85e46757b635c5842d28add4e526ccc3609065017384485cefae32f155e7e325728078f5b0f88abd2e0885185d WHIRLPOOL c9592d2c9e098f8d2aad96a1f53ed9b88d07761bbbb058a026348cf3de16a0a7848f21f83172bbab809cb4587b5ad04fb55cb7701b771301eb0045fc77e1f6a3
diff --git a/net-misc/gvrpcd/files/conf.gvrpcd b/net-misc/gvrpcd/files/conf.gvrpcd
new file mode 100644
index 000000000000..f7105124728a
--- /dev/null
+++ b/net-misc/gvrpcd/files/conf.gvrpcd
@@ -0,0 +1,6 @@
+# On which interfaces should listen gvrpcd?
+INTERFACES="eth0"
+
+# Extra arguments. See gvrpcd -h for additional info.
+EXTRA_ARGS=""
+
diff --git a/net-misc/gvrpcd/files/gvrpcd-respect-ldflags.patch b/net-misc/gvrpcd/files/gvrpcd-respect-ldflags.patch
new file mode 100644
index 000000000000..22dde710b048
--- /dev/null
+++ b/net-misc/gvrpcd/files/gvrpcd-respect-ldflags.patch
@@ -0,0 +1,17 @@
+--- a/Makefile 2012-09-23 16:31:55.761755338 +0400
++++ b/Makefile 2012-09-23 16:32:46.159759345 +0400
+@@ -1,4 +1,4 @@
+-LDFLAGS = -lnet
++LIBS = -lnet
+ TGTS = gvrpcd
+
+ all: $(TGTS)
+@@ -8,7 +8,7 @@
+ # gvrpcd.c:(.text+0x228): undefined reference to `libnet_init'
+ # But after moving LDFLAGS to end of the line, works just fine. Sigh...
+ gvrpcd: gvrpcd.c
+- $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
+
+ clean:
+ rm -f $(TGTS) *.o
diff --git a/net-misc/gvrpcd/files/init.gvrpcd b/net-misc/gvrpcd/files/init.gvrpcd
new file mode 100644
index 000000000000..edef1f39f608
--- /dev/null
+++ b/net-misc/gvrpcd/files/init.gvrpcd
@@ -0,0 +1,50 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+extra_commands="checkconfig"
+
+checkconfig() {
+ if [ -z "${INTERFACES}" ]; then
+ eerror "INTERFACES should be set. PLease edit /etc/conf.d/gvrpcd"
+ return 1
+ fi
+ if [ ! -d /proc/net/vlan ]; then
+ modprobe 8021q
+ if [ ! -d /proc/net/vlan ]; then
+ eerror "VLAN (802.1q) support is not present in this kernel"
+ return 1
+ fi
+ fi
+}
+
+depend() {
+ need net
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting gvrpcd"
+ for IFNAME in ${INTERFACES}; do
+ ebegin " on interface ${IFNAME}"
+ start-stop-daemon --start \
+ --pidfile /var/run/gvrpcd-${IFNAME}.pid \
+ --exec /usr/sbin/gvrpcd \
+ -- -d -p /var/run/gvrpcd-${IFNAME}.pid \
+ -i "${IFNAME}" ${EXTRA_ARGS}
+ eend $?
+ done
+# eend $?
+}
+
+stop() {
+ ebegin "Stoping gvrpcd"
+ for IFNAME in ${INTERFACES}; do
+ ebegin " on interface ${IFNAME}"
+ start-stop-daemon --stop --exec /usr/sbin/gvrpcd \
+ -p /var/run/gvrpcd-${IFNAME}.pid
+ eend $?
+ done
+# eend $?
+}
+
diff --git a/net-misc/gvrpcd/gvrpcd-1.3.ebuild b/net-misc/gvrpcd/gvrpcd-1.3.ebuild
new file mode 100644
index 000000000000..f3f5ec854595
--- /dev/null
+++ b/net-misc/gvrpcd/gvrpcd-1.3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils linux-info toolchain-funcs
+
+DESCRIPTION="A program for announcing VLANs using GVRP"
+HOMEPAGE="http://sokrates.mimuw.edu.pl/~sebek/gvrpcd/"
+SRC_URI="http://sokrates.mimuw.edu.pl/~sebek/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="net-libs/libnet:1.1"
+RDEPEND="${DEPEND}"
+
+CONFIG_CHECK="~VLAN_8021Q ~VLAN_8021Q_GVRP"
+
+src_prepare() {
+ eapply "${FILESDIR}/${PN}-respect-ldflags.patch"
+ eapply_user
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dosbin gvrpcd
+ dodoc README
+ newinitd "${FILESDIR}"/init.gvrpcd gvrpcd
+ newconfd "${FILESDIR}"/conf.gvrpcd gvrpcd
+}
diff --git a/net-misc/gvrpcd/metadata.xml b/net-misc/gvrpcd/metadata.xml
new file mode 100644
index 000000000000..b326bd295ec3
--- /dev/null
+++ b/net-misc/gvrpcd/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>azamat.hackimov@gmail.com</email>
+ <name>Azamat H. Hackimov</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>