1 |
commit: 8d5c8a631b3e112b0a420dffa3069ff2494320ac |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 26 07:36:31 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 26 07:39:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d5c8a63 |
7 |
|
8 |
net-analyzer/sguil-server: Remove last-rited pkg |
9 |
|
10 |
Closes: https://bugs.gentoo.org/741420 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/sguil-server/Manifest | 1 - |
14 |
net-analyzer/sguil-server/files/sguild.confd | 25 ----- |
15 |
net-analyzer/sguil-server/files/sguild.initd | 44 --------- |
16 |
net-analyzer/sguil-server/metadata.xml | 12 --- |
17 |
.../sguil-server/sguil-server-1.0.0.ebuild | 101 --------------------- |
18 |
profiles/package.mask | 1 - |
19 |
6 files changed, 184 deletions(-) |
20 |
|
21 |
diff --git a/net-analyzer/sguil-server/Manifest b/net-analyzer/sguil-server/Manifest |
22 |
deleted file mode 100644 |
23 |
index 6a6586972b7..00000000000 |
24 |
--- a/net-analyzer/sguil-server/Manifest |
25 |
+++ /dev/null |
26 |
@@ -1 +0,0 @@ |
27 |
-DIST sguil-1.0.0.tar.gz 892934 BLAKE2B 69459eed682d91a1b57ba08c141dd655dbbfaa0d9d2956e6a26065f1b6820307b0e0e4dcbcad89537eba7499aea38f81739c351246e3dd6c46cab46bdf0d054f SHA512 fc3007383f90c99a0ace3eeebac75864f9aa549676e784c7bf1d81222282e3a5a3d5290b121097ae3c027dee3dd35bbe8ac9dfede04dbd561edfd3948a0465ab |
28 |
|
29 |
diff --git a/net-analyzer/sguil-server/files/sguild.confd b/net-analyzer/sguil-server/files/sguild.confd |
30 |
deleted file mode 100644 |
31 |
index 216f6e60ad8..00000000000 |
32 |
--- a/net-analyzer/sguil-server/files/sguild.confd |
33 |
+++ /dev/null |
34 |
@@ -1,25 +0,0 @@ |
35 |
-# Config file for /etc/init.d/sguild |
36 |
-# Copyright 1999-2012 Gentoo Foundation |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-#PATH to the sguild config (sguild.conf) file. |
40 |
-CONF=/etc/sguil/sguild.conf |
41 |
- |
42 |
-#PATH to the sguild config (autocat.conf) file. |
43 |
-AUTOCAT=/etc/sguil/autocat.conf |
44 |
- |
45 |
-#PATH to the sguild global queries (sguild.queries) file. |
46 |
-QUERIES=/etc/sguil/sguild.queries |
47 |
- |
48 |
-#PATH to the sguild users (sguild.users) file. |
49 |
-USERS=/etc/sguil/sguild.users |
50 |
- |
51 |
-#PATH to the sguild access file |
52 |
-ACCESS=/etc/sguil/sguild.access |
53 |
- |
54 |
-#Directory that contains sguild.pem and sguild.key |
55 |
-#Uncomment to enable openssl connectivity |
56 |
-#OPENSSLPATH="/etc/sguil/" |
57 |
- |
58 |
-#For any other options you wish to add |
59 |
-#EXTRA_SGUILD_OPTS= |
60 |
|
61 |
diff --git a/net-analyzer/sguil-server/files/sguild.initd b/net-analyzer/sguil-server/files/sguild.initd |
62 |
deleted file mode 100644 |
63 |
index e4fec500feb..00000000000 |
64 |
--- a/net-analyzer/sguil-server/files/sguild.initd |
65 |
+++ /dev/null |
66 |
@@ -1,44 +0,0 @@ |
67 |
-#!/sbin/openrc-run |
68 |
-# Copyright 1999-2014 Gentoo Foundation |
69 |
-# Distributed under the terms of the GNU General Public License v2 |
70 |
- |
71 |
-[ -z "${CONF}" ] && CONF="/etc/sguil/sguild.conf" |
72 |
-[ -z "${AUTOCAT}" ] && AUTOCAT="/etc/sguil/autocat.conf" |
73 |
-[ -z "${QUERIES}" ] && QUERIES="/etc/sguil/sguild.queries" |
74 |
-[ -z "${USERS}" ] && USERS="/etc/sguil/sguild.users" |
75 |
-[ -z "${ACCESS}" ] && AUTOCAT="/etc/sguil/sguild.access" |
76 |
- |
77 |
-SGUILD_OPTS="-D -c ${CONF} -u ${USERS} -A ${ACCESS}" |
78 |
- |
79 |
-[ -n "${OPENSSLPATH}" ] && SGUILD_OPTS="${SGUILD_OPTS} -o -C ${OPENSSLPATH}" |
80 |
- |
81 |
-depend() { |
82 |
- need net |
83 |
- use mysql |
84 |
-} |
85 |
- |
86 |
-checkconfig() { |
87 |
- [ -f "${CONF}" ] || return 1 |
88 |
- [ -f "${AUTOCAT}" ] || return 1 |
89 |
- [ -f "${QUERIES}" ] || return 1 |
90 |
- [ -f "${USERS}" ] || return 1 |
91 |
- [ -f "${ACCESS}" ] || return 1 |
92 |
- if [ -n "${OPENSSLPATH}" ]; then |
93 |
- [ -f "${OPENSSLPATH}/sguild.key" ] || return 1 |
94 |
- [ -f "${OPENSSLPATH}/sguild.pem" ] || return 1 |
95 |
- fi |
96 |
-} |
97 |
- |
98 |
-start() { |
99 |
- checkconfig || return 1 |
100 |
- ebegin "Starting sguild" |
101 |
- start-stop-daemon --start --quiet -c sguil --exec /usr/bin/sguild \ |
102 |
- -- ${SGUILD_OPTS} ${EXTRA_SGUILD_OPTS} -D -P /run/sguild.pid |
103 |
- eend $? |
104 |
-} |
105 |
- |
106 |
-stop() { |
107 |
- ebegin "Stopping sguild" |
108 |
- start-stop-daemon --stop --quiet --pidfile /run/sguild.pid |
109 |
- eend $? |
110 |
-} |
111 |
|
112 |
diff --git a/net-analyzer/sguil-server/metadata.xml b/net-analyzer/sguil-server/metadata.xml |
113 |
deleted file mode 100644 |
114 |
index ca324d618d9..00000000000 |
115 |
--- a/net-analyzer/sguil-server/metadata.xml |
116 |
+++ /dev/null |
117 |
@@ -1,12 +0,0 @@ |
118 |
-<?xml version="1.0" encoding="UTF-8"?> |
119 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
120 |
-<pkgmetadata> |
121 |
- <maintainer type="project"> |
122 |
- <email>netmon@g.o</email> |
123 |
- <name>Gentoo network monitoring and analysis project</name> |
124 |
- </maintainer> |
125 |
- <upstream> |
126 |
- <remote-id type="github">bammv/sguil</remote-id> |
127 |
- <remote-id type="sourceforge">sguil</remote-id> |
128 |
- </upstream> |
129 |
-</pkgmetadata> |
130 |
|
131 |
diff --git a/net-analyzer/sguil-server/sguil-server-1.0.0.ebuild b/net-analyzer/sguil-server/sguil-server-1.0.0.ebuild |
132 |
deleted file mode 100644 |
133 |
index 08a35d0af33..00000000000 |
134 |
--- a/net-analyzer/sguil-server/sguil-server-1.0.0.ebuild |
135 |
+++ /dev/null |
136 |
@@ -1,101 +0,0 @@ |
137 |
-# Copyright 1999-2020 Gentoo Authors |
138 |
-# Distributed under the terms of the GNU General Public License v2 |
139 |
- |
140 |
-EAPI=6 |
141 |
-inherit ssl-cert user |
142 |
- |
143 |
-MY_PV="${PV/_p/p}" |
144 |
-DESCRIPTION="Daemon for Sguil Network Security Monitoring" |
145 |
-HOMEPAGE="https://github.com/bammv/sguil" |
146 |
-SRC_URI="https://github.com/bammv/sguil/archive/v${PV}.tar.gz -> ${P/-server}.tar.gz" |
147 |
- |
148 |
-LICENSE="GPL-2 QPL" |
149 |
-SLOT="0" |
150 |
-KEYWORDS="~amd64 ~x86" |
151 |
-IUSE="ssl" |
152 |
- |
153 |
-DEPEND=" |
154 |
- >=dev-lang/tcl-8.3:0=[-threads] |
155 |
- >=dev-tcltk/tclx-8.3 |
156 |
- dev-tcltk/tcllib |
157 |
- dev-tcltk/mysqltcl |
158 |
- ssl? ( >=dev-tcltk/tls-1.4.1 ) |
159 |
-" |
160 |
-RDEPEND=" |
161 |
- ${DEPEND} |
162 |
- net-analyzer/p0f |
163 |
- net-analyzer/tcpflow |
164 |
- net-misc/openssh |
165 |
-" |
166 |
- |
167 |
-S="${WORKDIR}/sguil-${MY_PV}" |
168 |
- |
169 |
-pkg_setup() { |
170 |
- enewgroup sguil |
171 |
- enewuser sguil -1 -1 /var/lib/sguil sguil |
172 |
-} |
173 |
- |
174 |
-src_prepare() { |
175 |
- default |
176 |
- sed -i \ |
177 |
- -e 's:DEBUG 2:DEBUG 1:' -e 's:DAEMON 0:DAEMON 1:' \ |
178 |
- -e 's:SGUILD_LIB_PATH ./lib:SGUILD_LIB_PATH /usr/'$(get_libdir)'/sguild:g' \ |
179 |
- -e 's:/sguild_data/rules:/var/lib/sguil/rules:g' \ |
180 |
- -e 's:/sguild_data/archive:/var/lib/sguil/archive:g' \ |
181 |
- server/sguild.conf || die |
182 |
-} |
183 |
- |
184 |
-src_install() { |
185 |
- dodoc server/sql_scripts/* |
186 |
- dodoc doc/CHANGES doc/OPENSSL.README doc/USAGE doc/INSTALL \ |
187 |
- doc/TODO doc/sguildb.dia |
188 |
- |
189 |
- insopts -m640 |
190 |
- insinto /etc/sguil |
191 |
- doins server/{sguild.email,sguild.users,sguild.conf,sguild.queries,sguild.access,autocat.conf} |
192 |
- |
193 |
- insinto /usr/$(get_libdir)/sguild |
194 |
- doins server/lib/* |
195 |
- dobin server/sguild |
196 |
- newinitd "${FILESDIR}/sguild.initd" sguild |
197 |
- newconfd "${FILESDIR}/sguild.confd" sguild |
198 |
- |
199 |
- if use ssl; then |
200 |
- sed -i -e "s/#OPENSSL/OPENSSL/" "${D}/etc/conf.d/sguild" |
201 |
- fi |
202 |
- |
203 |
- diropts -g sguil -o sguil |
204 |
- keepdir \ |
205 |
- /var/lib/sguil \ |
206 |
- /var/lib/sguil/archive \ |
207 |
- /var/lib/sguil/rules |
208 |
- |
209 |
-} |
210 |
- |
211 |
-pkg_postinst() { |
212 |
- if use ssl && ! [ -f "${ROOT}"/etc/sguil/sguild.key ]; then |
213 |
- install_cert /etc/sguil/sguild |
214 |
- fi |
215 |
- |
216 |
- chown -R sguil:sguil "${ROOT}"/etc/sguil/sguild.* |
217 |
- chown -R sguil:sguil "${ROOT}"/usr/lib/sguild |
218 |
- |
219 |
- if [ -d "${ROOT}"/etc/snort/rules ] ; then |
220 |
- ln -s /etc/snort/rules "${ROOT}"/var/lib/sguil/rules/${HOSTNAME} |
221 |
- fi |
222 |
- |
223 |
- elog |
224 |
- elog "Please customize the sguild configuration files in /etc/sguild before" |
225 |
- elog "trying to run the daemon. Additionally you will need to setup the" |
226 |
- elog "mysql database. See /usr/share/doc/${PF}/INSTALL.gz for information." |
227 |
- elog "Please note that it is STRONGLY recommended to mount a separate" |
228 |
- elog "filesystem at /var/lib/sguil for both space and performance reasons" |
229 |
- elog "as a large amount of data will be kept in the directory structure" |
230 |
- elog "underneath that top directory." |
231 |
- elog |
232 |
- elog "You should create the sguild db as per the install instructions in" |
233 |
- elog "/usr/share/doc/${PF}/ and use the appropriate" |
234 |
- elog "database setup script located in the same directory." |
235 |
- |
236 |
- elog |
237 |
-} |
238 |
|
239 |
diff --git a/profiles/package.mask b/profiles/package.mask |
240 |
index 3a68e7f4dc2..93aecca0920 100644 |
241 |
--- a/profiles/package.mask |
242 |
+++ b/profiles/package.mask |
243 |
@@ -240,7 +240,6 @@ net-voip/telepathy-haze |
244 |
# Removal in 30 days. Please find relevant bugs on tracker bug #694800. |
245 |
games-arcade/diameter |
246 |
games-board/gnome-hearts |
247 |
-net-analyzer/sguil-server |
248 |
|
249 |
# Michał Górny <mgorny@g.o> (2020-09-25) |
250 |
# PyPy3.7 alpha. Known to break a few packages. Masked until it |