updated URL and specfile; closes #1 [release 3.3-5mamba;Wed Nov 27 2024]
This commit is contained in:
parent
1cf1cb186f
commit
17a36b79dc
10
httptunnel-3.3-gcc-14.patch
Normal file
10
httptunnel-3.3-gcc-14.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- httptunnel-3.3/common.h.orig 2024-11-27 17:14:00.353436918 +0100
|
||||||
|
+++ httptunnel-3.3/common.h 2024-11-27 17:14:16.537432233 +0100
|
||||||
|
@@ -12,6 +12,7 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <stdio_.h>
|
||||||
|
+#include <time.h>
|
||||||
|
#include <unistd_.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <syslog_.h>
|
@ -1,69 +0,0 @@
|
|||||||
#!/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
|
|
@ -1,28 +1,32 @@
|
|||||||
Name: httptunnel
|
Name: httptunnel
|
||||||
Version: 3.3
|
Version: 3.3
|
||||||
Release: 4mamba
|
Release: 5mamba
|
||||||
Summary: Bidirectional virtual data path tunnelled in HTTP requests
|
Summary: Bidirectional virtual data path tunnelled in HTTP requests
|
||||||
Group: Applications/Security
|
Group: Applications/Security
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://www.nocrew.org/software/httptunnel.html
|
URL: https://www.nocrew.org/software/httptunnel.html
|
||||||
Source0: http://www.nocrew.org/software/httptunnel/httptunnel-%{version}.tar.gz
|
Source0: https://www.nocrew.org/software/httptunnel/httptunnel-%{version}.tar.gz
|
||||||
Source1: httptunnel.sysconfig
|
Patch0: httptunnel-3.3-gcc-14.patch
|
||||||
Source2: httptunnel.init
|
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: libnsl-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
|
|
||||||
%description
|
%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.
|
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.
|
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.
|
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.
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch 0 -p1 -b .gcc-14
|
||||||
|
|
||||||
|
autoreconf -f -i
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
@ -32,36 +36,21 @@ If WWW access is allowed through a HTTP proxy, it's possible to use httptunnel a
|
|||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
install -D -m644 %{S:1} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
|
||||||
install -D -m750 %{S:2} %{buildroot}%{_initrddir}/%{name}
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{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
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/htc
|
%{_bindir}/htc
|
||||||
%{_bindir}/hts
|
%{_bindir}/hts
|
||||||
%{_initrddir}/%{name}
|
|
||||||
%{_sysconfdir}/sysconfig/%{name}
|
|
||||||
%{_mandir}/man1/htc.*
|
%{_mandir}/man1/htc.*
|
||||||
%{_mandir}/man1/hts.*
|
%{_mandir}/man1/hts.*
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
%doc AUTHORS COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3-5mamba
|
||||||
|
- updated URL and specfile; closes #1
|
||||||
|
|
||||||
* Sun Dec 28 2014 Automatic Build System <autodist@mambasoft.it> 3.3-4mamba
|
* Sun Dec 28 2014 Automatic Build System <autodist@mambasoft.it> 3.3-4mamba
|
||||||
- automatic rebuild by autodist
|
- automatic rebuild by autodist
|
||||||
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
# 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