1 |
commit: 07a940b5aeb22abd665b8188cc592ee13a695494 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 27 05:17:07 2019 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 27 05:17:07 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07a940b5 |
7 |
|
8 |
net-analyzer/barnyard: drop old EAPI |
9 |
|
10 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
11 |
|
12 |
net-analyzer/barnyard/barnyard-0.2.0-r3.ebuild | 99 -------------------------- |
13 |
1 file changed, 99 deletions(-) |
14 |
|
15 |
diff --git a/net-analyzer/barnyard/barnyard-0.2.0-r3.ebuild b/net-analyzer/barnyard/barnyard-0.2.0-r3.ebuild |
16 |
deleted file mode 100644 |
17 |
index 52e010ccc6b..00000000000 |
18 |
--- a/net-analyzer/barnyard/barnyard-0.2.0-r3.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,99 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=2 |
25 |
- |
26 |
-inherit eutils autotools |
27 |
- |
28 |
-DESCRIPTION="Fast output system for Snort" |
29 |
-HOMEPAGE="https://sourceforge.net/projects/barnyard" |
30 |
-SRC_URI=" |
31 |
- mirror://sourceforge/barnyard/barnyard-${PV/_/-}.tar.gz |
32 |
- mirror://gentoo/${P}-patches.tar.bz2" |
33 |
- |
34 |
-SLOT="0" |
35 |
-LICENSE="QPL GPL-2" |
36 |
-KEYWORDS="~amd64 -sparc ~x86" |
37 |
-IUSE="mysql postgres sguil" |
38 |
- |
39 |
-DEPEND=" |
40 |
- net-libs/libpcap |
41 |
- postgres? ( dev-db/postgresql[server] ) |
42 |
- mysql? ( virtual/mysql ) |
43 |
- sguil? ( dev-lang/tcl:0 )" |
44 |
-RDEPEND="${DEPEND} |
45 |
- net-analyzer/snort" |
46 |
- |
47 |
-S="${WORKDIR}/${P/_/-}" |
48 |
- |
49 |
-src_prepare() { |
50 |
- epatch "${FILESDIR}/barnyard.64bit.diff" |
51 |
- if use sguil ; then |
52 |
- epatch "${WORKDIR}/${PV}-sguil_files.patch" |
53 |
- epatch "${WORKDIR}/${PV}-configure-in.patch" |
54 |
- cd "${S}/src/output-plugins" |
55 |
- epatch "${WORKDIR}/${PV}-op_plugbase.c.patch" |
56 |
- cd "${S}" |
57 |
- fi |
58 |
- eautoreconf |
59 |
-} |
60 |
- |
61 |
-src_configure() { |
62 |
- local myconf |
63 |
- if use sguil ; then |
64 |
- myconf="--enable-tcl" |
65 |
- fi |
66 |
- |
67 |
- econf \ |
68 |
- ${myconf} \ |
69 |
- --sysconfdir=/etc/snort \ |
70 |
- $(use_enable postgres) \ |
71 |
- $(use_enable mysql) |
72 |
-} |
73 |
-src_compile() { |
74 |
- emake || die "compile problem" |
75 |
-} |
76 |
- |
77 |
-src_install () { |
78 |
- |
79 |
- make DESTDIR="${D}" install || die |
80 |
- |
81 |
- dodoc docs/* |
82 |
- dodoc AUTHORS README |
83 |
- |
84 |
- keepdir /var/log/snort |
85 |
- keepdir /var/log/snort/archive |
86 |
- |
87 |
- insinto /etc/snort |
88 |
- newins etc/barnyard.conf barnyard.conf |
89 |
- if use sguil ; then |
90 |
- sed -i -e "/config hostname:/s%snorthost%$(hostname)%" \ |
91 |
- -e "/config interface/s:fxp0:eth0:" \ |
92 |
- -e "s:output alert_fast:#output alert_fast:" \ |
93 |
- -e "s:output log_dump:#output log_dump:" \ |
94 |
- "${D}/etc/snort/barnyard.conf" || die "sed failed" |
95 |
- fi |
96 |
- |
97 |
- newconfd "${FILESDIR}"/barnyard.confd barnyard |
98 |
- if use sguil ; then |
99 |
- sed -i -e s:/var/log/snort:/var/lib/sguil/$(hostname): \ |
100 |
- -e s:/var/run/barnyard.pid:/var/run/sguil/barnyard.pid: \ |
101 |
- "${D}/etc/conf.d/barnyard" || die "sed failed" |
102 |
- fi |
103 |
- |
104 |
- newinitd "${FILESDIR}"/barnyard.rc6 barnyard |
105 |
- if use sguil ; then |
106 |
- sed -i -e "/start-stop-daemon --start/s:--exec:-c sguil --exec:" \ |
107 |
- "${D}/etc/init.d/barnyard" || die "sed failed" |
108 |
- fi |
109 |
-} |
110 |
- |
111 |
-pkg_postinst() { |
112 |
- if use sguil ; then |
113 |
- elog |
114 |
- elog "Make sure to edit /etc/snort/barnyard.conf and uncomment the" |
115 |
- elog "sguil section along with supplying the appropriate database" |
116 |
- elog "information." |
117 |
- elog |
118 |
- fi |
119 |
-} |