Репозиторий Sisyphus
Последнее обновление: 26 марта 2019 | Пакетов: 17629 | Посещений: 13279449
en ru br
Репозитории ALT
5.1: 2.22-alt1

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

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

# spec file for package GVPE

Name: gvpe
Version: 3.0
Release: alt4

Summary: virtual ethernet SSL VPN

License: %gpl3plus
Group: System/Servers
Url: http://software.schmorp.de/pkg/gvpe.html

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

Source0: %name-%version.tar
Source1: %name.init
Source2: %name.sysconfig
Source3: %name.if-up
Source4: %name.conf
Source5: README.ALT.utf-8
Source6: %name.service

Patch0:  %name-2.22-alt-using_ip.patch
Patch1:  %name-3.0-alt-getopt.patch
Patch2:  %name-3.0-alt-openssl.patch

BuildRequires(pre): rpm-build-licenses

# Automatically added by buildreq on Thu May 18 2017

# optimized out: glib2-devel libstdc++-devel perl perl-Encode perl-Text-Unidecode perl-Unicode-EastAsianWidth perl-Unicode-Normalize perl-libintl python-base python-modules python3 python3-base xz zlib-devel
BuildRequires: gcc-c++ libssl-devel zlib-devel makeinfo perl-unicore perl-Pod-Usage

BuildRequires: texinfo

The GNU Virtual Private Ethernet suite implements a virtual
(uses udp, tcp, rawip and other protocols for tunneling),
private (encrypted, authenticated) ethernet (mac-based,
broadcast-based network) that is shared among multiple nodes,
in effect implementing an ethernet bus over public networks.

%setup -n %name-%version

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

# Removing built-in getopt

rm -f -- lib/getopt*



# $localstatedir/run/gvpe.pid used as a default location of PID file

%configure \
   --localstatedir=%_var \
   --enable-http-proxy \


# GVPE 2.25 had an empty gvpe.conf.5 file, generete it from gvpe.conf.5.pod:

[ -s doc/gvpe.conf.5 ] || pod2man doc/gvpe.conf.5.pod  doc/gvpe.conf.5

%make_install DESTDIR=%buildroot install

install -p -D -m 0755 -- %SOURCE1 %buildroot/%_initdir/%name
install -p -D -m 0640 -- %SOURCE2 %buildroot/%_sysconfdir/sysconfig/%name

install -d -m 0750 -- %buildroot%_sysconfdir/%name
install -d -m 0755 -- %buildroot%_sysconfdir/%name/hostkeys
install -d -m 0755 -- %buildroot%_sysconfdir/%name/pubkey
install -p -m 0755 -- %SOURCE3 %buildroot%_sysconfdir/%name/if-up
install -p -m 0644 -- %SOURCE4 %buildroot%_sysconfdir/%name/%name.conf.sample

cp -- %SOURCE5 README.ALT.utf-8

install -D -m 0644 -- %SOURCE6 %buildroot%_unitdir/%name.service

%post_service %name

%preun_service %name

%doc --no-dereference COPYING
%doc doc/complex-example

%dir %attr(0750,root,root) %_sysconfdir/%name
%dir                       %_sysconfdir/%name/pubkey
%dir                       %_sysconfdir/%name/hostkeys
%config                    %_sysconfdir/%name/%name.conf.sample
%config(noreplace)         %_sysconfdir/%name/if-up

%config(noreplace)         %_sysconfdir/sysconfig/%name
%config                    %_initdir/%name




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

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