# $Id$ PNAME="openslp" PVER="2.0.0" PBUILD="r1" PCAT="net-libs" DESCRIPTION="An open-source implementation of Service Location Protocol." HOMEPAGE="http://www.openslp.org/" DEPEND=">= dev-libs/openssl-1.0.1" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools systemd msetfeature "!check" SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/slpd.service mirror://${PNAME}/multicast_route_set.sh ) UP2DATE="updatecmd ${HOMEPAGE} | grep 'current.*stable'| sed 's:.*OpenSLP\ \(.*\)\ \ .*(.*:\1:'" src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # systemd minstallunit slpd.service || die # systemd helper script minstallexec -s multicast_route_set.sh $(mget-systemd-util-dir)/multicast_route_set || die minstalldocs AUTHORS ChangeLog FAQ NEWS README* THANKS || die } postinstall() { mstartunit slpd.service } postremove() { mstopunit slpd.service }