c0a4b09
Name: vtun
Gabriel L. Somlo 83ee6d9
Version: 3.0.4
Gabriel L. Somlo feef202
Release: 5%{?dist}
c0a4b09
Summary: Virtual tunnel over TCP/IP networks
c0a4b09
License: GPLv2+
c0a4b09
Group: System Environment/Daemons
c0a4b09
Url: http://vtun.sourceforge.net
c0a4b09
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Gabriel L. Somlo 1cc0a9b
Source1: vtun.socket
Gabriel L. Somlo 1cc0a9b
Source2: vtun.service
44a6fe0
Source3: vtun.sysconfig
Gabriel L. Somlo 4520a2e
Patch0: vtun-nostrip.patch
c8ccdd9
Gabriel L. Somlo 0194da4
Requires(post): systemd-units
Gabriel L. Somlo be06e01
Requires(preun): systemd-units
Gabriel L. Somlo be06e01
Requires(postun): systemd-units
Gabriel L. Somlo feef202
BuildRequires: zlib-devel lzo-devel bison flex systemd-units autoconf
Gabriel L. Somlo feef202
%if 0%{?fedora} >= 26
Gabriel L. Somlo feef202
BuildRequires: compat-openssl10-devel
Gabriel L. Somlo feef202
%else
Gabriel L. Somlo feef202
BuildRequires: openssl-devel
Gabriel L. Somlo feef202
%endif
c0a4b09
9c5bf51
#enable PIE/PIC:
9c5bf51
%global _hardened_build 1
9c5bf51
c0a4b09
%description
c0a4b09
VTun provides a method for creating Virtual Tunnels over TCP/IP networks
c0a4b09
and allows one to shape, compress, and encrypt traffic in those tunnels.
c0a4b09
Supported types of tunnels are: PPP, IP, Ethernet and most other serial
c0a4b09
protocols and programs.
c0a4b09
VTun is easily and highly configurable: it can be used for various
c0a4b09
network tasks like VPN, Mobile IP, Shaped Internet access, IP address
c0a4b09
saving, etc. It is completely a user space implementation and does not
c0a4b09
require modification to any kernel parts.
c0a4b09
c0a4b09
%prep
c0a4b09
%setup -q
Gabriel L. Somlo 4520a2e
%patch0 -p1
c0a4b09
c0a4b09
%build
1a765e5
%{__autoconf}
eebb079
# FIXME: Package suffers from c11/inline issues.
eebb079
# Workaround by appending --std=gnu89 to CFLAGS
eebb079
# Proper fix would be to fix the source-code
eebb079
%configure CFLAGS="${RPM_OPT_FLAGS} --std=gnu89"
c8ccdd9
make %{?_smp_mflags}
c0a4b09
c0a4b09
%install
c8ccdd9
install -D -m 0644 -p %{SOURCE1} %{buildroot}/%{_unitdir}/vtun.socket
c8ccdd9
install -D -m 0644 -p %{SOURCE2} %{buildroot}/%{_unitdir}/vtun.service
44a6fe0
install -D -m 0644 -p %{SOURCE3} %{buildroot}/%{_sysconfdir}/sysconfig/vtun
c8ccdd9
make install DESTDIR=%{buildroot} INSTALL_OWNER= INSTALL="/usr/bin/install -p"
Gabriel L. Somlo 266a063
# tmpfiles.d configuration for /var/lock/vtund:
Gabriel L. Somlo 266a063
mkdir -p %{buildroot}/%{_tmpfilesdir}
Gabriel L. Somlo 266a063
cat > %{buildroot}/%{_tmpfilesdir}/%{name}.conf << EOT
Gabriel L. Somlo 266a063
d %{_localstatedir}/lock/vtund 0755 root root -
Gabriel L. Somlo 266a063
EOT
c0a4b09
c0a4b09
%post
Gabriel L. Somlo 0194da4
%systemd_post vtun.service vtun.socket
c0a4b09
c0a4b09
%preun
Gabriel L. Somlo 0194da4
%systemd_preun vtun.service vtun.socket
c0a4b09
c0a4b09
%postun
Gabriel L. Somlo 0194da4
%systemd_postun vtun.service vtun.socket
c0a4b09
c0a4b09
%files
c0a4b09
%defattr(-,root,root,-)
c0a4b09
%doc ChangeLog Credits FAQ README README.LZO README.Setup README.Shaper TODO vtund.conf
c0a4b09
%config(noreplace) %{_sysconfdir}/vtund.conf
44a6fe0
%config(noreplace) %{_sysconfdir}/sysconfig/vtun
c8ccdd9
%{_unitdir}/vtun.socket
c8ccdd9
%{_unitdir}/vtun.service
c0a4b09
%{_sbindir}/vtund
Gabriel L. Somlo 266a063
%{_tmpfilesdir}/%{name}.conf
c0a4b09
%dir %{_localstatedir}/log/vtund
Gabriel L. Somlo 266a063
%dir %{_localstatedir}/lock/vtund
c0a4b09
%{_mandir}/man5/vtund.conf.5*
c0a4b09
%{_mandir}/man8/vtun.8*
c0a4b09
%{_mandir}/man8/vtund.8*
c0a4b09
c0a4b09
%changelog
Gabriel L. Somlo feef202
* Sat Sep 02 2017 Gabriel Somlo <somlo at cmu.edu> 3.0.3-5
Gabriel L. Somlo feef202
- remove segfaulting  openssl-1.1 patch; use compat-openssl10 instead
Gabriel L. Somlo feef202
Gabriel L. Somlo 9a63ba1
* Sat Sep 02 2017 Gabriel Somlo <somlo at cmu.edu> 3.0.3-4
Gabriel L. Somlo 095051a
- apply openssl-1.1 patch only on Fedora >= 26, to avoid epel7 (#1487003)
f4f3570
Gabriel L. Somlo 9a63ba1
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-3
Gabriel L. Somlo 9a63ba1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
Gabriel L. Somlo 9a63ba1
Gabriel L. Somlo 266a063
* Mon Jul 31 2017 Gabriel Somlo <somlo at cmu.edu> 3.0.3-2
Gabriel L. Somlo 266a063
- add /usr/lib/tmpfiles.d/vtun.conf to enable lock dir. on tmpfs
7ab437d
Gabriel L. Somlo 83ee6d9
* Fri Mar 17 2017 Gabriel Somlo <somlo at cmu.edu> 3.0.3-1
Gabriel L. Somlo 83ee6d9
- update to 3.0.4
Gabriel L. Somlo 83ee6d9
- patch for openssl-1.1 transition
Gabriel L. Somlo 83ee6d9
98ee663
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-16
98ee663
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
98ee663
95e451e
* Mon Mar 21 2016 Gabriel Somlo <somlo at cmu.edu> 3.0.3-15
95e451e
- patch to fix #1319858,#1319859,#1319861
95e451e
e19ff0f
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-14
e19ff0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e19ff0f
eebb079
* Mon Jun 22 2015 Ralf Cors├ępius <corsepiu@fedoraproject.org> - 3.0.3-13
eebb079
- Append --stdc=gnu89 to CFLAGS (Work-around to c11/inline compatibility
eebb079
  issues. Fix FTBFS).
eebb079
c0f984c
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-12
c0f984c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c0f984c
ccddc64
* Tue Dec 23 2014 Gabriel Somlo <somlo at cmu.edu> 3.0.3-11
ccddc64
- enhanced service file (remove "KillMode", use default "cgroup" mode)
ccddc64
740551e
* Thu Nov 20 2014 Gabriel Somlo <somlo at cmu.edu> 3.0.3-10
740551e
- enhanced service file (-n to prevent daemonizing vtund)
740551e
44a6fe0
* Fri Nov 14 2014 Gabriel Somlo <somlo at cmu.edu> 3.0.3-9
44a6fe0
- added /etc/sysconfig/vtun environment file
44a6fe0
- updated unit files
44a6fe0
17436fe
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-8
17436fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
17436fe
86d3c3b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-7
86d3c3b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
86d3c3b
2cf07eb
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-6
2cf07eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2cf07eb
44a6fe0
* Mon May 13 2013 Gabriel Somlo <somlo at cmu.edu> 3.0.3-5
1a765e5
- added autoconf step to support aarch64 (#926708)
1a765e5
794bfef
* Wed May 01 2013 Gabriel Somlo <somlo at cmu.edu> 3.0.3-4
9c5bf51
- rebuild with PIE (#955286)
fe5b51e
794bfef
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 
794bfef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
794bfef
Gabriel L. Somlo 4520a2e
* Sun Sep 16 2012 Gabriel Somlo <somlo at cmu.edu> 3.0.3-2
Gabriel L. Somlo 4520a2e
- avoid stripping too early to preserve debuginfo (#857716)
Gabriel L. Somlo 4520a2e
Gabriel L. Somlo 0194da4
* Thu Sep 13 2012 Gabriel Somlo <somlo at cmu.edu> 3.0.3-1
Gabriel L. Somlo 0194da4
- update to 3.0.3
Gabriel L. Somlo 0194da4
- new systemd-rpm macros (#850362)
Gabriel L. Somlo 0194da4
734c174
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-15
734c174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
734c174
c8ccdd9
* Mon May 21 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.1-14
c8ccdd9
- Fix unit file location, cleanup and modernise spec
c8ccdd9
b6d68f7
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-13
b6d68f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b6d68f7
Gabriel L. Somlo 1cc0a9b
* Sat Sep 10 2011 Gabriel Somlo <somlo at cmu.edu> 3.0.1-12
Gabriel L. Somlo 1cc0a9b
- removed xinetd and sysvinit support
Gabriel L. Somlo 1cc0a9b
Gabriel L. Somlo b3fcd30
* Sat Sep 10 2011 Gabriel Somlo <somlo at cmu.edu> 3.0.1-11
Gabriel L. Somlo b3fcd30
- update support for systemd (#737195)
Gabriel L. Somlo b3fcd30
1818248
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-10
1818248
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1818248
Gabriel L. Somlo be06e01
* Thu Jan 06 2011 Gabriel Somlo <somlo at cmu.edu> 3.0.1-9
Gabriel L. Somlo be06e01
- add support for systemd (#661331)
Gabriel L. Somlo be06e01
Gabriel L. Somlo 8657652
* Tue Nov 30 2010 Gabriel Somlo <somlo at cmu.edu> 3.0.1-8
44a6fe0
- using ghost on /var/lock/vtund directory (#656720)
Gabriel L. Somlo 8657652
8d0f4ac
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 3.0.1-7
8d0f4ac
- rebuilt with new openssl
8d0f4ac
09bf4f8
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-6
09bf4f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
09bf4f8
e20b1b2
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-5
e20b1b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e20b1b2
b2bc09e
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> 3.0.1-4
b2bc09e
- rebuild with new openssl
b2bc09e
c0a4b09
* Mon Nov 17 2008 Gabriel Somlo <somlo at cmu.edu> 3.0.1-3
c0a4b09
- scriptlets fixes
Gabriel L. Somlo 8657652
c0a4b09
* Fri Nov 14 2008 Gabriel Somlo <somlo at cmu.edu> 3.0.1-2
c0a4b09
- spec file fixes: defattr, -p flag to install program
Gabriel L. Somlo 8657652
c0a4b09
* Mon Oct 20 2008 Gabriel Somlo <somlo at cmu.edu> 3.0.1-1
c0a4b09
- initial fedora package