1 |
jer 12/04/30 15:25:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sguil-server-0.8.0.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.10 net-analyzer/sguil-server/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sguil-server/ChangeLog?rev=1.10&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sguil-server/ChangeLog?rev=1.10&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sguil-server/ChangeLog?r1=1.9&r2=1.10 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/sguil-server/ChangeLog,v |
20 |
retrieving revision 1.9 |
21 |
retrieving revision 1.10 |
22 |
diff -u -r1.9 -r1.10 |
23 |
--- ChangeLog 8 Mar 2009 02:33:01 -0000 1.9 |
24 |
+++ ChangeLog 30 Apr 2012 15:25:17 -0000 1.10 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-analyzer/sguil-server |
27 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sguil-server/ChangeLog,v 1.9 2009/03/08 02:33:01 cla Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sguil-server/ChangeLog,v 1.10 2012/04/30 15:25:17 jer Exp $ |
31 |
+ |
32 |
+*sguil-server-0.8.0 (30 Apr 2012) |
33 |
+ |
34 |
+ 30 Apr 2012; Jeroen Roovers <jer@g.o> +sguil-server-0.8.0.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
08 Mar 2009; Dawid Węgliński <cla@g.o> |
38 |
sguil-server-0.6.1-r1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-analyzer/sguil-server/sguil-server-0.8.0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sguil-server/sguil-server-0.8.0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sguil-server/sguil-server-0.8.0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: sguil-server-0.8.0.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sguil-server/sguil-server-0.8.0.ebuild,v 1.1 2012/04/30 15:25:17 jer Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit eutils ssl-cert |
56 |
|
57 |
MY_PV="${PV/_p/p}" |
58 |
DESCRIPTION="Daemon for Sguil Network Security Monitoring" |
59 |
HOMEPAGE="http://sguil.sourceforge.net" |
60 |
SRC_URI="mirror://sourceforge/sguil/sguil-server-${MY_PV}.tar.gz" |
61 |
LICENSE="QPL" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~x86" |
64 |
IUSE="ssl" |
65 |
|
66 |
DEPEND=">=dev-lang/tcl-8.3[-threads] |
67 |
>=dev-tcltk/tclx-8.3 |
68 |
dev-tcltk/tcllib |
69 |
dev-tcltk/mysqltcl |
70 |
ssl? ( >=dev-tcltk/tls-1.4.1 )" |
71 |
RDEPEND="${DEPEND} |
72 |
net-analyzer/p0f |
73 |
net-analyzer/tcpflow |
74 |
net-misc/openssh" |
75 |
|
76 |
S="${WORKDIR}/sguil-${MY_PV}" |
77 |
|
78 |
pkg_setup() { |
79 |
enewgroup sguil |
80 |
enewuser sguil -1 -1 /var/lib/sguil sguil |
81 |
} |
82 |
|
83 |
src_prepare(){ |
84 |
sed -i server/sguild.conf \ |
85 |
-e 's:DEBUG 2:DEBUG 1:' -e 's:DAEMON 0:DAEMON 1:' \ |
86 |
-e 's:SGUILD_LIB_PATH ./lib:SGUILD_LIB_PATH /usr/lib/sguild:g' \ |
87 |
-e 's:/sguild_data/rules:/var/lib/sguil/rules:g' \ |
88 |
-e 's:/sguild_data/archive:/var/lib/sguil/archive:g' \ |
89 |
-e 's:/usr/lib/sguild:/usr/'$(get_libdir)'/sguild:g' \ |
90 |
|| die "sed failed" |
91 |
sed -i sguild \ |
92 |
-e 's:set VERSION "SGUIL-0.6.0":set VERSION "SGUIL-0.6.0p1":' \ |
93 |
|| die "sed failed" |
94 |
} |
95 |
|
96 |
src_install(){ |
97 |
dodoc server/sql_scripts/* |
98 |
dodoc doc/CHANGES doc/OPENSSL.README doc/USAGE doc/INSTALL \ |
99 |
doc/TODO doc/sguildb.dia |
100 |
|
101 |
insopts -m640 |
102 |
insinto /etc/sguil |
103 |
doins server/{sguild.email,sguild.users,sguild.conf,sguild.queries,sguild.access,autocat.conf} |
104 |
|
105 |
insinto /usr/$(get_libdir)/sguild |
106 |
doins server/lib/* |
107 |
dobin server/sguild |
108 |
newinitd "${FILESDIR}/sguild.initd" sguild |
109 |
newconfd "${FILESDIR}/sguild.confd" sguild |
110 |
|
111 |
if use ssl; then |
112 |
sed -i -e "s/#OPENSSL/OPENSSL/" "${D}/etc/conf.d/sguild" |
113 |
fi |
114 |
|
115 |
diropts -g sguil -o sguil |
116 |
keepdir /var/run/sguil \ |
117 |
/var/lib/sguil \ |
118 |
/var/lib/sguil/archive \ |
119 |
/var/lib/sguil/rules |
120 |
|
121 |
} |
122 |
|
123 |
pkg_postinst(){ |
124 |
if use ssl && ! [ -f "${ROOT}"/etc/sguil/sguild.key ]; then |
125 |
install_cert /etc/sguil/sguild |
126 |
fi |
127 |
|
128 |
chown -R sguil:sguil "${ROOT}"/etc/sguil/sguild.* |
129 |
chown -R sguil:sguil "${ROOT}"/usr/lib/sguild |
130 |
|
131 |
if [ -d "${ROOT}"/etc/snort/rules ] ; then |
132 |
ln -s /etc/snort/rules "${ROOT}"/var/lib/sguil/rules/${HOSTNAME} |
133 |
fi |
134 |
|
135 |
elog |
136 |
elog "Please customize the sguild configuration files in /etc/sguild before" |
137 |
elog "trying to run the daemon. Additionally you will need to setup the" |
138 |
elog "mysql database. See /usr/share/doc/${PF}/INSTALL.gz for information." |
139 |
elog "Please note that it is STRONGLY recommended to mount a separate" |
140 |
elog "filesystem at /var/lib/sguil for both space and performance reasons" |
141 |
elog "as a large amount of data will be kept in the directory structure" |
142 |
elog "underneath that top directory." |
143 |
elog |
144 |
elog "You should create the sguild db as per the install instructions in" |
145 |
elog "/usr/share/doc/${PF}/ and use the appropriate" |
146 |
elog "database setup script located in the same directory." |
147 |
|
148 |
elog |
149 |
} |