diff options
author | jlam <jlam@pkgsrc.org> | 2001-08-18 03:18:43 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-08-18 03:18:43 +0000 |
commit | 6c90001be12c4f85024c6731725ca31aae8412b8 (patch) | |
tree | f8d4c0c78efb606579f9636cfd81e044153ea14d /net/openslp | |
parent | 2bc4867ce706eef49acf175830d7096cd5c9329c (diff) | |
download | pkgsrc-6c90001be12c4f85024c6731725ca31aae8412b8.tar.gz |
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.
The OpenSLP project is an effort to develop an open-source implementation of
Service Location Protocol suitable for commercial and non-commercial
application.
Diffstat (limited to 'net/openslp')
-rw-r--r-- | net/openslp/Makefile | 57 | ||||
-rw-r--r-- | net/openslp/buildlink.mk | 34 | ||||
-rw-r--r-- | net/openslp/distinfo | 5 | ||||
-rw-r--r-- | net/openslp/files/slpd.sh | 26 | ||||
-rw-r--r-- | net/openslp/patches/patch-aa | 25 | ||||
-rw-r--r-- | net/openslp/pkg/DEINSTALL | 76 | ||||
-rw-r--r-- | net/openslp/pkg/DESCR | 6 | ||||
-rw-r--r-- | net/openslp/pkg/INSTALL | 58 | ||||
-rw-r--r-- | net/openslp/pkg/PLIST | 76 |
9 files changed, 363 insertions, 0 deletions
diff --git a/net/openslp/Makefile b/net/openslp/Makefile new file mode 100644 index 00000000000..6568b28191c --- /dev/null +++ b/net/openslp/Makefile @@ -0,0 +1,57 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/08/18 03:18:43 jlam Exp $ + +DISTNAME= openslp-1.0.1 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openslp/} + +MAINTAINER= jlam@netbsd.org +HOMEPAGE= http://www.openslp.org/ +COMMENT= Open-source implementation of the Service Location Protocol + +USE_BUILDLINK_ONLY= # defined +GNU_CONFIGURE= # defined +CONFIGURE_ARGS+= --sysconfdir=/etc +CONFIGURE_ARGS+= --localstatedir=/var + +USE_LIBTOOL= # defined +LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig + +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + +FILES_SUBST= PREFIX=${PREFIX} +FILES_SUBST+= CAT=${CAT:Q} +FILES_SUBST+= CHMOD=${CHMOD:Q} +FILES_SUBST+= CMP=${CMP:Q} +FILES_SUBST+= CP=${CP:Q} +FILES_SUBST+= MKDIR=${MKDIR:Q} +FILES_SUBST+= RM=${RM:Q} +FILES_SUBST+= RMDIR=${RMDIR:Q} +FILES_SUBST+= TRUE=${TRUE:Q} +FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} + +DOCDIR= ${PREFIX}/share/doc/openslp +EGDIR= ${PREFIX}/share/examples/openslp +HTMLDIR= ${PREFIX}/share/doc/html/openslp + +post-extract: + ${FIND} ${WRKSRC}/doc -name "CVS" -print | ${XARGS} ${RM} -rf + +pre-install: + ${SED} ${FILES_SUBST_SED} ${FILESDIR}/slpd.sh > ${WRKDIR}/slpd.sh + ${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE} + +post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/slpd.sh ${PREFIX}/etc/rc.d/slpd + ${INSTALL_DATA_DIR} ${DOCDIR} ${EGDIR} ${HTMLDIR} + cd ${WRKSRC}/etc; for file in slp.conf slp.reg slp.spi; do \ + ${INSTALL_DATA} $${file} ${EGDIR}; \ + done + cd ${WRKSRC}/doc; ${CP} -r rfc/* ${DOCDIR} + cd ${WRKSRC}/doc; ${CP} -r html/* ${HTMLDIR} + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCDIR} ${HTMLDIR} + ${CHMOD} -R a-w ${DOCDIR} ${HTMLDIR} + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL + +.include "../../mk/bsd.pkg.mk" diff --git a/net/openslp/buildlink.mk b/net/openslp/buildlink.mk new file mode 100644 index 00000000000..baa74e322c3 --- /dev/null +++ b/net/openslp/buildlink.mk @@ -0,0 +1,34 @@ +# $NetBSD: buildlink.mk,v 1.1.1.1 2001/08/18 03:18:43 jlam Exp $ +# +# This Makefile fragment is included by packages that use openslp. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.openslp to the dependency pattern +# for the version of openslp desired. +# (2) Include this Makefile fragment in the package Makefile, +# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header +# search path, and +# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search +# path. + +.if !defined(OPENSLP_BUILDLINK_MK) +OPENSLP_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.openslp?= openslp>=1.0.1 +DEPENDS+= ${BUILDLINK_DEPENDS.openslp}:../../net/openslp + +EVAL_PREFIX+= BUILDLINK_PREFIX.openslp=openslp +BUILDLINK_PREFIX.openslp_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.openslp= include/slp.h +BUILDLINK_FILES.openslp+= lib/libslp.* + +BUILDLINK_TARGETS.openslp= openslp-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.openslp} + +pre-configure: ${BUILDLINK_TARGETS.openslp} +openslp-buildlink: _BUILDLINK_USE + +.endif # OPENSLP_BUILDLINK_MK diff --git a/net/openslp/distinfo b/net/openslp/distinfo new file mode 100644 index 00000000000..51151f15faa --- /dev/null +++ b/net/openslp/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/08/18 03:18:43 jlam Exp $ + +SHA1 (openslp-1.0.1.tar.gz) = 91d7e5a9202f329ce62503cf9a1f7b82a00f8327 +Size (openslp-1.0.1.tar.gz) = 585191 bytes +SHA1 (patch-aa) = 43da60884805f412be2de6c9fdd4f3234e5a1ba6 diff --git a/net/openslp/files/slpd.sh b/net/openslp/files/slpd.sh new file mode 100644 index 00000000000..eebea7d06c9 --- /dev/null +++ b/net/openslp/files/slpd.sh @@ -0,0 +1,26 @@ +#! /bin/sh +# +# Service Location Protocol daemon +# +# PROVIDE: slpd +# REQUIRE: DAEMON + +if [ -d /etc/rc.d -a -f /etc/rc.subr ] +then + . /etc/rc.subr +fi + +name="slpd" +rcvar=${name} +command="@PREFIX@/sbin/slpd" +pidfile="/var/run/slpd.pid" +required_files="/etc/slp.conf" + +if [ ! -d /etc/rc.d ] +then + @ECHO@ -n " ${name}" + exec ${command} ${slpd_flags} ${command_args} +fi + +load_rc_config $name +run_rc_command "$1" diff --git a/net/openslp/patches/patch-aa b/net/openslp/patches/patch-aa new file mode 100644 index 00000000000..0e596002e51 --- /dev/null +++ b/net/openslp/patches/patch-aa @@ -0,0 +1,25 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/08/18 03:18:44 jlam Exp $ + +--- Makefile.in.orig Tue Aug 7 13:00:29 2001 ++++ Makefile.in +@@ -333,20 +333,6 @@ + + + install-data-local: +- mkdir -p $(DESTDIR)$(sysconfdir) +- file=$(DESTDIR)$(sysconfdir)/slp.reg;\ +- if [ -f $$file ]; then cp -f $$file $$file.bak; else true; fi +- cp -f $(srcdir)/etc/slp.reg $(DESTDIR)$(sysconfdir) +- file=$(DESTDIR)$(sysconfdir)/slp.conf;\ +- if [ -f $$file ]; then cp -f $$file $$file.bak; else true; fi +- cp -f $(srcdir)/etc/slp.conf $(DESTDIR)$(sysconfdir) +- 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/pkg/DEINSTALL b/net/openslp/pkg/DEINSTALL new file mode 100644 index 00000000000..e01e9214542 --- /dev/null +++ b/net/openslp/pkg/DEINSTALL @@ -0,0 +1,76 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1.1.1 2001/08/18 03:18:43 jlam Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CMP="@CMP@" +RM="@RM@" +RMDIR="@RMDIR@" +TRUE="@TRUE@" + +SAMPLECONFDIR=${PKG_PREFIX}/share/examples/openslp +CONFDIR=/etc +CONFFILES="slp.conf slp.reg slp.spi" + +case ${STAGE} in +DEINSTALL) + # Remove configuration files if they don't differ from the default + # config file. + # + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + SAMPLEFILE=${SAMPLECONFDIR}/${file} + if ${CMP} -s ${FILE} ${SAMPLEFILE} + then + ${RM} -f ${FILE} + fi + done + ;; + +POST-DEINSTALL) + modified_files='' + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + if [ -f ${FILE} ] + then + modified_files="${modified_files} ${FILE}" + fi + done + + existing_dirs='' + + if [ -n "${modified_files}" ] + then + ${CAT} << EOF +=========================================================================== +If you won't be using ${PKGNAME} any longer, you may want to remove: +EOF + if [ -n "${modified_files}" ] + then + ${CAT} << EOF + + * the following files: + +EOF + for file in ${modified_files} + do + echo " ${file}" + done + fi + ${CAT} << EOF +=========================================================================== +EOF + fi + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/net/openslp/pkg/DESCR b/net/openslp/pkg/DESCR new file mode 100644 index 00000000000..ad04113c63c --- /dev/null +++ b/net/openslp/pkg/DESCR @@ -0,0 +1,6 @@ +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. +The OpenSLP project is an effort to develop an open-source implementation of +Service Location Protocol suitable for commercial and non-commercial +application. diff --git a/net/openslp/pkg/INSTALL b/net/openslp/pkg/INSTALL new file mode 100644 index 00000000000..d32bf742610 --- /dev/null +++ b/net/openslp/pkg/INSTALL @@ -0,0 +1,58 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2001/08/18 03:18:43 jlam Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHMOD="@CHMOD@" +CP="@CP@" +MKDIR="@MKDIR@" + +SAMPLECONFDIR=${PKG_PREFIX}/share/examples/openslp +CONFDIR=/etc +CONFFILES="slp.conf slp.reg slp.spi" + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + ${MKDIR} ${CONFDIR} + echo "Installing configuration files:" + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + SAMPLEFILE=${SAMPLECONFDIR}/${file} + if [ -f ${FILE} ] + then + echo " ${FILE} already exists" + else + echo " ${FILE}" + ${CP} ${SAMPLEFILE} ${FILE} + ${CHMOD} 644 ${FILE} + fi + done + ${CAT} << EOF + +=========================================================================== +Some files you might need to customize include the following: + +EOF + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + echo " ${FILE}" + done + ${CAT} << EOF +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/net/openslp/pkg/PLIST b/net/openslp/pkg/PLIST new file mode 100644 index 00000000000..50ce7a6876d --- /dev/null +++ b/net/openslp/pkg/PLIST @@ -0,0 +1,76 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/08/18 03:18:44 jlam Exp $ +bin/slptool +etc/rc.d/slpd +include/slp.h +lib/libslp.a +lib/libslp.la +lib/libslp.so +lib/libslp.so.1 +lib/libslp.so.1.0 +sbin/slpd +share/doc/html/openslp/IntroductionToSLP/AgentInit.jpg +share/doc/html/openslp/IntroductionToSLP/ServiceReg.jpg +share/doc/html/openslp/IntroductionToSLP/ServiceRqst.jpg +share/doc/html/openslp/IntroductionToSLP/index.html +share/doc/html/openslp/ProgrammersGuide/Callbacks.html +share/doc/html/openslp/ProgrammersGuide/Divergence.html +share/doc/html/openslp/ProgrammersGuide/Examples.html +share/doc/html/openslp/ProgrammersGuide/SLPAttrCallback.html +share/doc/html/openslp/ProgrammersGuide/SLPClose.html +share/doc/html/openslp/ProgrammersGuide/SLPDelAttrs.html +share/doc/html/openslp/ProgrammersGuide/SLPDereg.html +share/doc/html/openslp/ProgrammersGuide/SLPError.html +share/doc/html/openslp/ProgrammersGuide/SLPEscape.html +share/doc/html/openslp/ProgrammersGuide/SLPFindAttrs.html +share/doc/html/openslp/ProgrammersGuide/SLPFindScopes.html +share/doc/html/openslp/ProgrammersGuide/SLPFindSrvTypes.html +share/doc/html/openslp/ProgrammersGuide/SLPFindSrvs.html +share/doc/html/openslp/ProgrammersGuide/SLPFree.html +share/doc/html/openslp/ProgrammersGuide/SLPGetProperty.html +share/doc/html/openslp/ProgrammersGuide/SLPGetRefreshInterval.html +share/doc/html/openslp/ProgrammersGuide/SLPOpen.html +share/doc/html/openslp/ProgrammersGuide/SLPParseSrvURL.html +share/doc/html/openslp/ProgrammersGuide/SLPReg.html +share/doc/html/openslp/ProgrammersGuide/SLPRegReport.html +share/doc/html/openslp/ProgrammersGuide/SLPSetProperty.html +share/doc/html/openslp/ProgrammersGuide/SLPSrvTypeCallback.html +share/doc/html/openslp/ProgrammersGuide/SLPSrvURLCallback.html +share/doc/html/openslp/ProgrammersGuide/SLPTypes.html +share/doc/html/openslp/ProgrammersGuide/SLPUnescape.html +share/doc/html/openslp/ProgrammersGuide/Security.html +share/doc/html/openslp/ProgrammersGuide/Syntax.html +share/doc/html/openslp/ProgrammersGuide/index.html +share/doc/html/openslp/ProgrammersGuide/openslp_security_whitepaper.html +share/doc/html/openslp/ProgrammersGuide/smalllogo.jpg +share/doc/html/openslp/UsersGuide/CommandLine.html +share/doc/html/openslp/UsersGuide/FileLocations.html +share/doc/html/openslp/UsersGuide/Installation.html +share/doc/html/openslp/UsersGuide/Optimization.html +share/doc/html/openslp/UsersGuide/Security.html +share/doc/html/openslp/UsersGuide/SlpConf.html +share/doc/html/openslp/UsersGuide/SlpReg.html +share/doc/html/openslp/UsersGuide/UserFAQ.html +share/doc/html/openslp/UsersGuide/WhenToRunSlpd.html +share/doc/html/openslp/UsersGuide/WhoShouldRead.html +share/doc/html/openslp/UsersGuide/index.html +share/doc/html/openslp/UsersGuide/smalllogo.jpg +share/doc/html/openslp/faq.html +share/doc/openslp/rfc1766.txt +share/doc/openslp/rfc2165.txt +share/doc/openslp/rfc2254.txt +share/doc/openslp/rfc2396.txt +share/doc/openslp/rfc2608.txt +share/doc/openslp/rfc2609.txt +share/doc/openslp/rfc2610.txt +share/doc/openslp/rfc2614.txt +share/doc/openslp/srvreg-integrity.txt +share/doc/openslp/threat_analysis_min_security.html +share/examples/openslp/slp.conf +share/examples/openslp/slp.reg +share/examples/openslp/slp.spi +@dirrm share/examples/openslp +@dirrm share/doc/openslp +@dirrm share/doc/html/openslp/UsersGuide +@dirrm share/doc/html/openslp/ProgrammersGuide +@dirrm share/doc/html/openslp/IntroductionToSLP +@dirrm share/doc/html/openslp |