/[gentoo-x86]/net-misc/samplicator/samplicator-1.3.7_beta6.ebuild
Gentoo

Contents of /net-misc/samplicator/samplicator-1.3.7_beta6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 8 06:36:06 2014 UTC (5 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Inherit the user eclass for enewuser/etc...

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/samplicator/samplicator-1.3.7_beta6.ebuild,v 1.1 2013/03/03 17:02:10 tomwij Exp $
4
5 EAPI="5"
6
7 inherit eutils user
8
9 DESCRIPTION="UDP packets forwarder and duplicator"
10 HOMEPAGE="http://${PN}.googlecode.com/"
11 MY_P=${P/_/-}
12 SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"
13
14 LICENSE="Artistic GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17
18 S="${WORKDIR}/${MY_P}"
19
20 pkg_setup() {
21 # Add samplicator group and user to system
22 enewgroup ${PN}
23 enewuser ${PN} -1 -1 /etc/${PN} ${PN}
24 }
25
26 src_install() {
27 # Install and copy documentation
28 default
29
30 # Install Gentoo init script and its config
31 newinitd "${FILESDIR}"/${PN}.initd ${PN}
32 newconfd "${FILESDIR}"/${PN}.conf ${PN}
33
34 # Install manual page
35 doman "${FILESDIR}"/${PN}.8
36 }
37
38 pkg_postinst() {
39 ewarn ""
40 ewarn "Don't specify the receiver on the command line, because it will get all packets."
41 ewarn "Instead of this, specify it in a config file; defined in such way it will only get packets with a matching source."
42 ewarn ""
43
44 einfo "For every receiver type create a file in directory /etc/${PN} (see example below)"
45 einfo "and specify the path to it in variable CONFIG of the corresponding initscript config file in /etc/conf.d/"
46 einfo ""
47 einfo "Receiver config examples: "
48 einfo ""
49 einfo " /etc/${PN}/netflow:"
50 einfo " 10.0.0.0/255.0.0.0:1.1.1.1/9996 2.2.2.2/9996 3.3.3.3/9996"
51 einfo ""
52 einfo " /etc/${PN}/syslog:"
53 einfo " 10.0.0.0/255.255.0.0:2.2.2.2/514 3.3.3.3/514"
54 einfo ""
55 einfo " /etc/${PN}/snmp:"
56 einfo " 10.0.0.0/255.255.255.255:3.3.3.3/162"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20