summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-04-25 18:03:35 -0500
committerAustin English <wizardedit@gentoo.org>2016-04-25 18:09:47 -0500
commite1202ee81331617f5ca654c42deb56bfc9362bc6 (patch)
treed2b3b7698ff8b51a16c0e26ae6b2950896e8b236 /app-admin/logsurfer+/logsurfer+-1.8-r2.ebuild
parentdev-util/jenkins-bin: Version bump to 2.0 (diff)
downloadgentoo-e1202ee81331617f5ca654c42deb56bfc9362bc6.tar.gz
gentoo-e1202ee81331617f5ca654c42deb56bfc9362bc6.tar.bz2
gentoo-e1202ee81331617f5ca654c42deb56bfc9362bc6.zip
app-admin/logsurfer+: use #!/sbin/openrc-run instead of #!/sbin/runscript
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573846
Diffstat (limited to 'app-admin/logsurfer+/logsurfer+-1.8-r2.ebuild')
-rw-r--r--app-admin/logsurfer+/logsurfer+-1.8-r2.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/app-admin/logsurfer+/logsurfer+-1.8-r2.ebuild b/app-admin/logsurfer+/logsurfer+-1.8-r2.ebuild
new file mode 100644
index 000000000000..eb5a99a5a194
--- /dev/null
+++ b/app-admin/logsurfer+/logsurfer+-1.8-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit toolchain-funcs user
+
+MY_P="logsurfer-${PV}"
+DESCRIPTION="Real Time Log Monitoring and Alerting"
+HOMEPAGE="http://www.crypt.gen.nz/logsurfer/"
+SRC_URI="http://kerryt.orcon.net.nz/${MY_P}.tar.gz
+ http://www.crypt.gen.nz/logsurfer/${MY_P}.tar.gz"
+
+LICENSE="freedist GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="bindist" #444330
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ econf --with-etcdir=/etc
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin src/logsurfer
+ doman man/logsurfer.1 man/logsurfer.conf.4
+
+ newinitd "${FILESDIR}"/logsurfer-1.8.initd logsurfer
+ newconfd "${FILESDIR}"/logsurfer.confd logsurfer
+ dodoc ChangeLog README TODO
+}
+
+pkg_postinst() {
+ enewuser logsurfer -1 -1 -1 daemon
+}