head 1.18;
access;
symbols;
locks; strict;
comment @-- @;
1.18
date 2009.08.07.18.04.52; author rse; state dead;
branches;
next 1.17;
commitid kxYtk0arAjtR6NYt;
1.17
date 2009.07.17.22.13.28; author rse; state Exp;
branches;
next 1.16;
commitid MFI6QcuUSN20a7Wt;
1.16
date 2009.07.01.18.13.36; author rse; state Exp;
branches;
next 1.15;
commitid BsQqBRq9yieBl2Ut;
1.15
date 2009.05.20.15.52.56; author rse; state Exp;
branches;
next 1.14;
commitid BnyFv9ppbm43VCOt;
1.14
date 2009.04.18.13.13.34; author rse; state Exp;
branches;
next 1.13;
commitid 4pHXU27WTIGCZuKt;
1.13
date 2008.11.21.08.00.13; author rse; state Exp;
branches;
next 1.12;
commitid NhXHe4VTMSlA5srt;
1.12
date 2008.11.18.18.59.26; author rse; state Exp;
branches;
next 1.11;
commitid erH5GJaPaAdJP7rt;
1.11
date 2008.10.10.16.57.22; author rse; state Exp;
branches;
next 1.10;
commitid 6Kaoq2x7Tulzp6mt;
1.10
date 2008.09.24.18.47.31; author rse; state Exp;
branches;
next 1.9;
commitid xGAmclxOUd3fx3kt;
1.9
date 2008.09.15.09.18.41; author rse; state Exp;
branches;
next 1.8;
commitid h1SnZ08nlda2GQit;
1.8
date 2008.09.10.17.59.37; author rse; state Exp;
branches;
next 1.7;
commitid l6Kbyg85r2CIIfit;
1.7
date 2008.08.01.16.25.33; author rse; state Exp;
branches;
next 1.6;
commitid 3hshRqT5TSY9u6dt;
1.6
date 2008.04.14.10.56.16; author rse; state Exp;
branches;
next 1.5;
commitid GAj9oPk7ltvpa4Zs;
1.5
date 2008.03.23.08.56.28; author rse; state Exp;
branches;
next 1.4;
commitid epiOsooa5AqadeWs;
1.4
date 2008.01.30.17.55.56; author rse; state Exp;
branches;
next 1.3;
commitid UxRk9Y8lXNqRTsPs;
1.3
date 2008.01.01.15.00.49; author rse; state Exp;
branches;
next 1.2;
commitid B8esaHJHoduuKILs;
1.2
date 2007.10.19.06.44.41; author rse; state Exp;
branches;
next 1.1;
commitid 31W9sUkJqwnQuaCs;
1.1
date 2007.10.17.13.45.21; author rse; state Exp;
branches;
next ;
commitid IKFGi3pLcwo9TWBs;
desc
@@
1.18
log
@remove openvpn21 package
@
text
@##
## openvpn21.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_dist 2.1_rc19
%define V_opkg 2.1rc19
# package information
Name: openvpn21
Summary: Virtual Private Network Facility
URL: http://openvpn.net/
Vendor: James Yonan
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Network
License: GPL
Version: %{V_opkg}
Release: 20090718
# package options
%option with_fsl yes
# list of sources
Source0: http://openvpn.net/release/openvpn-%{V_dist}.tar.gz
Source1: rc.openvpn
Source2: fsl.openvpn
Source3: openvpn.conf
Patch0: openvpn21.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20060823
PreReq: OpenPKG, openpkg >= 20060823, perl
BuildPreReq: openssl, lzo >= 1.08
PreReq: openssl, lzo >= 1.08
%if "%{with_fsl}" == "yes"
BuildPreReq: fsl >= 1.3.0
PreReq: fsl >= 1.3.0
%endif
AutoReq: no
AutoReqProv: no
Provides: openvpn = %{version}-%{release}
%description
OpenVPN is a robust and highly configurable VPN (Virtual Private
Network) daemon which can be used to securely link two or more
private networks using an encrypted tunnel over the internet.
%track
prog openvpn21 = {
version = %{V_dist}
url = http://openvpn.net/index.php/open-source/downloads.html
regex = openvpn-(2\.1(?:\.\d+|_rc\d+))\.tar\.gz
}
%prep
%setup -q -n openvpn-%{V_dist}
%patch -p0
%build
# configure program
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags lzo openssl}" \
LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
LIBS="%{l_fsl_libs}" \
./configure \
--prefix=%{l_prefix} \
--mandir=%{l_prefix}/man \
--with-ssl-headers=%{l_prefix}/include/openssl \
--with-ssl-lib=%{l_prefix}/lib \
--with-lzo-headers=%{l_prefix}/include/lzo \
--with-lzo-lib=%{l_prefix}/lib
# build program
%{l_make} %{l_mflags -O}
%install
# install program
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
# strip down installation files
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc >/dev/null 2>&1 || true
# install additional files
%{l_shtool} install -c -m 755 %{l_value -s -a} \
-e 's;/usr/bin/perl;%{l_prefix}/bin/perl;' \
sample-scripts/verify-cn $RPM_BUILD_ROOT%{l_prefix}/sbin/openvpn-verify-cn
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.openvpn} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# install default config file
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/openvpn
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE openvpn.conf} \
$RPM_BUILD_ROOT%{l_prefix}/etc/openvpn/
# install OSSP fsl configuration
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE fsl.openvpn} \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
# create run-time directory
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/openvpn
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/fsl/fsl.openvpn' \
'%config %{l_prefix}/etc/openvpn/openvpn.conf'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# on initial install, create a sample shared key
if [ $1 -eq 1 ]; then
if [ ! -f $RPM_INSTALL_PREFIX/etc/openvpn/openvpn.dh ]; then
$RPM_INSTALL_PREFIX/bin/openssl dhparam \
-out $RPM_INSTALL_PREFIX/etc/openvpn/openvpn.dh 1024
fi
if [ ! -f $RPM_INSTALL_PREFIX/etc/openvpn/openvpn.key ]; then
$RPM_INSTALL_PREFIX/sbin/openvpn \
--genkey --secret $RPM_INSTALL_PREFIX/etc/openvpn/openvpn.key
fi
fi
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} openvpn status 2>/dev/null`
[ ".$openvpn_active" = .yes ] && %{l_rc} openvpn restart
exit 0
%preun
# before erase, stop service and remove log files
[ $1 -eq 0 ] || exit 0
%{l_rc} openvpn stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/openvpn/*.log* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/openvpn/*.status >/dev/null 2>&1 || true
exit 0
@
1.17
log
@upgrading package: openvpn21 2.1rc18 -> 2.1rc19
@
text
@@
1.16
log
@upgrading package: openvpn21 2.1rc16 -> 2.1rc18
@
text
@d25 2
a26 2
%define V_dist 2.1_rc18
%define V_opkg 2.1rc18
d39 1
a39 1
Release: 20090701
@
1.15
log
@upgrading package: openvpn21 2.1rc15 -> 2.1rc16
@
text
@d25 2
a26 2
%define V_dist 2.1_rc16
%define V_opkg 2.1rc16
d39 1
a39 1
Release: 20090520
d74 1
a74 1
url = http://openvpn.net/index.php/downloads.html
@
1.14
log
@bump years in copyright messages
@
text
@d25 2
a26 2
%define V_dist 2.1_rc15
%define V_opkg 2.1rc15
d39 1
a39 1
Release: 20081121
@
1.13
log
@upgrading package: openvpn21 2.1rc14 -> 2.1rc15
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.12
log
@upgrading package: openvpn21 2.1rc13 -> 2.1rc14
@
text
@d25 2
a26 2
%define V_dist 2.1_rc14
%define V_opkg 2.1rc14
d39 1
a39 1
Release: 20081118
@
1.11
log
@upgrading package: openvpn21 2.1rc12 -> 2.1rc13
@
text
@d25 2
a26 2
%define V_dist 2.1_rc13
%define V_opkg 2.1rc13
d39 1
a39 1
Release: 20081010
@
1.10
log
@upgrading package: openvpn21 2.1rc11 -> 2.1rc12
@
text
@d25 2
a26 2
%define V_dist 2.1_rc12
%define V_opkg 2.1rc12
d39 1
a39 1
Release: 20080924
@
1.9
log
@upgrading package: openvpn21 2.1rc10 -> 2.1rc11
@
text
@d25 2
a26 2
%define V_dist 2.1_rc11
%define V_opkg 2.1rc11
d39 1
a39 1
Release: 20080915
@
1.8
log
@upgrading package: openvpn21 2.1rc9 -> 2.1rc10
@
text
@d25 2
a26 2
%define V_dist 2.1_rc10
%define V_opkg 2.1rc10
d39 1
a39 1
Release: 20080910
@
1.7
log
@upgrading package: openvpn21 2.1rc7 -> 2.1rc9
@
text
@d25 2
a26 2
%define V_dist 2.1_rc9
%define V_opkg 2.1rc9
d39 1
a39 1
Release: 20080801
@
1.6
log
@remove explicit Conflict as RPM 5 dislikes the combination of Provides and Conflicts (for the same NEVRA)
@
text
@d25 2
a26 2
%define V_dist 2.1_rc7
%define V_opkg 2.1rc7
d39 1
a39 1
Release: 20080414
d107 1
a112 4
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/man/cat8
%{l_shtool} install -c -m 644 \
management/management-notes.txt $RPM_BUILD_ROOT%{l_prefix}/man/cat8/openvpn-management.8
@
1.5
log
@fix URLs
@
text
@d39 1
a39 1
Release: 20080323
a64 1
Conflicts: openvpn
@
1.4
log
@upgrading package: openvpn21 2.1rc4 -> 2.1rc7
@
text
@d31 1
a31 1
URL: http://openvpn.sourceforge.net/
d39 1
a39 1
Release: 20080130
d75 1
a75 1
url = http://openvpn.net/release/
@
1.3
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d25 2
a26 2
%define V_dist 2.1_rc4
%define V_opkg 2.1rc4
d39 1
a39 1
Release: 20080101
@
1.2
log
@fix tracking
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d39 1
a39 1
Release: 20071019
@
1.1
log
@new package: openvpn21 2.1rc4 (Virtual Private Network Facility)
@
text
@d40 1
a40 1
Release: 20071017
d77 1
a77 1
regex = openvpn-(\d+\.\d+(\.\d+)*)\.tar\.gz
@