diff options
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/mydns/ChangeLog | 7 | ||||
-rw-r--r-- | net-dns/mydns/Manifest | 38 | ||||
-rw-r--r-- | net-dns/mydns/files/mydns-1.1.0-gcc41.patch | 240 | ||||
-rw-r--r-- | net-dns/mydns/mydns-1.1.0.ebuild | 3 |
4 files changed, 274 insertions, 14 deletions
diff --git a/net-dns/mydns/ChangeLog b/net-dns/mydns/ChangeLog index f8ecadce3f71..5e332dbf7c11 100644 --- a/net-dns/mydns/ChangeLog +++ b/net-dns/mydns/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-dns/mydns # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v 1.19 2006/04/27 03:07:37 weeve Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v 1.20 2006/10/22 18:52:44 vivo Exp $ + + 22 Oct 2006; <vivo@gentoo.org> +files/mydns-1.1.0-gcc41.patch, + mydns-1.1.0.ebuild: + Added patch to build against gcc-4.1, the patch is currently #commented out + for testing. MATSUU please check it 27 Apr 2006; Jason Wever <weeve@gentoo.org> mydns-1.1.0.ebuild: Stable on SPARC. diff --git a/net-dns/mydns/Manifest b/net-dns/mydns/Manifest index 7f0ea77b9234..851047e5cc75 100644 --- a/net-dns/mydns/Manifest +++ b/net-dns/mydns/Manifest @@ -1,24 +1,38 @@ -AUX mydns-1.1.0-m4.patch 3055 RMD160 2a0c9843f05b713efd6d21671d960ab079766780 SHA1 aa5e2820608f8047f23d460e84dcb71bfc8d26d0 SHA256 9cf87e1dd03cd83655099eb850285f2b67893fe490cd20f053c33e9bec8046c2 size 3055 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX mydns-1.1.0-gcc41.patch 9447 RMD160 d04c549f711f8afc405dc05e97582a7e8c994e06 SHA1 29826d1cd87935ec72e8289bad852d6334a8648a SHA256 2f1431b9c08735203351d12d3043c469bd5ec65d77c0f44bcc6ca4c3801b0a1b +MD5 b9aff8f3edcf3bc2020271b617d3c071 files/mydns-1.1.0-gcc41.patch 9447 +RMD160 d04c549f711f8afc405dc05e97582a7e8c994e06 files/mydns-1.1.0-gcc41.patch 9447 +SHA256 2f1431b9c08735203351d12d3043c469bd5ec65d77c0f44bcc6ca4c3801b0a1b files/mydns-1.1.0-gcc41.patch 9447 +AUX mydns-1.1.0-m4.patch 3055 RMD160 2a0c9843f05b713efd6d21671d960ab079766780 SHA1 aa5e2820608f8047f23d460e84dcb71bfc8d26d0 SHA256 9cf87e1dd03cd83655099eb850285f2b67893fe490cd20f053c33e9bec8046c2 MD5 c6cef0bb5a9e48f0afcc4496a4c799bf files/mydns-1.1.0-m4.patch 3055 RMD160 2a0c9843f05b713efd6d21671d960ab079766780 files/mydns-1.1.0-m4.patch 3055 SHA256 9cf87e1dd03cd83655099eb850285f2b67893fe490cd20f053c33e9bec8046c2 files/mydns-1.1.0-m4.patch 3055 -AUX mydns.rc6 903 RMD160 19cf3b0a533b96aa3ea06b2ac5e9fe3e323c90e4 SHA1 7054235b7ab1e150c0d6201ec56c5c755ea80019 SHA256 b831ca3503a52872e5eb7f2cc2a8522394f77a520521a887f70728c619927846 size 903 +AUX mydns.rc6 903 RMD160 19cf3b0a533b96aa3ea06b2ac5e9fe3e323c90e4 SHA1 7054235b7ab1e150c0d6201ec56c5c755ea80019 SHA256 b831ca3503a52872e5eb7f2cc2a8522394f77a520521a887f70728c619927846 MD5 38219cb6d2a256e9fbe8fbac5a0a01d6 files/mydns.rc6 903 RMD160 19cf3b0a533b96aa3ea06b2ac5e9fe3e323c90e4 files/mydns.rc6 903 SHA256 b831ca3503a52872e5eb7f2cc2a8522394f77a520521a887f70728c619927846 files/mydns.rc6 903 -DIST mydns-1.1.0.tar.bz2 573261 RMD160 ffd7c5d42d5e004e06562d4fb497cc515f31fed9 SHA256 ecfcc8bb8fd9f707d2e7af808317cdcc3a4d701375265840944c4e0ff0d66bf6 size 573261 -EBUILD mydns-1.1.0.ebuild 2246 RMD160 66c1b0ae945c227b613538aff2d361d949b5019c SHA1 74f5cb6487084983beefe72d58329a0e52b9377d SHA256 fa5f3a699c7646e880a8e1c359c2b05d818fffa8e6288ac8839432c62be682bf size 2246 -MD5 3fbe110061ca6ac77f74b7ea72f93e02 mydns-1.1.0.ebuild 2246 -RMD160 66c1b0ae945c227b613538aff2d361d949b5019c mydns-1.1.0.ebuild 2246 -SHA256 fa5f3a699c7646e880a8e1c359c2b05d818fffa8e6288ac8839432c62be682bf mydns-1.1.0.ebuild 2246 -MISC ChangeLog 2635 RMD160 cd9f8e62a70bafe615b387e4ee085c6d6692de83 SHA1 50916e2f79441cc082e273659915c597084d01aa SHA256 d1510d032c9e6d48e5ee7414600321653020cefd85c33902672ae418d86d0c78 size 2635 -MD5 c2cf5726042f2811ce0b87dfa116c1e8 ChangeLog 2635 -RMD160 cd9f8e62a70bafe615b387e4ee085c6d6692de83 ChangeLog 2635 -SHA256 d1510d032c9e6d48e5ee7414600321653020cefd85c33902672ae418d86d0c78 ChangeLog 2635 -MISC metadata.xml 230 RMD160 c2c6b9cfdee059b4a9f43888bc22075076faaeea SHA1 d2d0d62de04e0e1dcbcea147d244e3d66d027dcc SHA256 3b6b6385f1f2269ace197fd7cda312c69c88d2f68bf4b5132ed58878c4005b53 size 230 +DIST mydns-1.1.0.tar.bz2 573261 RMD160 ffd7c5d42d5e004e06562d4fb497cc515f31fed9 SHA1 71979409bf46e38b443ee940a6ecb0e42464bc0b SHA256 ecfcc8bb8fd9f707d2e7af808317cdcc3a4d701375265840944c4e0ff0d66bf6 +EBUILD mydns-1.1.0.ebuild 2285 RMD160 c659ff08758bb2d0feb679fc31705206476e5b64 SHA1 417f3a89c7ecbeb7b21012621bf65c7779e65d3f SHA256 dc85c84bcc8bc16d8c8970e4c68806beff3dc42f8dfa9639d7c6482a1947cc14 +MD5 01086510877d96e9005036eebbd75c13 mydns-1.1.0.ebuild 2285 +RMD160 c659ff08758bb2d0feb679fc31705206476e5b64 mydns-1.1.0.ebuild 2285 +SHA256 dc85c84bcc8bc16d8c8970e4c68806beff3dc42f8dfa9639d7c6482a1947cc14 mydns-1.1.0.ebuild 2285 +MISC ChangeLog 2838 RMD160 77b833958102d5057ae7f79d9b13647a01da0a35 SHA1 7de5144adad9e07bb8b6db50a157f1f2e39699f3 SHA256 1c860d6cb404ee76f55b14c41959a0d33af47b9f6031103b30b87974d9faa24e +MD5 2a93c380a616fdeafbda133b2d7e7db5 ChangeLog 2838 +RMD160 77b833958102d5057ae7f79d9b13647a01da0a35 ChangeLog 2838 +SHA256 1c860d6cb404ee76f55b14c41959a0d33af47b9f6031103b30b87974d9faa24e ChangeLog 2838 +MISC metadata.xml 230 RMD160 c2c6b9cfdee059b4a9f43888bc22075076faaeea SHA1 d2d0d62de04e0e1dcbcea147d244e3d66d027dcc SHA256 3b6b6385f1f2269ace197fd7cda312c69c88d2f68bf4b5132ed58878c4005b53 MD5 c50346bf0fb8b39c521dca42b145f6ee metadata.xml 230 RMD160 c2c6b9cfdee059b4a9f43888bc22075076faaeea metadata.xml 230 SHA256 3b6b6385f1f2269ace197fd7cda312c69c88d2f68bf4b5132ed58878c4005b53 metadata.xml 230 MD5 c0bb54cd5dd6eb0fda888c69bae747f7 files/digest-mydns-1.1.0 238 RMD160 c7c54247abc0a2305310d0b647dbaca207c648da files/digest-mydns-1.1.0 238 SHA256 1c1ad79de76f36e8711026e88e1e0eb3d237f45f513e158c7dee0765d73a6038 files/digest-mydns-1.1.0 238 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.5 (GNU/Linux) + +iD8DBQFFO7/UKolR564NvWYRAgsPAJ4wCOaDs4TGAZafXOXQYUNSghPEWQCfcruA +sZ/5x0oFPThjJIvRZ2KJQto= +=byGP +-----END PGP SIGNATURE----- diff --git a/net-dns/mydns/files/mydns-1.1.0-gcc41.patch b/net-dns/mydns/files/mydns-1.1.0-gcc41.patch new file mode 100644 index 000000000000..683630516002 --- /dev/null +++ b/net-dns/mydns/files/mydns-1.1.0-gcc41.patch @@ -0,0 +1,240 @@ +diff -Naur mydns-1.1.0.orig/src/lib/rr.c mydns-1.1.0.new/src/lib/rr.c +--- mydns-1.1.0.orig/src/lib/rr.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/lib/rr.c 2006-10-22 18:20:59.000000000 +0000 +@@ -438,9 +438,9 @@ + { + MYDNS_RR *first = NULL, *last = NULL; + size_t querylen; +- uchar query[DNS_QUERYBUFSIZ], ++ char query[DNS_QUERYBUFSIZ], + namequery[DNS_MAXNAMELEN + DNS_MAXNAMELEN + DNS_MAXNAMELEN + 25] = ""; +- uchar *wheretype; ++ char *wheretype; + register char *c, *cp; + SQL_RES *res; + SQL_ROW row; +diff -Naur mydns-1.1.0.orig/src/lib/sql.c mydns-1.1.0.new/src/lib/sql.c +--- mydns-1.1.0.orig/src/lib/sql.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/lib/sql.c 2006-10-22 18:20:59.000000000 +0000 +@@ -155,7 +155,7 @@ + int + sql_istable(SQL *sqlConn, const char *tablename) + { +- unsigned char *xtablename; ++ char *xtablename; + #if !USE_PGSQL + SQL_RES *res; + #endif +@@ -163,7 +163,7 @@ + + if (!(xtablename = calloc(strlen(tablename) * 2 + 1, sizeof(unsigned char)))) + Err(_("out of memory")); +- sql_escstr(sqlConn, xtablename, (uchar *)tablename, strlen(tablename)); ++ sql_escstr(sqlConn, xtablename, (char *)tablename, strlen(tablename)); + + #if USE_PGSQL + if (sql_count(sqlConn, "SELECT COUNT(*) FROM pg_class" +@@ -191,7 +191,7 @@ + int + sql_iscolumn(SQL *sqlConn, const char *tablename, const char *columnname) + { +- unsigned char *xtablename, *xcolumnname; ++ char *xtablename, *xcolumnname; + #if !USE_PGSQL + SQL_RES *res; + #endif +@@ -201,8 +201,8 @@ + Err(_("out of memory")); + if (!(xcolumnname = calloc(strlen(columnname) * 2 + 1, sizeof(unsigned char)))) + Err(_("out of memory")); +- sql_escstr(sqlConn, xtablename, (uchar *)tablename, strlen(tablename)); +- sql_escstr(sqlConn, xcolumnname, (uchar *)columnname, strlen(columnname)); ++ sql_escstr(sqlConn, xtablename, (char *)tablename, strlen(tablename)); ++ sql_escstr(sqlConn, xcolumnname, (char *)columnname, strlen(columnname)); + + #if USE_PGSQL + if (sql_count(sqlConn, +diff -Naur mydns-1.1.0.orig/src/mydns/alias.c mydns-1.1.0.new/src/mydns/alias.c +--- mydns-1.1.0.orig/src/mydns/alias.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/mydns/alias.c 2006-10-22 18:20:59.000000000 +0000 +@@ -67,7 +67,7 @@ + of the label with `*' and check for wildcard matches. */ + if (*label) + { +- uchar wclabel[DNS_MAXNAMELEN+1], *c; ++ char wclabel[DNS_MAXNAMELEN+1], *c; + + /* Generate wildcarded label, i.e. `*.example' or maybe just `*'. */ + if (!(c = strchr(label, '.'))) +diff -Naur mydns-1.1.0.orig/src/mydns/listen.c mydns-1.1.0.new/src/mydns/listen.c +--- mydns-1.1.0.orig/src/mydns/listen.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/mydns/listen.c 2006-10-22 18:20:59.000000000 +0000 +@@ -264,7 +264,7 @@ + if (!(buf = malloc(buflen))) + Err(_("out of memory")); + ifc.ifc_len = buflen; +- ifc.ifc_buf = buf; ++ ifc.ifc_buf = (char *)buf; + + if ((n = ioctl(sockfd, SIOCGIFCONF, (char *)&ifc)) != -1) + { +diff -Naur mydns-1.1.0.orig/src/mydns/named.h mydns-1.1.0.new/src/mydns/named.h +--- mydns-1.1.0.orig/src/mydns/named.h 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/mydns/named.h 2006-10-22 18:20:59.000000000 +0000 +@@ -204,7 +204,7 @@ + + + /* task.c */ +-extern int new_task(TASK *, unsigned char *, size_t); ++extern int new_task(TASK *, char *, size_t); + extern void task_init_header(TASK *); + extern char *clientaddr(TASK *); + extern char *desctask(TASK *); +diff -Naur mydns-1.1.0.orig/src/mydns/recursive.c mydns-1.1.0.new/src/mydns/recursive.c +--- mydns-1.1.0.orig/src/mydns/recursive.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/mydns/recursive.c 2006-10-22 18:20:59.000000000 +0000 +@@ -143,9 +143,10 @@ + int + recursive_fwd_read(TASK *t) + { +- char reply[DNS_MAXPACKETLEN_UDP + 2], *r; +- int replylen, addrlen = sizeof(struct sockaddr_in); +- uint16_t id, qdcount, ancount, nscount, arcount; ++ char reply[DNS_MAXPACKETLEN_UDP + 2], *r; ++ int replylen; ++ socklen_t addrlen = sizeof(struct sockaddr_in); ++ uint16_t id, qdcount, ancount, nscount, arcount; + DNS_HEADER hdr; + + #if DEBUG_ENABLED && DEBUG_RECURSIVE +diff -Naur mydns-1.1.0.orig/src/mydns/task.c mydns-1.1.0.new/src/mydns/task.c +--- mydns-1.1.0.orig/src/mydns/task.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/mydns/task.c 2006-10-22 18:20:59.000000000 +0000 +@@ -35,9 +35,9 @@ + Returns 0 on success, -1 on error, -2 if the task is now invalid. + **************************************************************************************************/ + int +-new_task(TASK *t, unsigned char *data, size_t len) ++new_task(TASK *t, char *data, size_t len) + { +- unsigned char qname[DNS_MAXNAMELEN+1], *src, *qdtop; ++ char qname[DNS_MAXNAMELEN+1], *src, *qdtop; + + #if DEBUG_ENABLED && DEBUG_TASK + Debug("new_task(%p, %p, %u)", t, data, len); +diff -Naur mydns-1.1.0.orig/src/mydns/task.h mydns-1.1.0.new/src/mydns/task.h +--- mydns-1.1.0.orig/src/mydns/task.h 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/mydns/task.h 2006-10-22 18:20:59.000000000 +0000 +@@ -44,7 +44,7 @@ + { + dns_rrtype_t rrtype; /* Record type (what table this data came from) */ + uint32_t id; /* ID associated with RR */ +- unsigned char name[DNS_MAXNAMELEN];/* Name to send with reply */ ++ char name[DNS_MAXNAMELEN];/* Name to send with reply */ + off_t offset; /* The offset within the reply data (t->rdata) */ + size_t length; /* The length of data within the reply */ + uint8_t sort_level; /* Primary sort order */ +@@ -104,7 +104,7 @@ + + uint32_t Cnames[MAX_CNAME_LEVEL]; /* Array of CNAMEs found */ + +- unsigned char *qd; /* Question section data */ ++ char *qd; /* Question section data */ + size_t qdlen; /* Size of question section */ + uint16_t qdcount; /* "qdcount", from header */ + uint16_t ancount; /* "ancount", from header */ +diff -Naur mydns-1.1.0.orig/src/mydns/tcp.c mydns-1.1.0.new/src/mydns/tcp.c +--- mydns-1.1.0.orig/src/mydns/tcp.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/mydns/tcp.c 2006-10-22 18:20:59.000000000 +0000 +@@ -118,7 +118,7 @@ + int + read_tcp_query(TASK *t) + { +- unsigned char *end; ++ char *end; + int rv; + + /* Read packet length if we haven't already */ +diff -Naur mydns-1.1.0.orig/src/mydns/update.c mydns-1.1.0.new/src/mydns/update.c +--- mydns-1.1.0.orig/src/mydns/update.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/mydns/update.c 2006-10-22 18:20:59.000000000 +0000 +@@ -34,7 +34,7 @@ + dns_class_t class; + uint32_t ttl; + uint16_t rdlength; +- unsigned char rdata[DNS_MAXPACKETLEN_UDP + 1]; ++ char rdata[DNS_MAXPACKETLEN_UDP + 1]; + } UQRR; + + +diff -Naur mydns-1.1.0.orig/src/util/check.c mydns-1.1.0.new/src/util/check.c +--- mydns-1.1.0.orig/src/util/check.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/util/check.c 2006-10-22 18:20:59.000000000 +0000 +@@ -386,16 +386,16 @@ + static void + check_rr_cname(void) + { +- unsigned char *xname; ++ char *xname; + int found = 0; + + EXPAND_DATA(data); + check_name(data, "rr.data", 1); + + /* A CNAME record can't have any other type of RR data for the same name */ +- if (!(xname = calloc(strlen(name) * 2 + 1, sizeof(unsigned char)))) ++ if (!(xname = calloc(strlen(name) * 2 + 1, sizeof(char)))) + Err(_("out of memory")); +- sql_escstr(sql, xname, (unsigned char *)name, strlen(name)); ++ sql_escstr(sql, xname, (char *)name, strlen(name)); + found = sql_count(sql, "SELECT COUNT(*) FROM %s WHERE zone=%u AND name='%s' AND type != 'CNAME'", + mydns_rr_table_name, rr->zone, xname); + +@@ -404,9 +404,9 @@ + { + Free(xname); + shortname(name, 1); +- if (!(xname = calloc(strlen(name) * 2 + 1, sizeof(unsigned char)))) ++ if (!(xname = calloc(strlen(name) * 2 + 1, sizeof(char)))) + Err(_("out of memory")); +- sql_escstr(sql, xname, (unsigned char *)name, strlen(name)); ++ sql_escstr(sql, xname, (char *)name, strlen(name)); + found = sql_count(sql, "SELECT COUNT(*) FROM %s WHERE zone=%u AND name='%s' AND type != 'CNAME'", + mydns_rr_table_name, rr->zone, xname); + EXPAND_DATA(name); +diff -Naur mydns-1.1.0.orig/src/util/export.c mydns-1.1.0.new/src/util/export.c +--- mydns-1.1.0.orig/src/util/export.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/util/export.c 2006-10-22 18:20:59.000000000 +0000 +@@ -270,7 +270,7 @@ + printf("%s %s\n", rr->data, rr->rp_txt); + else if (rr->type == DNS_QTYPE_TXT) + { +- register unsigned char *c; ++ register char *c; + putc('"', stdout); + for (c = rr->data; *c; c++) + { +diff -Naur mydns-1.1.0.orig/src/util/import-axfr.c mydns-1.1.0.new/src/util/import-axfr.c +--- mydns-1.1.0.orig/src/util/import-axfr.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/util/import-axfr.c 2006-10-22 18:20:59.000000000 +0000 +@@ -462,7 +462,7 @@ + void + import_axfr(char *hostport, char *import_zone) + { +- unsigned char *reply, len[2]; ++ char *reply, len[2]; + int fd; + size_t replylen; + +diff -Naur mydns-1.1.0.orig/src/util/ptrconvert.c mydns-1.1.0.new/src/util/ptrconvert.c +--- mydns-1.1.0.orig/src/util/ptrconvert.c 2006-10-22 18:20:08.000000000 +0000 ++++ mydns-1.1.0.new/src/util/ptrconvert.c 2006-10-22 18:20:59.000000000 +0000 +@@ -290,7 +290,7 @@ + else /* Insert new record */ + { + long id; +- uchar query[DNS_QUERYBUFSIZ]; ++ char query[DNS_QUERYBUFSIZ]; + int querylen; + char esc_origin[DNS_MAXNAMELEN + DNS_MAXNAMELEN + 1]; + char esc_ns[520], esc_mbox[520]; diff --git a/net-dns/mydns/mydns-1.1.0.ebuild b/net-dns/mydns/mydns-1.1.0.ebuild index 209a602cb3e7..d30930ff1172 100644 --- a/net-dns/mydns/mydns-1.1.0.ebuild +++ b/net-dns/mydns/mydns-1.1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/mydns-1.1.0.ebuild,v 1.5 2006/04/27 03:07:37 weeve Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/mydns-1.1.0.ebuild,v 1.6 2006/10/22 18:52:44 vivo Exp $ inherit eutils @@ -29,6 +29,7 @@ src_unpack() { cd "${S}" epatch "${FILESDIR}"/${P}-m4.patch + #epatch "${FILESDIR}"/${P}-gcc41.patch autoconf || die } |