1
0
forked from ports/contrib

uptimed: taken over

This commit is contained in:
Danny Rawlins 2007-09-13 00:44:17 +10:00
parent fc86e46a1e
commit 799b98735e

View File

@ -1,6 +1,8 @@
# Description: Uptime record tracking daemon
# URL: http://podgorny.cz/uptimed/
# Maintainer: Mark Rosenstand, mark at borkware dot net
# 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:
name=uptimed
version=0.3.11
@ -10,18 +12,24 @@ source=(http://podgorny.cz/uptimed/releases/uptimed-$version.tar.bz2
build() {
cd uptimed-$version
sed -i s:/var/spool/uptimed:'$(DESTDIR)&': Makefile.in
sed -i etc/uptimed.conf-dist \
-e /^SENDMAIL=/s:lib:sbin: \
-e s:^PIDFILE=.*:'&.pid':
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
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/man \
--disable-static
make
make DESTDIR=$PKG install
mv $PKG/etc/uptimed.conf-dist $PKG/etc/uptimed.conf
install -d $PKG/etc/rc.d
install ../rc.uptimed $PKG/etc/rc.d/uptimed
install -D ../rc.uptimed $PKG/etc/rc.d/uptimed
}