mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Make use of the new old world rc order, and install the slpd rc.d script
properly. PR: 126726 Submitted by: "Joseph S. Atkinson" <jsa@dmz.wickedmachine.net>
This commit is contained in:
parent
3208de13aa
commit
345cc9a7a4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=221893
@ -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; \
|
||||
|
@ -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"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user