Compare commits

..

54 commits

Author SHA1 Message Date
Miro Hrončok
5f702d5111 Orphaned for 6+ weeks 2020-11-03 00:13:25 +01:00
Fedora Release Engineering
4fa3359af5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 13:55:01 +00:00
Fedora Release Engineering
82540dc397 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 03:25:41 +00:00
Fedora Release Engineering
aa8d4bc89e - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 03:13:22 +00:00
81e15b3a03 Drop use of __* macros that were removed in rpm-4.15 2019-06-19 09:57:50 +02:00
Fedora Release Engineering
78922f8841 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 11:29:06 +00:00
c9ea8c1304 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:54 +01:00
Fedora Release Engineering
5c99ad0f2b - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 08:40:58 +00:00
Jason Tibbitts
51f51041d2 Remove needless use of %defattr 2018-07-10 01:43:57 -05:00
Igor Gnatenko
7f161bf488 add BuildRequires: gcc
Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
2018-07-09 19:06:53 +02:00
Fedora Release Engineering
b51c8f84af - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 20:42:28 +00:00
Gabriel L. Somlo
f288dfa08f requiring compat-openssl1.0 on >= f26 2017-10-11 13:56:32 -04:00
Gabriel L. Somlo
4fcfb7b375 apply openssl-1.1 patch only on Fedora >= 26, to avoid epel7 (#1487003) 2017-09-02 18:40:57 -04:00
Gabriel L. Somlo
8014407ad0 apply openssl-1.1 patch only on Fedora >= 26, to avoid epel7 (#1487003) 2017-09-02 18:36:24 -04:00
Fedora Release Engineering
f4f3570aab - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 10:09:58 +00:00
Gabriel L. Somlo
266a063f3a add /usr/lib/tmpfiles.d/vtun.conf to enable lock dir. on tmpfs 2017-07-31 14:44:47 -04:00
Fedora Release Engineering
7ab437d651 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 21:27:31 +00:00
Gabriel L. Somlo
2e411b90b7 push new vtun sources to lookaside cache 2017-03-22 09:10:15 -04:00
Gabriel L. Somlo
83ee6d9c2f update to 3.0.4; fix openssl-1.1 build (BZ1424526) 2017-03-20 09:04:14 -04:00
Fedora Release Engineering
98ee663d07 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 17:13:18 +00:00
Gabriel L. Somlo
95e451ea73 patch to fix RHBZ 1319858, 1319859 2016-03-21 17:45:07 -04:00
Fedora Release Engineering
e19ff0f94c - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 02:52:11 +00:00
Ralf Corsépius
eebb079d6d Append --stdc=gnu89 to CFLAGS (Work-around to c11/inline compatibility
issues. Fix FTBFS).
2015-06-22 13:53:17 +02:00
Dennis Gilmore
c0f984cb7f - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 02:11:12 +00:00
Gabriel L. Somlo
ccddc64d07 enhanced service file (remove "KillMode", use default "cgroup" mode) 2014-12-23 00:09:55 -05:00
Gabriel L. Somlo
740551ea7f enhanced service file (don't daemonize vtund) 2014-11-20 17:15:23 -05:00
Gabriel L. Somlo
44a6fe09a2 added /etc/sysconfig/vtun environment file; updated unit files 2014-11-15 23:29:32 -05:00
17436fe7f3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 08:12:53 +00:00
Dennis Gilmore
86d3c3baf5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 23:06:18 -05:00
Dennis Gilmore
2cf07ebcdf - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-04 01:31:51 -05:00
Gabriel L. Somlo
1a765e55e2 added autoconf step to support aarch64 (#926708) 2013-05-13 10:35:12 -04:00
Gabriel L. Somlo
794bfef1f2 rebuild with PIE (#955286) 2013-05-01 21:46:53 -04:00
Gabriel L. Somlo
9c5bf51bf9 rebuild with PIE (#955286) 2013-05-01 21:32:47 -04:00
Dennis Gilmore
fe5b51eb26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 20:56:02 -06:00
Gabriel L. Somlo
4da605e27f avoid stripping too early to preserve debuginfo (#857716), take 2 2012-09-16 11:01:48 -04:00
Gabriel L. Somlo
4520a2ee1d avoid stripping too early to preserve debuginfo (#857716) 2012-09-16 10:56:40 -04:00
Gabriel L. Somlo
0194da417f update to 3.0.3; new systemd-rpm macros (#850362) 2012-09-13 10:50:56 -04:00
Dennis Gilmore
734c174a9d - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 22:06:39 -05:00
Peter Robinson
c8ccdd92b1 Fix unit file location, cleanup and modernise spec 2012-05-21 20:42:25 +01:00
Dennis Gilmore
b6d68f70e8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-14 02:06:15 -06:00
Gabriel L. Somlo
12ebc68780 update release # 2011-09-10 18:09:40 -04:00
Gabriel L. Somlo
1cc0a9b399 removed xinetd and sysvinit support 2011-09-10 18:07:07 -04:00
Gabriel L. Somlo
e9e197c5fb update support for systemd (#737195) attempt #2 2011-09-10 10:02:52 -04:00
Gabriel L. Somlo
b3fcd3083f update support for systemd (#737195) 2011-09-10 09:46:28 -04:00
Dennis Gilmore
1818248db3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-07 22:40:21 -06:00
Gabriel L. Somlo
be06e01b13 add support for systemd (#661331) 2011-01-06 16:18:18 -05:00
Gabriel L. Somlo
8657652c05 using %ghost on /var/lock/vtund directory (BZ 656720) 2010-11-30 12:18:29 -05:00
Fedora Release Engineering
a5773110a4 dist-git conversion 2010-07-29 15:10:25 +00:00
Bill Nottingham
925b8ac123 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:43:24 +00:00
Tomáš Mráz
8d0f4ac48b - rebuilt with new openssl 2009-08-21 16:23:18 +00:00
Jesse Keating
09bf4f879e - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-27 07:00:12 +00:00
Jesse Keating
e20b1b2c3f - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-26 00:58:43 +00:00
Tomáš Mráz
b2bc09e589 - rebuild with new openssl 2009-01-18 15:06:05 +00:00
c0a4b09f12 initial commit 2008-11-19 14:45:37 +00:00
7 changed files with 1 additions and 240 deletions

2
.gitignore vendored
View file

@ -1,2 +0,0 @@
vtun-3.0.1.tar.gz
/vtun-3.0.1.tar.gz

1
dead.package Normal file
View file

@ -0,0 +1 @@
Orphaned for 6+ weeks

View file

@ -1 +0,0 @@
c342ffe77055d4248a38f0b380f28c1b vtun-3.0.1.tar.gz

View file

@ -1,33 +0,0 @@
When sending a SIGHUP to a vtun client process which is unable to connect
to the remote server, it will attempt to reconnect without sleeping between
consecutive attempts. This results in a CPU usage spike, and a flood of
data sent to syslog.
This patch causes the first sleep after SIGHUP to be discarded, then allows
sleep to be used again in subsequent iterations.
diff -NarU5 a/client.c b/client.c
--- a/client.c 2006-12-11 02:55:06.000000000 -0500
+++ b/client.c 2016-03-21 14:41:09.014377581 -0400
@@ -129,10 +129,11 @@
vtun_syslog(LOG_INFO,"Connecting to %s", vtun.svr_name);
if( connect_t(s,(struct sockaddr *) &svr_addr, host->timeout) ){
vtun_syslog(LOG_INFO,"Connect to %s failed. %s(%d)", vtun.svr_name,
strerror(errno), errno);
+ client_term = 0;
} else {
if( auth_client(s, host) ){
vtun_syslog(LOG_INFO,"Session %s[%s] opened",host->host,vtun.svr_name);
host->rmt_fd = s;
@@ -141,10 +142,11 @@
client_term = tunnel(host);
vtun_syslog(LOG_INFO,"Session %s[%s] closed",host->host,vtun.svr_name);
} else {
vtun_syslog(LOG_INFO,"Connection denied by %s",vtun.svr_name);
+ client_term = 0;
}
}
close(s);
free_sopt(&host->sopt);
}

View file

@ -1,84 +0,0 @@
Name: vtun
Version: 3.0.1
Release: 10%{?dist}
Summary: Virtual tunnel over TCP/IP networks
License: GPLv2+
Group: System Environment/Daemons
Url: http://vtun.sourceforge.net
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: vtund.init
Patch0: vtun-client-sighup.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: xinetd
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/service /sbin/chkconfig
Requires(postun): /sbin/service
BuildRequires: zlib-devel lzo-devel openssl-devel bison flex
%description
VTun provides a method for creating Virtual Tunnels over TCP/IP networks
and allows one to shape, compress, and encrypt traffic in those tunnels.
Supported types of tunnels are: PPP, IP, Ethernet and most other serial
protocols and programs.
VTun is easily and highly configurable: it can be used for various
network tasks like VPN, Mobile IP, Shaped Internet access, IP address
saving, etc. It is completely a user space implementation and does not
require modification to any kernel parts.
%prep
%setup -q
%patch0 -p1
%build
%configure
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__install} -D -m 0755 -p %{SOURCE1} %{buildroot}/%{_initrddir}/vtund
%{__install} -D -m 0644 -p scripts/vtund.xinetd %{buildroot}/%{_sysconfdir}/xinetd.d/vtun
%{__sed} -i 's:/usr/local:%{_prefix}:' %{buildroot}/%{_sysconfdir}/xinetd.d/vtun
%{__make} install DESTDIR=%{buildroot} INSTALL_OWNER= INSTALL="/usr/bin/install -p"
%clean
%{__rm} -rf %{buildroot}
%post
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add vtund || :
fi
%preun
if [ $1 -eq 0 ]; then
/sbin/service vtund stop >/dev/null 2>&1 || :
/sbin/chkconfig --del vtund || :
fi
%postun
if [ $1 -eq 1 ]; then
/sbin/service vtund condrestart >/dev/null 2>&1 || :
fi
%files
%defattr(-,root,root,-)
%doc ChangeLog Credits FAQ README README.LZO README.Setup README.Shaper TODO vtund.conf
%config(noreplace) %{_sysconfdir}/vtund.conf
%config(noreplace) %{_sysconfdir}/xinetd.d/vtun
%{_initrddir}/vtund
%{_sbindir}/vtund
%dir %{_localstatedir}/log/vtund
%dir %{_localstatedir}/lock/vtund
%{_mandir}/man5/vtund.conf.5*
%{_mandir}/man8/vtun.8*
%{_mandir}/man8/vtund.8*
%changelog
* Mon Mar 21 2016 Gabriel Somlo <somlo at cmu.edu> 3.0.1-10
- patch to fix RHBZ 1319858, 1319860
- bump release past (el6 & Fedora specific) attempts to add systemd support
* Mon Nov 17 2008 Gabriel Somlo <somlo at cmu.edu> 3.0.1-3
- scriptlets fixes
* Fri Nov 14 2008 Gabriel Somlo <somlo at cmu.edu> 3.0.1-2
- spec file fixes: defattr, -p flag to install program
* Mon Oct 20 2008 Gabriel Somlo <somlo at cmu.edu> 3.0.1-1
- initial fedora package

View file

@ -1,110 +0,0 @@
#!/bin/sh
#
# vtund Startup script for the virtual tunnel daemon
#
# chkconfig: - 55 45
# description: Virtual Tunnel Daemon provides the facility to create \
# virtual tunnels over TCP/IP networks and allows for \
# shaping, compression, and encryption of tunneled traffic.
### BEGIN INIT INFO
# Provides:
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Default-Start:
# Default-Stop:
# Short-Description:
# Description:
### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
exec="/usr/sbin/vtund"
prog="vtund"
config="/etc/vtund.conf"
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
lockfile=/var/lock/subsys/$prog
start() {
[ -x $exec ] || exit 5
[ -f $config ] || exit 6
echo -n $"Starting $prog: "
daemon $exec -s
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}
stop() {
echo -n $"Stopping $prog: "
killproc $prog
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
restart() {
stop
start
}
reload() {
echo -n $"Reloading config for $prog: "
killproc $prog -HUP
retval=$?
echo
return $retval
}
force_reload() {
restart
}
rh_status() {
# run checks to determine if the service is running or use generic status
status $prog
}
rh_status_q() {
rh_status >/dev/null 2>&1
}
case "$1" in
start)
rh_status_q && exit 0
$1
;;
stop)
rh_status_q || exit 0
$1
;;
restart)
$1
;;
reload)
rh_status_q || exit 7
$1
;;
force-reload)
force_reload
;;
status)
rh_status
;;
condrestart|try-restart)
rh_status_q || exit 0
restart
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
exit 2
esac
exit $?

View file

@ -1,10 +0,0 @@
[Unit]
Description=virtual tunnel daemon
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/usr/sbin/vtund -s
[Install]
WantedBy=multi-user.target