Projects
Eulaceura:Factory
xl2tpd
_service:obs_scm:xl2tpd.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:xl2tpd.spec of Package xl2tpd
%global commit 5619e1771048e74b729804e8602f409af0f3faea Summary: Layer 2 Tunnelling Protocol Daemon (RFC 2661) Name: xl2tpd Version: 1.3.16 Release: 1 License: GPL+ Url: https://github.com/xelerance/xl2tpd/ # upstream isn't using proper names, we manually rename v-VERSION.tar.gz to xl2tpd-VERSION.tar.gz Source0: https://github.com/xelerance/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: xl2tpd.service Source2: tmpfiles-xl2tpd.conf Patch1: xl2tpd-1.3.14-conf.patch Patch2: xl2tpd-1.3.14-md5-fips.patch Patch3: xl2tpd-1.3.14-kernelmode.patch #Requires: ppp >= 2.4.5-18, kmod(l2tp_ppp.ko) Requires: ppp >= 2.4.5-18, kernel # If you want to authenticate against a Microsoft PDC/Active Directory # Requires: samba-winbind BuildRequires: make BuildRequires: gcc BuildRequires: libpcap-devel BuildRequires: systemd-units BuildRequires: openssl-devel Requires(post): systemd Requires(preun): systemd Requires(postun): systemd # dnf resolving prefers kernel-debug-modules-extra over kernel-modules-extra Suggests: kernel-modules-extra %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. 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. %prep %autosetup -p1 %build export CFLAGS="$CFLAGS -fPIC -Wall -DTRUST_PPPD_TO_DIE" export DFLAGS="$RPM_OPT_FLAGS -g " export LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" # fixup for obsoleted pppd options sed -i "s/crtscts/#obsolete: crtscts/" examples/ppp-options.xl2tpd sed -i "s/lock/#obsolete: lock/" examples/ppp-options.xl2tpd # if extra debugging is needed, use: # %make_build DFLAGS="$RPM_OPT_FLAGS -g -DDEBUG_HELLO -DDEBUG_CLOSE -DDEBUG_FLOW -DDEBUG_PAYLOAD -DDEBUG_CONTROL -DDEBUG_CONTROL_XMIT -DDEBUG_FLOW_MORE -DDEBUG_MAGIC -DDEBUG_ENTROPY -DDEBUG_HIDDEN -DDEBUG_PPPD -DDEBUG_AAA -DDEBUG_FILE -DDEBUG_FLOW -DDEBUG_HELLO -DDEBUG_CLOSE -DDEBUG_ZLB -DDEBUG_AUTH" %make_build %install make DESTDIR=%{buildroot} PREFIX=%{_prefix} install install -d 0755 %{buildroot}%{_unitdir} install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/xl2tpd.service mkdir -p %{buildroot}/%{_tmpfilesdir} install -m 0644 %{SOURCE2} %{buildroot}/%{_tmpfilesdir}/%{name}.conf 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 %preun %systemd_preun xl2tpd.service %post %systemd_post xl2tpd.service %postun %systemd_postun_with_restart xl2tpd.service %triggerun -- xl2td < 1.3.1-3 # Save the current service runlevel info # User must manually run systemd-sysv-convert --apply xl2tpd # to migrate them to systemd targets /usr/bin/systemd-sysv-convert --save xl2tpd >/dev/null 2>&1 ||: # Run these because the SysV package being removed won't do them /sbin/chkconfig --del xl2tpd >/dev/null 2>&1 || : /bin/systemctl try-restart xl2tpd.service >/dev/null 2>&1 || : %files %doc BUGS CHANGES CREDITS README.* TODO %license LICENSE %doc doc/README.patents examples/chapsecrets.sample %{_sbindir}/xl2tpd %{_sbindir}/xl2tpd-control %{_bindir}/pfc %{_mandir}/*/* %dir %{_sysconfdir}/xl2tpd %config(noreplace) %{_sysconfdir}/xl2tpd/* %config(noreplace) %{_sysconfdir}/ppp/* %dir %{_rundir}/xl2tpd %{_unitdir}/%{name}.service %{_tmpfilesdir}/%{name}.conf %ghost %attr(0600,root,root) %{_rundir}/xl2tpd/l2tp-control %changelog * Tue Aug 09 2022 liweiganga <liweiganga@uniontech.com> - 1.3.16-1 - init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2