diff options
author | shtrom | 2008-06-10 03:32:40 +0000 |
---|---|---|
committer | shtrom | 2008-06-10 03:32:40 +0000 |
commit | b0a79c5aee89c20e9934953ffb8f13d4983ba8a7 (patch) | |
tree | 1326f2b5a3f337a47d9e0b63f5cf0359fbcd6d7b | |
download | aur-b0a79c5aee89c20e9934953ffb8f13d4983ba8a7.tar.gz |
[tpsc] Quick'n dirty package.
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/archlinux-packages@116 df209809-8e4a-0410-9a64-c169741eb0fc
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 0 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | fix_missing_headers.patch | 95 |
4 files changed, 134 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d9b56ea5923d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = tspc + pkgdesc = Gateway6 client implementation of the Tunnel Setup Protocol from Hexago + pkgver = 5.1 + pkgrel = 1 + url = http://go6.net/4105/download.asp + arch = i686 + arch = x86_64 + license = BSD + depends = openssl + source = http://go6.net/4105/file.asp?file_id=150 + source = fix_missing_headers.patch + md5sums = 5c5205dc58e82454a5d55a3efb4bf786 + md5sums = 0c7aa95083375dfdfb3cff6772a2987b + +pkgname = tspc + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..858c3aac2263 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Contributor: Olivier Mehani <shtrom-arch@ssji.net> +# $Id$ + +pkgname=tspc +pkgver=5.1 +pkgrel=1 +pkgdesc='Gateway6 client implementation of the Tunnel Setup Protocol from Hexago' +url="http://go6.net/4105/download.asp" +depends=('openssl') +conflicts=() +source=('http://go6.net/4105/file.asp?file_id=150' 'fix_missing_headers.patch') +md5sums=('5c5205dc58e82454a5d55a3efb4bf786' '0c7aa95083375dfdfb3cff6772a2987b') +arch=(i686 x86_64) +license=('BSD') + +build() { + cd $startdir/src + patch -p1 < $startdir/src/fix_missing_headers.patch + cd $startdir/src/tspc-advanced + make all target=linux || return 1 + install -D bin/gw6c -m 0755 $startdir/pkg/usr/sbin/tspc + install -D bin/gw6c.conf.sample -m 0600 $startdir/pkg/etc/tspc.conf.sample +} diff --git a/fix_missing_headers.patch b/fix_missing_headers.patch new file mode 100644 index 000000000000..12dd8ed4dad1 --- /dev/null +++ b/fix_missing_headers.patch @@ -0,0 +1,95 @@ +$Id$ +Include headers for missing prototypes due to the C++ header cleanup in GCC 4.3. +==== +diff -urN gw6c-5_1-RELEASE-src.orig/gw6c-config/src/gw6c_c_wrapper.cc gw6c-5_1-RELEASE-src/gw6c-config/src/gw6c_c_wrapper.cc +--- gw6c-5_1-RELEASE-src.orig/gw6c-config/src/gw6c_c_wrapper.cc 2008-06-10 12:03:32.000000000 +1000 ++++ gw6c-5_1-RELEASE-src/gw6c-config/src/gw6c_c_wrapper.cc 2008-06-10 12:07:47.000000000 +1000 +@@ -22,6 +22,8 @@ + #include <gw6cconfig/gw6cuistrings.h> + using namespace gw6cconfig; + #include <assert.h> ++#include <stdlib.h> ++#include <string.h> + + #ifdef WIN32 + #define strcasecmp _stricmp +diff -urN gw6c-5_1-RELEASE-src.orig/gw6c-config/src/gw6cconfig.cc gw6c-5_1-RELEASE-src/gw6c-config/src/gw6cconfig.cc +--- gw6c-5_1-RELEASE-src.orig/gw6c-config/src/gw6cconfig.cc 2008-06-10 12:03:32.000000000 +1000 ++++ gw6c-5_1-RELEASE-src/gw6c-config/src/gw6cconfig.cc 2008-06-10 12:07:17.000000000 +1000 +@@ -25,6 +25,8 @@ + #include <gw6cconfig/gw6cuistrings.h> + #include <assert.h> + #include <string> ++#include <stdlib.h> ++#include <string.h> + + + // Configuration data variable NAMES +diff -urN gw6c-5_1-RELEASE-src.orig/gw6c-config/src/gw6cvalidation.cc gw6c-5_1-RELEASE-src/gw6c-config/src/gw6cvalidation.cc +--- gw6c-5_1-RELEASE-src.orig/gw6c-config/src/gw6cvalidation.cc 2008-06-10 12:03:32.000000000 +1000 ++++ gw6c-5_1-RELEASE-src/gw6c-config/src/gw6cvalidation.cc 2008-06-10 12:06:17.000000000 +1000 +@@ -34,6 +34,8 @@ + #include <arpa/inet.h> + #include <sys/socket.h> + #include <netinet/in.h> ++#include <stdlib.h> ++#include <string.h> + #define INET_PTON(A, B, C) inet_pton(A,B,C) + #endif + +diff -urN gw6c-5_1-RELEASE-src.orig/gw6c-config/src/hap6_devmap_c_wrap.cc gw6c-5_1-RELEASE-src/gw6c-config/src/hap6_devmap_c_wrap.cc +--- gw6c-5_1-RELEASE-src.orig/gw6c-config/src/hap6_devmap_c_wrap.cc 2008-06-10 12:03:32.000000000 +1000 ++++ gw6c-5_1-RELEASE-src/gw6c-config/src/hap6_devmap_c_wrap.cc 2008-06-10 12:08:33.000000000 +1000 +@@ -22,6 +22,8 @@ + #include <gw6cconfig/gw6cuistrings.h> + using namespace gw6cconfig; + #include <assert.h> ++#include <stdlib.h> ++#include <string.h> + + #ifdef WIN32 + #define strcasecmp _stricmp +diff -urN gw6c-5_1-RELEASE-src.orig/gw6c-config/src/hap6devicemappingconfig.cc gw6c-5_1-RELEASE-src/gw6c-config/src/hap6devicemappingconfig.cc +--- gw6c-5_1-RELEASE-src.orig/gw6c-config/src/hap6devicemappingconfig.cc 2008-06-10 12:03:32.000000000 +1000 ++++ gw6c-5_1-RELEASE-src/gw6c-config/src/hap6devicemappingconfig.cc 2008-06-10 12:08:08.000000000 +1000 +@@ -22,6 +22,7 @@ + #include <gw6cconfig/hap6devicemappingconfig.h> + #include <gw6cconfig/gw6cuistrings.h> + #include <assert.h> ++#include <string.h> + + + #ifdef WIN32 +diff -urN gw6c-5_1-RELEASE-src.orig/gw6c-config/src/namevalueparser.cc gw6c-5_1-RELEASE-src/gw6c-config/src/namevalueparser.cc +--- gw6c-5_1-RELEASE-src.orig/gw6c-config/src/namevalueparser.cc 2008-06-10 12:03:32.000000000 +1000 ++++ gw6c-5_1-RELEASE-src/gw6c-config/src/namevalueparser.cc 2008-06-10 12:05:14.000000000 +1000 +@@ -25,6 +25,7 @@ + #include <fstream> + #include <time.h> + #include <assert.h> ++#include <string.h> + + + #define NV_SEPARATOR "=" // Name=value separator +diff -urN gw6c-5_1-RELEASE-src.orig/gw6c-messaging/src/clientmsgsender.cc gw6c-5_1-RELEASE-src/gw6c-messaging/src/clientmsgsender.cc +--- gw6c-5_1-RELEASE-src.orig/gw6c-messaging/src/clientmsgsender.cc 2008-06-10 12:03:41.000000000 +1000 ++++ gw6c-5_1-RELEASE-src/gw6c-messaging/src/clientmsgsender.cc 2008-06-10 12:08:56.000000000 +1000 +@@ -19,6 +19,7 @@ + // ************************************************************************** + #include <gw6cmessaging/clientmsgsender.h> + #include <assert.h> ++#include <string.h> + + + namespace gw6cmessaging +diff -urN gw6c-5_1-RELEASE-src.orig/gw6c-messaging/src/servermsgsender.cc gw6c-5_1-RELEASE-src/gw6c-messaging/src/servermsgsender.cc +--- gw6c-5_1-RELEASE-src.orig/gw6c-messaging/src/servermsgsender.cc 2008-06-10 12:03:41.000000000 +1000 ++++ gw6c-5_1-RELEASE-src/gw6c-messaging/src/servermsgsender.cc 2008-06-10 12:09:13.000000000 +1000 +@@ -19,6 +19,7 @@ + // ************************************************************************** + #include <gw6cmessaging/servermsgsender.h> + #include <assert.h> ++#include <string.h> + + + #ifdef WIN32 |