diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/ipcad/ipcad-3.7.3.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/ipcad/ipcad-3.7.3.ebuild')
-rw-r--r-- | net-analyzer/ipcad/ipcad-3.7.3.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net-analyzer/ipcad/ipcad-3.7.3.ebuild b/net-analyzer/ipcad/ipcad-3.7.3.ebuild new file mode 100644 index 000000000000..e9723ab496af --- /dev/null +++ b/net-analyzer/ipcad/ipcad-3.7.3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="IP Cisco Accounting Daemon" +HOMEPAGE="https://sourceforge.net/projects/ipcad/ http://lionet.info/ipcad/" +SRC_URI="mirror://sourceforge/ipcad/${P}.tar.gz" + +LICENSE="BSD-2 GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +RDEPEND=" + net-libs/libpcap + net-firewall/iptables +" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-3.7-linux-2.6.27.patch \ + "${FILESDIR}"/${PN}-3.7-linux-2.6.35.patch \ + "${FILESDIR}"/${P}-signal_h.patch + + sed -i \ + -e "s|^chroot = /adm/tmp;|chroot = /var/ipcad;|" \ + -e "s|^interface|#&|" \ + -e "s|^aggregate|#&|" \ + -e "s|^pidfile = ipcad.pid;|pidfile = /run/ipcad.pid;|" \ + ipcad.conf.default || die + + eautoreconf +} + +src_install() { + dodoc AUTHORS ChangeLog README BUGS FAQ ipcad.conf.simple ipcad.conf.default + + dosbin ipcad + + insinto /etc + insopts -m0600 + newins ipcad.conf.default ipcad.conf + + keepdir /var/ipcad/run + + doman ipcad.8 ipcad.conf.5 + + newinitd "${FILESDIR}"/ipcad.init ipcad + newconfd "${FILESDIR}"/ipcad.conf.d ipcad +} |