Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/greenbone-security-assistant: greenbone-security-assistant-5.0.3-r1.ebuild ChangeLog
Date: Wed, 01 Oct 2014 09:33:16
Message-Id: 20141001093311.5583C6A87@oystercatcher.gentoo.org
1 jlec 14/10/01 09:33:11
2
3 Modified: ChangeLog
4 Added: greenbone-security-assistant-5.0.3-r1.ebuild
5 Log:
6 net-analyzer/greenbone-security-assistant: Add systemd support
7
8 (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
9
10 Revision Changes Path
11 1.9 net-analyzer/greenbone-security-assistant/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/ChangeLog?rev=1.9&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/ChangeLog?rev=1.9&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/ChangeLog?r1=1.8&r2=1.9
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/greenbone-security-assistant/ChangeLog,v
20 retrieving revision 1.8
21 retrieving revision 1.9
22 diff -u -r1.8 -r1.9
23 --- ChangeLog 28 Sep 2014 18:23:34 -0000 1.8
24 +++ ChangeLog 1 Oct 2014 09:33:11 -0000 1.9
25 @@ -1,6 +1,15 @@
26 # ChangeLog for net-analyzer/greenbone-security-assistant
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/greenbone-security-assistant/ChangeLog,v 1.8 2014/09/28 18:23:34 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/greenbone-security-assistant/ChangeLog,v 1.9 2014/10/01 09:33:11 jlec Exp $
30 +
31 +*greenbone-security-assistant-5.0.3-r1 (01 Oct 2014)
32 +
33 + 01 Oct 2014; Justin Lecher <jlec@g.o>
34 + +greenbone-security-assistant-5.0.3-r1.ebuild,
35 + +files/greenbone-security-assistant-5.0.3-run.patch, +files/gsad.init,
36 + +files/gsad.logrotate, +files/gsad.service, +files/gsad.tmpfiles.d,
37 + +files/gsad-daemon.conf:
38 + Add systemd support
39
40 *greenbone-security-assistant-5.0.3 (28 Sep 2014)
41
42
43
44
45 1.1 net-analyzer/greenbone-security-assistant/greenbone-security-assistant-5.0.3-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-5.0.3-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-5.0.3-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: greenbone-security-assistant-5.0.3-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-5.0.3-r1.ebuild,v 1.1 2014/10/01 09:33:11 jlec Exp $
55
56 EAPI=5
57
58 inherit cmake-utils systemd
59
60 MY_PN=gsad
61
62 DESCRIPTION="Greenbone Security Assistant for openvas"
63 HOMEPAGE="http://www.openvas.org/"
64 SRC_URI="http://wald.intevation.org/frs/download.php/1734/${P}.tar.gz"
65
66 SLOT="0"
67 LICENSE="GPL-2"
68 KEYWORDS="~amd64 ~arm ~x86"
69 IUSE=""
70
71 RDEPEND="
72 >=net-analyzer/openvas-libraries-7.0.4
73 dev-libs/libxslt
74 net-libs/libmicrohttpd[messages]"
75 DEPEND="${RDEPEND}
76 virtual/pkgconfig"
77
78 PATCHES=(
79 "${FILESDIR}"/${P}-run.patch
80 )
81
82 src_prepare() {
83 sed \
84 -e '/^install.*OPENVAS_CACHE_DIR.*/d' \
85 -i CMakeLists.txt || die
86 cmake-utils_src_prepare
87 }
88
89 src_configure() {
90 local mycmakeargs=(
91 "-DLOCALSTATEDIR=${EPREFIX}/var"
92 "-DSYSCONFDIR=${EPREFIX}/etc"
93 )
94 cmake-utils_src_configure
95 }
96
97 src_install() {
98 cmake-utils_src_install
99 newinitd "${FILESDIR}"/${MY_PN}.init ${MY_PN}
100
101 insinto /etc/openvas
102 doins "${FILESDIR}"/${MY_PN}-daemon.conf
103 dosym ../openvas/${MY_PN}-daemon.conf /etc/conf.d/${PN}
104
105 insinto /etc/logrotate.d
106 doins "${FILESDIR}"/${MY_PN}.logrotate
107
108 systemd_newtmpfilesd "${FILESDIR}"/${MY_PN}.tmpfiles.d ${MY_PN}.conf
109 systemd_dounit "${FILESDIR}"/${MY_PN}.service
110 }
111
112 pkg_postinst() {
113 elog "To use ${MY_PN}, you first need to:"
114 elog "1. Call 'openvas-nvt-sync' to download/update plugins"
115 elog "2. Call 'openvas-mkcert' to generate a server certificate"
116 }