[69145] trunk/dports/net
snc at macports.org
snc at macports.org
Thu Jun 24 18:45:42 PDT 2010
Revision: 69145
http://trac.macports.org/changeset/69145
Author: snc at macports.org
Date: 2010-06-24 18:45:39 -0700 (Thu, 24 Jun 2010)
Log Message:
-----------
add openconnect, #25347
Added Paths:
-----------
trunk/dports/net/openconnect/
trunk/dports/net/openconnect/Portfile
trunk/dports/net/openconnect/files/
trunk/dports/net/openconnect/files/patch-Makefile.diff
Added: trunk/dports/net/openconnect/Portfile
===================================================================
--- trunk/dports/net/openconnect/Portfile (rev 0)
+++ trunk/dports/net/openconnect/Portfile 2010-06-25 01:45:39 UTC (rev 69145)
@@ -0,0 +1,42 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name openconnect
+version 2.25
+categories net
+platforms macosx
+maintainers gmail.com:Mathias.Laurin+macports
+description OpenConnect is a client for Cisco's AnyConnect SSL VPN
+long_description ${description}, which is supported by IOS 12.4(9)T or \
+ later on Cisco SR500, 870, 880, 1800, 2800, 3800, 7200 \
+ Series and Cisco 7301 Routers.
+
+homepage http://www.infradead.org/openconnect/
+
+depends_lib port:libxml2 \
+ port:zlib \
+ port:openssl \
+ port:tuntaposx \
+ port:gconf
+
+master_sites ftp://ftp.infradead.org/pub/openconnect/
+distname ${name}-${version}
+
+checksums sha1 d819ae60d14dfc16854957d4f04451e9505c4207 \
+ rmd160 83012d0463fc2253e3704404f54b3f628373c4b3
+
+patchfiles patch-Makefile.diff
+post-patch {
+ reinplace s|@OPTFLAGS@|${configure.optflags}| ${worksrcpath}/Makefile
+ reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/Makefile
+}
+
+use_configure no
+
+build.env CC=${configure.cc}
+
+destroot.destdir DESTDIR=${destroot}${prefix}
+
+livecheck.distname openconnect
Property changes on: trunk/dports/net/openconnect/Portfile
___________________________________________________________________
Added: svn:keywords:Id
+
Added: svn:eol-style
+ native
Added: trunk/dports/net/openconnect/files/patch-Makefile.diff
===================================================================
--- trunk/dports/net/openconnect/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/net/openconnect/files/patch-Makefile.diff 2010-06-25 01:45:39 UTC (rev 69145)
@@ -0,0 +1,39 @@
+--- Makefile.orig 2010-06-24 21:04:05.000000000 -0400
++++ Makefile 2010-06-24 21:08:46.000000000 -0400
+@@ -7,7 +7,7 @@
+ ifdef RPM_OPT_FLAGS
+ OPT_FLAGS := $(RPM_OPT_FLAGS)
+ else
+-OPT_FLAGS := -O2 -g -Wall
++OPT_FLAGS := @OPTFLAGS@
+ endif
+
+ # Allow people to override OpenSSL and build it statically, if they need
+@@ -17,10 +17,10 @@
+ SSL_CFLAGS += -I$(OPENSSL)/include
+ SSL_LDFLAGS += $(OPENSSL)/libssl.a $(OPENSSL)/libcrypto.a
+ else
+-ifeq ($(wildcard /usr/include/openssl),)
+-$(error "No OpenSSL in /usr/include/openssl. Cannot continue");
++ifeq ($(wildcard @PREFIX@/include/openssl),)
++$(error "No OpenSSL in @PREFIX@/include/openssl. Cannot continue");
+ endif
+-SSL_CFLAGS += -I/usr/include/openssl
++SSL_CFLAGS += -I at PREFIX@/include/openssl
+ SSL_LDFLAGS += -lcrypto -lssl
+ endif
+
+@@ -106,10 +106,10 @@
+ rm -f *~
+
+ install: all
+- mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/libexec
+- install -m0755 openconnect $(DESTDIR)/usr/bin
++ mkdir -p $(DESTDIR)/bin $(DESTDIR)/libexec
++ install -m0755 openconnect $(DESTDIR)/bin
+ ifeq ($(MISSINGPKGS),)
+- install -m0755 nm-openconnect-auth-dialog $(DESTDIR)/usr/libexec
++ install -m0755 nm-openconnect-auth-dialog $(DESTDIR)/libexec
+ endif
+
+ include /dev/null $(wildcard .*.o.dep)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100624/aea2583e/attachment.html>
More information about the macports-changes
mailing list