diff options
author | pav <pav@FreeBSD.org> | 2009-12-15 17:28:39 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2009-12-15 17:28:39 +0800 |
commit | 9d07a9fbd14c1e0cc9f898eb13cf583d739e59ec (patch) | |
tree | 9070c667cf9d4fa41a1c409b695666353df0ab6d /ftp/pftpx/files | |
parent | d833b45f222b1f4ee384f82602c9c676d3946b3b (diff) | |
download | freebsd-ports-gnome-9d07a9fbd14c1e0cc9f898eb13cf583d739e59ec.tar.gz freebsd-ports-gnome-9d07a9fbd14c1e0cc9f898eb13cf583d739e59ec.tar.zst freebsd-ports-gnome-9d07a9fbd14c1e0cc9f898eb13cf583d739e59ec.zip |
- "It appears the API has changed in libevent and pftpx is a dead project.
Please remove the port."
Submitted by: Scott Ullrich <sullrich@gmail.com> (maintainer)
Diffstat (limited to 'ftp/pftpx/files')
-rw-r--r-- | ftp/pftpx/files/patch-Makefile | 11 | ||||
-rw-r--r-- | ftp/pftpx/files/patch-pftpx.c | 206 | ||||
-rw-r--r-- | ftp/pftpx/files/pftpx.in | 25 |
3 files changed, 0 insertions, 242 deletions
diff --git a/ftp/pftpx/files/patch-Makefile b/ftp/pftpx/files/patch-Makefile deleted file mode 100644 index 4a6ace634008..000000000000 --- a/ftp/pftpx/files/patch-Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.orig Mon Jun 27 19:14:36 2005 -+++ Makefile Mon Jun 27 19:30:00 2005 -@@ -5,6 +5,8 @@ - CFLAGS+=-I. -g - CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ - -Wno-uninitialized -+CFLAGS+=-I/usr/local/include -L/usr/local/lib -+INCLUDES+= -I/usr/local/include - LDADD+= -levent - - .include <bsd.prog.mk> diff --git a/ftp/pftpx/files/patch-pftpx.c b/ftp/pftpx/files/patch-pftpx.c deleted file mode 100644 index a46f62421121..000000000000 --- a/ftp/pftpx/files/patch-pftpx.c +++ /dev/null @@ -1,206 +0,0 @@ ---- pftpx.c.orig Mon Jun 27 17:58:30 2005 -+++ pftpx.c Mon Jun 27 18:01:11 2005 -@@ -58,6 +58,58 @@ - - #define sstosa(ss) ((struct sockaddr *)(ss)) - -+#include <sys/types.h> -+ -+#include <ctype.h> -+#include <limits.h> -+#include <string.h> -+ -+#define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7') -+#include <sys/types.h> -+ -+#define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7') -+#define isvisible(c) (((u_int)(c) <= UCHAR_MAX && isascii((u_char)(c)) && \ -+ isgraph((u_char)(c))) || \ -+ ((flag & VIS_SP) == 0 && (c) == ' ') || \ -+ ((flag & VIS_TAB) == 0 && (c) == '\t') || \ -+ ((flag & VIS_NL) == 0 && (c) == '\n') || \ -+ ((flag & VIS_SAFE) && ((c) == '\b' || \ -+ (c) == '\007' || (c) == '\r' || \ -+ isgraph((u_char)(c))))) -+ -+#define _VIS_H_ -+ -+#include <sys/types.h> -+#include <limits.h> -+ -+/* -+ * to select alternate encoding format -+ */ -+#define VIS_OCTAL 0x01 /* use octal \ddd format */ -+#define VIS_CSTYLE 0x02 /* use \[nrft0..] where appropriate */ -+ -+/* -+ * to alter set of characters encoded (default is to encode all -+ * non-graphic except space, tab, and newline). -+ */ -+#define VIS_SP 0x04 /* also encode space */ -+#define VIS_TAB 0x08 /* also encode tab */ -+#define VIS_NL 0x10 /* also encode newline */ -+#define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL) -+#define VIS_SAFE 0x20 /* only encode "unsafe" characters */ -+ -+/* -+ * other -+ */ -+#define VIS_NOSLASH 0x40 /* inhibit printing '\' */ -+ -+#define LIST_FIRST(head) ((head)->lh_first) -+#define LIST_END(head) NULL -+#define LIST_NEXT(elm, field) ((elm)->field.le_next) -+ -+char *vis(char *, int, int, int); -+int strnvis(char *, const char *, size_t, int); -+ - enum { CMD_NONE = 0, CMD_PORT, CMD_EPRT, CMD_PASV, CMD_EPSV }; - - struct session { -@@ -1037,3 +1089,143 @@ - "[-p address] [-q queue] [-t timeout]\n", __progname); - exit(1); - } -+ -+ -+/* -+ * vis - visually encode characters -+ */ -+char * -+vis(dst, c, flag, nextc) -+ register char *dst; -+ int c, nextc; -+ register int flag; -+{ -+ if (isvisible(c)) { -+ *dst++ = c; -+ if (c == '\\' && (flag & VIS_NOSLASH) == 0) -+ *dst++ = '\\'; -+ *dst = '\0'; -+ return (dst); -+ } -+ -+ if (flag & VIS_CSTYLE) { -+ switch(c) { -+ case '\n': -+ *dst++ = '\\'; -+ *dst++ = 'n'; -+ goto done; -+ case '\r': -+ *dst++ = '\\'; -+ *dst++ = 'r'; -+ goto done; -+ case '\b': -+ *dst++ = '\\'; -+ *dst++ = 'b'; -+ goto done; -+ case '\a': -+ *dst++ = '\\'; -+ *dst++ = 'a'; -+ goto done; -+ case '\v': -+ *dst++ = '\\'; -+ *dst++ = 'v'; -+ goto done; -+ case '\t': -+ *dst++ = '\\'; -+ *dst++ = 't'; -+ goto done; -+ case '\f': -+ *dst++ = '\\'; -+ *dst++ = 'f'; -+ goto done; -+ case ' ': -+ *dst++ = '\\'; -+ *dst++ = 's'; -+ goto done; -+ case '\0': -+ *dst++ = '\\'; -+ *dst++ = '0'; -+ if (isoctal(nextc)) { -+ *dst++ = '0'; -+ *dst++ = '0'; -+ } -+ goto done; -+ } -+ } -+ if (((c & 0177) == ' ') || (flag & VIS_OCTAL)) { -+ *dst++ = '\\'; -+ *dst++ = ((u_char)c >> 6 & 07) + '0'; -+ *dst++ = ((u_char)c >> 3 & 07) + '0'; -+ *dst++ = ((u_char)c & 07) + '0'; -+ goto done; -+ } -+ if ((flag & VIS_NOSLASH) == 0) -+ *dst++ = '\\'; -+ if (c & 0200) { -+ c &= 0177; -+ *dst++ = 'M'; -+ } -+ if (iscntrl(c)) { -+ *dst++ = '^'; -+ if (c == 0177) -+ *dst++ = '?'; -+ else -+ *dst++ = c + '@'; -+ } else { -+ *dst++ = '-'; -+ *dst++ = c; -+ } -+done: -+ *dst = '\0'; -+ return (dst); -+} -+ -+int -+strnvis(dst, src, siz, flag) -+ char *dst; -+ const char *src; -+ size_t siz; -+ int flag; -+{ -+ char c; -+ char *start, *end; -+ char tbuf[5]; -+ int i; -+ -+ i = 0; -+ for (start = dst, end = start + siz - 1; (c = *src) && dst < end; ) { -+ if (isvisible(c)) { -+ i = 1; -+ *dst++ = c; -+ if (c == '\\' && (flag & VIS_NOSLASH) == 0) { -+ /* need space for the extra '\\' */ -+ if (dst < end) -+ *dst++ = '\\'; -+ else { -+ dst--; -+ i = 2; -+ break; -+ } -+ } -+ src++; -+ } else { -+ i = vis(tbuf, c, flag, *++src) - tbuf; -+ if (dst + i <= end) { -+ memcpy(dst, tbuf, i); -+ dst += i; -+ } else { -+ src--; -+ break; -+ } -+ } -+ } -+ if (siz > 0) -+ *dst = '\0'; -+ if (dst + i > end) { -+ /* adjust return value for truncation */ -+ while ((c = *src)) -+ dst += vis(tbuf, c, flag, *++src) - tbuf; -+ } -+ return (dst - start); -+} -+ - diff --git a/ftp/pftpx/files/pftpx.in b/ftp/pftpx/files/pftpx.in deleted file mode 100644 index 8375fa93d330..000000000000 --- a/ftp/pftpx/files/pftpx.in +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# -# PROVIDE: pftpx -# REQUIRE: DAEMON pf -# -# Add the following lines to /etc/rc.conf to enable pftpx: -# -# pftpx_enable (bool): Set to "YES" to enable pftpx. -# Default is "NO". -# pftpx_flags (flags): Set extra flags to pftpx. -# Default is "". See pftpx(8). -# - -. %%RC_SUBR%% - -name="pftpx" -rcvar=${name}_enable - -load_rc_config $name - -: ${pftpx_enable="NO"} - -command="%%PREFIX%%/sbin/pftpx" - -run_rc_command "$1" |