Add OpenSLP 1.0.2, open-source implementation of the Service

Location Protocol.

PR:		30601
Submitted by:	Joe Clarke <marcus@marcuscom.com>
This commit is contained in:
OKAZAKI Tetsurou 2001-09-29 05:42:30 +00:00
parent ebcdffe6b5
commit c5daf64bcb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48258
11 changed files with 237 additions and 0 deletions

View file

@ -253,6 +253,7 @@
SUBDIR += openldap
SUBDIR += openldap2
SUBDIR += openmcu
SUBDIR += openslp
SUBDIR += openverse
SUBDIR += oproute
SUBDIR += p0f

56
net/openslp/Makefile Normal file
View file

@ -0,0 +1,56 @@
# New ports collection makefile for: OpenSLP 1.0
# Date created: 15 Sep 2001
# Whom: Joe Clarke
#
# $FreeBSD$
#
PORTNAME= openslp
PORTVERSION= 1.0.2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= openslp
MAINTAINER= marcus@marcuscom.com
FIND?= /usr/bin/find
.if defined(WITH_SLP_SECURITY)
USE_OPENSSL= yes
.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/openslp \
--localstatedir=/var
.if defined(WITH_SLP_SECURITY)
CONFIGURE_ARGS+= --enable-slpv2-security
.endif
.if defined(WITH_ASYNC_API)
CONFIGURE_ARGS+= --enable-async-api
.endif
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
post-extract:
(cd ${WRKSRC}; \
${FIND} doc -type f -path '*/CVS/*' -delete; \
${FIND} doc -type d -name CVS -delete)
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/slpd.sh.sample \
> ${WRKSRC}/slpd.sh.sample
post-install:
.for FILE in slp.conf slp.reg slp.spi
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} ${PREFIX}/etc/openslp/${FILE}.default
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/slpd.sh.sample ${PREFIX}/etc/rc.d/slpd.sh.sample
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
(cd ${INSTALL_WRKSRC}/doc; \
${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; ;\
${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;)
.endif
.include <bsd.port.mk>

1
net/openslp/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (openslp-1.0.2.tar.gz) = 11c56c243ee71cce1c8e9cf46734ec8e

View file

@ -0,0 +1,23 @@
--- Makefile.in.orig Wed Sep 12 12:13:48 2001
+++ Makefile.in Sat Sep 15 15:57:54 2001
@@ -78,8 +78,7 @@
VERSION = @VERSION@
SUBDIRS = common libslpattr slpd libslp slptool test
-EXTRA_DIST = win32 doc etc README.W32
-DOC_DIR = $(prefix)/doc/openslp-$(VERSION)
+EXTRA_DIST = win32 etc README.W32
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES = slp.list
@@ -343,10 +342,6 @@
file=$(DESTDIR)$(sysconfdir)/slp.spi;\
if [ -f $$file ]; then cp -f $$file $$file.bak; else true; fi
cp -f $(srcdir)/etc/slp.spi $(DESTDIR)$(sysconfdir)
- rm -rf $(DESTDIR)$(DOC_DIR)
- mkdir -p $(DESTDIR)$(DOC_DIR)
- cp -r $(srcdir)/doc/* $(DESTDIR)$(DOC_DIR)
-# rm -rf `find $(DESTDIR)$(DOC_DIR) -name CVS`
dist-hook:
# rm -rf `find $(distdir)/doc -name CVS`

View file

@ -0,0 +1,13 @@
--- common/slp_compare.c.original Wed Jun 13 13:12:10 2001
+++ common/slp_compare.c Sat Sep 22 22:52:26 2001
@@ -487,7 +487,9 @@
if(strncasecmp(srvurl,"service:",8))
{
- return 1;
+ if (strstr(srvurl, ":/") == NULL) {
+ return 1;
+ }
}
/* TODO: make this a little smarter */

View file

@ -0,0 +1,11 @@
--- configure~ Thu Sep 13 01:13:37 2001
+++ configure Fri Sep 21 02:42:01 2001
@@ -1832,7 +1832,7 @@
OPTFLAGS="-O"
fi
fi
-CFLAGS="$CFLAGS $OPTFLAGS"
+#CFLAGS="$CFLAGS $OPTFLAGS"
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1839: checking how to run the C preprocessor" >&5

23
net/openslp/files/slpd.in Normal file
View file

@ -0,0 +1,23 @@
#!/bin/sh
#
# $FreeBSD$
#
# OpenSLP daemon.
#
if ! test -x %%PREFIX%%/sbin/slpd
then
# exit 0
fi
case $1 in
start)
echo -n ' slpd'
%%PREFIX%%/sbin/slpd
;;
stop)
killall slpd
;;
*)
echo "Usage: $0: [ start | stop ]" 2>&1
exit 65
;;
esac

View file

@ -0,0 +1,23 @@
#!/bin/sh
#
# $FreeBSD$
#
# OpenSLP daemon.
#
if ! test -x %%PREFIX%%/sbin/slpd
then
# exit 0
fi
case $1 in
start)
echo -n ' slpd'
%%PREFIX%%/sbin/slpd
;;
stop)
killall slpd
;;
*)
echo "Usage: $0: [ start | stop ]" 2>&1
exit 65
;;
esac

1
net/openslp/pkg-comment Normal file
View file

@ -0,0 +1 @@
Open-source implementation of the Service Location Protocol

5
net/openslp/pkg-descr Normal file
View file

@ -0,0 +1,5 @@
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.
WWW: http://www.openslp.org/

80
net/openslp/pkg-plist Normal file
View file

@ -0,0 +1,80 @@
bin/slptool
@unexec if cmp -s %D/etc/openslp/slp.reg %D/etc/openslp/slp.reg.default; then rm -f %D/etc/openslp/slp.reg; fi
etc/openslp/slp.reg.default
@exec [ -f %B/slp.reg ] || cp %B/%f %B/slp.reg
@unexec if cmp -s %D/etc/openslp/slp.conf %D/etc/openslp/slp.conf.default; then rm -f %D/etc/openslp/slp.conf; fi
etc/openslp/slp.conf.default
@exec [ -f %B/slp.conf ] || cp %B/%f %B/slp.conf
@unexec if cmp -s %D/etc/openslp/slp.spi %D/etc/openslp/slp.spi.default; then rm -f %D/etc/openslp/slp.spi; fi
etc/openslp/slp.spi.default
@exec [ -f %B/slp.spi ] || cp %B/%f %B/slp.spi
@dirrm etc/openslp
etc/rc.d/slpd.sh.sample
include/slp.h
lib/libslp.so.1
lib/libslp.so
lib/libslp.a
sbin/slpd
%%PORTDOCS%%share/doc/openslp/rfc/rfc1766.txt
%%PORTDOCS%%share/doc/openslp/rfc/rfc2165.txt
%%PORTDOCS%%share/doc/openslp/rfc/rfc2254.txt
%%PORTDOCS%%share/doc/openslp/rfc/rfc2396.txt
%%PORTDOCS%%share/doc/openslp/rfc/rfc2608.txt
%%PORTDOCS%%share/doc/openslp/rfc/rfc2609.txt
%%PORTDOCS%%share/doc/openslp/rfc/rfc2610.txt
%%PORTDOCS%%share/doc/openslp/rfc/rfc2614.txt
%%PORTDOCS%%share/doc/openslp/rfc/srvreg-integrity.txt
%%PORTDOCS%%share/doc/openslp/rfc/threat_analysis_min_security.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/Callbacks.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/Divergence.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/Examples.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPAttrCallback.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPClose.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPDelAttrs.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPDereg.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPError.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPEscape.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPFindAttrs.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPFindScopes.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPFindSrvTypes.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPFindSrvs.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPFree.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPGetProperty.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPGetRefreshInterval.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPOpen.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPReg.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPParseSrvURL.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPRegReport.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPSetProperty.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPSrvTypeCallback.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPSrvURLCallback.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPTypes.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/SLPUnescape.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/Security.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/Syntax.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/index.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/openslp_security_whitepaper.html
%%PORTDOCS%%share/doc/openslp/html/ProgrammersGuide/smalllogo.jpg
%%PORTDOCS%%share/doc/openslp/html/IntroductionToSLP/AgentInit.jpg
%%PORTDOCS%%share/doc/openslp/html/IntroductionToSLP/ServiceReg.jpg
%%PORTDOCS%%share/doc/openslp/html/IntroductionToSLP/ServiceRqst.jpg
%%PORTDOCS%%share/doc/openslp/html/IntroductionToSLP/index.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/CommandLine.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/FileLocations.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/Installation.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/Optimization.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/Security.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/SlpConf.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/SlpReg.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/UserFAQ.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/WhenToRunSlpd.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/WhoShouldRead.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/index.html
%%PORTDOCS%%share/doc/openslp/html/UsersGuide/smalllogo.jpg
%%PORTDOCS%%share/doc/openslp/html/faq.html
%%PORTDOCS%%@dirrm share/doc/openslp/html/UsersGuide
%%PORTDOCS%%@dirrm share/doc/openslp/html/IntroductionToSLP
%%PORTDOCS%%@dirrm share/doc/openslp/html/ProgrammersGuide
%%PORTDOCS%%@dirrm share/doc/openslp/html
%%PORTDOCS%%@dirrm share/doc/openslp/rfc
%%PORTDOCS%%@dirrm share/doc/openslp