mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Let net/freenet6 use rc.subr
This commit is contained in:
parent
c1538d88f7
commit
272c66538e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123965
4 changed files with 45 additions and 20 deletions
7
UPDATING
7
UPDATING
|
@ -6,6 +6,13 @@ You should get into the habit of checking this file for changes each
|
||||||
time you update your ports collection, before attempting any port
|
time you update your ports collection, before attempting any port
|
||||||
upgrades.
|
upgrades.
|
||||||
|
|
||||||
|
20041214:
|
||||||
|
AFFECTS: users of net/freenet6
|
||||||
|
AUTHOR: edwin@FreeBSD.org
|
||||||
|
|
||||||
|
The FreeNet6 Service must now be enabled / disabled in rc.conf:
|
||||||
|
freenet6_enable="YES"
|
||||||
|
|
||||||
20041213:
|
20041213:
|
||||||
AFFECTS: users of security/cryptplug, deskutils/kdepim3
|
AFFECTS: users of security/cryptplug, deskutils/kdepim3
|
||||||
AUTHOR: lofi@freebsd.org
|
AUTHOR: lofi@freebsd.org
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= freenet6
|
PORTNAME= freenet6
|
||||||
PORTVERSION= 2.1.1
|
PORTVERSION= 2.1.1
|
||||||
PORTREVISION= 3
|
PORTREVISION= 4
|
||||||
CATEGORIES= net ipv6
|
CATEGORIES= net ipv6
|
||||||
MASTER_SITES= http://www.hexago.com/files/
|
MASTER_SITES= http://www.hexago.com/files/
|
||||||
DISTNAME= tspc-${PORTVERSION}-src
|
DISTNAME= tspc-${PORTVERSION}-src
|
||||||
|
@ -17,6 +17,7 @@ MAINTAINER= edwin@mavetju.org
|
||||||
COMMENT= Freenet6 Tunnel Setup Protocol Client - Free IPv6 tunnel
|
COMMENT= Freenet6 Tunnel Setup Protocol Client - Free IPv6 tunnel
|
||||||
|
|
||||||
USE_REINPLACE= yes
|
USE_REINPLACE= yes
|
||||||
|
USE_RC_SUBR= yes
|
||||||
WRKSRC= ${WRKDIR}/tspc2
|
WRKSRC= ${WRKDIR}/tspc2
|
||||||
|
|
||||||
MAN8= tspc.8
|
MAN8= tspc.8
|
||||||
|
@ -48,7 +49,10 @@ post-install:
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${CP} ${FILESDIR}/freenet6.sh.in ${WRKDIR}/freenet6.sh
|
@${CP} ${FILESDIR}/freenet6.sh.in ${WRKDIR}/freenet6.sh
|
||||||
@${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" ${WRKDIR}/freenet6.sh
|
@${REINPLACE_CMD} \
|
||||||
|
-e "s,%%PREFIX%%,${PREFIX},g" \
|
||||||
|
-e "s,%%RC_SUBR%%,${RC_SUBR},g" \
|
||||||
|
${WRKDIR}/freenet6.sh
|
||||||
|
|
||||||
@${CP} ${FILESDIR}/pkg-message.in ${WRKDIR}/pkg-message
|
@${CP} ${FILESDIR}/pkg-message.in ${WRKDIR}/pkg-message
|
||||||
@${REINPLACE_CMD} \
|
@${REINPLACE_CMD} \
|
||||||
|
|
|
@ -2,25 +2,35 @@
|
||||||
#
|
#
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
# Start or stop the IPv6 tunnel to Freenet6.net
|
|
||||||
|
#
|
||||||
|
# PROVIDE: freenet6
|
||||||
|
# REQUIRE: LOGIN
|
||||||
|
# AFTER: network
|
||||||
|
# KEYWORD: FreeBSD shutdown
|
||||||
#
|
#
|
||||||
|
|
||||||
case "$1" in
|
#
|
||||||
start)
|
# Start or stop the IPv6 tunnel to Freenet6.net
|
||||||
if [ -f @@PREFIX@@/etc/tspc.conf ]; then
|
#
|
||||||
@@PREFIX@@/bin/tspc -f @@PREFIX@@/etc/tspc.conf && \
|
# Add the following lines to /etc/rc.conf to enable freenet6:
|
||||||
echo -n " freenet6"
|
#
|
||||||
fi
|
# freenet6_enable="YES"
|
||||||
;;
|
# freenet6_flags="-f %%PREFIX%%/etc/tspc.conf"
|
||||||
|
#
|
||||||
|
|
||||||
stop)
|
. %%RC_SUBR%%
|
||||||
killall tspc && echo -n " freenet6"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
name=freenet6
|
||||||
echo ""
|
rcvar=`set_rcvar`
|
||||||
echo "Usage: `basename $0` { start | stop }"
|
|
||||||
echo ""
|
command=%%PREFIX%%/bin/tspc
|
||||||
exit 64
|
required_files=%%PREFIX%%/etc/tspc.conf
|
||||||
;;
|
|
||||||
esac
|
# set defaults
|
||||||
|
|
||||||
|
freenet6_enable=${freenet6_enable:-"NO"}
|
||||||
|
freenet6_flags=${freenet6_flags:-"-f %%PREFIX%%/etc/tspc.conf"}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
||||||
|
|
|
@ -8,3 +8,7 @@ Now that the package is installed, please finish it with the following steps:
|
||||||
|
|
||||||
Please note that tsps[12].freenet6.net are not in service anymore,
|
Please note that tsps[12].freenet6.net are not in service anymore,
|
||||||
please use broker.freenet6.net instead.
|
please use broker.freenet6.net instead.
|
||||||
|
|
||||||
|
Net/freenet6 now supports rc.subr.
|
||||||
|
Please add 'freenet6_enable="YES"' to your /etc/rc.conf to make it
|
||||||
|
start autoamtically at startup.
|
||||||
|
|
Loading…
Add table
Reference in a new issue