From 777466db27694f0cad10a7159ba66f2a2b39a516 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 5 Oct 2012 01:33:02 -0700 Subject: Fri Oct 5 01:33:01 PDT 2012 --- extra/metalog/PKGBUILD | 20 ++++++++++++-------- extra/metalog/metalog.service | 9 +++++++++ 2 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 extra/metalog/metalog.service (limited to 'extra/metalog') diff --git a/extra/metalog/PKGBUILD b/extra/metalog/PKGBUILD index 8dd618cb8..a513b3c66 100644 --- a/extra/metalog/PKGBUILD +++ b/extra/metalog/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 156093 2012-04-13 11:44:31Z juergen $ +# $Id: PKGBUILD 167973 2012-10-04 13:24:41Z juergen $ # Maintainer: juergen # Contributor: Tom Newsom pkgname=metalog -pkgver=2.0 -pkgrel=2 +pkgver=3.0 +pkgrel=0 pkgdesc="Metalog is a modern replacement for syslogd and klogd" url="http://metalog.sourceforge.net" license=('GPL') @@ -12,21 +12,25 @@ arch=('i686' 'x86_64') depends=('pcre') provides=('logger') backup=('etc/metalog.conf' 'etc/conf.d/metalog') -source=("http://sourceforge.net/projects/metalog/files/metalog-2.tar.xz/download" 'metalog' 'metalog.confd') -md5sums=('e948d10d780205eae17645c89aee1361' +source=("http://sourceforge.net/projects/metalog/files/metalog-3.tar.xz/download" 'metalog' 'metalog.confd' 'metalog.service') +md5sums=('6fe404e49764fa24108fd090417bacb5' '9e73301a7f0be291749ee30638527cb9' - '86bccd5a02996921e29eff8a0394d11f') + '86bccd5a02996921e29eff8a0394d11f' + 'f005e6970c25bfdaf0596791e9135f98') build() { - cd $srcdir/$pkgname-2 + cd $srcdir/$pkgname-3 ./configure --prefix=/usr --sysconfdir=/etc make } package() { - cd $srcdir/$pkgname-2 + cd $srcdir/$pkgname-3 make DESTDIR=$pkgdir install install -D -m755 $srcdir/metalog $pkgdir/etc/rc.d/metalog install -D -m644 $srcdir/metalog.confd $pkgdir/etc/conf.d/metalog install -D -m644 metalog.conf $pkgdir/etc/metalog.conf + + install -d "${pkgdir}"/usr/lib/systemd/system + install -Dm644 "${srcdir}"/metalog.service "${pkgdir}"/usr/lib/systemd/system/ } diff --git a/extra/metalog/metalog.service b/extra/metalog/metalog.service new file mode 100644 index 000000000..5982c8804 --- /dev/null +++ b/extra/metalog/metalog.service @@ -0,0 +1,9 @@ +[Unit] +Description=System Logger Daemon + +[Service] +ExecStart=/usr/sbin/metalog + +[Install] +WantedBy=multi-user.target +Alias=syslog.service -- cgit v1.2.3-54-g00ecf