blob: c9142f46e74f5e2bcf007a141b4e50da55793842 (
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
46
47
48
49
50
51
|
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=uptimed
pkgver=0.3.16
pkgrel=0
pkgdesc="Utility for keeping track of uptime records"
url="http://podgorny.cz/moin/Uptimed"
arch="all"
license="GPL"
depends=
makedepends="automake autoconf libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="
http://podgorny.cz/uptimed/releases/$pkgname-$pkgver.tar.bz2
uptimed.initd
uptimed.confd
"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
autoreconf
libtoolize
}
build() {
cd "$_builddir"
./configure --prefix=/usr --sysconfdir=/etc
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
install -m644 -D "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
}
md5sums="f87ec2cc39039239004afa542cf99c59 uptimed-0.3.16.tar.bz2
b9776cc0245666122dc9d745fcba3245 uptimed.initd
f648724df795b81afdcc3484258cfd25 uptimed.confd"
|