diff options
author | root <root@rshg054.dnsready.net> | 2012-06-18 00:01:40 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-06-18 00:01:40 +0000 |
commit | 0838a7ed482f29ddf71cf05e7ec6cf7c2728ce34 (patch) | |
tree | c7eab7aecb6ae497d23cfa7074bffd060d5eb8fe /community-testing/uptimed/PKGBUILD | |
parent | 61f450a3578b7e51c337e1a687c0cef2bc07ff35 (diff) |
Mon Jun 18 00:01:40 UTC 2012
Diffstat (limited to 'community-testing/uptimed/PKGBUILD')
-rw-r--r-- | community-testing/uptimed/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/community-testing/uptimed/PKGBUILD b/community-testing/uptimed/PKGBUILD new file mode 100644 index 000000000..a1b63299e --- /dev/null +++ b/community-testing/uptimed/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 72563 2012-06-16 17:11:23Z dreisner $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> +# Contributor: Tom Killian <tomk@runbox.com> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +pkgname=uptimed +pkgver=0.3.17 +pkgrel=2 +pkgdesc="A system uptime record daemon" +arch=(i686 x86_64) +url="http://podgorny.cz/uptimed/" +license=('GPL') +depends=('glibc' 'bash') +backup=(etc/uptimed.conf) +options=('!libtool') +install=$pkgname.install +source=(http://podgorny.cz/$pkgname/releases/$pkgname-$pkgver.tar.bz2 + rc.d + service) +md5sums=('528b62c33454b33537c3bf2366977bdb' + '4ae90bee9fc78014a889a5072effb735' + '657102b06613ddb9811427bee1973c6b') + +build() { + cd $srcdir/$pkgname-$pkgver + + # Change log path to Arch standard + for M in `ls M*`; do + sed -i "s|/var/spool/uptimed|$pkgdir/var/log/uptimed|" $M + done + sed -i 's|spool|log|' libuptimed/urec.h + + autoreconf + libtoolize --force + + ./configure --prefix=/usr --sysconfdir=/etc + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make prefix=$pkgdir/usr sysconfdir=$pkgdir/etc install + + mv $pkgdir/etc/uptimed.conf-dist $pkgdir/etc/uptimed.conf + install -Dm755 $srcdir/rc.d $pkgdir/etc/rc.d/uptimed + install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/uptimed.service +} |