add openslp in main

This commit is contained in:
Ertuğrul Erata
2016-04-01 19:10:43 +03:00
parent 1ead06e429
commit bb7be7d040
9 changed files with 309 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
shelltools.export("CFLAGS", "%s -fPIC -fno-strict-aliasing -fPIE -DPIE " % get.CFLAGS())
shelltools.export("LDFLAGS", "%s -pie -Wl,-z,now" % get.LDFLAGS())
autotools.autoreconf("-fi")
autotools.configure("--disable-static \
--disable-dependency-tracking \
--disable-rpath \
--localstatedir=/var \
--enable-slpv1 \
--enable-slpv2-security")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make("all docs")
def install():
autotools.install()
pisitools.dohtml("doc/doc/html/*")
pisitools.dodoc("AUTHORS", "FAQ", "ChangeLog", "NEWS", "README", "THANKS")
+91
View File
@@ -0,0 +1,91 @@
#!/sbin/runscript
# Copyright © 2005 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
#
# Original work belongs Gentoo Linux
depend() {
need net
}
#
# Does nothing if a route exists that supports multicast traffic.
# If no routes supporting multicast traffic exists, the function
# tries to add one. A 0 is returned on success and a 1 on failure.
# One parameter must be passed in. This variable determins verbosity.
# If parameter is non-zero debugging will appear.
#
multicast_route_set() {
PING_OPTIONS_1='-c1 -w1'
PING_OPTIONS_2='-c1 -i1'
MULTICAST_ADDRESS='239.255.255.253'
TMP_FILE=/tmp/route.check
PING_ERROR_NO_ROUTE='unreachable'
MSG_FAILED_TO_FIND='Failed to Detect Multicast Route'
MSG_SUCCESS_ON_FIND='Multicast Route Enabled'
MSG_ADDING_ROUTE='Attempting to Add Multicast Route ...'
MSG_FAILED_TO_ADD=' FAILED - Route NOT Added.'
MSG_SUCCES_ON_ADD=' SUCCESS - Route Added.'
CMD_GET_INTERFACE="netstat -i | awk 'BEGIN{}(NR>2)&&(!/^lo*/){print \$1}'"
CMD_ADD_ROUTE="route add -net 224.0.0.0 netmask 240.0.0.0"
ping $PING_OPTIONS_1 $MULTICAST_ADDRESS 2> $TMP_FILE 1> /dev/null
if [ $? = 2 ]; then
ping $PING_OPTIONS_2 $MULTICAST_ADDRESS 2> $TMP_FILE 1> /dev/null
fi
grep $PING_ERROR_NO_ROUTE $TMP_FILE > /dev/null 2>&1
err_unreachable_found=$?
#If errors, add route. Otherwise, do nothing
if [ -s $TMP_FILE ] && [ $err_unreachable_found = 0 ]; then
if [ $1 != 0 ]; then
echo $MSG_FAILED_TO_FIND
echo $MSG_ADDING_ROUTE
fi
$CMD_ADD_ROUTE `eval $CMD_GET_INTERFACE` > /dev/null 2>&1
retval=$?
if [ $1 != 0 ]; then
if [ $retval = 0 ]; then
echo $MSG_SUCCES_ON_ADD
else
echo $MSG_FAILED_TO_ADD
fi
fi
else
if [ $1 != 0 ]; then
echo -n $MSG_SUCCESS_ON_FIND
fi
retval=0
fi
rm -f $TMP_FILE # Clean up
return $retval
}
checkconfig() {
multicast_route_set 0
if [ $? -ne 0 ]; then
eerror "No route available for multicast traffic!"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting slpd"
start-stop-daemon --start --quiet --background --exec /usr/sbin/slpd
eend $?
}
stop() {
ebegin "Stopping slpd"
start-stop-daemon --stop --quiet --pidfile /run/slpd.pid
eend $?
}
+79
View File
@@ -0,0 +1,79 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>openslp</Name>
<Homepage>http://www.openslp.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>service</IsA>
<Summary>An open-source implementation of Service Location Protocol</Summary>
<Description>Service Location Protocol is an 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>
<Archive sha1sum="e4630bfb986cdffab6bb829b37e9340c9152d838" type="targz">mirrors://sourceforge/openslp/openslp-2.0.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>zlib-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency>doxygen</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>openslp</Name>
<RuntimeDependencies>
<Dependency>openssl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/slp.conf</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="doc">/usr/share/doc/openslp/html/IntroductionToSLP</Path>
<Path fileType="doc">/usr/share/doc/openslp/html/UsersGuide</Path>
<Path fileType="doc">/usr/share/doc/openslp/html/faq*</Path>
<Path fileType="data">/var/log</Path>
</Files>
</Package>
<Package>
<Name>openslp-server</Name>
<Summary>OpenSLP server daemon</Summary>
<Description>openslp-server contains ths OpenSLP server daemon to dynamically register services.</Description>
<RuntimeDependencies>
<Dependency>openssl</Dependency>
<Dependency release="current">openslp</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/slp.reg</Path>
<Path fileType="config">/etc/slp.spi</Path>
<Path fileType="executable">/usr/sbin/slpd</Path>
</Files>
</Package>
<Package>
<Name>openslp-devel</Name>
<Summary>Development files for openslp</Summary>
<RuntimeDependencies>
<Dependency release="current">openslp</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>openssl-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="doc">/usr/share/doc/openslp/html/ProgrammersGuide</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2014-02-01</Date>
<Version>2.0.0</Version>
<Comment>First release</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
</History>
</PISI>
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>openslp</Name>
<Summary xml:lang="tr">Servis Yer Protokolünün (Service Location Protocol - SLP) bir açık kaynak uyarlaması</Summary>
<Description xml:lang="tr">SLP (Service Location Protocol Hizmet Yer Protokolu), ağlara bağlı hizmetlerin bulunabilmesi için gereken altyapıyı sağlar.</Description>
<Description xml:lang="fr">Le Service Location Protocol (Protocole de Localisation de Service) est un protocole standard de recherche de l'IETF fournissant un framework (cadre de développement) pour permettre aux application résau de découvrir l'existence, la localisation et la configuration de services réseaux au sein des réseaux d'entreprises.</Description>
<Description xml:lang="es">Service Location Protocol es un protocolo según estándar IETF, que provee un framework que permite a aplicaciones descubrir la existencia, locación y configuración de servicios de red en redes empresariales.</Description>
</Source>
<Package>
<Name>openslp-devel</Name>
<Summary xml:lang="tr">openslp için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>openslp-server</Name>
<Summary xml:lang="tr">OpenSLP hizmet sunucusu</Summary>
<Description xml:lang="tr">openslp-server, dinamik hizmet kaydı için gerekli OpenSLP sunucusunu içerir.</Description>
</Package>
</PISI>
+81
View File
@@ -16344,6 +16344,87 @@ Bu Skype SILK codec ve Xiph.Org &apos;s Celt codec teknolojisi dahil RFC 6716 ol
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>openslp</Name>
<Homepage>http://www.openslp.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>service</IsA>
<PartOf>network.analyzer</PartOf>
<Summary xml:lang="en">An open-source implementation of Service Location Protocol</Summary>
<Summary xml:lang="tr">Servis Yer Protokolünün (Service Location Protocol - SLP) bir açık kaynak uyarlaması</Summary>
<Description xml:lang="fr">Le Service Location Protocol (Protocole de Localisation de Service) est un protocole standard de recherche de l&apos;IETF fournissant un framework (cadre de développement) pour permettre aux application résau de découvrir l&apos;existence, la localisation et la configuration de services réseaux au sein des réseaux d&apos;entreprises.</Description>
<Description xml:lang="en">Service Location Protocol is an 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>
<Description xml:lang="tr">SLP (Service Location Protocol Hizmet Yer Protokolu), ağlara bağlı hizmetlerin bulunabilmesi için gereken altyapıyı sağlar.</Description>
<Description xml:lang="es">Service Location Protocol es un protocolo según estándar IETF, que provee un framework que permite a aplicaciones descubrir la existencia, locación y configuración de servicios de red en redes empresariales.</Description>
<Archive type="targz" sha1sum="e4630bfb986cdffab6bb829b37e9340c9152d838">mirrors://sourceforge/openslp/openslp-2.0.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>zlib-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency>doxygen</Dependency>
</BuildDependencies>
<SourceURI>network/analyzer/openslp/pspec.xml</SourceURI>
</Source>
<Package>
<Name>openslp</Name>
<RuntimeDependencies>
<Dependency>openssl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/slp.conf</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="doc">/usr/share/doc/openslp/html/IntroductionToSLP</Path>
<Path fileType="doc">/usr/share/doc/openslp/html/UsersGuide</Path>
<Path fileType="doc">/usr/share/doc/openslp/html/faq*</Path>
<Path fileType="data">/var/log</Path>
</Files>
</Package>
<Package>
<Name>openslp-server</Name>
<Summary xml:lang="en">OpenSLP server daemon</Summary>
<Summary xml:lang="tr">OpenSLP hizmet sunucusu</Summary>
<Description xml:lang="en">openslp-server contains ths OpenSLP server daemon to dynamically register services.</Description>
<Description xml:lang="tr">openslp-server, dinamik hizmet kaydı için gerekli OpenSLP sunucusunu içerir.</Description>
<RuntimeDependencies>
<Dependency>openssl</Dependency>
<Dependency release="1">openslp</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/slp.reg</Path>
<Path fileType="config">/etc/slp.spi</Path>
<Path fileType="executable">/usr/sbin/slpd</Path>
</Files>
</Package>
<Package>
<Name>openslp-devel</Name>
<Summary xml:lang="en">Development files for openslp</Summary>
<Summary xml:lang="tr">openslp için geliştirme dosyaları</Summary>
<RuntimeDependencies>
<Dependency release="1">openslp</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>openssl-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="doc">/usr/share/doc/openslp/html/ProgrammersGuide</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2014-02-01</Date>
<Version>2.0.0</Version>
<Comment>First release</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>rrdtool</Name>
+1 -1
View File
@@ -1 +1 @@
7a5a72b41651ddcf2f3728bed4c62048a713c461
088d529e3260b7a2bf5723d56fef815a366dd381
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
3235c742d739f81f0bf1a1d440a9653ed6758e11
2e137b34962b3b5b632b03820588d30ff7be92ef