Index: head/dns/utdns/Makefile =================================================================== --- head/dns/utdns/Makefile (revision 474363) +++ head/dns/utdns/Makefile (revision 474364) @@ -1,25 +1,26 @@ # Created by: Emanuel Haupt # $FreeBSD$ PORTNAME= utdns PORTVERSION= 1.0 DISTVERSIONSUFFIX= .r1437 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= https://www.cypherpunk.at/download/utdns/ \ LOCAL/ehaupt MAINTAINER= ehaupt@FreeBSD.org COMMENT= Proxy UDP/DNS to TCP/DNS LICENSE= GPLv3 GNU_CONFIGURE= yes USE_RC_SUBR= ${PORTNAME} SUB_LIST= PORTNAME=${PORTNAME} CFLAGS+= -DSOCK_NONBLOCK=1 PLIST_FILES= bin/utdns .include Index: head/dns/utdns/files/patch-src_utdns.c =================================================================== --- head/dns/utdns/files/patch-src_utdns.c (nonexistent) +++ head/dns/utdns/files/patch-src_utdns.c (revision 474364) @@ -0,0 +1,45 @@ +--- src/utdns.c.orig 2013-04-17 08:20:51 UTC ++++ src/utdns.c +@@ -622,7 +622,8 @@ static void usage(const char *argv0) + " -4 .......... Bind to IPv4 only instead of IP + IPv6.\n" + " -b .......... Background process and log to syslog.\n" + " -d .......... Set log level to LOG_DEBUG.\n" +- " -p ... Set incoming UDP port number.\n", ++ " -p ... Set incoming UDP port number.\n" ++ " -P ... Set destination port number.\n", + argv0); + } + +@@ -642,7 +643,8 @@ int main(int argc, char **argv) + (void) init_log("stderr", debuglevel); + #endif + +- while ((c = getopt(argc, argv, "4bdhp:")) != -1) ++ int dst_port = 53; ++ while ((c = getopt(argc, argv, "4bdhp:P:")) != -1) + { + switch (c) + { +@@ -665,6 +667,10 @@ int main(int argc, char **argv) + case 'p': + udp_port = atoi(optarg); + break; ++ ++ case 'P': ++ dst_port = atoi(optarg); ++ break; + } + } + +@@ -674,10 +680,9 @@ int main(int argc, char **argv) + exit(EXIT_FAILURE); + } + +- // FIXME: this should not be hardcoded + memset(&in, 0, sizeof(in)); + in.sin_family = AF_INET; +- in.sin_port = htons(53); ++ in.sin_port = htons(dst_port); + if (!inet_aton(argv[optind], &in.sin_addr)) + { + log_msg(LOG_ERR, "could not convert %s to in_addr\n", argv[optind]); Property changes on: head/dns/utdns/files/patch-src_utdns.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property