aboutsummaryrefslogtreecommitdiff
path: root/net/openslp
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2008-10-22 00:47:12 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2008-10-22 00:47:12 +0000
commit345cc9a7a40d7cf5cc785f41b8242f7240fdcf8e (patch)
tree37a602119c1410adf7e251696c4dd370e5401ebd /net/openslp
parent3208de13aa9ab809c243d5ad7a4c6160ea3071c0 (diff)
downloadports-345cc9a7a40d7cf5cc785f41b8242f7240fdcf8e.tar.gz
ports-345cc9a7a40d7cf5cc785f41b8242f7240fdcf8e.zip
Notes
Diffstat (limited to 'net/openslp')
-rw-r--r--net/openslp/Makefile8
-rw-r--r--net/openslp/files/slpd.sh.sample26
-rw-r--r--net/openslp/pkg-plist1
3 files changed, 2 insertions, 33 deletions
diff --git a/net/openslp/Makefile b/net/openslp/Makefile
index 97fe77117cb2..56d170a78d4f 100644
--- a/net/openslp/Makefile
+++ b/net/openslp/Makefile
@@ -7,7 +7,7 @@
PORTNAME= openslp
PORTVERSION= 1.2.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= openslp
@@ -22,8 +22,7 @@ USE_LDCONFIG= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/openslp \
--localstatedir=/var
-USE_RC_SUBR= yes
-RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
+USE_RC_SUBR= slpd
OPTIONS= SLP_SECURITY "Turn on SLPv2 security support" off \
ASYNC_API "Enable asynchronous communication API" off
@@ -42,14 +41,11 @@ post-extract:
@(cd ${WRKSRC}; \
${FIND} doc -type f -path '*/CVS/*' -delete; \
${FIND} doc -type d -name CVS -delete)
- @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/slpd.sh.sample > ${WRKSRC}/slpd.sh
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 ${PREFIX}/etc/rc.d/001slpd.sh
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
(cd ${INSTALL_WRKSRC}/doc; \
diff --git a/net/openslp/files/slpd.sh.sample b/net/openslp/files/slpd.sh.sample
deleted file mode 100644
index 1ec3175a6d76..000000000000
--- a/net/openslp/files/slpd.sh.sample
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# PROVIDE: slpd
-# REQUIRE: DAEMON
-# KEYWORD: shutdown
-#
-# Add the following line to /etc/rc.conf to enable slpd:
-#
-# slpd_enable="YES"
-#
-
-slpd_enable=${slpd_enable-"NO"}
-slpd_flags=${slpd_flags-"-p /var/run/slpd.pid"}
-
-. %%RC_SUBR%%
-
-name=slpd
-rcvar=`set_rcvar`
-
-command=%%PREFIX%%/sbin/slpd
-pidfile="/var/run/${name}.pid"
-
-load_rc_config ${name}
-run_rc_command "$1"
diff --git a/net/openslp/pkg-plist b/net/openslp/pkg-plist
index 586c3aee1877..427ded0b10dd 100644
--- a/net/openslp/pkg-plist
+++ b/net/openslp/pkg-plist
@@ -9,7 +9,6 @@ etc/openslp/slp.conf.default
etc/openslp/slp.spi.default
@exec [ -f %B/slp.spi ] || cp %B/%f %B/slp.spi
@dirrm etc/openslp
-etc/rc.d/001slpd.sh
include/slp.h
lib/libslp.a
lib/libslp.la