Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
xl2tpd
xl2tpd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xl2tpd.spec of Package xl2tpd
# # spec file for package xl2tpd # # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %if 0%{?suse_version} <= 1310 %define rundir /var/run %else %define rundir /run %endif Summary: Layer 2 Tunnelling Protocol Daemon (RFC 2661) License: GPL-2.0 Group: Productivity/Networking/System Name: xl2tpd Version: 1.3.6 Release: 0 Url: http://www.xelerance.com/software/xl2tpd/ Source0: https://github.com/xelerance/xl2tpd/archive/v%{version}.tar.gz Source1: %{name}.service Source2: %{name}.conf Patch0: Makefile.patch Patch1: xl2tpd.init.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: ppp BuildRequires: libpcap BuildRequires: linux-kernel-headers => 2.6.19 BuildRequires: libpcap-devel BuildRequires: linux-kernel-headers Obsoletes: l2tpd <= 0.68 Provides: l2tpd = 0.69 %if 0%{?suse_version} >= 1210 BuildRequires: systemd %{?systemd_requires} %define has_systemd 1 %endif %description xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661). L2TP allows you to tunnel PPP over UDP. Some ISPs use L2TP to tunnel user sessions from dial-in servers (modem banks, ADSL DSLAMs) to back-end PPP servers. Another important application is Virtual Private Networks where the IPsec protocol is used to secure the L2TP connection (L2TP/IPsec, RFC 3193). The L2TP/IPsec protocol is mainly used by Windows and Mac OS X clients. On Linux, xl2tpd can be used in combination with IPsec implementations such as Openswan. Example configuration files for such a setup are included in this RPM. xl2tpd works by opening a pseudo-tty for communicating with pppd. It runs completely in userspace but supports kernel mode L2TP. xl2tpd supports IPsec SA Reference tracking to enable overlapping internak NAT'ed IP's by different clients (eg all clients connecting from their linksys internal IP 192.168.1.101) as well as multiple clients behind the same NAT router. xl2tpd supports the pppol2tp kernel mode operations on 2.6.23 or higher, or via a patch in contrib for 2.4.x kernels. Xl2tpd is based on the 0.69 L2TP by Jeff McAdams <jeffm@iglou.com> It was de-facto maintained by Jacco de Leeuw <jacco2@dds.nl> in 2002 and 2003. %package -n xl2tpd-doc Summary: Documentation for xl2tpd package Group: Documentation/Man %description -n xl2tpd-doc This package contains the documentation for using the xl2tpd daemon %prep %setup -q %patch0 %patch1 %build make DFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE $(getconf LFS_CFLAGS)" %install export PREFIX=/usr make DESTDIR=%{buildroot} MANDIR=%{buildroot}/%{_mandir} install install -p -D -m644 examples/xl2tpd.conf %{buildroot}%{_sysconfdir}/xl2tpd/xl2tpd.conf install -p -D -m644 examples/ppp-options.xl2tpd %{buildroot}%{_sysconfdir}/ppp/options.xl2tpd install -p -D -m600 doc/l2tp-secrets.sample %{buildroot}%{_sysconfdir}/xl2tpd/l2tp-secrets install -p -D -m600 examples/chapsecrets.sample %{buildroot}%{_sysconfdir}/ppp/chap-secrets.sample install -p -D -m755 -d %{buildroot}%{rundir}/xl2tpd %if 0%{?has_systemd} install -D -m0644 %{S:1} %{buildroot}%{_unitdir}/%{name}.service install -D -m0644 %{S:2} %{buildroot}/usr/lib/tmpfiles.d/%{name}.conf mkdir -p %{buildroot}/usr/lib/modules-load.d echo "l2tp_ppp" > %{buildroot}/usr/lib/modules-load.d/%{name}.conf ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name} %else install -p -D -m755 packaging/suse/xl2tpd.init %{buildroot}%{_initrddir}/xl2tpd ln -sf /etc/init.d/xl2tpd $RPM_BUILD_ROOT/%{_sbindir}/rcxl2tpd %endif %pre %if 0%{?has_systemd} %service_add_pre %{name}.service %endif %post # if we migrate from l2tpd to xl2tpd, copy the configs if [ -f /etc/l2tpd/l2tpd.conf ] then echo "Old /etc/l2tpd configuration found, migrating to /etc/xl2tpd" mv /etc/xl2tpd/xl2tpd.conf /etc/xl2tpd/xl2tpd.conf.rpmsave cat /etc/l2tpd/l2tpd.conf | sed "s/options.l2tpd/options.xl2tpd/" > /etc/xl2tpd/xl2tpd.conf mv /etc/ppp/options.xl2tpd /etc/ppp/options.xl2tpd.rpmsave mv /etc/ppp/options.l2tpd /etc/ppp/options.xl2tpd mv /etc/xl2tpd/l2tp-secrets /etc/xl2tpd/l2tpd-secrets.rpmsave cp -pa /etc/l2tpd/l2tp-secrets /etc/xl2tpd/l2tp-secrets fi %if 0%{?has_systemd} %service_add_post %{name}.service %fillup_only %else %{fillup_and_insserv xl2tpd} %endif %preun %if 0%{?has_systemd} %service_del_preun %{name}.service %else %stop_on_removal xl2tpd %endif %postun %if 0%{?has_systemd} %service_del_postun %{name}.service %else %restart_on_update xl2tpd %insserv_cleanup %endif %files %defattr(-,root,root) %{_sbindir}/rcxl2tpd %{_sbindir}/xl2tpd %{_sbindir}/xl2tpd-control %{_bindir}/pfc %dir %{_sysconfdir}/xl2tpd %config(noreplace) %{_sysconfdir}/xl2tpd/* %config(noreplace) %{_sysconfdir}/ppp/* %ghost %{rundir}/xl2tpd %if 0%{?has_systemd} /usr/lib/tmpfiles.d/%{name}.conf %{_unitdir}/%{name}.service /usr/lib/modules-load.d/%{name}.conf %else %attr(0755,root,root) %{_initrddir}/xl2tpd %endif %files -n xl2tpd-doc %defattr(-,root,root) %doc BUGS CHANGES CREDITS LICENSE README.* TODO doc/rfc2661.txt %doc doc/README.patents examples/chapsecrets.sample %{_mandir}/*/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor