Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37401102
en ru br
Репозитории ALT

Группа :: Система/Серверы
Пакет: sstp-client

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define ppp_version %(pkg-config --modversion pppd 2>/dev/null || (%{__awk} '/^#define VERSION/ { print $NF }' /usr/include/pppd/patchlevel.h 2>/dev/null||echo none)|/usr/bin/tr -d '"')

Name: sstp-client
Version: 1.0.19
Release: alt1
Summary: Secure Socket Tunneling Protocol (SSTP) Client
Group: System/Servers
License: GPLv2+

Url: http://sstp-client.sourceforge.net/
Vcs: https://gitlab.com/sstp-project/sstp-client.git
Source: %name-%version.tar
Source2: %name.tmpfiles

Requires: ppp = %ppp_version
Requires: libsstp = %version-%release
BuildRequires: libevent-devel >= 2.0.10
BuildRequires: libssl-devel glibc-devel ppp-devel

%description
Client for the proprietary Microsoft Secure Socket Tunneling Protocol, SSTP.
Allows connection to a SSTP based VPN as used by employers and some cable
and ADSL service providers.

%package -n libsstp
Summary: Provide development headers for sstp-client
Group: System/Libraries

%description -n libsstp
This package contains the necessary header files for sstp-client development

This package is required to compile plugin's for sstp-client.

%package -n libsstp-devel
Summary: Provide development headers for sstp-client
Group: Development/C
Requires: libsstp = %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel < %version-%release

%description -n libsstp-devel
This package contains the necessary header files for sstp-client development

This package is required to compile plugin's for sstp-client.

%prep
%setup

%build
%autoreconf
%configure \
   --disable-static \
   --with-libevent=2 \
   --with-pppd-auth-notify-support \
   --with-system-ca-path="/var/lib/ssl/certs" \
   --with-pppd-plugin-dir=%_libdir/pppd/%ppp_version \
   --with-runtime-dir="/run/sstpc"
%make_build

%install
%makeinstall_std
install -c -d -m 755 %buildroot%_man8dir
install -c -m 755 sstpc.8 %buildroot%_man8dir

install -c -d -m 755 %buildroot%_runtimedir/sstpc
install -Dpm 644 %SOURCE2 %buildroot%_tmpfilesdir/%name.conf

%pre
%_sbindir/groupadd -r -f sstpc
%_sbindir/useradd -M -r -d %_runtimedir/sstpc -s /bin/false -c "Secure Socket Tunneling Protocol (SSTP) Client" -g sstpc sstpc >/dev/null 2>&1 || :

%files
%doc AUTHORS COPYING DEVELOPERS NEWS README TODO USING
%doc ChangeLog
%doc sstp-test-nopty.example sstp-test.example
%_sbindir/sstpc
%_man8dir/sstpc.8*
%_libdir/pppd/%ppp_version/*.so
%dir %attr(755,sstpc,sstpc) %_runtimedir/sstpc
%_tmpfilesdir/%name.conf
%exclude %_libdir/pppd/%ppp_version/*.la

%files -n libsstp
%_libdir/libsstp_api-0.so

%files -n libsstp-devel
%_libdir/libsstp_api.so
%_includedir/*
%_pkgconfigdir/*.pc

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin