1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="UDP packets forwarder and duplicator"
9 HOMEPAGE="https://github.com/sleinen/${PN}"
10 SRC_URI="https://github.com/sleinen/${PN}/releases/download/v${PV}/${P}.tar.gz"
12 LICENSE="Artistic GPL-2"
14 KEYWORDS="~amd64 ~x86"
17 # Add samplicator group and user to system
19 enewuser ${PN} -1 -1 /etc/${PN} ${PN}
23 # Install and copy documentation
26 # Install Gentoo init script and its config
27 newinitd "${FILESDIR}"/${PN}.initd ${PN}
28 newconfd "${FILESDIR}"/${PN}.confd ${PN}
31 doman "${FILESDIR}"/${PN}.8
36 ewarn "Don't specify the receiver on the command line, because it will get all packets."
37 ewarn "Instead of this, specify it in a config file; defined in such way it will only get packets with a matching source."
40 einfo "For every receiver type create a file in directory /etc/${PN} (see example below)"
41 einfo "and specify the path to it in variable CONFIG of the corresponding initscript config file in /etc/conf.d/"
43 einfo "Receiver config examples: "
45 einfo " /etc/${PN}/netflow:"
46 einfo " 10.0.0.0/255.0.0.0:1.1.1.1/9996 2.2.2.2/9996 3.3.3.3/9996"
48 einfo " /etc/${PN}/syslog:"
49 einfo " 10.0.0.0/255.255.0.0:2.2.2.2/514 3.3.3.3/514"
51 einfo " /etc/${PN}/snmp:"
52 einfo " 10.0.0.0/255.255.255.255:3.3.3.3/162"