name : openslp version : 2.0.0 release : 7 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. 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 # The `FORTIFY_SOURCE` optimization flag disrupts the service's stability, so the build is performed without it. export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}" %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 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 man pages install -Dm 00644 $pkgfiles/man/en/slptool.1 $installdir/usr/share/man/man1/slptool.1 install -Dm 00644 $pkgfiles/man/en/slpd.8 $installdir/usr/share/man/man8/slpd.8 install -Dm 00644 $pkgfiles/man/ru/slptool.1 $installdir/usr/share/man/ru/man1/slptool.1 install -Dm 00644 $pkgfiles/man/ru/slpd.8 $installdir/usr/share/man/ru/man8/slpd.8 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