OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: r...@openpkg.org Module: openpkg-src Date: 03-Nov-2009 19:52:03 Branch: HEAD Handle: 2009110318520300 Added files: openpkg-src/vpnc vpnc.conf vpnc.patch vpnc.spec Log: new package: vpnc 0.5.3 (Virtual Private Network Client) Summary: Revision Changes Path 1.1 +6 -0 openpkg-src/vpnc/vpnc.conf 1.1 +33 -0 openpkg-src/vpnc/vpnc.patch 1.1 +120 -0 openpkg-src/vpnc/vpnc.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/vpnc/vpnc.conf ============================================================================ $ cvs diff -u -r0 -r1.1 vpnc.conf --- /dev/null 2009-11-03 19:52:01 +0100 +++ vpnc.conf 2009-11-03 19:52:03 +0100 @@ -0,0 +1,6 @@ +IPSec ID example-inc +IPSec gateway ipsec.example.com +IPSec secret example-secret +IKE Authmode hybrid +Xauth username john.doe +Xauth password john-secret @@ . patch -p0 <<'@@ .' Index: openpkg-src/vpnc/vpnc.patch ============================================================================ $ cvs diff -u -r0 -r1.1 vpnc.patch --- /dev/null 2009-11-03 19:52:01 +0100 +++ vpnc.patch 2009-11-03 19:52:03 +0100 @@ -0,0 +1,33 @@ +Index: Makefile +--- Makefile.orig 2008-11-19 21:36:12 +0100 ++++ Makefile 2009-11-03 19:41:11 +0100 +@@ -21,11 +21,11 @@ + + DESTDIR= + PREFIX=/usr/local +-ETCDIR=/etc/vpnc ++ETCDIR=$(PREFIX)/etc/vpnc + BINDIR=$(PREFIX)/bin + SBINDIR=$(PREFIX)/sbin +-MANDIR=$(PREFIX)/share/man +-DOCDIR=$(PREFIX)/share/doc/vpnc ++MANDIR=$(PREFIX)/man ++DOCDIR=$(PREFIX)/share/vpnc + + SRCS = sysdep.c vpnc-debug.c isakmp-pkt.c tunip.c config.c dh.c math_group.c supp.c decrypt-utils.c + BINS = vpnc cisco-decrypt +@@ -52,11 +52,10 @@ + + CC=gcc + CFLAGS ?= -O3 -g +-CFLAGS += -W -Wall -Wmissing-declarations -Wwrite-strings +-CFLAGS += $(shell libgcrypt-config --cflags) +-CPPFLAGS += -DVERSION=\"$(VERSION)\" $(OPENSSL_GPL_VIOLATION) ++override CFLAGS += $(shell libgcrypt-config --cflags) ++override CPPFLAGS += -DVERSION=\"$(VERSION)\" $(OPENSSL_GPL_VIOLATION) + LDFLAGS ?= -g +-LDFLAGS += $(shell libgcrypt-config --libs) $(OPENSSLLIBS) ++override LDFLAGS += $(shell libgcrypt-config --libs) $(OPENSSLLIBS) + + ifeq ($(shell uname -s), SunOS) + LDFLAGS += -lnsl -lresolv -lsocket @@ . patch -p0 <<'@@ .' Index: openpkg-src/vpnc/vpnc.spec ============================================================================ $ cvs diff -u -r0 -r1.1 vpnc.spec --- /dev/null 2009-11-03 19:52:01 +0100 +++ vpnc.spec 2009-11-03 19:52:03 +0100 @@ -0,0 +1,120 @@ +## +## vpnc.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/> +## +## 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. +## + +# FIXME: rse: run-command scripts still missing + +# package information +Name: vpnc +Summary: Virtual Private Network Client +URL: http://www.unix-ag.uni-kl.de/~massar/vpnc/ +Vendor: G. Keating, M. Massar, D.V.P. Christiansen +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Network +License: GPL +Version: 0.5.3 +Release: 20091103 + +# package options +%option with_hybrid yes + +# list of sources +Source0: http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-%{version}.tar.gz +Source1: vpnc.conf +Patch0: vpnc.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc, perl +PreReq: OpenPKG, openpkg >= 20060823 +BuildPreReq: gcrypt +PreReq: gcrypt +%if "%{with_hybrid}" == "yes" +BuildPreReq: openssl +PreReq: openssl +%endif +AutoReq: no +AutoReqProv: no + +%description + VPNC is a Virtual Private Network (VPN) client supposed to work with + Cisco VPN concentrator 3000 Series, Cisco IOS routers, Cisco PIX / + ASA Zecurity Appliances and Juniper/Netscreen routers. Supported + Authentications are: Hybrid, Pre-Shared-Key + XAUTH, Pre-Shared-Key. + Supported IKE DH-Groups are: dh1 dh2 dh5. Supported Hash Algorithms + (IKE/IPSEC) are: md5 sha1. Supported Encryptions (IKE/IPSEC) are: + null 1des 3des aes128 aes192 aes256. Perfect Forward Secrecy are: + nopfs dh1 dh2 dh5. + +%track + prog vpnc = { + version = %{version} + url = http://www.unix-ag.uni-kl.de/~massar/vpnc/ + regex = vpnc-(__VER__)\.tar\.gz + } + +%prep + %setup -q + %patch -p0 + +%build + %{l_shtool} subst \ + -e 's;/usr/bin/perl;%{l_prefix}/bin/perl;' \ + makeman.pl + %{l_shtool} subst \ + -e 's;/etc/vpnc/vpnc-script;%{l_prefix}/etc/vpnc/vpnc-script;' \ + -e 's;/var/run/vpnc/pid;%{l_prefix}/var/vpnc/vpnc.pid;' \ + config.c + %{l_make} %{l_mflags} \ + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" +%if "%{with_hybrid}" == "yes" + OPENSSL_GPL_VIOLATION="-DOPENSSL_GPL_VIOLATION" \ + OPENSSLLIBS="-lcrypto" \ +%endif + PREFIX=%{l_prefix} + +%install + rm -rf $RPM_BUILD_ROOT + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{l_prefix} + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true + strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true + rm -rf $RPM_BUILD_ROOT%{l_prefix}/share >/dev/null 2>&1 || true + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/var/vpnc + %{l_shtool} install -c -m 644 \ + %{SOURCE vpnc.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/vpnc/ + rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/vpnc/default.conf + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ + %{l_files_std} \ + '%config %{l_prefix}/etc/vpnc/*' + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org