name : openslp version : 2.0.0 release : 3 source : # The official repository has moved from SourceForge to GitHub. # No releases have been made since 2013, but there is an abundance of commits with fixes. # Therefore, the git source was used as the source code. - git|https://github.com/openslp-org/openslp.git : 1bc8dadd446ffca391422da6e924f1395c7008bc homepage : http://www.openslp.org license : BSD component : system.utils summary : Service Location Protocol (SLP) is an Internet Engineering Task Force (IETF) standards track protocol that provides a framework to allow networking applications to discover the existence, location, and configuration of networked services in enterprise networks. description: | Service Location Protocol (SLP) is an Internet Engineering Task Force (IETF) standards track protocol that provides a framework to allow networking applications to discover the existence, location, and configuration of networked services in enterprise networks. setup : | # The path in the official repository has become nested, a transition is required. cd openslp %apply_patches autoreconf -f -i find . -name "CVS" | xargs rm -rf %configure \ --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc/openslp \ --localstatedir=/var \ --enable-slpv1 \ --enable-slpv2-security \ --enable-async-api \ --disable-dependency-tracking \ --disable-static build : | cd openslp %make # Preparation of man pages gzip -c $pkgfiles/man/en/slptool.1 > slptool.1.gz.en gzip -c $pkgfiles/man/en/slpd.8 > slpd.8.gz.en gzip -c $pkgfiles/man/ru/slptool.1 > slptool.1.gz.ru gzip -c $pkgfiles/man/ru/slpd.8 > slpd.8.gz.ru install : | cd openslp %make_install install -Dm 00644 $pkgfiles/openslp.service $installdir/usr/lib/systemd/system/openslp.service install -Dm 00644 $pkgfiles/slp.pc $installdir/usr/lib64/pkgconfig/slp.pc install -Dm 00644 slptool.1.gz.en $installdir/usr/share/man/man1/slptool.1.gz install -Dm 00644 slpd.8.gz.en $installdir/usr/share/man/man8/slpd.8.gz install -Dm 00644 slptool.1.gz.ru $installdir/usr/share/man/ru/man1/slptool.1.gz install -Dm 00644 slpd.8.gz.ru $installdir/usr/share/man/ru/man8/slpd.8.gz install -dm00755 $installdir/usr/share/defaults/etc/ mv $installdir/etc/openslp $installdir/usr/share/defaults/etc/ rmdir $installdir/etc rmdir $installdir/var/log rmdir $installdir/var