summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/newsyslog/newsyslog-1.1.ebuild')
-rw-r--r--app-admin/newsyslog/newsyslog-1.1.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/app-admin/newsyslog/newsyslog-1.1.ebuild b/app-admin/newsyslog/newsyslog-1.1.ebuild
new file mode 100644
index 000000000000..0acc24bcd887
--- /dev/null
+++ b/app-admin/newsyslog/newsyslog-1.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="a highly configurable program for managing and archiving log files"
+HOMEPAGE="http://www.weird.com/~woods/projects/newsyslog.html"
+SRC_URI="ftp://ftp.weird.com/pub/local/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha ~amd64 hppa ~mips ppc ppc64 ~sparc x86"
+IUSE=""
+
+DEPEND="sys-apps/groff"
+RDEPEND="virtual/cron
+ app-arch/gzip"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/newsyslog-html.patch
+}
+
+src_compile() {
+ local myconf="--with-syslogd_pid=/var/run/syslog.pid"
+
+ has_version 'app-admin/syslog-ng' \
+ && myconf="--with-syslogd_pid=/var/run/syslog-ng.pid"
+
+ econf \
+ --with-gzip \
+ --with-newsyslog_conf=/etc/newsyslog.conf \
+ ${myconf} || die "econf failed"
+
+ emake || die
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ catmandir="${T}"/dont-install \
+ install || die "install failed"
+ dodoc newsyslog.conf AUTHORS ChangeLog INSTALL NEWS README.* ToDo
+}