This commit is contained in:
parent
37b5e500dd
commit
abfd03898f
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 4 10:14:03 CEST 2007 - mt@suse.de
|
||||||
|
|
||||||
|
- fixed easy-rsa installation (no exec in doc directory)
|
||||||
|
- improved spec to use configure directory variables and
|
||||||
|
cleaned up macro calls in RPM pre/post scripts.
|
||||||
|
- fixed openvpn binary check in the init script.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 27 10:40:59 CEST 2006 - mt@suse.de
|
Fri Oct 27 10:40:59 CEST 2006 - mt@suse.de
|
||||||
|
|
||||||
|
@ -32,7 +32,10 @@ confdir=/etc/openvpn
|
|||||||
piddir=/var/run/openvpn
|
piddir=/var/run/openvpn
|
||||||
test -d $piddir || mkdir $piddir
|
test -d $piddir || mkdir $piddir
|
||||||
|
|
||||||
test -x $openvpn || exit 5
|
test -x $openvpn || {
|
||||||
|
echo 1>&2 "$openvpn not installed"
|
||||||
|
if test "$1" == "stop" ; then exit 0 ; else exit 5 ; fi
|
||||||
|
}
|
||||||
|
|
||||||
# Shell functions sourced from /etc/rc.status:
|
# Shell functions sourced from /etc/rc.status:
|
||||||
# rc_check check and set local and overall rc status
|
# rc_check check and set local and overall rc status
|
||||||
|
62
openvpn.spec
62
openvpn.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package openvpn (Version 2.0.9)
|
# spec file for package openvpn (Version 2.0.9)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
# package are under the same license as the package itself.
|
# package are under the same license as the package itself.
|
||||||
#
|
#
|
||||||
@ -20,7 +20,7 @@ Autoreqprov: on
|
|||||||
PreReq: %insserv_prereq %fillup_prereq
|
PreReq: %insserv_prereq %fillup_prereq
|
||||||
%endif
|
%endif
|
||||||
Version: 2.0.9
|
Version: 2.0.9
|
||||||
Release: 1
|
Release: 22
|
||||||
Summary: Create VPN over Wireless and Ethernet Networks using a Tun Device
|
Summary: Create VPN over Wireless and Ethernet Networks using a Tun Device
|
||||||
Source: http://openvpn.net/release/openvpn-%{version}.tar.gz
|
Source: http://openvpn.net/release/openvpn-%{version}.tar.gz
|
||||||
Source1: http://openvpn.net/signatures/openvpn-%{version}.tar.gz.asc
|
Source1: http://openvpn.net/signatures/openvpn-%{version}.tar.gz.asc
|
||||||
@ -45,60 +45,72 @@ autoreconf -fi
|
|||||||
export CFLAGS="$RPM_OPT_FLAGS -Wall"
|
export CFLAGS="$RPM_OPT_FLAGS -Wall"
|
||||||
export LDFLAGS=
|
export LDFLAGS=
|
||||||
# build with fPIE/pie on SUSE 10.0 or newer, or on any other platform
|
# build with fPIE/pie on SUSE 10.0 or newer, or on any other platform
|
||||||
%if %{?suse_version:%suse_version}%{?!suse_version:99999} > 930
|
%if %{?suse_version}%{?!suse_version:99999} > 930
|
||||||
CFLAGS="$CFLAGS -fPIE"
|
CFLAGS="$CFLAGS -fPIE"
|
||||||
LDFLAGS="$LDFLAGS -pie"
|
LDFLAGS="$LDFLAGS -pie"
|
||||||
%endif
|
%endif
|
||||||
./configure --prefix=/usr --enable-pthread \
|
%configure \
|
||||||
--mandir=%_mandir --with-lzo-headers=%_includedir/lzo
|
--enable-pthread \
|
||||||
|
--with-lzo-headers=%_includedir/lzo
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/openvpn
|
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/openvpn
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/run/openvpn
|
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/run/openvpn
|
||||||
install -D -m 755 $RPM_SOURCE_DIR/openvpn.init $RPM_BUILD_ROOT/etc/init.d/openvpn
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/openvpn
|
||||||
ln -sv ../../etc/init.d/openvpn $RPM_BUILD_ROOT/usr/sbin/rcopenvpn
|
install -D -m 755 $RPM_SOURCE_DIR/openvpn.init $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/openvpn
|
||||||
|
ln -sv %{_sysconfdir}/init.d/openvpn $RPM_BUILD_ROOT/%{_sbindir}/rcopenvpn
|
||||||
cp -p $RPM_SOURCE_DIR/openvpn.README.SUSE README.SUSE
|
cp -p $RPM_SOURCE_DIR/openvpn.README.SUSE README.SUSE
|
||||||
rm -f easy-rsa/build-key-server.orig
|
find sample-* suse contrib -type f -exec chmod -x \{\} \;
|
||||||
|
rm -f easy-rsa/build-key-server.orig easy-rsa/.externals
|
||||||
|
chmod -x easy-rsa/2.0/vars
|
||||||
|
chmod -x easy-rsa/2.0/openssl*.cnf
|
||||||
|
chmod -x easy-rsa/Windows/init-config.bat
|
||||||
|
chmod +x easy-rsa/revoke-crt
|
||||||
|
chmod +x easy-rsa/make-crl
|
||||||
|
chmod +x easy-rsa/list-crl
|
||||||
|
cp -a easy-rsa $RPM_BUILD_ROOT/%{_datadir}/openvpn/
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
if ! test -f /.buildenv; then rm -rf $RPM_BUILD_ROOT; fi
|
if ! test -f /.buildenv; then rm -rf $RPM_BUILD_ROOT; fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{fillup_and_insserv -f}
|
%{?fillup_and_insserv:%fillup_and_insserv -f}
|
||||||
%if %{?suse_version:%suse_version}%{?!suse_version:0} > 820
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%stop_on_removal openvpn
|
%{?stop_on_removal:%stop_on_removal openvpn}
|
||||||
%endif
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%if %{?suse_version:%suse_version}%{?!suse_version:0} > 820
|
%{?restart_on_update:%restart_on_update openvpn}
|
||||||
%restart_on_update openvpn
|
%{?insserv_cleanup:%insserv_cleanup}
|
||||||
%endif
|
|
||||||
%insserv_cleanup
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING COPYRIGHT.GPL ChangeLog INSTALL NEWS PORTS README
|
%doc AUTHORS COPYING COPYRIGHT.GPL ChangeLog INSTALL NEWS PORTS README
|
||||||
%doc README.SUSE
|
%doc README.SUSE
|
||||||
%doc contrib
|
%doc contrib
|
||||||
%doc easy-rsa
|
|
||||||
%doc management
|
%doc management
|
||||||
%doc sample-config-files
|
%doc sample-config-files
|
||||||
%doc sample-keys
|
%doc sample-keys
|
||||||
%doc sample-scripts
|
%doc sample-scripts
|
||||||
%doc suse
|
%doc suse
|
||||||
/usr/sbin/openvpn
|
|
||||||
%doc %{_mandir}/man8/openvpn.8.gz
|
%doc %{_mandir}/man8/openvpn.8.gz
|
||||||
%config(noreplace) /etc/openvpn/
|
%config(noreplace) %{_sysconfdir}/openvpn/
|
||||||
%config /etc/init.d/openvpn
|
%config %{_sysconfdir}/init.d/openvpn
|
||||||
/usr/sbin/rcopenvpn
|
%{_sbindir}/openvpn
|
||||||
%dir /var/run/openvpn
|
%{_sbindir}/rcopenvpn
|
||||||
|
%dir %{_localstatedir}/run/openvpn
|
||||||
|
%dir %{_datadir}/openvpn
|
||||||
|
%{_datadir}/openvpn/easy-rsa
|
||||||
|
|
||||||
%changelog -n openvpn
|
%changelog
|
||||||
|
* Mon Jun 04 2007 - mt@suse.de
|
||||||
|
- fixed easy-rsa installation (no exec in doc directory)
|
||||||
|
- improved spec to use configure directory variables and
|
||||||
|
cleaned up macro calls in RPM pre/post scripts.
|
||||||
|
- fixed openvpn binary check in the init script.
|
||||||
* Fri Oct 27 2006 - mt@suse.de
|
* Fri Oct 27 2006 - mt@suse.de
|
||||||
- upstream 2.0.9, Windows related fixes only
|
- upstream 2.0.9, Windows related fixes only
|
||||||
* Windows installer updated with OpenSSL 0.9.7l DLLs to fix
|
* Windows installer updated with OpenSSL 0.9.7l DLLs to fix
|
||||||
|
Loading…
Reference in New Issue
Block a user