Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=8f05208120a9c87c236111d7dd6fc4cfdb94f5bc

commit 8f05208120a9c87c236111d7dd6fc4cfdb94f5bc
Author: DeX77 <[email protected]>
Date:   Wed Apr 22 14:01:26 2015 +0200

openslp-2.0.0-1-x86_64

* take maintainership
* version bump
* build cleanups

diff --git a/source/network/openslp/FrugalBuild 
b/source/network/openslp/FrugalBuild
index dd722c2..8529a25 100644
--- a/source/network/openslp/FrugalBuild
+++ b/source/network/openslp/FrugalBuild
@@ -1,30 +1,37 @@
# Compiling Time: 0.58 SBU
-# Maintainer: crazy <[email protected]>
+# Maintainer: DeX77 <[email protected]>
+# Contributor: crazy <[email protected]>
# Contributor: Miklos Nemeth <[email protected]>

+options+=('asneeded')
+
pkgname=openslp
-pkgver=1.2.1
-pkgrel=3
+pkgver=2.0.0
+pkgrel=1
pkgdesc="Service Location Protocol."
depends=('openssl>=1.0.0' 'glibc')
+makedepends=('doxygen')
backup=(etc/{slp.conf,spl.reg,slp.spi})
groups=('network')
archs=('i686' 'x86_64')
-Finclude sourceforge
+_F_systemd_units="openslp="
+Finclude sourceforge systemd
url="http://www.openslp.org/";
-sha1sums=('47ab19154084d2b467f09525f5351e9ab7193cf9')
-
-build()
-{
-        Fcd
-        Fconf --enable-slpv2-security \
-               --with-gnu-ld
-        for noO3 in `find . -iname Makefile`
-        do
-                Fsed "-O3" "" $noO3
-        done
-        make || return 1
-        Fmakeinstall
-}
+source=("${source[@]}" "$pkgname.service")
+sha1sums=('e4630bfb986cdffab6bb829b37e9340c9152d838' \
+          '47686104356a5aeb47b53d35d032b3f123112bc0')
+Fconfopts="--enable-slpv1 --enable-slpv2-security"

# optimization OK
+
+build(){
+       Fcd
+       mkdir -p doc/html || Fdie
+       Fsed '$(datadir)/doc' '$(docdir)' doc/Makefile.in
+       Fmake
+       Fmakeinstall all docs
+       make DESTDIR="${Fdestdir}" INSTALL_DATA="cp -r" install-docs || Fdie
+       Frm usr/share/doc/openslp-$pkgver/openslp-doxy-$pkgver.tar.gz
+
+       Ffile /lib/systemd/system/$pkgname.service
+}
diff --git a/source/network/openslp/openslp.service 
b/source/network/openslp/openslp.service
new file mode 100644
index 0000000..a3c306a
--- /dev/null
+++ b/source/network/openslp/openslp.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Service Location Protocol
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/slpd -c /etc/slp.conf -r /etc/slp.reg -s /etc/slp.spi
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=network.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to