diff options
author | OKAZAKI Tetsurou <okazaki@FreeBSD.org> | 2001-09-29 05:42:30 +0000 |
---|---|---|
committer | OKAZAKI Tetsurou <okazaki@FreeBSD.org> | 2001-09-29 05:42:30 +0000 |
commit | c5daf64bcb67f37838c6a965751d5225eb9ddffe (patch) | |
tree | 9707d33cfbce2d1bcd79330813f22b793aca895b /net/openslp | |
parent | protect slave ports (diff) |
Add OpenSLP 1.0.2, open-source implementation of the Service
Location Protocol.
PR: 30601
Submitted by: Joe Clarke <marcus@marcuscom.com>
Notes
Notes:
svn path=/head/; revision=48258
Diffstat (limited to 'net/openslp')
-rw-r--r-- | net/openslp/Makefile | 56 | ||||
-rw-r--r-- | net/openslp/distinfo | 1 | ||||
-rw-r--r-- | net/openslp/files/patch-aa | 23 | ||||
-rw-r--r-- | net/openslp/files/patch-ab | 13 | ||||
-rw-r--r-- | net/openslp/files/patch-ac | 11 | ||||
-rw-r--r-- | net/openslp/files/slpd.in | 23 | ||||
-rw-r--r-- | net/openslp/files/slpd.sh.sample | 23 | ||||
-rw-r--r-- | net/openslp/pkg-comment | 1 | ||||
-rw-r--r-- | net/openslp/pkg-descr | 5 | ||||
-rw-r--r-- | net/openslp/pkg-plist | 80 |
10 files changed, 236 insertions, 0 deletions
diff --git a/net/openslp/Makefile b/net/openslp/Makefile new file mode 100644 index 000000000000..59912fd4f8f9 --- /dev/null +++ b/net/openslp/Makefile @@ -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> diff --git a/net/openslp/distinfo b/net/openslp/distinfo new file mode 100644 index 000000000000..ca715d8cd5da --- /dev/null +++ b/net/openslp/distinfo @@ -0,0 +1 @@ +MD5 (openslp-1.0.2.tar.gz) = 11c56c243ee71cce1c8e9cf46734ec8e diff --git a/net/openslp/files/patch-aa b/net/openslp/files/patch-aa new file mode 100644 index 000000000000..1ffec98a8f5f --- /dev/null +++ b/net/openslp/files/patch-aa @@ -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` diff --git a/net/openslp/files/patch-ab b/net/openslp/files/patch-ab new file mode 100644 index 000000000000..0aec9c001525 --- /dev/null +++ b/net/openslp/files/patch-ab @@ -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 */ diff --git a/net/openslp/files/patch-ac b/net/openslp/files/patch-ac new file mode 100644 index 000000000000..149bbea7d736 --- /dev/null +++ b/net/openslp/files/patch-ac @@ -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 diff --git a/net/openslp/files/slpd.in b/net/openslp/files/slpd.in new file mode 100644 index 000000000000..eb0cb1dc2b34 --- /dev/null +++ b/net/openslp/files/slpd.in @@ -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 diff --git a/net/openslp/files/slpd.sh.sample b/net/openslp/files/slpd.sh.sample new file mode 100644 index 000000000000..eb0cb1dc2b34 --- /dev/null +++ b/net/openslp/files/slpd.sh.sample @@ -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 diff --git a/net/openslp/pkg-comment b/net/openslp/pkg-comment new file mode 100644 index 000000000000..0499392c162a --- /dev/null +++ b/net/openslp/pkg-comment @@ -0,0 +1 @@ +Open-source implementation of the Service Location Protocol diff --git a/net/openslp/pkg-descr b/net/openslp/pkg-descr new file mode 100644 index 000000000000..9aea41e94520 --- /dev/null +++ b/net/openslp/pkg-descr @@ -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/ diff --git a/net/openslp/pkg-plist b/net/openslp/pkg-plist new file mode 100644 index 000000000000..8a257ebc7d41 --- /dev/null +++ b/net/openslp/pkg-plist @@ -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 |