summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-10-23 12:18:42 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2011-10-23 12:18:42 +0000
commit13775e94c5579cf4e1b729752c93d5d80f8277a4 (patch)
tree4a7f7885b920c8134fd410e136fb74bd9e2cfbf1 /net-misc/vde/files
parentx86 stable, bug #387229 (diff)
downloadgentoo-2-13775e94c5579cf4e1b729752c93d5d80f8277a4.tar.gz
gentoo-2-13775e94c5579cf4e1b729752c93d5d80f8277a4.tar.bz2
gentoo-2-13775e94c5579cf4e1b729752c93d5d80f8277a4.zip
Bump to eapi4 and make static libs optional, punt overshadowed as only consumer does not care about version.
(Portage version: 2.2.0_alpha70/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/vde/files')
-rw-r--r--net-misc/vde/files/Unixterm_20070403.patch208
-rw-r--r--net-misc/vde/files/vde-2.1.6-gcc43.patch35
2 files changed, 0 insertions, 243 deletions
diff --git a/net-misc/vde/files/Unixterm_20070403.patch b/net-misc/vde/files/Unixterm_20070403.patch
deleted file mode 100644
index 0d5a2a6cb8ee..000000000000
--- a/net-misc/vde/files/Unixterm_20070403.patch
+++ /dev/null
@@ -1,208 +0,0 @@
-diff -Naur vde2-2.1.6/unixterm/unixterm.c vde2-2.1.6-unixterm/unixterm/unixterm.c
---- vde2-2.1.6/unixterm/unixterm.c 2006-07-07 16:54:39.000000000 +0200
-+++ vde2-2.1.6/unixterm/unixterm.c 2007-04-03 12:49:14.000000000 +0200
-@@ -4,6 +4,8 @@
- * Minimal terminal emulator on a UNIX stream socket
- */
-
-+/* render: addedd support for stdin commands */
-+
- #include <stdio.h>
- #include <fcntl.h>
- #include <stdlib.h>
-@@ -11,10 +13,12 @@
- #include <sys/poll.h>
- #include <sys/socket.h>
- #include <sys/un.h>
--
-+#include <getopt.h>
- #include <vde.h>
-
- #define BUFSIZE 1024
-+#define LINESIZE 1025
-+#define THRESHOLD 4
- char buf[BUFSIZE];
-
- int main(int argc,char *argv[])
-@@ -23,25 +27,168 @@
- int fd;
- int rv;
- static struct pollfd pfd[]={
-- {STDIN_FILENO,POLLIN | POLLHUP,0},
-- {STDIN_FILENO,POLLIN | POLLHUP,0}};
-+ {STDIN_FILENO,POLLIN | POLLHUP, 0},
-+ {STDIN_FILENO,POLLIN | POLLHUP, 0}};
- static int fileout[]={STDOUT_FILENO,STDOUT_FILENO};
-+ int optret;
-+ char *sockpath, *sockname;
-+ char sentinel = 0;
-+ unsigned char injecting = 0;
-+ unsigned char optcount = 0;
-+ unsigned char failures = 0;
-+ unsigned char loggedout = 0;
-+ unsigned char ok_to_write = 0;
-+
-+ /* options management loop */
-+ while (1) {
-+ static struct option options[] = {
-+ {"inject", 0, 0, 0}, /* get command list from stdin */
-+ {"socket", 1, 0, 0}, /* management socket */
-+ {0, 0, 0, 0} /* default case */
-+ };
-+ int option_index = 0;
-+
-+ if ((optret = getopt_long (argc, argv, "is:", options, &option_index)) == -1)
-+ break;
-+
-+ optcount++;
-+
-+ switch (optret) {
-+ case 0:
-+ switch (option_index) {
-+ case 0:
-+ injecting = 1;
-+ break;
-+ case 1:
-+ if ((sockpath = strdup(optarg)) == NULL)
-+ fprintf(stderr, "strdup error\n");
-+ sockname = (char *)basename(sockpath);
-+ break;
-+ default:
-+ fprintf(stderr, "unknown long option\n");
-+ break;
-+ }
-+
-+ break;
-+
-+ case 'i':
-+ injecting = 1;
-+ break;
-+
-+ case 's':
-+ if ((sockpath = strdup(optarg)) == NULL)
-+ fprintf(stderr, "strdup error\n");
-+ sockname = (char *)basename(sockpath);
-+ break;
-+
-+ case '?':
-+ fprintf(stderr, "unknown short option\n");
-+ break;
-+
-+ default:
-+ fprintf(stderr, "default case!\n");
-+ break;
-+ }
-+ }
-+
- sun.sun_family=PF_UNIX;
-- snprintf(sun.sun_path,sizeof(sun.sun_path),"%s",argv[1]);
-+ snprintf(sun.sun_path,sizeof(sun.sun_path),"%s", optcount ? sockpath : argv[1]);
-+
- fd=socket(PF_UNIX,SOCK_STREAM,0);
-- rv=connect(fd,(struct sockaddr *)(&sun),sizeof(sun));
-+
-+ if (connect(fd, (struct sockaddr *)(&sun), sizeof(sun)) < 0) {
-+ perror("connect");
-+ exit(-1);
-+ }
-+
- pfd[1].fd=fileout[0]=fd;
-+
- while(1) {
-- int m,i,n=poll(pfd,2,-1);
-- for(i=0;n>0;i++) {
-- if(pfd[i].revents & POLLHUP)
-- exit(0);
-+ int ccount,m,i,n = poll(pfd,2,-1);
-+ for(i = 0; n > 0; i++) {
- if(pfd[i].revents & POLLIN) {
-- n--;
-- if((m=read(pfd[i].fd,buf,BUFSIZE)) == 0)
-+ --n;
-+ if (injecting) {
-+ switch (i) {
-+ case 0:
-+ if (!feof(stdin)) {
-+ ccount = 0;
-+
-+ if (sentinel > 0) {
-+ buf[ccount] = sentinel;
-+ ccount++;
-+ }
-+
-+ while ((buf[ccount] = fgetc(stdin)) != '\n' && !feof(stdin))
-+ ccount++;
-+ /* avoid write of empty lines */
-+ if ((ccount > 0) && (buf[0] != '\n')) {
-+ write(fileout[i],buf,ccount);
-+ }
-+ sentinel = fgetc(stdin);
-+ }
-+ /* end of stdin: logout from management console */
-+ if (feof(stdin) && !loggedout) {
-+ write(fileout[i],"logout\n",strlen("logout\n"));
-+ loggedout = 1;
-+ }
-+
-+ break;
-+ case 1: {
-+ int cursor = 0;
-+ int base = 0;
-+ char line[LINESIZE];
-+ unsigned char start = 1;
-+
-+ if ((m = read(pfd[i].fd,buf,BUFSIZE)) == 0)
-+ exit(0);
-+
-+ while (cursor < m) {
-+ while ((buf[cursor] != '\n') && (cursor <= m))
-+ cursor++;
-+
-+ memcpy(line, &buf[base], cursor - base + 1);
-+
-+ if (!ok_to_write && (start = (strstr(line, "0000 DATA") == NULL))) {
-+ base += (cursor - base) + 1;
-+ cursor += 1;
-+ } else {
-+ if (ok_to_write && (strstr(line, ".\n") != NULL)) {
-+ ok_to_write = 0;
-+ }
-+
-+ if (ok_to_write) {
-+ write(fileout[i],sockname, strlen(sockname));
-+ write(fileout[i],": ", 2);
-+ write(fileout[i],line,cursor - base + 1);
-+ }
-+ else {
-+ if (!start) {
-+ ok_to_write = 1;
-+ start = 1;
-+ }
-+ }
-+ base += (cursor - base) + 1;
-+ cursor += 1;
-+ }
-+ }
-+
-+ break;
-+ }
-+ }
-+ } else {
-+ if((m=read(pfd[i].fd,buf,BUFSIZE)) == 0)
-+ exit(0);
-+
-+ write(fileout[i],buf,m);
-+ }
-+ }
-+
-+ if(pfd[i].revents & POLLHUP) {
-+ --n;
-+ if (sentinel > 0)
- exit(0);
-- write(fileout[i],buf,m);
- }
-- }
-- }
-+ } /* for */
-+ } /* infinite while */
- }
diff --git a/net-misc/vde/files/vde-2.1.6-gcc43.patch b/net-misc/vde/files/vde-2.1.6-gcc43.patch
deleted file mode 100644
index 80122b26c75d..000000000000
--- a/net-misc/vde/files/vde-2.1.6-gcc43.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- slirpvde/slirpvde.c 2006-12-18 16:24:27.000000000 +0100
-+++ slirpvde/slirpvde.c 2008-07-10 15:44:39.000000000 +0200
-@@ -32,8 +32,8 @@
-
- #include "misc.h"
-
-+#include <limits.h>
- #ifdef VDE_DARWIN
--# include <limits.h>
- # if defined HAVE_SYSLIMITS_H
- # include <syslimits.h>
- # elif defined HAVE_SYS_SYSLIMITS_H
---- vde_plug2tap/vde_plug2tap.c 2006-12-18 14:49:57.000000000 +0100
-+++ vde_plug2tap/vde_plug2tap.c 2008-07-10 15:45:12.000000000 +0200
-@@ -30,9 +30,9 @@
- #include <linux/if_tun.h>
- #endif
-
-+#include <limits.h>
- #ifdef VDE_DARWIN
- # define TAP_PREFIX "/dev/"
--# include <limits.h>
- # if defined HAVE_SYSLIMITS_H
- # include <syslimits.h>
- # elif defined HAVE_SYS_SYSLIMITS_H
---- vdetaplib/libvdetap.c 2006-12-18 14:36:05.000000000 +0100
-+++ vdetaplib/libvdetap.c 2008-07-10 15:47:24.000000000 +0200
-@@ -20,6 +20,7 @@
- #include <linux/ioctl.h>
- #include <linux/if.h>
- #include <linux/if_tun.h>
-+#include <limits.h>
-
- #define TUNTAPPATH "/dev/net/tun"
- #define VDETAPEXEC LIBEXECDIR "/vdetap"