summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2012-10-24 09:46:02 +0000
committerSergey Popov <pinkbyte@gentoo.org>2012-10-24 09:46:02 +0000
commit13db450b8853bfcfd95b59ca99b6d877537b208d (patch)
tree94c4bcf510d4a9409c317b8a07528b1e8c8291e1 /dev-util
parentFixing header (diff)
downloadgentoo-2-13db450b8853bfcfd95b59ca99b6d877537b208d.tar.gz
gentoo-2-13db450b8853bfcfd95b59ca99b6d877537b208d.tar.bz2
gentoo-2-13db450b8853bfcfd95b59ca99b6d877537b208d.zip
Initial commit wrt bug #438360
(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/dropwatch/ChangeLog12
-rw-r--r--dev-util/dropwatch/Manifest5
-rw-r--r--dev-util/dropwatch/dropwatch-1.4.ebuild39
-rw-r--r--dev-util/dropwatch/files/dropwatch-1.4-makefile.patch21
-rw-r--r--dev-util/dropwatch/metadata.xml15
5 files changed, 92 insertions, 0 deletions
diff --git a/dev-util/dropwatch/ChangeLog b/dev-util/dropwatch/ChangeLog
new file mode 100644
index 000000000000..287bcf974190
--- /dev/null
+++ b/dev-util/dropwatch/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-util/dropwatch
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/dropwatch/ChangeLog,v 1.1 2012/10/24 09:46:02 pinkbyte Exp $
+
+*dropwatch-1.4 (24 Oct 2012)
+
+ 24 Oct 2012; Sergey Popov <pinkbyte@gentoo.org> +dropwatch-1.4.ebuild,
+ +files/dropwatch-1.4-makefile.patch, +metadata.xml:
+ Initial commit wrt bug #438360. Ebuild by Andrew Savchenko with some changes
+ from me, patch is also adapted to respect compiler. Package will be
+ maintained by Andrew Savchenko through proxy maintainers
+
diff --git a/dev-util/dropwatch/Manifest b/dev-util/dropwatch/Manifest
new file mode 100644
index 000000000000..dd5cd506ebf9
--- /dev/null
+++ b/dev-util/dropwatch/Manifest
@@ -0,0 +1,5 @@
+AUX dropwatch-1.4-makefile.patch 639 SHA256 d966d5e8a0a7f15e5acf41dbd63d2670bf472013619d83a1fe721f2d59b58752 SHA512 cf9756fe238041d5a9a764e81f5294832146905a809fccff999cf45d28015fc70ac0239b57b2e7d994095d5b45b484ea2b14e36210cc10bc1e4ef8ad3d9031f5 WHIRLPOOL b03ae2ed1005b384bc5948a9a01d16ee22d1016d3ab900403551684d49a0872aff190bde6447fd3165bb6bb514b1547016a62066b2d31dd9dce8e3208e99bfa8
+DIST dropwatch-1.4.tbz2 32199 SHA256 ede45fd3b4a847a9befa73e9e8f6336aee5418fc3e041648c684e5085113a3b4 SHA512 a5744ea156464c53d31d5b54bcaf9bd61f2035285059bc05a3eec20be71d1451a6191237f194dc5d8e6fb6fcbb81d9ef87adf5ac2d878cc1f159191c47118e29 WHIRLPOOL 3d8661ab85da0a7485e8f6312eeb99e1ed14f6af38d119093c835e94f518918908e596d3e5744be5f529d280b6644b459106eb503112df58b63865737f8eecc1
+EBUILD dropwatch-1.4.ebuild 824 SHA256 f40489602c0642c1eeb794f6ca0d52e1bc1de77363c245d0536b20337b4df954 SHA512 427029ec730651a6f888c79fdd1518ca7e18d56bbbfde92134e57208a7662e99b6b529e958e7504272f83ce037e3a4c82e23786d7733b5190756262b7018b39a WHIRLPOOL 32dcb69ec52779f767a79d86c165ee8562ded99b9882f707c1550ca1447d17edef6e400170c733b6f622c29984cf782c9da608d7f5d7964cfadf14ae1131f25e
+MISC ChangeLog 485 SHA256 fec4b223bfac7d499c567a858599da8a24e5c791ad2c26beb5846de51a79e59e SHA512 59994870ed2b21c3530a5bdb376f67a315b5b6fedf889ca05cf9d5fa0a87ac1720decc0b20e835ef0ce9f0bfef57ad92383e10565dc1df245c01991944225273 WHIRLPOOL 89f5ffbd77fd9a680bde9afb4dfe24917d52ac4db4898687f5f3ef876cf6ab59b87609ef96013cd4ca01796e4e6f41360786e3fd625f2ccdf9d9b971f9066ec4
+MISC metadata.xml 483 SHA256 ac1fa8e3992eac90bf348e2378fc646ab350b906a209b937dfb6054ea83ba21d SHA512 702aa2eda4cec54dbf47fabb16615d875b4693cd8aea94f7f7d9ce3a9827e01fa99b859aa60d19adb2d31356372ce34fcf48badf8d699dddd913017ba469456a WHIRLPOOL 8899d73784f923b8b2a33e344a94a2cf5c52ddf0487a73c5aea8d5f0467a381919323069dca599e2dbf6152d5ad766c3a09a3c56ed1260a471c852755774ce9d
diff --git a/dev-util/dropwatch/dropwatch-1.4.ebuild b/dev-util/dropwatch/dropwatch-1.4.ebuild
new file mode 100644
index 000000000000..9fe1bd165c60
--- /dev/null
+++ b/dev-util/dropwatch/dropwatch-1.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/dropwatch/dropwatch-1.4.ebuild,v 1.1 2012/10/24 09:46:02 pinkbyte Exp $
+
+EAPI=4
+
+inherit base linux-info toolchain-funcs
+
+DESCRIPTION="An utility to interface to the kernel to monitor for dropped network packets"
+HOMEPAGE="https://fedorahosted.org/dropwatch/"
+SRC_URI="https://fedorahosted.org/releases/d/r/dropwatch/${P}.tbz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/libnl:3
+ sys-libs/readline"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+CONFIG_CHECK="~NET_DROP_MONITOR"
+
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
+
+src_compile() {
+ emake CC="$(tc-getCC)" -C src
+}
+
+src_install() {
+ dobin "src/${PN}"
+ doman "doc/${PN}.1"
+ dodoc README
+}
+
+pkg_postinst() {
+ einfo "Ensure that 'drop_monitor' kernel module is loaded before running ${PN}"
+}
diff --git a/dev-util/dropwatch/files/dropwatch-1.4-makefile.patch b/dev-util/dropwatch/files/dropwatch-1.4-makefile.patch
new file mode 100644
index 000000000000..14ffcc83513e
--- /dev/null
+++ b/dev-util/dropwatch/files/dropwatch-1.4-makefile.patch
@@ -0,0 +1,21 @@
+--- src/Makefile.orig 2012-10-24 13:27:12.000000000 +0400
++++ src/Makefile 2012-10-24 13:27:47.000000000 +0400
+@@ -1,14 +1,14 @@
+ all: dropwatch
+-CFLAGS+=-c -g -D_GNU_SOURCE -Wall -Werror `pkg-config --cflags libnl-3.0`
+-LDFLAGS=-lbfd -lreadline -lnl-3 -lnl-genl-3
++CFLAGS+=-c -D_GNU_SOURCE -Wall `pkg-config --cflags libnl-3.0`
++LIBS=-lbfd -lreadline -lnl-3 -lnl-genl-3
+ OBJFILES := main.o lookup.o\
+ lookup_bfd.o lookup_kas.o
+
+ dropwatch: $(OBJFILES)
+- gcc -g -o dropwatch $(OBJFILES) $(LDFLAGS)
++ $(CC) -o dropwatch $(LDFLAGS) $(OBJFILES) $(LIBS)
+
+ %.o: %.c
+- gcc $(CFLAGS) $<
++ $(CC) $(CFLAGS) $<
+ clean:
+ rm -f dropwatch *.o
+
diff --git a/dev-util/dropwatch/metadata.xml b/dev-util/dropwatch/metadata.xml
new file mode 100644
index 000000000000..27c83a7ddf11
--- /dev/null
+++ b/dev-util/dropwatch/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>bircoph@gmail.com</email>
+ <name>Andrew Savchenko</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>