Link libipt_ipp2p.o dynamically when iptables 1.3.6 or better is installed (#157238).
authorAlin Năstac <mrness@gentoo.org>
Thu, 4 Jan 2007 13:18:52 +0000 (13:18 +0000)
committerAlin Năstac <mrness@gentoo.org>
Thu, 4 Jan 2007 13:18:52 +0000 (13:18 +0000)
Package-Manager: portage-2.1.1-r1

net-firewall/ipp2p/ChangeLog
net-firewall/ipp2p/Manifest
net-firewall/ipp2p/files/digest-ipp2p-0.8.2-r1 [new file with mode: 0644]
net-firewall/ipp2p/ipp2p-0.8.2-r1.ebuild [new file with mode: 0644]

index 581ebc7604f5f4a0e9f208ea52d2bc2e332496ee..ae0eaa01b3545323ae588accc26934213742f437 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-firewall/ipp2p
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipp2p/ChangeLog,v 1.19 2006/12/06 08:12:33 corsair Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipp2p/ChangeLog,v 1.20 2007/01/04 13:18:52 mrness Exp $
+
+*ipp2p-0.8.2-r1 (04 Jan 2007)
+
+  04 Jan 2007; Alin Nastac <mrness@gentoo.org> +ipp2p-0.8.2-r1.ebuild:
+  Link libipt_ipp2p.o dynamically when iptables 1.3.6 or better is installed
+  (#157238).
 
   06 Dec 2006; Markus Rothe <corsair@gentoo.org> ipp2p-0.8.2.ebuild:
   Stable on ppc64; bug #157175
index 1a1659b517c45f5b6afee51b7bc068764e43bb1c..904cdf3b1df8f510442f3c84db742de9f71efa0c 100644 (file)
@@ -1,17 +1,24 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 DIST ipp2p-0.8.0.tar.gz 18910 RMD160 5e5825a28e626fcd96ce2e3bcf588d226426a1d3 SHA1 f854b974c7e1389c21f0ce568068e6d35d6b4a44 SHA256 18375c1a5ef5e65da78c18b089be1d26846ad0372ac476fd0385de1dbe0d295e
 DIST ipp2p-0.8.2.tar.gz 18976 RMD160 097cd4175af3f97f3687f343087b8fe0af20ba38 SHA1 98dbcf84b23e7afde3286fd0f1c1816b437d082e SHA256 b265f5a1ce62de5a6cc60b9af22134a8d19b23e14b47a897057bca91188e0ee7
 EBUILD ipp2p-0.8.0.ebuild 1493 RMD160 2ecac54755aa8060ea859bedf6d771abead7e066 SHA1 a6f259188a37ddaa3ef3c831525d03bf4080804e SHA256 94f7baf5e8bade6603266b2cb292559eafb899718a61f3a977ead4ae79c0729f
 MD5 7a3c10d3d4012348b16234d560058e07 ipp2p-0.8.0.ebuild 1493
 RMD160 2ecac54755aa8060ea859bedf6d771abead7e066 ipp2p-0.8.0.ebuild 1493
 SHA256 94f7baf5e8bade6603266b2cb292559eafb899718a61f3a977ead4ae79c0729f ipp2p-0.8.0.ebuild 1493
+EBUILD ipp2p-0.8.2-r1.ebuild 1670 RMD160 630e54ec10a0035deb500e7e6ecd71cb27cff1b4 SHA1 5f7bd9c7dbe217c6becb85768f7f5878506fa1f7 SHA256 268d59f047985edaab43b32195d1870e9949ae09116e6ef677ad835b783a7b8f
+MD5 9c716587773e0ed1dd7c60d9f85973ce ipp2p-0.8.2-r1.ebuild 1670
+RMD160 630e54ec10a0035deb500e7e6ecd71cb27cff1b4 ipp2p-0.8.2-r1.ebuild 1670
+SHA256 268d59f047985edaab43b32195d1870e9949ae09116e6ef677ad835b783a7b8f ipp2p-0.8.2-r1.ebuild 1670
 EBUILD ipp2p-0.8.2.ebuild 1487 RMD160 c5039efc71e09148a9baa67f165a85cbd359c050 SHA1 625186f642ede9bfd9000b2d1ceaa492654bbf91 SHA256 159a452cf0c8cfe174ffea102c44c60c78af23b6962a4377481b111a88949ddb
 MD5 3e626ea6f381850e2797ce7884b8568b ipp2p-0.8.2.ebuild 1487
 RMD160 c5039efc71e09148a9baa67f165a85cbd359c050 ipp2p-0.8.2.ebuild 1487
 SHA256 159a452cf0c8cfe174ffea102c44c60c78af23b6962a4377481b111a88949ddb ipp2p-0.8.2.ebuild 1487
-MISC ChangeLog 3361 RMD160 833a2889db480d2ed3af27df427c4b8f4ea01722 SHA1 8eb20fd1f908b4ec125a3fb1afb1aeb3f537e09b SHA256 15743a82305208240f0b4c42dae9a2e39d97d4816aab67acc12b825a25077cf5
-MD5 9ea118605faa6f5ade484b2183d7a231 ChangeLog 3361
-RMD160 833a2889db480d2ed3af27df427c4b8f4ea01722 ChangeLog 3361
-SHA256 15743a82305208240f0b4c42dae9a2e39d97d4816aab67acc12b825a25077cf5 ChangeLog 3361
+MISC ChangeLog 3553 RMD160 cb08c63f90cef527e0d4c549d706e264561c7d79 SHA1 5f085927cef497363a5d180e7bec3992fa8ac864 SHA256 8b1b1b51199d35f7caa1d9d8e2e788ab5f0a5f3ca5f130d1189769bcde9582b0
+MD5 64f6914fbcfc34792d590a2433bcb3a3 ChangeLog 3553
+RMD160 cb08c63f90cef527e0d4c549d706e264561c7d79 ChangeLog 3553
+SHA256 8b1b1b51199d35f7caa1d9d8e2e788ab5f0a5f3ca5f130d1189769bcde9582b0 ChangeLog 3553
 MISC metadata.xml 839 RMD160 b60b70128145c55c72e5e8bf6aaead3859c1985c SHA1 0affaf5fd1e0e806c3f2f487406e6c6918974563 SHA256 b6788dee2536d343a9d66aad17c358fce18091ac2a710b2eae090d5e4afba9cd
 MD5 a29bcf1bb9a709d97b6c6a925154a690 metadata.xml 839
 RMD160 b60b70128145c55c72e5e8bf6aaead3859c1985c metadata.xml 839
@@ -22,3 +29,13 @@ SHA256 168a9d1201ed74f3c2d63408f78b92ca07726480ec299d0758999e06ec78c65f files/di
 MD5 3bd136616ef13f4f269a7c48a5d518be files/digest-ipp2p-0.8.2 232
 RMD160 afd815301065b20a3fd7115191ed351d5d9efac3 files/digest-ipp2p-0.8.2 232
 SHA256 24a5af31ad5b60d4629f51b2ea39c7d2e0037b5e0d2990d62d55feda14bbfd12 files/digest-ipp2p-0.8.2 232
+MD5 3bd136616ef13f4f269a7c48a5d518be files/digest-ipp2p-0.8.2-r1 232
+RMD160 afd815301065b20a3fd7115191ed351d5d9efac3 files/digest-ipp2p-0.8.2-r1 232
+SHA256 24a5af31ad5b60d4629f51b2ea39c7d2e0037b5e0d2990d62d55feda14bbfd12 files/digest-ipp2p-0.8.2-r1 232
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.5 (GNU/Linux)
+
+iD8DBQFFnP7KJnxX6mF440QRAqKDAJ9/EGJgoRdTo6UCkW8jVCFApJCytQCgs3fs
+3G1gOtDZahg90M8WcooHYfA=
+=axev
+-----END PGP SIGNATURE-----
diff --git a/net-firewall/ipp2p/files/digest-ipp2p-0.8.2-r1 b/net-firewall/ipp2p/files/digest-ipp2p-0.8.2-r1
new file mode 100644 (file)
index 0000000..14106f3
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 9dd745830f302d70d0b728013c1d6a0c ipp2p-0.8.2.tar.gz 18976
+RMD160 097cd4175af3f97f3687f343087b8fe0af20ba38 ipp2p-0.8.2.tar.gz 18976
+SHA256 b265f5a1ce62de5a6cc60b9af22134a8d19b23e14b47a897057bca91188e0ee7 ipp2p-0.8.2.tar.gz 18976
diff --git a/net-firewall/ipp2p/ipp2p-0.8.2-r1.ebuild b/net-firewall/ipp2p/ipp2p-0.8.2-r1.ebuild
new file mode 100644 (file)
index 0000000..fc61d31
--- /dev/null
@@ -0,0 +1,66 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipp2p/ipp2p-0.8.2-r1.ebuild,v 1.1 2007/01/04 13:18:52 mrness Exp $
+
+inherit linux-mod eutils
+
+DESCRIPTION="Netfilter module for dealing with P2P Applications."
+HOMEPAGE="http://www.ipp2p.org/index_en.html"
+SRC_URI="http://www.ipp2p.org/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="virtual/modutils
+        >=net-firewall/iptables-1.2.11"
+
+DEPEND="${RDEPEND}
+       virtual/linux-sources"
+
+pkg_setup() {
+       CONFIG_CHECK="NETFILTER"
+       NETFILTER_ERROR="Your kernel is not configured to support Netfilter."
+       MODULE_NAMES="ipt_ipp2p(${PN}:${S}:${S})"
+
+       linux-mod_pkg_setup
+}
+
+src_unpack() {
+       unpack ${A}
+
+       cd "${S}"
+       convert_to_m Makefile
+
+       sed -i -e "s/^IPTABLES_VERSION/#IPTABLES_VERSION/" Makefile
+       if has_version '>=net-firewall/iptables-1.3.6' ; then
+           sed -i -e "s/ld -shared/\$\(CC\) -shared/" Makefile
+       fi
+}
+
+src_compile() {
+       local IPTABLES_VERSION="$("${ROOT}"/sbin/iptables --version | cut -f2 -dv)"
+       emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" \
+           IPTABLES_SRC="${ROOT}/usr" IPTABLES_VERSION="${IPTABLES_VERSION}" libipt_ipp2p.so \
+           || die "Failed to build iptables module"
+
+       local myARCH="${ARCH}"
+       ARCH="$(tc-arch-kernel)"
+       emake KERNEL_SRC="${KV_DIR}" \
+           IPTABLES_SRC="${ROOT}/usr" IPTABLES_VERSION="${IPTABLES_VERSION}" \
+           || die "Failed to build kernel module."
+       ARCH="${myARCH}"
+}
+
+src_install() {
+       exeinto /$(get_libdir)/iptables
+       doexe libipt_ipp2p.so
+
+       dodoc README
+       linux-mod_src_install
+}
+
+pkg_postinst() {
+       linux-mod_pkg_postinst
+}