forked from ports/contrib
36 lines
785 B
Plaintext
36 lines
785 B
Plaintext
# Description: Uptime record tracking daemon.
|
|
# URL: http://podgorny.cz/uptimed/
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
|
# Packager: Mark Rosenstand, mark at borkware dot net
|
|
# Depends on:
|
|
|
|
name=uptimed
|
|
version=0.3.12
|
|
release=1
|
|
source=(http://podgorny.cz/uptimed/releases/uptimed-$version.tar.bz2
|
|
rc.uptimed)
|
|
|
|
build() {
|
|
cd uptimed-$version
|
|
|
|
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 -m 0755 $SRC/rc.uptimed $PKG/etc/rc.d/uptimed
|
|
}
|
|
|