rebuilt to remove executable requirements [release 3.3-2mamba;Fri Feb 05 2010]
This commit is contained in:
parent
f28083f894
commit
cedd9f1f33
@ -1,2 +1,6 @@
|
||||
# httptunnel
|
||||
|
||||
httptunnel creates a bidirectional virtual data connection tunnelled in HTTP requests. The HTTP requests can be sent via an HTTP proxy if so desired.
|
||||
This can be useful for users behind restrictive firewalls.
|
||||
If WWW access is allowed through a HTTP proxy, it's possible to use httptunnel and, say, telnet or PPP to connect to a computer outside the firewall.
|
||||
|
||||
|
69
httptunnel.init
Normal file
69
httptunnel.init
Normal file
@ -0,0 +1,69 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# httptunnel httptunnel short service description
|
||||
#
|
||||
# chkconfig: 345 90 36
|
||||
# processname: hts
|
||||
# config: /etc/sysconfig/httptunnel
|
||||
#
|
||||
# description: httptunnel long service description
|
||||
|
||||
# Copyright (c) by Davide Madrisan <davide.madrisan@qilinux.it>
|
||||
|
||||
# Source function library
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
# Get network config
|
||||
. /etc/sysconfig/network
|
||||
|
||||
RETVAL=0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ "$NETWORKING" = yes ] || exit 1
|
||||
|
||||
if [ ! -f /var/lock/subsys/httptunnel ]; then
|
||||
echo -n "Starting httptunnel: "
|
||||
awk '/^[^!#].*/ { print $0; }' \
|
||||
< /etc/sysconfig/httptunnel | \
|
||||
while read LISTEN_PORT FWD_HOST_PORT; do
|
||||
echo $LISTEN_PORT $FWD_HOST_PORT
|
||||
daemon hts -F "$FWD_HOST_PORT" "$LISTEN_PORT"
|
||||
done
|
||||
RETVAL=$?
|
||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/httptunnel
|
||||
echo
|
||||
else
|
||||
echo "Service httptunnel already running"
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f /var/lock/subsys/httptunnel ]; then
|
||||
echo -n "Stopping httptunnel: "
|
||||
killproc hts
|
||||
echo
|
||||
rm -f /var/lock/subsys/httptunnel
|
||||
else
|
||||
# show "%s service is not running." httptunnel
|
||||
echo "httptunnel service is not running."
|
||||
fi
|
||||
;;
|
||||
restart|force-reload)
|
||||
$0 stop
|
||||
$0 start
|
||||
exit $?
|
||||
;;
|
||||
status)
|
||||
status httptunnel
|
||||
exit $?
|
||||
;;
|
||||
*)
|
||||
# show "Usage: %s {start|stop|restart|force-reload|status}" $0
|
||||
echo $"Usage:"" $0 {start|stop|restart|force-reload|status}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $RETVAL
|
||||
|
||||
# This must be last line !
|
||||
# vi:syntax=sh:tw=78:ts=8:sw=4
|
75
httptunnel.spec
Normal file
75
httptunnel.spec
Normal file
@ -0,0 +1,75 @@
|
||||
Name: httptunnel
|
||||
Version: 3.3
|
||||
Release: 2mamba
|
||||
Summary: Bidirectional virtual data path tunnelled in HTTP requests
|
||||
Group: Applications/Security
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.nocrew.org/software/httptunnel.html
|
||||
Source0: http://www.nocrew.org/software/httptunnel/httptunnel-%{version}.tar.gz
|
||||
Source1: httptunnel.sysconfig
|
||||
Source2: httptunnel.init
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
httptunnel creates a bidirectional virtual data connection tunnelled in HTTP requests. The HTTP requests can be sent via an HTTP proxy if so desired.
|
||||
This can be useful for users behind restrictive firewalls.
|
||||
If WWW access is allowed through a HTTP proxy, it's possible to use httptunnel and, say, telnet or PPP to connect to a computer outside the firewall.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure
|
||||
%make
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall
|
||||
|
||||
install -D -m644 %{S:1} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||
install -D -m750 %{S:2} %{buildroot}%{_initrddir}/%{name}
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
chkconfig --del %{name}
|
||||
service %{name} stop
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 1 ]; then
|
||||
[ -e /var/lock/subsys/%{name} ] && service %{name} restart
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/htc
|
||||
%{_bindir}/hts
|
||||
%{_initrddir}/%{name}
|
||||
%{_sysconfdir}/sysconfig/%{name}
|
||||
%{_mandir}/man1/htc.*
|
||||
%{_mandir}/man1/hts.*
|
||||
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
||||
|
||||
%changelog
|
||||
* Fri Feb 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3-2mamba
|
||||
- rebuilt to remove executable requirements
|
||||
|
||||
* Wed Jan 21 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
* Sat Sep 20 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.5-2mamba
|
||||
- specfile updated
|
||||
|
||||
* Mon Nov 13 2006 Davide Madrisan <davide.madrisan@qilinux.it> 3.0.5-1qilnx
|
||||
- package created by autospec
|
6
httptunnel.sysconfig
Normal file
6
httptunnel.sysconfig
Normal file
@ -0,0 +1,6 @@
|
||||
# Configuration file for httptunnel
|
||||
|
||||
# Syntax:
|
||||
# listen-port forward-host:port
|
||||
# Example (forward locally accessible ssh server on 192.168.13.3):
|
||||
# 1022 192.168.13.3:22
|
Loading…
Reference in New Issue
Block a user