Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/logsurfer+/, app-admin/logsurfer+/files/
Date: Mon, 25 Apr 2016 23:10:05
Message-Id: 1461625787.e1202ee81331617f5ca654c42deb56bfc9362bc6.wizardedit@gentoo
1 commit: e1202ee81331617f5ca654c42deb56bfc9362bc6
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 25 23:03:35 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 25 23:09:47 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1202ee8
7
8 app-admin/logsurfer+: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573846
11
12 app-admin/logsurfer+/files/logsurfer-1.8.initd | 4 +--
13 app-admin/logsurfer+/logsurfer+-1.8-r2.ebuild | 41 ++++++++++++++++++++++++++
14 2 files changed, 43 insertions(+), 2 deletions(-)
15
16 diff --git a/app-admin/logsurfer+/files/logsurfer-1.8.initd b/app-admin/logsurfer+/files/logsurfer-1.8.initd
17 index b75c26e..328c233 100644
18 --- a/app-admin/logsurfer+/files/logsurfer-1.8.initd
19 +++ b/app-admin/logsurfer+/files/logsurfer-1.8.initd
20 @@ -1,5 +1,5 @@
21 -#!/sbin/runscript
22 -# Copyright 1999-2011 Gentoo Foundation
23 +#!/sbin/openrc-run
24 +# Copyright 1999-2016 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 # $Id$
27
28
29 diff --git a/app-admin/logsurfer+/logsurfer+-1.8-r2.ebuild b/app-admin/logsurfer+/logsurfer+-1.8-r2.ebuild
30 new file mode 100644
31 index 0000000..eb5a99a
32 --- /dev/null
33 +++ b/app-admin/logsurfer+/logsurfer+-1.8-r2.ebuild
34 @@ -0,0 +1,41 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI="6"
40 +inherit toolchain-funcs user
41 +
42 +MY_P="logsurfer-${PV}"
43 +DESCRIPTION="Real Time Log Monitoring and Alerting"
44 +HOMEPAGE="http://www.crypt.gen.nz/logsurfer/"
45 +SRC_URI="http://kerryt.orcon.net.nz/${MY_P}.tar.gz
46 + http://www.crypt.gen.nz/logsurfer/${MY_P}.tar.gz"
47 +
48 +LICENSE="freedist GPL-2+"
49 +SLOT="0"
50 +KEYWORDS="amd64 x86"
51 +IUSE=""
52 +RESTRICT="bindist" #444330
53 +
54 +S="${WORKDIR}/${MY_P}"
55 +
56 +src_configure() {
57 + econf --with-etcdir=/etc
58 +}
59 +
60 +src_compile() {
61 + emake CC="$(tc-getCC)"
62 +}
63 +
64 +src_install() {
65 + dobin src/logsurfer
66 + doman man/logsurfer.1 man/logsurfer.conf.4
67 +
68 + newinitd "${FILESDIR}"/logsurfer-1.8.initd logsurfer
69 + newconfd "${FILESDIR}"/logsurfer.confd logsurfer
70 + dodoc ChangeLog README TODO
71 +}
72 +
73 +pkg_postinst() {
74 + enewuser logsurfer -1 -1 -1 daemon
75 +}