summaryrefslogtreecommitdiff
path: root/extra/metalog/PKGBUILD
blob: 8dd618cb8915d73c25e3b13f833fff628fe7ce62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 156093 2012-04-13 11:44:31Z juergen $
# Maintainer: juergen <juergen@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=metalog
pkgver=2.0
pkgrel=2
pkgdesc="Metalog is a modern replacement for syslogd and klogd"
url="http://metalog.sourceforge.net"
license=('GPL')
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'
         '9e73301a7f0be291749ee30638527cb9'
         '86bccd5a02996921e29eff8a0394d11f')

build() {
  cd $srcdir/$pkgname-2
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd $srcdir/$pkgname-2
  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
}