1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Upgrade to 3.2 (no functional changes)

Set $HTS and $HTC in etc/rc.d/httptunnel.sh
Allow HTCPROXYAUTH to specify a file name
This commit is contained in:
Brian Somers 2000-08-31 20:30:55 +00:00
parent 3802f14ef2
commit e697ee667e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32159
3 changed files with 21 additions and 8 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= httptunnel
PORTVERSION= 3.1
PORTVERSION= 3.2
CATEGORIES= www
MASTER_SITES= http://www.Awfulhak.org/httptunnel/ \
ftp://ftp.nocrew.org/pub/nocrew/unix/ \
@ -22,7 +22,8 @@ CONFIGURE_ARGS+=--enable-debug
MAN1= hts.1 htc.1
post-install:
[ -f ${PREFIX}/etc/rc.d/httptunnel.sh ] || \
${INSTALL_SCRIPT} ${FILESDIR}/httptunnel.sh ${PREFIX}/etc/rc.d/.
${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${FILESDIR}/httptunnel.sh \
>${PREFIX}/etc/rc.d/httptunnel.sh
${CHMOD} 755 ${PREFIX}/etc/rc.d/httptunnel.sh
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (httptunnel-3.1.tar.gz) = 3fd732aece11a59fee3d74ecb77f8910
MD5 (httptunnel-3.2.tar.gz) = 6cc45913ed81f3f45108b0773ef1e8af

View File

@ -2,10 +2,12 @@
#
# $FreeBSD$
HTS=%%PREFIX%%/bin/hts # The installed hts program
HTSPORT= # [host:]port to listen for htc connection
HTSFORWARD= # Talk to this socket
HTSDEVICE= # *or* talk to this device
HTC=%%PREFIX%%/bin/htc # The installed htc program
HTCPORT= # host:port where hts is running
HTCFORWARD= # Talk to this socket
HTCDEVICE= # *or* talk to this device
@ -21,7 +23,7 @@ start)
if [ -n "$HTSPORT" -a -x $HTS ]; then
[ -n "$HTSFORWARD" ] && args="-F $HTSFORWARD"
[ -n "$HTSDEVICE" ] && args="-d $HTSDEVICE"
/usr/local/bin/hts $args $HTSPORT && echo -n ' hts'
$HTS $args $HTSPORT && echo -n ' hts'
fi
if [ -n "$HTCPORT" -a -x $HTC ]; then
@ -30,11 +32,21 @@ start)
[ -n "$HTCDEVICE" ] && set -- -d $HTCDEVICE
[ -n "$HTCBROWSER" ] && set -- -U "$HTCBROWSER" "$@"
if [ -n "$HTCPROXY" ]; then
[ -n "$HTCPROXYBUFFER" ] && set -- -B $HTCPROXYBUFFER "$@"
[ -n "$HTCPROXYAUTH" ] && set -- -A $HTCPROXYAUTH "$@"
[ -n "$HTCPROXYBUFFER" ] &&
set -- -B $HTCPROXYBUFFER "$@"
if [ -n "$HTCPROXYAUTH" ]
then
if [ -f "$HTCPROXYAUTH" ]
then
set -- --proxy-authorization-file \
$HTCPROXYAUTH "$@"
else
set -- -A $HTCPROXYAUTH "$@"
fi
fi
set -- -P $HTCPROXY "$@"
fi
/usr/local/bin/htc "$@" $HTCARGS $HTCPORT && echo -n ' htc'
$HTC "$@" $HTCARGS $HTCPORT && echo -n ' htc'
fi
;;
stop)