diff options
author | Bruce A. Locke <blocke@gentoo.org> | 2001-07-24 21:21:54 +0000 |
---|---|---|
committer | Bruce A. Locke <blocke@gentoo.org> | 2001-07-24 21:21:54 +0000 |
commit | 89d4cbf0262bd64e0f60da9b182802a68fcfa5d9 (patch) | |
tree | d92feed8066578d62018d2bc61948bd7d5dbb67f | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-89d4cbf0262bd64e0f60da9b182802a68fcfa5d9.tar.gz gentoo-2-89d4cbf0262bd64e0f60da9b182802a68fcfa5d9.tar.bz2 gentoo-2-89d4cbf0262bd64e0f60da9b182802a68fcfa5d9.zip |
Adding Syslog-Ng... Committed into app-admin for now and can be moved into sys-apps later if we decide to use it by default
-rw-r--r-- | app-admin/syslog-ng/files/digest-syslog-ng-1.4.12 | 1 | ||||
-rw-r--r-- | app-admin/syslog-ng/files/syslog-ng | 27 | ||||
-rw-r--r-- | app-admin/syslog-ng/syslog-ng-1.4.12.ebuild | 50 |
3 files changed, 78 insertions, 0 deletions
diff --git a/app-admin/syslog-ng/files/digest-syslog-ng-1.4.12 b/app-admin/syslog-ng/files/digest-syslog-ng-1.4.12 new file mode 100644 index 000000000000..0b178f12b7b0 --- /dev/null +++ b/app-admin/syslog-ng/files/digest-syslog-ng-1.4.12 @@ -0,0 +1 @@ +MD5 b6d8722e83af9eb2967e3349db5a6182 syslog-ng-1.4.12.tar.gz diff --git a/app-admin/syslog-ng/files/syslog-ng b/app-admin/syslog-ng/files/syslog-ng new file mode 100644 index 000000000000..35df1f35223c --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng @@ -0,0 +1,27 @@ +#!/bin/sh +#RCUPDATE:1 2 3 4 5:19:This line is required for script management + +. /etc/rc.d/config/functions +. /etc/rc.d/config/basic + +SERVICE=syslog-ng +opts="start stop" + +start() { + ebegin "Starting syslog-ng" + start-stop-daemon --start --exec /usr/sbin/syslog-ng -- 1>&2 + retval=$? + eend $retval +} + +stop() { + ebegin "Stopping syslog-ng" + start-stop-daemon --stop --pidfile /var/run/syslog-ng.pid 1>&2 + retval=$? + eend $retval +} + +doservice ${@} + + + diff --git a/app-admin/syslog-ng/syslog-ng-1.4.12.ebuild b/app-admin/syslog-ng/syslog-ng-1.4.12.ebuild new file mode 100644 index 000000000000..04a95ce1b3b5 --- /dev/null +++ b/app-admin/syslog-ng/syslog-ng-1.4.12.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Bruce Locke <blocke@shivan.org> + +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Syslog-ng is a syslog replacement with advanced filtering features" +SRC_URI="http://www.balabit.hu/downloads/syslog-ng/1.4/${A}" +HOMEPAGE="http://www.balabit.hu/en/products/syslog-ng/" + +RDEPEND="virtual/glibc >=dev-libs/libol-0.2.23" +DEPEND="${RDEPEND} sys-devel/flex" + +src_compile() { + + try ./configure --host=${CHOST} --prefix=/usr + try make CFLAGS=\"${CFLAGS} -I/usr/include/libol -D_GNU_SOURCE\" ${MAKEOPTS} prefix=${D}/usr all + +} + +src_install() { + + try make prefix=${D}/usr install + + # make sure man pages are gzip'd + gzip ${D}/usr/man/man5/syslog-ng.conf.5 + gzip ${D}/usr/man/man8/syslog-ng.8 + + dodoc AUTHORS COPYING ChangeLog INSTALL NEWS PORTS README + dodoc doc/syslog-ng.conf.demo doc/syslog-ng.conf.sample + + # documentation in various forms + dodir /usr/share/doc/${P}/sgml + insinto /usr/share/doc/${P}/sgml + doins doc/sgml/syslog-ng.dvi doc/sgml/syslog-ng.ps doc/sgml/syslog-ng.sgml doc/sgml/syslog-ng.txt + gzip ${D}/usr/share/doc/${P}/sgml/* + doins doc/sgml/syslog-ng.html.tar.gz + + # configuration file + dodir /etc/syslog-ng + cp doc/syslog-ng.conf.sample ${D}/etc/syslog-ng/syslog-ng.conf + + # init.d file + dodir /etc/rc.d/init.d + cp ${FILESDIR}/syslog-ng ${D}/etc/rc.d/init.d + +} + + + |