description A network monitoring daemon.
long_description nefu monitors network services and reports outages. \
Working from a description of the network \
topography, nefu's algorithm prevents "false alarms" \
in the event of a network outage due to a dependency \
homepage http://rsug.itd.umich.edu/software/nefu/
master_sites ${homepage}files/
checksums md5 f0953b21cdb5eb327e40d4b215110b71 \
sha1 799d5573ab6d30f32cdc36bfee09a04de0f33bf8 \
rmd160 712b637b3c9126c2a218f5ec0eb74497f7e6ea59
depends_build bin:bison:bison
depends_lib path:lib/libssl.dylib:openssl port:zlib
patchfiles patch-Makefile.in.diff \
patch-libsnet-aclocal.m4.diff \
# This really should be in a post-autoconf hook, but we don't have one yet.
system "cd ${worksrcpath}/libsnet && autoconf"
configure.args --mandir=${prefix}/share/man \
--with-html=${prefix}/share/${name}/public_html \
--with-shelltests=${prefix}/share/${name}/shelltests
build.args DEFS="-DBIND_8_COMPAT -DLDAP_DEPRECATED"
system "cd ${worksrcpath}/TDK && ${build.cmd}"
set gid [existsgroup nefu]
adduser nefu gid=${gid} realname=Nefu\ Monitor home=${prefix}/share/${name}
xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/public_html
destroot.keepdirs ${destroot}${prefix}/share/${name}/shelltests
xinstall -d -m 0755 ${destroot}${prefix}/etc
xinstall -m 0644 ${filespath}/nefu.conf.in \
${destroot}${prefix}/etc/nefu.conf-dist
set hostname [exec hostname]
reinplace "s%__HOSTNAME%${hostname}%" \
${destroot}${prefix}/etc/nefu.conf-dist
# nefu start/stop rc script (if non-Darwin)
if {${os.platform} ne "darwin"} {