contrib/uptimed/Pkgfile

36 lines
787 B
Plaintext
Raw Normal View History

2007-09-12 16:44:17 +02:00
# Description: Uptime record tracking daemon.
# URL: http://podgorny.cz/uptimed/
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
# Packager: Mark Rosenstand, mark at borkware dot net
# Depends on:
2006-11-03 18:41:32 +01:00
name=uptimed
2007-11-04 03:21:03 +01:00
version=0.3.12
2006-11-03 18:41:32 +01:00
release=1
source=(http://podgorny.cz/uptimed/releases/uptimed-$version.tar.bz2
rc.uptimed)
build() {
cd uptimed-$version
2007-09-12 16:44:17 +02:00
sed -i -e "s|/var/spool/uptimed|'\$(DESTDIR)&'|" Makefile.in
sed -i \
-e '/^SENDMAIL=/s|lib|sbin|' \
-e "s|^PIDFILE=.*|'&.pid'|" \
etc/uptimed.conf-dist
2007-01-06 21:45:24 +01:00
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/man \
--disable-static
2007-09-12 16:44:17 +02:00
2006-11-03 18:41:32 +01:00
make
make DESTDIR=$PKG install
2007-09-12 16:44:17 +02:00
2006-11-03 18:41:32 +01:00
mv $PKG/etc/uptimed.conf-dist $PKG/etc/uptimed.conf
2007-11-04 03:21:03 +01:00
install -D -m 0755 $SRC/rc.uptimed $PKG/etc/rc.d/uptimed
2006-11-03 18:41:32 +01:00
}
2007-09-12 16:44:17 +02:00