# New ports collection makefile for: ucspi-tcp+ipv6
# Date Created: 8 Oct 2003
# Whom: Masafumi Otsune <info@otsune.com>
#
# $FreeBSD$
#
PORTNAME= ucspi-tcp+ipv6
CATEGORIES= sysutils net ipv6
PKGNAMESUFFIX= +ipv6
PATCH_SITES= http://www.fefe.de/ucspi/
PATCHFILES= ucspi-tcp-0.88-ipv6.diff14.bz2
PATCH_DIST_STRIP= -p1
COMMENT= Command-line tools for building TCP client-server applications with IPv6 support
MASTERDIR= ${.CURDIR}/../../sysutils/ucspi-tcp
PKGDIR= ${.CURDIR}
PATCHDIR= ${.CURDIR}/files
MD5_FILE= ${.CURDIR}/distinfo
DESCR= ${MASTERDIR}/pkg-descr
PLIST= ${MASTERDIR}/pkg-plist
.include "${MASTERDIR}/Makefile"
MD5 (ucspi-tcp-0.88.tar.gz) = 39b619147db54687c4a583a7a94c9163
SIZE (ucspi-tcp-0.88.tar.gz) = 53019
MD5 (ucspi-tcp-0.88-man.tar.gz) = d33160cbd43bccbc0963d0499dfcebdb
SIZE (ucspi-tcp-0.88-man.tar.gz) = 7562
MD5 (ucspi-tcp-0.88-ipv6.diff14.bz2) = 67de66745001ddb48563a1d4e92262c2
SIZE (ucspi-tcp-0.88-ipv6.diff14.bz2) = 21917
diff -u dns_dfd.c.orig dns_dfd.c
--- dns_dfd.c.orig Wed Nov 6 12:40:35 2002
+++ dns_dfd.c Wed Nov 6 12:41:18 2002
@@ -2,6 +2,7 @@
#include <errno.h>
#include "byte.h"
#include "dns.h"
+#include "error.h"
int dns_domain_fromdot(char **out,const char *buf,unsigned int n)
{
@@ -12,7 +13,7 @@
char ch;
char *x;
- errno = EPROTO;
+ errno = error_proto;
for (;;) {
if (!n) break;
diff -u dns_packet.c.orig dns_packet.c
--- dns_packet.c.orig Wed Nov 6 12:40:44 2002
+++ dns_packet.c Wed Nov 6 12:41:43 2002
@@ -4,11 +4,12 @@
#include <errno.h>
#include "dns.h"
+#include "error.h"
unsigned int dns_packet_copy(const char *buf,unsigned int len,unsigned int pos,char *out,unsigned int outlen)
{
while (outlen) {
- if (pos >= len) { errno = EPROTO; return 0; }
+ if (pos >= len) { errno = error_proto; return 0; }
*out = buf[pos++];
++out; --outlen;
}
@@ -28,7 +29,7 @@
pos += ch;
}
- errno = EPROTO;
+ errno = error_proto;
return 0;
}
@@ -72,6 +73,6 @@
return pos;
PROTO:
- errno = EPROTO;
+ errno = error_proto;
return 0;
}
最終更新時間:2008年08月10日 16時31分46秒