Измненеие сборки версии 2.0.0
All checks were successful
Build / Build project (push) Successful in 57s

Исходный код взят с GitHub с последними актуальными коммитами.
Добавлена русскоязычная документация.
Пути к конфигурационным файлам заданы по умолчанию в /usr/share/defaults/etc/openslp, но могут переопределяться в /etc/openslp.
This commit is contained in:
Alexander Zhirov 2025-05-06 21:53:19 +03:00
parent 2ce0a0601c
commit af925eca6d
Signed by: alexander
GPG key ID: C8D8BE544A27C511
18 changed files with 413 additions and 213 deletions

View file

@ -1,8 +1,11 @@
name : openslp
version : 2.0.0
release : 1
release : 2
source :
- http://downloads.sf.net/openslp/openslp-2.0.0.tar.gz : 924337a2a8e5be043ebaea2a78365c7427ac6e9cee24610a0780808b2ba7579b
# 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 : f8dd97d68bdcf4af58d973d9eb97f4cddd149fe7
homepage : http://www.openslp.org
license : BSD
component : system.utils
@ -10,13 +13,10 @@ summary : Service Location Protocol (SLP) is an Internet Engineering Task For
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 : |
%patch -p1 < $pkgfiles/openslp-2.0.0-multicast-set.patch
%patch -p2 < $pkgfiles/openslp-2.0.0-notify-systemd-of-start-up.patch
%patch -p1 < $pkgfiles/openslp-2.0.0-null-pointer-deref.patch
%patch -p1 < $pkgfiles/openslp-2.0.0-openssl-1.1-fix.patch
%patch -p1 < $pkgfiles/openslp-2.0.0-cve-2016-7567.patch
%patch -p1 < $pkgfiles/openslp-2.0.0-cve-2017-17833.patch
%patch -p1 < $pkgfiles/openslp-2.0.0-cve-2019-5544.patch
# 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
@ -32,11 +32,31 @@ setup : |
--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/slpd.8.gz $installdir/usr/share/man/man8/slpd.8.gz
install -Dm 00644 $pkgfiles/slptool.1.gz $installdir/usr/share/man/man1/slptool.1.gz
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