From 17a36b79dc7faf7f8ebc5521e1115cd15e3472f7 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 27 Nov 2024 22:19:27 +0100 Subject: [PATCH] updated URL and specfile; closes #1 [release 3.3-5mamba;Wed Nov 27 2024] --- httptunnel-3.3-gcc-14.patch | 10 ++++++ httptunnel.init | 69 ------------------------------------- httptunnel.spec | 39 ++++++++------------- httptunnel.sysconfig | 6 ---- 4 files changed, 24 insertions(+), 100 deletions(-) create mode 100644 httptunnel-3.3-gcc-14.patch delete mode 100644 httptunnel.init delete mode 100644 httptunnel.sysconfig diff --git a/httptunnel-3.3-gcc-14.patch b/httptunnel-3.3-gcc-14.patch new file mode 100644 index 0000000..75d06e5 --- /dev/null +++ b/httptunnel-3.3-gcc-14.patch @@ -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 + #include + #include ++#include + #include + #include + #include diff --git a/httptunnel.init b/httptunnel.init deleted file mode 100644 index 0b4fc83..0000000 --- a/httptunnel.init +++ /dev/null @@ -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 - -# 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 diff --git a/httptunnel.spec b/httptunnel.spec index 9218fe3..da8e8f7 100644 --- a/httptunnel.spec +++ b/httptunnel.spec @@ -1,28 +1,32 @@ Name: httptunnel Version: 3.3 -Release: 4mamba +Release: 5mamba Summary: Bidirectional virtual data path tunnelled in HTTP requests Group: Applications/Security Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -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 +URL: https://www.nocrew.org/software/httptunnel.html +Source0: https://www.nocrew.org/software/httptunnel/httptunnel-%{version}.tar.gz +Patch0: httptunnel-3.3-gcc-14.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: libnsl-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. +%debug_package + %prep %setup -q +%patch 0 -p1 -b .gcc-14 + +autoreconf -f -i %build %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}" %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 +%doc AUTHORS COPYING %changelog +* Wed Nov 27 2024 Silvan Calarco 3.3-5mamba +- updated URL and specfile; closes #1 + * Sun Dec 28 2014 Automatic Build System 3.3-4mamba - automatic rebuild by autodist diff --git a/httptunnel.sysconfig b/httptunnel.sysconfig deleted file mode 100644 index 59c3bd1..0000000 --- a/httptunnel.sysconfig +++ /dev/null @@ -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