diff options
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/iplist/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/iplist/Manifest | 4 | ||||
-rw-r--r-- | net-misc/iplist/files/iplist-9999-makefile.patch | 31 | ||||
-rw-r--r-- | net-misc/iplist/iplist-9999.ebuild | 28 | ||||
-rw-r--r-- | net-misc/iplist/metadata.xml | 5 |
5 files changed, 76 insertions, 0 deletions
diff --git a/net-misc/iplist/ChangeLog b/net-misc/iplist/ChangeLog new file mode 100644 index 000000000..ac64706b2 --- /dev/null +++ b/net-misc/iplist/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-misc/iplist +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 25 Jan 2009; MaurĂcio Moraes (morris) <morris@brgentoo.org> + +iplist-9999.ebuild, +files/iplist-9999-makefile.patch, +metadata.xml: + New Ebuild for bug 256001, thanks to Christian, Jeremy and Tommy + diff --git a/net-misc/iplist/Manifest b/net-misc/iplist/Manifest new file mode 100644 index 000000000..6cf132507 --- /dev/null +++ b/net-misc/iplist/Manifest @@ -0,0 +1,4 @@ +AUX iplist-9999-makefile.patch 1063 RMD160 2a8887f10efb277b7a5b958c99b6ea42109fcaff SHA1 c15f4523bb0a4ac5f8800dffb294a7da8a614855 SHA256 c8b993fbf0407ed84474bd56e03542f22a7b2d8f37ecc37eae50e765d9f22ed5 +EBUILD iplist-9999.ebuild 739 RMD160 3f8fc2cb0110e1c8e420089d91238cb623146162 SHA1 22c1d576941baed0ffb31171130069cac6449079 SHA256 5d35f27b086313f6ca6155756ad5de0ca0e343003ddb196d781f9722f4f52bce +MISC ChangeLog 320 RMD160 e26f99326ab265625ee577763eaac4e61481afe1 SHA1 aa8a162eaa27912fb78859352810b6ccd1dab04e SHA256 2118f8d7c42df8f9f0638b528b7c3bff7fae1c873d80852a99669746c0ef7cba +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/net-misc/iplist/files/iplist-9999-makefile.patch b/net-misc/iplist/files/iplist-9999-makefile.patch new file mode 100644 index 000000000..2dd73c7e2 --- /dev/null +++ b/net-misc/iplist/files/iplist-9999-makefile.patch @@ -0,0 +1,31 @@ +--- Makefile 2009-01-22 12:25:45.132342418 -0200 ++++ Makefile.new 2009-01-24 23:04:52.386342346 -0200 +@@ -22,7 +22,7 @@ + FLAGS= -Wall -Wextra -std=c++98 -D_REENTRANT + #CPPFLAGS = ${FLAGS} -g -DDEBUG + #CPPFLAGS = ${FLAGS} -g -pg -DDEBUG +-CPPFLAGS = -O2 ${FLAGS} -DNDEBUG ++CPPFLAGS ?= -O2 ${FLAGS} -DNDEBUG + + HEADERDIR = include + SRCDIR = src +@@ -53,9 +53,16 @@ + log.o: log.h nfq.h range.h iplist.h + + install: +- install -p -m 755 $(FILENAME) $(DESTDIR)/usr/sbin/ +- install -p -m 755 ipblock $(DESTDIR)/usr/sbin/ +- install -p -m 644 ipblockUI.jar $(DESTDIR)/usr/share/java/ ++ install -d $(DESTDIR)/usr/sbin/ ++ install -p -c -m 755 $(FILENAME) $(DESTDIR)/usr/sbin/ ++ install -d $(DESTDIR)/usr/sbin/ ++ install -p -c -m 755 ipblock $(DESTDIR)/usr/sbin/ ++ install -d $(DESTDIR)/etc/init.d/ ++ install -p -c -m 755 gentoo/ipblock $(DESTDIR)/etc/init.d/ ++ install -d $(DESTDIR)/etc/ ++ install -p -c -m 644 ipblock.conf $(DESTDIR)/etc/ ++ install -d $(DESTDIR)/etc/ ++ install -p -c -m 644 ipblock.lists $(DESTDIR)/etc/ + + deb: + dpkg-buildpackage -rfakeroot -tc -D -us -uc diff --git a/net-misc/iplist/iplist-9999.ebuild b/net-misc/iplist/iplist-9999.ebuild new file mode 100644 index 000000000..432db0aaf --- /dev/null +++ b/net-misc/iplist/iplist-9999.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit subversion linux-info + +ESVN_REPO_URI="https://${PN}.svn.sourceforge.net/svnroot/${PN}/trunk/${PN}" +ESVN_PROJECT="${PN}" +ESVN_PATCHES=( "${P}-makefile.patch" ) + +DESCRIPTION="Blocks connections from/to hosts listed in files using iptables." +HOMEPAGE="http://iplist.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="" +RDEPEND="net-firewall/iptables + net-libs/libnetfilter_queue + net-libs/libnfnetlink + sys-libs/zlib" +DEPEND="${RDEPEND}" +CONFIG_CHECK="NETFILTER_XT_MATCH_IPRANGE" + +src_install() { + emake DESTDIR="${D}" install || die "install failed!" + doman {${PN},ipblock}.8 || die "doman failed!" +} diff --git a/net-misc/iplist/metadata.xml b/net-misc/iplist/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/net-misc/iplist/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> |