Compare commits

..

6 commits

Author SHA1 Message Date
Gabriel L. Somlo
dd486896a5 added autoconf step to support aarch64 (#926708) 2013-05-13 10:35:38 -04:00
Gabriel L. Somlo
aeddfcc3d4 rebuild with PIE (#955286) 2013-05-01 21:47:16 -04:00
Gabriel L. Somlo
979982f5d5 rebuild with PIE (#955286) 2013-05-01 21:33:33 -04:00
Gabriel L. Somlo
b5c89d8582 avoid stripping too early to preserve debuginfo (#857716), take 2 2012-09-16 11:01:16 -04:00
Gabriel L. Somlo
986649a89a avoid stripping too early to preserve debuginfo (#857716) 2012-09-16 10:55:57 -04:00
Gabriel L. Somlo
f55bca28a1 update to 3.0.3; new systemd-rpm macros (#850362) 2012-09-13 10:51:07 -04:00
7 changed files with 157 additions and 1 deletions

3
.gitignore vendored Normal file
View file

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

View file

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

1
sources Normal file
View file

@ -0,0 +1 @@
f3becf2a0270910a841060c08d1db824 vtun-3.0.3.tar.gz

10
vtun-nostrip.patch Normal file
View file

@ -0,0 +1,10 @@
diff -up vtun-3.0.3/Makefile.in~ vtun-3.0.3/Makefile.in
--- vtun-3.0.3/Makefile.in~ 2012-07-09 07:55:38.000000000 +0300
+++ vtun-3.0.3/Makefile.in 2012-09-16 16:12:41.176283091 +0300
@@ -99,6 +99,5 @@ install: vtund install_config install_ma
$(INSTALL) -d -m 755 $(INSTALL_OWNER) $(DESTDIR)$(LOCK_DIR)
$(INSTALL) -d -m 755 $(INSTALL_OWNER) $(DESTDIR)$(SBIN_DIR)
$(INSTALL) -m 755 $(INSTALL_OWNER) vtund $(DESTDIR)$(SBIN_DIR)
- $(BIN_DIR)/strip $(DESTDIR)$(SBIN_DIR)/vtund
# DO NOT DELETE THIS LINE -- make depend depends on it.

7
vtun.service Normal file
View file

@ -0,0 +1,7 @@
[Unit]
Description=Virtual Tunnels over TCP/IP networks
After=local-fs.target
[Service]
ExecStart=/usr/sbin/vtund -i
StandardInput=socket

9
vtun.socket Normal file
View file

@ -0,0 +1,9 @@
[Unit]
Description=Vtun Activation Socket
[Socket]
ListenStream=5000
Accept=true
[Install]
WantedBy=sockets.target

127
vtun.spec Normal file
View file

@ -0,0 +1,127 @@
Name: vtun
Version: 3.0.3
Release: 5%{?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: vtun.socket
Source2: vtun.service
Patch0: vtun-nostrip.patch
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
BuildRequires: zlib-devel lzo-devel openssl-devel bison flex systemd-units autoconf
#enable PIE/PIC:
%global _hardened_build 1
%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
%{__autoconf}
%configure
make %{?_smp_mflags}
%install
install -D -m 0644 -p %{SOURCE1} %{buildroot}/%{_unitdir}/vtun.socket
install -D -m 0644 -p %{SOURCE2} %{buildroot}/%{_unitdir}/vtun.service
make install DESTDIR=%{buildroot} INSTALL_OWNER= INSTALL="/usr/bin/install -p"
%post
%systemd_post vtun.service vtun.socket
%preun
%systemd_preun vtun.service vtun.socket
%postun
%systemd_postun vtun.service vtun.socket
%files
%defattr(-,root,root,-)
%doc ChangeLog Credits FAQ README README.LZO README.Setup README.Shaper TODO vtund.conf
%config(noreplace) %{_sysconfdir}/vtund.conf
%{_unitdir}/vtun.socket
%{_unitdir}/vtun.service
%{_sbindir}/vtund
%dir %{_localstatedir}/log/vtund
%ghost %dir %{_localstatedir}/lock/vtund
%{_mandir}/man5/vtund.conf.5*
%{_mandir}/man8/vtun.8*
%{_mandir}/man8/vtund.8*
%changelog
* Mon May 13 2013 Gabriel Somlo <somlo at cmu.edu> 2.0.5-5
- added autoconf step to support aarch64 (#926708)
* Wed May 01 2013 Gabriel Somlo <somlo at cmu.edu> 3.0.3-4
- rebuild with PIE (#955286)
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sun Sep 16 2012 Gabriel Somlo <somlo at cmu.edu> 3.0.3-2
- avoid stripping too early to preserve debuginfo (#857716)
* Thu Sep 13 2012 Gabriel Somlo <somlo at cmu.edu> 3.0.3-1
- update to 3.0.3
- new systemd-rpm macros (#850362)
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon May 21 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.1-14
- Fix unit file location, cleanup and modernise spec
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Sat Sep 10 2011 Gabriel Somlo <somlo at cmu.edu> 3.0.1-12
- removed xinetd and sysvinit support
* Sat Sep 10 2011 Gabriel Somlo <somlo at cmu.edu> 3.0.1-11
- update support for systemd (#737195)
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Jan 06 2011 Gabriel Somlo <somlo at cmu.edu> 3.0.1-9
- add support for systemd (#661331)
* Tue Nov 30 2010 Gabriel Somlo <somlo at cmu.edu> 3.0.1-8
- using %ghost on /var/lock/vtund directory (#656720)
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 3.0.1-7
- rebuilt with new openssl
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> 3.0.1-4
- rebuild with new openssl
* 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