Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37515887
en ru br
ALT Linux repos
S:1.8-alt10

Group :: System/Servers
RPM: openl2tp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: openl2tp
Version: 1.8
Release: alt10

Summary: L2TP (RFC2661) server/client
License: GPLv2
Group: System/Servers
Url: http://www.openl2tp.org

Source: %name-%version.tar
Source1: %name.service
Source2: %name.init
Patch0: openl2tp-1.8-socket.patch
Patch1: openl2tp-1.8-cleanup-alt.patch
Patch2: openl2tp-1.8-tirpc.patch

BuildRequires: flex libreadline-devel
BuildRequires: libtirpc-devel rpcgen

%description
OpenL2TP is a complete implementation of RFC2661 - Layer Two Tunneling
Protocol Version 2, able to operate as both a server and a client.
OpenL2TP has been written specifically for Linux. It consists of
- a daemon, openl2tpd, handling the L2TP control protocol exchanges
 for all tunnels and sessions
- a plugin for pppd to allow its PPP connections to run over L2TP
 sessions
- a command line application for management.

%package devel
Summary: OpenL2TP support files for plugin development
Group: Development/Other

%description devel
This package contains support files for building plugins for OpenL2TP,
or applications that use the OpenL2TP APIs.

%prep
%setup
%patch0 -p1
%patch2 -p1
sed -i 's,-Werror ,,' Makefile

%build
%add_optflags -Wno-strict-aliasing -Wno-unused-but-set-variable
%add_optflags -Wno-error=address-of-packed-member -Wno-error=stringop-overflow
%add_optflags -Wno-error=array-bounds -Wno-error=address
make OPT_CFLAGS='%optflags -I%_includedir/tirpc' SYS_LIBDIR=%_libdir

%install
%makeinstall_std SYS_LIBDIR=%_libdir

install -pD -m755 %SOURCE2 %buildroot%_initdir/%name
install -pD -m644 %SOURCE1 %buildroot%_unitdir/%name.service
mkdir -p %buildroot%_sysconfdir/sysconfig
cp -f etc/sysconfig/openl2tpd %buildroot%_sysconfdir/sysconfig/openl2tpd

%preun
%preun_service %name

%post
%post_service %name

%files
%doc LICENSE README
%_bindir/*
%_sbindir/*
%dir %_libdir/openl2tp
%_libdir/openl2tp/*.so

%_man1dir/l2tpconfig.1*
%_man4dir/openl2tp_rpc.4*
%_man5dir/openl2tpd.conf.5*
%_man7dir/openl2tp.7*
%_man8dir/openl2tpd.8*

%config %_unitdir/%name.service
%_initdir/%name
%config %_sysconfdir/sysconfig/openl2tpd

# /tmp/openl2tp-event.sock


%files devel
%doc plugins/README doc/README.event_sock
%{_libdir}/openl2tp/l2tp_rpc.x
%{_libdir}/openl2tp/l2tp_event.h
%{_libdir}/openl2tp/event_sock.h

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin