blob: 3ec4f440ac154c2f52b2dac3d4d3ea1045aa40d3 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $Id: PKGBUILD 72514 2012-06-16 08:04:35Z bpiotrowski $
# 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=1
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)
md5sums=('528b62c33454b33537c3bf2366977bdb'
'4ae90bee9fc78014a889a5072effb735')
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 -D $srcdir/rc.d $pkgdir/etc/rc.d/uptimed
}
|