diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2012-09-23 12:52:23 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2012-09-23 12:52:23 +0000 |
commit | 9b1d6a17e04aed9bb5e44d39ae47972d755abacc (patch) | |
tree | e7f6eb9a05328fdde3ef1e87bb2252109171fc78 | |
parent | Dev channel bump. Temporarily disable NaCl (build failures). Skip some tests ... (diff) | |
download | gentoo-2-9b1d6a17e04aed9bb5e44d39ae47972d755abacc.tar.gz gentoo-2-9b1d6a17e04aed9bb5e44d39ae47972d755abacc.tar.bz2 gentoo-2-9b1d6a17e04aed9bb5e44d39ae47972d755abacc.zip |
Initial commit wrt bug #356411. Thanks to Azamat H. Hackimov for ebuild. He will maintain this package through proxy maintainers
(Portage version: 2.2.0_alpha129/cvs/Linux x86_64)
-rw-r--r-- | net-misc/gvrpcd/ChangeLog | 12 | ||||
-rw-r--r-- | net-misc/gvrpcd/Manifest | 7 | ||||
-rw-r--r-- | net-misc/gvrpcd/files/conf.gvrpcd | 6 | ||||
-rw-r--r-- | net-misc/gvrpcd/files/gvrpcd-respect-ldflags.patch | 17 | ||||
-rw-r--r-- | net-misc/gvrpcd/files/init.gvrpcd | 51 | ||||
-rw-r--r-- | net-misc/gvrpcd/gvrpcd-1.3.ebuild | 37 | ||||
-rw-r--r-- | net-misc/gvrpcd/metadata.xml | 15 |
7 files changed, 145 insertions, 0 deletions
diff --git a/net-misc/gvrpcd/ChangeLog b/net-misc/gvrpcd/ChangeLog new file mode 100644 index 000000000000..17ed8be4bac4 --- /dev/null +++ b/net-misc/gvrpcd/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for net-misc/gvrpcd +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/gvrpcd/ChangeLog,v 1.1 2012/09/23 12:52:23 pinkbyte Exp $ + +*gvrpcd-1.3 (23 Sep 2012) + + 23 Sep 2012; Sergey Popov <pinkbyte@gentoo.org> +gvrpcd-1.3.ebuild, + +files/conf.gvrpcd, +files/gvrpcd-respect-ldflags.patch, +files/init.gvrpcd, + +metadata.xml: + Initial commit wrt bug #356411. Thanks to Azamat H. Hackimov for ebuild. He + will maintain this package through proxy maintainers + diff --git a/net-misc/gvrpcd/Manifest b/net-misc/gvrpcd/Manifest new file mode 100644 index 000000000000..fea3c549d478 --- /dev/null +++ b/net-misc/gvrpcd/Manifest @@ -0,0 +1,7 @@ +AUX conf.gvrpcd 132 SHA256 56693e8d6c4d97dfcef3d56cef5b60c5ea5010da5335a8b8af431d90ee4c729f SHA512 1b8e5eaef65c4140eb681d8047e2c38c67b6c3895d89b6d809554785f7542764126e43a38a90177805b1c181e168d8896656bc35fbec036e1b30ac1ba51837d0 WHIRLPOOL a85e196e0fe7b0898e9f3b81c7d934e0fbb835bd4d0ec31ef2bd50e3cbd105e3c2ab1b1cc76f58c5662965b05b830fab8a16549bd949a23839b1ed989c922b57 +AUX gvrpcd-respect-ldflags.patch 466 SHA256 f85a3bf0d51372599f4bb64a7ac7a58fc62e325a17ee8a5fd055bc3a98c69dd6 SHA512 34a8f3cdb76fc617b50a2d35905ae8afa5129ed89a248f49e681a88c0d4b700a64eb2c6ad2faffd828ec9089eb4919e1a3db54d845c3c872215d4906ab1f7b90 WHIRLPOOL 81e4ddf0a2c5af7f6e7fe4ac1b68c15e9e6193a05bec1869e318dbdfc1f202f26ca73190cd64ec7ca8c49849a1471978fcc84beb0caee2ecf1bc76a350e44a0b +AUX init.gvrpcd 1067 SHA256 0f09e05e7c1e20e9b7e665fa7b46f90e5a5588e014b4bafa91b78a06e00da0d4 SHA512 2c00080c08122421ad727b5e1cbc74f671a870ac35a43e9dd81e7c727e650fe1be7d6a5c743dc2a8c14efc8dcb22e35a59807500a34286c5c529d8dcaddbf4da WHIRLPOOL c25edd623d1fbba90a85aeebee623fd9334f4662790209afae8d8c793d209407d67e7ae809383e894bd28aed0eae490c4ebe98919b70d2c25f3b1e881169ca0b +DIST gvrpcd-1.3.tar.gz 12066 SHA256 9069e3f97478498b849122c8306fdb76879bb7010fb2a393f815a8e74d3a1209 SHA512 53f2ad4c9ce5ee2bbf72c691ca0ea1d3d2e22dba98c18cdcbecc09c9082427f8ebc83277b4ffc40fd693652c932a4c093512f99157e82d5a3b97bb6f3d8ff444 WHIRLPOOL 4908bbff6aba30ed406483b541702dff03c3387f8415567fd40cb3520ae58608546a826eb688a558866320e8b19a572d9033ae879e52953737bfcc0d659950f4 +EBUILD gvrpcd-1.3.ebuild 739 SHA256 08aa282bfc86c2cae56b6117fbc3108f1259104ab34b671b706ec58eff346c3e SHA512 0de64a952ed41fa891f4f030a6fdcd358496cbdddbd2803ab8255720b7ad3eec0de71acfad50bf697474c4b20d089f4a34bcc192386d681724f79293597e376a WHIRLPOOL 171065264c05312333b4561641c2cd82055deaf0dcf1c09c55acdf96a177b61f8aef604ac9280aa765a3050b1a08573013f79e50aef5bb04497b5b447444239f +MISC ChangeLog 443 SHA256 8f219ddc655996417a4855c03268bf364e71b718633c71d8729ba3caf81e2d13 SHA512 8c06c04cf898c4d8e9dcd70fd8bb84032a2f187bd6503337961d838148c2c9eb152b5d870bba2800f081bac8c14416d46ff5e8273cbbcf6458e0a2fde03589b9 WHIRLPOOL 0f78f10781c54f2b0e670a7948003838e5dbe9d162d8ef72729c4d575780115f03e4fdc96d410d8efbe0b197475b5f938d4e1da88078673fe145e0bfe748c54c +MISC metadata.xml 493 SHA256 82aa658a447eed3c752b670d32d1cab285e4884a77c58207d0ecaa765c04a9f6 SHA512 d71d1d389c3c9c4e6c88f16649112eda86388d0149bdab6b7e782b1a7496ef10cd55197d82a156f3499c17bfc959936ebe5e8b5ce353db7595afb072619d0669 WHIRLPOOL 74eac96f249c976fd482974452ccd0cc34a35e725c6ab6ab05ed57d67b7d3cfea7441dd664426a68ed35be47c7ef0035debdb05c40b299e612fd103fc88a5998 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..0dc9ca6999aa --- /dev/null +++ b/net-misc/gvrpcd/files/gvrpcd-respect-ldflags.patch @@ -0,0 +1,17 @@ +--- Makefile.orig 2012-09-23 16:31:55.761755338 +0400 ++++ 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..42b1f526a752 --- /dev/null +++ b/net-misc/gvrpcd/files/init.gvrpcd @@ -0,0 +1,51 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-misc/gvrpcd/files/init.gvrpcd,v 1.1 2012/09/23 12:52:22 pinkbyte Exp $ + +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..0d6391f1df0d --- /dev/null +++ b/net-misc/gvrpcd/gvrpcd-1.3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/gvrpcd/gvrpcd-1.3.ebuild,v 1.1 2012/09/23 12:52:23 pinkbyte Exp $ + +EAPI=4 + +inherit 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" +IUSE="" + +DEPEND="net-libs/libnet:1.1" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~VLAN_8021Q ~VLAN_8021Q_GVRP" + + +src_prepare() { + epatch "${FILESDIR}"/${PN}-respect-ldflags.patch +} + +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..0a34bcaad2cb --- /dev/null +++ b/net-misc/gvrpcd/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>azamat.hackimov@gmail.com</email> + <name>Azamat H. Hackimov</name> + <description>Maintainer. Assign bugs to him</description> + </maintainer> + <maintainer> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + <description>Proxy maintainer. CC him on bugs</description> + </maintainer> +</pkgmetadata> |