mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-28 23:21:53 +00:00
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
|
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
||
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||
|
# Maintainer: Tom Killian <tomk@runbox.com>
|
||
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
||
|
|
||
|
pkgname=uptimed
|
||
|
pkgver=0.3.16
|
||
|
pkgrel=2
|
||
|
pkgdesc="A system uptime record daemon"
|
||
|
arch=(i686 x86_64)
|
||
|
install=$pkgname.install
|
||
|
url="http://podgorny.cz/uptimed/"
|
||
|
license=('GPL')
|
||
|
depends=('glibc')
|
||
|
backup=(etc/uptimed.conf)
|
||
|
source=(http://podgorny.cz/$pkgname/releases/$pkgname-$pkgver.tar.bz2
|
||
|
uptimed)
|
||
|
md5sums=('f87ec2cc39039239004afa542cf99c59'
|
||
|
'4ae90bee9fc78014a889a5072effb735')
|
||
|
|
||
|
build() {
|
||
|
cd $startdir/src/$pkgname-$pkgver
|
||
|
|
||
|
# Change log path to Arch standard
|
||
|
for M in `ls M*`; do
|
||
|
sed -i "s|/var/spool/uptimed|$startdir/pkg/var/log/uptimed|" $M
|
||
|
done
|
||
|
sed -i 's|spool|log|' libuptimed/urec.h
|
||
|
|
||
|
autoreconf
|
||
|
|
||
|
./configure --prefix=/usr --sysconfdir=/etc
|
||
|
|
||
|
make || return 1
|
||
|
make prefix=$startdir/pkg/usr sysconfdir=$startdir/pkg/etc install
|
||
|
|
||
|
mv $startdir/pkg/etc/uptimed.conf-dist \
|
||
|
$startdir/pkg/etc/uptimed.conf
|
||
|
install -D ../uptimed $startdir/pkg/etc/rc.d/uptimed
|
||
|
find $startdir/pkg -name '*.la' -exec rm {} \;
|
||
|
}
|