summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2009-02-08 16:39:41 +0000
committerJustin Lecher <jlec@gentoo.org>2009-02-08 16:39:41 +0000
commitfc1557c07a688e8bf4346f347cac15b817d8e51b (patch)
tree06431a604fd3ea8c7fce8721e286a1e309e2a192 /net-misc
parentmedia-radio/fldigi: Add die statement to dodoc, whitespace (diff)
downloadsunrise-fc1557c07a688e8bf4346f347cac15b817d8e51b.tar.gz
sunrise-fc1557c07a688e8bf4346f347cac15b817d8e51b.tar.bz2
sunrise-fc1557c07a688e8bf4346f347cac15b817d8e51b.zip
net-misc/vpncwatch: Intial checkin of net-misc/vpncwatch-1.7
svn path=/sunrise/; revision=7882
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/vpncwatch/ChangeLog8
-rw-r--r--net-misc/vpncwatch/Manifest7
-rw-r--r--net-misc/vpncwatch/files/vpncwatch-1.7-Makefile.patch12
-rw-r--r--net-misc/vpncwatch/files/vpncwatch-1.7-gcc4.3.patch11
-rw-r--r--net-misc/vpncwatch/files/vpncwatch-1.7-literal.patch11
-rw-r--r--net-misc/vpncwatch/metadata.xml10
-rw-r--r--net-misc/vpncwatch/vpncwatch-1.7.ebuild39
7 files changed, 98 insertions, 0 deletions
diff --git a/net-misc/vpncwatch/ChangeLog b/net-misc/vpncwatch/ChangeLog
new file mode 100644
index 000000000..6fa56b372
--- /dev/null
+++ b/net-misc/vpncwatch/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-misc/vpncwatch
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 08 Feb 2009; justin Lecher (jlec) <jlec@j-schmitz.net> +metadata.xml,
+ +vpncwatch-1.7.ebuild:
+ Initial commit
+ Tracking bug is 258150
diff --git a/net-misc/vpncwatch/Manifest b/net-misc/vpncwatch/Manifest
new file mode 100644
index 000000000..91e081239
--- /dev/null
+++ b/net-misc/vpncwatch/Manifest
@@ -0,0 +1,7 @@
+AUX vpncwatch-1.7-Makefile.patch 299 RMD160 95753bd90cca0a84f3f1e97dedbb085f9d89ed40 SHA1 47a5d1af3352f801b5efa2381f4aec5cce2679a4 SHA256 3ed293d4bdd2d658476da6ae812e96bc7fbfd79d6c2c73c2752cb80447bee9a1
+AUX vpncwatch-1.7-gcc4.3.patch 247 RMD160 b6f2f27eb35528b6aad80db345b6442ee2a86c47 SHA1 8e8a47eb10ddf0af696ad4fa637d06f5cf063aa1 SHA256 91cc47c5290319693dfebc3a9e9427ca204990367f1a3bcd5374dd93480f1578
+AUX vpncwatch-1.7-literal.patch 419 RMD160 60ed4c6945f1c7fc6e1310b8693fe081d9ce8535 SHA1 c64e81cdb745dc7526d59abd829403f0ac9fd65c SHA256 b62d7776fa68a83ae4d0022ed8751eaeb731854f1172401f36095be012238a32
+DIST vpncwatch-1.7.tar.gz 16787 RMD160 4fda7f0a367dfc491b61478045988bc72e7075b6 SHA1 89804f015ba2b4be6eec367aa85514915e2ff4ad SHA256 e8860c1e6fc2ee26c25d5afb9b8447a9e7ece4db5b0191c64a968992aca3e682
+EBUILD vpncwatch-1.7.ebuild 862 RMD160 ee79c7b3f9c97ed683766968256c5eec3f0007aa SHA1 db87530fe210e684d42c29dcf9c28fdf14a1c567 SHA256 7c3ab5bc9f420c5dfa5230bc9e1aa580a0037070a5d1689a2a00b9615995382f
+MISC ChangeLog 258 RMD160 9e2b1b1bbd7aefc6ea9ff57781eb8abad4f52e01 SHA1 7977757c99bd47be98287d04ac1d817803c4d3c8 SHA256 c7181f9692c1bf5b49b6f142a253c2ed74f75fa0651e098dcdcbf6e80a6d29c5
+MISC metadata.xml 273 RMD160 fea63ddffc85ec0e161d1c79f7a94c5089f551b5 SHA1 ca5991e3f786e96f55ecf35a700fddc4cc2b5fb3 SHA256 ee59349a15733c2b606e2e4a7811ca90dfea514b6e1b3c5fa480ad30c13ca823
diff --git a/net-misc/vpncwatch/files/vpncwatch-1.7-Makefile.patch b/net-misc/vpncwatch/files/vpncwatch-1.7-Makefile.patch
new file mode 100644
index 000000000..68487aa95
--- /dev/null
+++ b/net-misc/vpncwatch/files/vpncwatch-1.7-Makefile.patch
@@ -0,0 +1,12 @@
+--- Makefile 2008-02-04 09:44:34.000000000 +0100
++++ Makefile.new 2009-02-08 17:20:10.536039280 +0100
+@@ -13,7 +13,7 @@
+ CFLAGS = -D_GNU_SOURCE -O2 -Wall -Werror
+
+ vpncwatch: $(OBJS)
+- $(CC) $(CFLAGS) -o $@ $(OBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
+
+ .c.o:
+ $(CC) $(CFLAGS) -c -o $@ $<
+
diff --git a/net-misc/vpncwatch/files/vpncwatch-1.7-gcc4.3.patch b/net-misc/vpncwatch/files/vpncwatch-1.7-gcc4.3.patch
new file mode 100644
index 000000000..91c3f5b28
--- /dev/null
+++ b/net-misc/vpncwatch/files/vpncwatch-1.7-gcc4.3.patch
@@ -0,0 +1,11 @@
+--- vpncwatch.c.orig 2009-02-08 17:03:14.296036582 +0100
++++ vpncwatch.c 2009-02-08 17:02:56.932904474 +0100
+@@ -31,6 +31,7 @@
+ #include <arpa/inet.h>
+ #include <netdb.h>
+ #include <errno.h>
++#include <linux/limits.h>
+
+
+ #include "vpncwatch.h"
+
diff --git a/net-misc/vpncwatch/files/vpncwatch-1.7-literal.patch b/net-misc/vpncwatch/files/vpncwatch-1.7-literal.patch
new file mode 100644
index 000000000..2944464c0
--- /dev/null
+++ b/net-misc/vpncwatch/files/vpncwatch-1.7-literal.patch
@@ -0,0 +1,11 @@
+--- net.c 2008-02-04 09:28:51.000000000 +0100
++++ net.c.new 2009-02-08 17:13:31.188241104 +0100
+@@ -53,7 +53,7 @@
+ /* get the server address */
+ if (inet_pton(AF_INET, chkhost, &(chksock.sin_addr.s_addr)) <= 0) {
+ if ((host = gethostbyname(chkhost)) == NULL) {
+- syslog(LOG_ERR, hstrerror(h_errno));
++ syslog(LOG_ERR, "%s", hstrerror(h_errno));
+ return 0;
+ }
+
diff --git a/net-misc/vpncwatch/metadata.xml b/net-misc/vpncwatch/metadata.xml
new file mode 100644
index 000000000..a40f74b8f
--- /dev/null
+++ b/net-misc/vpncwatch/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>maintainer-needed</herd>
+ <maintainer>
+ <email>jlec@j-schmitz.net</email>
+ <name>Justin Lecher (jlec)</name>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/net-misc/vpncwatch/vpncwatch-1.7.ebuild b/net-misc/vpncwatch/vpncwatch-1.7.ebuild
new file mode 100644
index 000000000..68d5365b3
--- /dev/null
+++ b/net-misc/vpncwatch/vpncwatch-1.7.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="A keepalive daemon for vpnc on Linux systems."
+HOMEPAGE="http://code.google.com/p/vpncwatch/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+RDEPEND="net-misc/vpnc"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gcc4.3.patch"
+ epatch "${FILESDIR}/${P}-literal.patch"
+ epatch "${FILESDIR}/${P}-Makefile.patch"
+}
+
+src_compile() {
+ append-flags -D_GNU_SOURCE
+ emake CC=$(tc-getCC) \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" || \
+ die "compilation failed"
+}
+
+src_install() {
+ dobin vpncwatch || die "failed to install ${PN}"
+ dodoc README ChangeLog AUTHORS || die "doc install failed"
+}