Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37402834
en ru br
Репозитории ALT
S:2.5.8-alt1
5.1: 2.1.4-alt0.M51.1
4.1: 2.0.9-alt1.M41.1
4.0: 2.0.9-alt1.M40.1
3.0: 2.0-alt1
+backports:2.0.8-alt0.M30.1
www.altlinux.org/Changes

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

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

# spec file for package openvpn (Version 2.0)
#

%define version 2.0.9
%define release alt1.M40.1

Name: openvpn
Version: %version
Release: %release

Summary: a full-featured SSL VPN solution
Summary(ru_RU.UTF-8): п©п╬п╩п╫п╬я└я┐п╫п╨я├п╦п╬п╫п╟п╩я▄п╫п╬п╣ я─п╣я┬п╣п╫п╦п╣ VPN п╫п╟ п╠п╟п╥п╣ SSL

License: GPL
Group: System/Servers
Url: http://www.openvpn.net

Packager: Nikolay A. Fetisov <naf at altlinux.ru>

# Because of /etc/syslog.d/ feature.

Conflicts: syslogd < 1.4.1-alt11

BuildRequires: linux-libc-headers
BuildRequires: libssl-devel, pkg-config, zlib-devel, liblzo-devel
BuildRequires: coreutils, chrooted >= 0.3, libpam-devel

Source0: %name-%version.tar
Source1: %name.init
Source2: %name-startup
Source3: %name.sysconfig
Source4: %name.chroot.lib
Source5: %name.chroot.conf
Source6: %name.chroot.all
Source7: %name-README.ALT.utf-8
Source8: %name-server.conf
Source9: %name-client.conf

Patch0:  %name-2.0.9-alt-lladdr.patch

%description
OpenVPN is a full-featured SSL VPN solution which can accomodate
a wide range  of configurations,  including road warrior access,
home/office/campus  telecommuting,  WiFi security, secure branch
office  linking,  and enterprise-scale  remote access  solutions
with load balancing, failover, and fine-grained access-controls.

%description -l ru_RU.UTF-8
OpenVPN  -  п©п╬п╩п╫п╬я└я┐п╫п╨я├п╦п╬п╫п╟п╩я▄п╫п╬п╣ я─п╣я┬п╣п╫п╦п╣ п╢п╩я▐ VPN я│ п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦п╣п╪
SSL, я│ п©п╬п╪п╬я┴я▄я▌ п╨п╬я┌п╬я─п╬пЁп╬ п╪п╬п╤п╫п╬ я─п╣я┬п╦я┌я▄ я┬п╦я─п╬п╨п╦п╧ п╨я─я┐пЁ п╥п╟п╢п╟я┤, п╡п╨п╩я▌я┤п╟я▐
п©п╬п╢п╨п╩я▌я┤п╣п╫п╦я▐  п╢п╩я▐ я┐п╢п╟п╩я▒п╫п╫я▀я┘  п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩п╣п╧,  я┌п╣п╩п╣п╨п╬п╪п╪я┐п╫п╦п╨п╟я├п╦п╦ п╢п╩я▐
п╢п╬п╪п╟ п╦ п╬я└п╦я│п╟,  п╠п╣п╥п╬п©п╟я│п╫я▀п╣  п©п╬п╢п╨п╩я▌я┤п╣п╫п╦я▐  п╢п╩я▐  п╠п╣я│п©я─п╬п╡п╬п╢п╫я▀я┘ я│п╣я┌п╣п╧,
п╠п╣п╥п╬п©п╟я│п╫я┐я▌ я│п╡я▐п╥я▄  я│ я┐п╢п╟п╩я▒п╫п╫я▀п╪п╦ п╬я└п╦я│п╟п╪п╦,  я─п╣я┬п╣п╫п╦я▐  п╢п╩я▐ я┐п╢п╟п╩я▒п╫п╫п╬пЁп╬
п╢п╬я│я┌я┐п©п╟ п╪п╟я│я┬я┌п╟п╠п╟ п©я─п╣п╢п©я─п╦я▐я┌п╦п╧ я│ п©п╬п╢п╢п╣я─п╤п╨п╬п╧ п╠п╟п╩п╟п╫я│п╦я─п╬п╡п╨п╦ п╫п╟пЁя─я┐п╥п╨п╦,
п╬я┌п╨п╟п╥п╬я┐я│я┌п╬п╧я┤п╦п╡п╬я│я┌п╦ п╦ я┤п╣я┌п╨п╬ я─п╟п╥пЁя─п╟п╫п╦я┤п╣п╫п╫я▀п╪ п╨п╬п╫я┌я─п╬п╩п╣п╪ п╢п╬я│я┌я┐п©п╟.

%package plugins
Summary: external plugins for OpenVPN
Summary(ru_RU.UTF-8): п╡п╫п╣я┬п╫п╦п╣ я─п╟я│я┬п╦я─п╣п╫п╦я▐ п╢п╩я▐ OpenVPN
Group: System/Servers
Requires: %name = %version-%release
Provides: %name-plugins = %version-%release
Obsoletes: %name-plugins

%description plugins
OpenVPN is a full-featured SSL VPN solution.
This package contains OpenVPN plugins for user authentication
via PAM and to allow run a down script with root privileges.

%description plugins -l ru_RU.UTF-8
OpenVPN - п©п╬п╩п╫п╬я└я┐п╫п╨я├п╦п╬п╫п╟п╩я▄п╫п╬п╣ я─п╣я┬п╣п╫п╦п╣ п╢п╩я▐ VPN п╫п╟ п╠п╟п╥п╣ SSL.
п■п╟п╫п╫я▀п╧ п©п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ я─п╟я│я┬п╦я─п╣п╫п╦я▐ (plugins) п╢п╩я▐ п╟п╡я┌п╬я─п╦п╥п╟я├п╦п╦
п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩п╣п╧ я┤п╣я─п╣п╥  PAM п╦  п╥п╟п©я┐я│п╨п╟ п©я─п╦ я─п╟п╥я─я▀п╡п╣ я│п╬п╣п╢п╦п╫п╣п╫п╦п╧
я│п╨я─п╦п©я┌п╟ я│ п©я─п╦п╡п╦п╩п╣пЁп╦я▐п╪п╦ root.

%package docs
Summary: OpenVPN documentation
Summary(ru_RU.UTF-8): п╢п╬п╨я┐п╪п╣п╫я┌п╟я├п╦я▐ п╨ OpenVPN
Group: System/Servers
Requires: %name = %version-%release
Provides: %name-docs = %version-%release
Obsoletes: %name-docs

%description docs
OpenVPN is a full-featured SSL VPN solution.
This package contains OpenVPN documentation,
sample configs and scripts.

%description docs -l ru_RU.UTF-8
OpenVPN - п©п╬п╩п╫п╬я└я┐п╫п╨я├п╦п╬п╫п╟п╩я▄п╫п╬п╣ я─п╣я┬п╣п╫п╦п╣ п╢п╩я▐ VPN п╫п╟ п╠п╟п╥п╣ SSL.
п■п╟п╫п╫я▀п╧ п©п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ п╢п╬п╨я┐п╪п╣п╫я┌п╟я├п╦я▌, п©я─п╦п╪п╣я─я▀ п╨п╬п╫я└п╦пЁя┐я─п╟я├п╦п╦ п╦
я│п╨я─п╦п©я┌п╬п╡ п╢п╩я▐ OpenVPN.

%define openvpn_root   %_localstatedir/%name
%define openvpn_cache  %openvpn_root/cache
%define ovpn_user      openvpn
%define ovpn_group     openvpn

%prep
%setup -n %name-%version
%patch0

cp -- %SOURCE7 README.ALT.utf-8
cp -- %SOURCE8 server.conf
cp -- %SOURCE9 client.conf

mv -f -- COPYRIGHT.GPL COPYRIGHT.GPL.orig
ln -s -- $(relative %_licensedir/GPL-2 %_docdir/%name/COPYRIGHT.GPL) COPYRIGHT.GPL

subst 's/DLOPEN_PAM=1/DLOPEN_PAM=0/' plugin/auth-pam/Makefile

%build
%autoreconf
%configure --enable-iproute2
%make_build
subst 's|nobody|%ovpn_user|' sample-config-files/*

%__make -C plugin/down-root/
%__make -C plugin/auth-pam/
# Building 'simple' plugin
pushd plugin/examples
./build simple
mv -- simple.so %name-examples.so

popd
%ifndef __BTE
  # make check hangs inside hasher
  %__make check
%endif

%install
%make_install DESTDIR=%buildroot install

mkdir -p -- %buildroot/%_initdir
mkdir -p -- %buildroot/%_sysconfdir/sysconfig
install -m 0750 -d -- %buildroot%_sysconfdir/%name
install -m 0750 -d -- %buildroot%_sysconfdir/%name/keys
install -m 0755 -d -- %buildroot%openvpn_root
install -m 0755 -d -- %buildroot%openvpn_root/etc
install -m 0755 -d -- %buildroot%openvpn_root/%_lib
install -m 0755 -d -- %buildroot%openvpn_root/etc/openvpn
install -m 0755 -d -- %buildroot%openvpn_cache
install -m 0755 -- %SOURCE1 %buildroot%_initdir/%name
install -m 0750 -- %SOURCE2 %buildroot%_sysconfdir/%name
install -m 0640 -- %SOURCE3 %buildroot%_sysconfdir/sysconfig/%name
install -p -m 0750 -D -- %SOURCE4 %buildroot%_sysconfdir/chroot.d/%name.lib
install -p -m 0750 -D -- %SOURCE5 %buildroot%_sysconfdir/chroot.d/%name.conf
install -p -m 0750 -D -- %SOURCE6 %buildroot%_sysconfdir/chroot.d/%name.all

# Install plugins

install -m 0750 -d -- %buildroot%_libdir/%name/plugin

for pi in auth-pam down-root examples; do
   mv -f -- plugin/$pi/README plugin/README.$pi
   if [ -x plugin/$pi/%name-$pi.so ]; then
install -c -m 0755 -- plugin/$pi/%name-$pi.so %buildroot%_libdir/%name/plugin/%name-$pi.so
   fi
done

mkdir -- plugins
mv -f -- plugin/README plugin/README.plugins
mv -f -- plugin/README* plugins/

# Make use of syslogd-1.4.1-alt11 /etc/syslog.d/ feature.

mkdir -p -- %buildroot%openvpn_root/dev
/usr/bin/mksock %buildroot%openvpn_root/dev/log
mkdir -p -m700 -- %buildroot%_sysconfdir/syslog.d
ln -s -- %openvpn_root/dev/log %buildroot%_sysconfdir/syslog.d/%name

%pre
# Add the "openvpn" user
%_sbindir/groupadd -r -f %ovpn_group 2>/dev/null ||:
%_sbindir/useradd  -r -g %ovpn_group -c 'OpenVPN daemon' \
       -s /dev/null -d /dev/null %ovpn_user 2>/dev/null ||:

%post
%_sysconfdir/chroot.d/%name.all
%post_service %name

%preun
%preun_service %name

%files
%doc AUTHORS ChangeLog NEWS PORTS README COPYING
%doc --no-dereference COPYRIGHT.GPL
%doc README.ALT.utf-8 server.conf client.conf

%_sbindir/%name
%_mandir/man?/*

%attr(0750,root,%ovpn_group) %dir %_sysconfdir/%name
%attr(0750,root,%ovpn_group) %dir %_sysconfdir/%name/keys
%attr(0750,root,%ovpn_group) %dir %openvpn_root
%dir %openvpn_root/etc
%attr(0710,root,%ovpn_group) %dir %openvpn_root/dev
%ghost %attr(0666,root,root)     %openvpn_root/dev/log
   %dir %openvpn_root/etc/openvpn
   %dir %openvpn_root/%_lib
%attr(0750,%ovpn_user,%ovpn_group) %dir %openvpn_cache

%config(noreplace)    %_sysconfdir/%name/%name-startup
%config(noreplace)    %_sysconfdir/sysconfig/%name
%config    %_sysconfdir/chroot.d/%name.*
%config    %_initdir/%name

%_sysconfdir/syslog.d/%name

%files plugins
%doc plugins*
%dir %_libdir/%name
%dir %_libdir/%name/plugin
    %_libdir/%name/plugin/%name-*.so

%files docs
%doc INSTALL-win32.txt INSTALL
%doc easy-rsa*
%doc sample-config-files*
%doc sample-keys*
%doc management*
%doc sample-scripts*

%changelog

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

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