Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182019 - net-firewall/conntrack-tools-0.9.4 ebuild request
Summary: net-firewall/conntrack-tools-0.9.4 ebuild request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://people.netfilter.org/pablo/con...
Whiteboard:
Keywords:
: 165669 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-14 11:41 UTC by Olivier Huber
Modified: 2007-07-29 15:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild proposal (conntrack-tools-0.9.3.ebuild,1.02 KB, text/plain)
2007-06-14 11:44 UTC, Olivier Huber
Details
conntrack-tools-0.9.3.ebuild (conntrack-tools-0.9.3.ebuild,1.26 KB, text/plain)
2007-06-21 11:06 UTC, Natanael Copa
Details
files/conntrackd.initd (conntrackd.initd,796 bytes, text/plain)
2007-06-21 11:07 UTC, Natanael Copa
Details
files/conntrackd.confd (conntrackd.confd,50 bytes, text/plain)
2007-06-21 11:08 UTC, Natanael Copa
Details
conntrack-tools-0.9.4.ebuild (conntrack-tools-0.9.4.ebuild,1.26 KB, text/plain)
2007-07-05 11:43 UTC, Olivier Huber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Huber 2007-06-14 11:41:03 UTC
conntrack-tools seems to be a replacement for conntrack. There has been no release of this last software for almost 1 year (see http://www.netfilter.org/projects/conntrack-tools/downloads.html). So I try to write an ebuild for conntrack-tools based on conntrack's one. I try to block conntrack-tools if conntrack is install because they use the same name for the executable.

Reproducible: Always
Comment 1 Olivier Huber 2007-06-14 11:44:38 UTC
Created attachment 122022 [details]
ebuild proposal
Comment 2 Natanael Copa 2007-06-21 09:12:25 UTC
*** Bug 165669 has been marked as a duplicate of this bug. ***
Comment 3 Natanael Copa 2007-06-21 11:06:16 UTC
Created attachment 122672 [details]
conntrack-tools-0.9.3.ebuild

Merged ebuild from #165669.
Check for proper kernel headers. (It will not compile with 2.6.17 headers)
Added init.d anc conf.d files for conntrackd and a sample config.

Diff from previous proposed ebuild follows:
--- attachment.cgi?id=122022    2007-06-21 11:03:13 +0000
+++ conntrack-tools-0.9.3.ebuild        2007-06-21 10:56:54 +0000
@@ -13,38 +13,43 @@
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-DEPEND=">=net-libs/libnfnetlink-0.0.25
->=net-libs/libnetfilter_conntrack-0.0.75"
-RDEPEND="${DEPEND}
-!net-firewall/conntrack"
+RDEPEND=">=net-libs/libnfnetlink-0.0.25
+       >=net-libs/libnetfilter_conntrack-0.0.75
+       !net-firewall/conntrack"
 
-pkg_setup() {
+DEPEND="${RDEPEND}
+       >=sys-kernel/linux-headers-2.6.18"
 
+pkg_setup() {
        linux-info_pkg_setup
-
        kernel_is lt 2 6 14 && die "${PN} requires at least 2.6.14      kernel version"
-#netfilter core team has changed some option names in .config with kernel 2.6.20
+
+       # netfilter core team has changed some option names in .config with 
+       # kernel 2.6.20
        if kernel_is lt 2 6 20
                then
                        CONFIG_CHECK="IP_NF_CONNTRACK_NETLINK"
                else
                        CONFIG_CHECK="NF_CT_NETLINK"
        fi
-
        check_extra_config
-
 }
 
 src_compile() {
-       cd ${S}
-       econf || die "Configure failed"
-
-       emake || die "Make failed!"
+       econf || die "econf failed"
+       emake || die "emake failed"
 }
 
 src_install() {
        emake DESTDIR="${D}" install || die "emake install failed"
        dodoc AUTHORS ChangeLog
+
+       newinitd "${FILESDIR}/conntrackd.initd" conntrackd
+       newconfd "${FILESDIR}/conntrackd.confd" conntrackd
+
+       # copy example config from examples/stats
+       insinto /etc/conntrackd
+       doins "${S}/examples/stats/conntrackd.conf"
 }
Comment 4 Natanael Copa 2007-06-21 11:07:21 UTC
Created attachment 122674 [details]
files/conntrackd.initd
Comment 5 Natanael Copa 2007-06-21 11:08:01 UTC
Created attachment 122676 [details]
files/conntrackd.confd
Comment 6 Olivier Huber 2007-07-05 11:43:24 UTC
Created attachment 123947 [details]
conntrack-tools-0.9.4.ebuild

new upstream release.
Is it possible to reassign this bug to netmon because this software is the successor of net-firewall/conntrack
Comment 7 Cédric Krier gentoo-dev 2007-07-29 15:31:55 UTC
Fix in cvs
Thanks