summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2006-02-10 21:00:04 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2006-02-10 21:00:04 +0000
commita6d9a23f28ed25b69458f7aaa96336ff7c9d1380 (patch)
treef7822ed41bf5eaf4c1f5914c017f3301f7a584f7 /net-dns
parentmodular-x-ified (diff)
downloadhistorical-a6d9a23f28ed25b69458f7aaa96336ff7c9d1380.tar.gz
historical-a6d9a23f28ed25b69458f7aaa96336ff7c9d1380.tar.bz2
historical-a6d9a23f28ed25b69458f7aaa96336ff7c9d1380.zip
bumped debian patches to revision 10, added dnsexit patch (see bug #116439).
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/ez-ipupdate/ChangeLog11
-rw-r--r--net-dns/ez-ipupdate/Manifest39
-rw-r--r--net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8-r3.ebuild100
-rw-r--r--net-dns/ez-ipupdate/files/digest-ez-ipupdate-3.0.11_beta8-r36
-rw-r--r--net-dns/ez-ipupdate/files/ez-ipupdate-3.0.11_beta8-dnsexit.diff262
5 files changed, 405 insertions, 13 deletions
diff --git a/net-dns/ez-ipupdate/ChangeLog b/net-dns/ez-ipupdate/ChangeLog
index ef539f2c6482..4882f66a7771 100644
--- a/net-dns/ez-ipupdate/ChangeLog
+++ b/net-dns/ez-ipupdate/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-dns/ez-ipupdate
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ChangeLog,v 1.14 2005/10/25 04:10:45 flameeyes Exp $
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ChangeLog,v 1.15 2006/02/10 21:00:04 sbriesen Exp $
+
+*ez-ipupdate-3.0.11_beta8-r3 (10 Feb 2006)
+
+ 10 Feb 2006; Stefan Briesenick <sbriesen@gentoo.org>
+ +files/ez-ipupdate-3.0.11_beta8-dnsexit.diff,
+ +ez-ipupdate-3.0.11_beta8-r3.ebuild:
+ bumped debian patches to revision 10, added dnsexit patch (see bug #116439).
25 Oct 2005; Diego Pettenò <flameeyes@gentoo.org>
ez-ipupdate-3.0.11_beta8-r2.ebuild:
diff --git a/net-dns/ez-ipupdate/Manifest b/net-dns/ez-ipupdate/Manifest
index 9c17bfc80ccb..358d50558b6e 100644
--- a/net-dns/ez-ipupdate/Manifest
+++ b/net-dns/ez-ipupdate/Manifest
@@ -1,19 +1,36 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 78039eca0a2d24b9ccc7dfd378ad2393 ChangeLog 2592
+MD5 2154b9e68c0d04a0292bf94e87baf352 ChangeLog 2857
+RMD160 7f1d6a2480374cf467b9c1745f73ca66e94ebc62 ChangeLog 2857
+SHA256 02d569180f94b26db6062ac350b9441ac703796e92c8371a48c373ed8680dc9d ChangeLog 2857
MD5 f4ad9aeaf2a00fbbbe49f843df2ba3bd ez-ipupdate-3.0.11_beta8-r1.ebuild 908
+RMD160 624e6fcfb396fbda41e643b7e0fb6e9462eedbe3 ez-ipupdate-3.0.11_beta8-r1.ebuild 908
+SHA256 6abc7a9aac4d157e78e9e60854e592f7277d82b7a5e5049bf587f382bae4e23d ez-ipupdate-3.0.11_beta8-r1.ebuild 908
MD5 87e5b9baac22dfd179019df836c232c5 ez-ipupdate-3.0.11_beta8-r2.ebuild 2710
+RMD160 4cf24397e8ffb1f4aa4d6911dd675fb45eef4291 ez-ipupdate-3.0.11_beta8-r2.ebuild 2710
+SHA256 4d4ed1e6e2d5de63ce72a3c1efe3cf942edbd366e8328b48b36fbd5be48bc059 ez-ipupdate-3.0.11_beta8-r2.ebuild 2710
+MD5 d4eb1119f83b937fd3be13137be91447 ez-ipupdate-3.0.11_beta8-r3.ebuild 2864
+RMD160 3f0289bacf733c071c52394ab13ea2324c4ec60e ez-ipupdate-3.0.11_beta8-r3.ebuild 2864
+SHA256 6e5dd325f625c512d57634f0c5631cce5f853dd89c02b6f3fc5288d3d3bb466b ez-ipupdate-3.0.11_beta8-r3.ebuild 2864
MD5 fc53ff461d5187c04a36e96c42f0d7e2 files/digest-ez-ipupdate-3.0.11_beta8-r1 71
+RMD160 057048a4736327dd5d2aa05911784ec159479b81 files/digest-ez-ipupdate-3.0.11_beta8-r1 71
+SHA256 5d7fe7a4604270bad320881d8164107b58ab211411ed13e9bb79e996f08e7e8b files/digest-ez-ipupdate-3.0.11_beta8-r1 71
MD5 73bb146a959cd541212ee2dc87127303 files/digest-ez-ipupdate-3.0.11_beta8-r2 152
+RMD160 18d1c70aa0ab392b2adce3ba2cebfa92c1584e8d files/digest-ez-ipupdate-3.0.11_beta8-r2 152
+SHA256 9dea5ea804517df20dfe86d062733299c17d90b7bfcad905b58c37fa35b0ca6a files/digest-ez-ipupdate-3.0.11_beta8-r2 152
+MD5 fae1facf9abf1fa08dd43aabc84b3cec files/digest-ez-ipupdate-3.0.11_beta8-r3 545
+RMD160 90911bfc6fa770ef77b169e24cbdeb5952312de9 files/digest-ez-ipupdate-3.0.11_beta8-r3 545
+SHA256 7a38d868816e2e83204fddc98bf4fbbac6f74a11cb0dbc09e25f2440f80439f5 files/digest-ez-ipupdate-3.0.11_beta8-r3 545
+MD5 9ac104c30ace69d00bdc35e65ae4d727 files/ez-ipupdate-3.0.11_beta8-dnsexit.diff 6721
+RMD160 e8b018e0fca9506c905a021cb1c101c9a5372156 files/ez-ipupdate-3.0.11_beta8-dnsexit.diff 6721
+SHA256 beb76bd1362bee077d90b67ec8c7251d13b5c08e2d565d8ffb3f000f48a41198 files/ez-ipupdate-3.0.11_beta8-dnsexit.diff 6721
MD5 a4f8cd6940114080f701918bd00b1800 files/ez-ipupdate-3.0.11_beta8-syslog.patch 300
+RMD160 518a93e2e1add19895cc88a1e88b332db5d04394 files/ez-ipupdate-3.0.11_beta8-syslog.patch 300
+SHA256 d938f6366aa9fd71259f2ad909a0959ddb6160bcfe97d71d2cf0f3adbaece548 files/ez-ipupdate-3.0.11_beta8-syslog.patch 300
MD5 a86f6c45f48dc904e4d9a9447226889e files/ez-ipupdate.initd 2658
+RMD160 ad64a1c9c0f8dc86488abc793c0cf329946472ef files/ez-ipupdate.initd 2658
+SHA256 dbbb4db796fb2f7972a843f5420d2bc25dc18d3a175aed048f3fbea69649f7a9 files/ez-ipupdate.initd 2658
MD5 cce1451ebc90d2c8a8068f6fe7d7a875 files/ez-ipupdate.rc6 1226
+RMD160 c1620048a471f4b721acf44bb5b5899b336f27a1 files/ez-ipupdate.rc6 1226
+SHA256 cbf7934f767fddd4cb8a49e632f56fc05769a0c352cadee03552b7f64ce4aec4 files/ez-ipupdate.rc6 1226
MD5 414df12ae436dd1300fe77e5549da485 metadata.xml 497
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFDXbCVj5H05b2HAEkRAuM0AKCihYTE+aib6fn9NW1SU4bi1XJBcACfecp7
-o15EGWjyJiL3B2tcdKjno7E=
-=snYT
------END PGP SIGNATURE-----
+RMD160 92b0aae309f59fbe7ae0c6359355aa2abf0308a9 metadata.xml 497
+SHA256 9d9ae7d8782c5eedfef88238baa233c1c2ed7c6832ba7ed6a6328bddf41699ba metadata.xml 497
diff --git a/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8-r3.ebuild b/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8-r3.ebuild
new file mode 100644
index 000000000000..4da70a7b03e4
--- /dev/null
+++ b/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8-r3.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8-r3.ebuild,v 1.1 2006/02/10 21:00:04 sbriesen Exp $
+
+inherit eutils
+
+PATCH_VERSION="10"
+MY_PV="${PV/_beta/b}"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+DESCRIPTION="Dynamic DNS client for lots of dynamic dns services"
+HOMEPAGE="http://ez-ipupdate.com/"
+SRC_URI="mirror://debian/pool/main/e/ez-ipupdate/${PN}_${MY_PV}.orig.tar.gz
+ mirror://debian/pool/main/e/ez-ipupdate/${PN}_${MY_PV}-${PATCH_VERSION}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+IUSE=""
+
+DEPEND="virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${WORKDIR}/${PN}_${MY_PV}-${PATCH_VERSION}.diff"
+ epatch "${FILESDIR}/${P}-dnsexit.diff"
+
+ # comment out obsolete options
+ sed -i -e "s:^\(run-as-user.*\):#\1:g" \
+ -e "s:^\(cache-file.*\):#\1:g" ex*conf
+}
+
+src_compile() {
+ econf --bindir=/usr/sbin || "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ newinitd "${FILESDIR}/ez-ipupdate.initd" ez-ipupdate
+ keepdir /etc/ez-ipupdate /var/cache/ez-ipupdate
+
+ # install docs
+ dodoc README
+ newdoc debian/README.Debian README.debian
+ newdoc debian/changelog ChangeLog.debian
+ newdoc CHANGELOG ChangeLog
+
+ # install example configs
+ docinto examples
+ dodoc ex*conf
+}
+
+pkg_preinst() {
+ enewgroup ez-ipupd
+ enewuser ez-ipupd -1 -1 /var/cache/ez-ipupdate ez-ipupd
+}
+
+pkg_postinst() {
+ chmod 750 /etc/ez-ipupdate /var/cache/ez-ipupdate
+ chown ez-ipupd:ez-ipupd /etc/ez-ipupdate /var/cache/ez-ipupdate
+
+ einfo
+ einfo "Please create one or more config files in"
+ einfo "/etc/ez-ipupdate/. A bunch of samples can"
+ einfo "be found in the doc directory."
+ einfo
+ einfo "All config files must have a '.conf' extension."
+ einfo
+ einfo "Please do not use the 'run-as-user', 'run-as-euser',"
+ einfo "'cache-file' and 'pidfile' options, since these are"
+ einfo "handled internally by the init-script!"
+ einfo
+ einfo "If you want to use ez-ipupdate in daemon mode,"
+ einfo "please add 'daemon' to the config file(s) and"
+ einfo "add the ez-ipupdate init-script to the default"
+ einfo "runlevel."
+ einfo
+ einfo "Without the 'daemon' option, you can run the"
+ einfo "init-script with the 'update' parameter inside"
+ einfo "your PPP ip-up script."
+ einfo
+
+ if [ -f /etc/ez-ipupdate.conf ]; then
+ ewarn "!!! IMPORTANT UPDATE NOTICE !!!"
+ ewarn
+ ewarn "The ez-ipupdate init-script can now handle more"
+ ewarn "than one config file. New config file location is"
+ ewarn "/etc/ez-ipupdate/*.conf"
+ ewarn
+ if [ ! -f /etc/ez-ipupdate/default.conf ]; then
+ mv -f /etc/ez-ipupdate.conf /etc/ez-ipupdate/default.conf
+ einfo "Your old configuration has been moved to"
+ einfo "/etc/ez-ipupdate/default.conf"
+ einfo
+ fi
+ ebeep
+ fi
+}
diff --git a/net-dns/ez-ipupdate/files/digest-ez-ipupdate-3.0.11_beta8-r3 b/net-dns/ez-ipupdate/files/digest-ez-ipupdate-3.0.11_beta8-r3
new file mode 100644
index 000000000000..b920684a0dc0
--- /dev/null
+++ b/net-dns/ez-ipupdate/files/digest-ez-ipupdate-3.0.11_beta8-r3
@@ -0,0 +1,6 @@
+MD5 e400c9c8d594922e394806b717250c35 ez-ipupdate_3.0.11b8-10.diff.gz 58420
+RMD160 916da2553c2901bae62de43a09ee4ad9da492c95 ez-ipupdate_3.0.11b8-10.diff.gz 58420
+SHA256 a380abc3173ef49be5cf8600278e1bc941b4503129dd9e682707bb79e1538175 ez-ipupdate_3.0.11b8-10.diff.gz 58420
+MD5 000211add4c4845ffa4211841bff4fb0 ez-ipupdate_3.0.11b8.orig.tar.gz 81975
+RMD160 f193969c5d3c9faa1b6fec41d530557614d62c55 ez-ipupdate_3.0.11b8.orig.tar.gz 81975
+SHA256 9da694439049d225b49e9c7087c515d71256827c75c6c4ac0aa56f8e8b4ffc43 ez-ipupdate_3.0.11b8.orig.tar.gz 81975
diff --git a/net-dns/ez-ipupdate/files/ez-ipupdate-3.0.11_beta8-dnsexit.diff b/net-dns/ez-ipupdate/files/ez-ipupdate-3.0.11_beta8-dnsexit.diff
new file mode 100644
index 000000000000..9991693f6581
--- /dev/null
+++ b/net-dns/ez-ipupdate/files/ez-ipupdate-3.0.11_beta8-dnsexit.diff
@@ -0,0 +1,262 @@
+diff -Naur ez-ipupdate-3.0.11b8-patched/example-dnsexit.conf ez-ipupdate-3.0.11b8-dnsexit/example-dnsexit.conf
+--- example-dnsexit.conf.orig 1970-01-01 01:00:00.000000000 +0100
++++ example-dnsexit.conf 2005-12-23 01:34:51.000000000 +0000
+@@ -0,0 +1,19 @@
++#!/usr/sbin/ez-ipupdate -c
++#
++# example config file for ez-ipupdate
++#
++# this file is actually executable!
++#
++
++service-type=dnsexit
++user=loginname:password
++host=www.yourdomain.com
++interface=eth1
++
++run-as-user=ez-ipupd
++cache-file=/var/cache/ez-ipupdate/default-cache
++
++# uncomment this once you have everything working how you want and you are
++# ready to have ez-ipupdate running in the background all the time. to stop it
++# you can use "killall -QUIT ez-ipupdate" under linux.
++#daemon
+diff -Naur ez-ipupdate-3.0.11b8-patched/ez-ipupdate.c ez-ipupdate-3.0.11b8-dnsexit/ez-ipupdate.c
+--- ez-ipupdate.c.orig 2005-12-23 01:33:54.000000000 +0000
++++ ez-ipupdate.c 2005-12-23 02:51:19.000000000 +0000
+@@ -103,6 +103,10 @@
+ #define HEIPV6TB_DEFAULT_PORT "80"
+ #define HEIPV6TB_REQUEST "/index.cgi"
+
++#define DNSEXIT_DEFAULT_SERVER "www.dnsexit.com"
++#define DNSEXIT_DEFAULT_PORT "80"
++#define DNSEXIT_REQUEST "/RemoteUpdate.sv"
++
+ #define DEFAULT_TIMEOUT 120
+ #define DEFAULT_UPDATE_PERIOD 120
+ #define DEFAULT_RESOLV_PERIOD 30
+@@ -344,6 +348,11 @@
+ int HEIPV6TB_check_info(void);
+ static char *HEIPV6TB_fields_used[] = { "server", "user", NULL };
+
++int DNSEXIT_update_entry(void);
++int DNSEXIT_check_info(void);
++static char *DNSEXIT_fields_used[] = { "server", "user", "address", "wildcard", "mx", "host", NULL };
++
++
+ struct service_t services[] = {
+ { "NULL",
+ { "null", "NULL", 0, },
+@@ -517,6 +526,16 @@
+ HEIPV6TB_DEFAULT_PORT,
+ HEIPV6TB_REQUEST
+ },
++ { "dnsexit",
++ { "dnsexit", 0, 0, },
++ NULL,
++ DNSEXIT_update_entry,
++ DNSEXIT_check_info,
++ DNSEXIT_fields_used,
++ DNSEXIT_DEFAULT_SERVER,
++ DNSEXIT_DEFAULT_PORT,
++ DNSEXIT_REQUEST
++ },
+ };
+
+ static struct service_t *service = NULL;
+@@ -4251,6 +4270,195 @@
+ return(UPDATERES_OK);
+ }
+
++int DNSEXIT_check_info(void)
++{
++ char buf[BUFSIZ+1];
++
++ if((host == NULL) || (*host == '\0'))
++ {
++ if(options & OPT_DAEMON)
++ {
++ return(-1);
++ }
++ if(host) { free(host); }
++ printf("host: ");
++ *buf = '\0';
++ fgets(buf, BUFSIZ, stdin);
++ host = strdup(buf);
++ chomp(host);
++ }
++
++ if(interface == NULL && address == NULL)
++ {
++ if(options & OPT_DAEMON)
++ {
++ fprintf(stderr, "you must provide either an interface or an address\n");
++ return(-1);
++ }
++ if(interface) { free(interface); }
++ printf("interface: ");
++ *buf = '\0';
++ fgets(buf, BUFSIZ, stdin);
++ chomp(buf);
++ option_handler(CMD_interface, buf);
++ }
++
++ warn_fields(service->fields_used);
++
++ return 0;
++}
++
++int DNSEXIT_update_entry(void)
++{
++ char buf[BUFFER_SIZE+1];
++ char *bp = buf;
++ int bytes;
++ int btot;
++ int ret;
++
++ buf[BUFFER_SIZE] = '\0';
++
++ if(do_connect((int*)&client_sockfd, server, port) != 0)
++ {
++ if(!(options & OPT_QUIET))
++ {
++ show_message("error connecting to %s:%s\n", server, port);
++ }
++ return(UPDATERES_ERROR);
++ }
++
++ snprintf(buf, BUFFER_SIZE, "GET %s?action=edit&", request);
++ output(buf);
++ if(address != NULL && *address != '\0')
++ {
++ snprintf(buf, BUFFER_SIZE, "%s=%s&", "myip", address);
++ output(buf);
++ }
++ snprintf(buf, BUFFER_SIZE, "%s=%s&", "wildcard", wildcard ? "ON" : "OFF");
++ output(buf);
++ snprintf(buf, BUFFER_SIZE, "%s=%s&", "mx", mx);
++ output(buf);
++ snprintf(buf, BUFFER_SIZE, "%s=%s&", "backmx", *mx == '\0' ? "NO" : "YES");
++ output(buf);
++ snprintf(buf, BUFFER_SIZE, "%s=%s&", "host", host);
++ output(buf);
++ snprintf(buf, BUFFER_SIZE, "%s=%s&", "login", user_name);
++ output(buf);
++ snprintf(buf, BUFFER_SIZE, "%s=%s&", "password", password);
++ output(buf);
++ snprintf(buf, BUFFER_SIZE, " HTTP/1.0\015\012");
++ output(buf);
++ snprintf(buf, BUFFER_SIZE, "Authorization: Basic %s\015\012", auth);
++ output(buf);
++ snprintf(buf, BUFFER_SIZE, "User-Agent: %s-%s %s [%s] (%s)\015\012",
++ "ez-update", VERSION, OS, (options & OPT_DAEMON) ? "daemon" : "", "by Angus Mackay");
++ output(buf);
++ snprintf(buf, BUFFER_SIZE, "Host: %s\015\012", server);
++ output(buf);
++ snprintf(buf, BUFFER_SIZE, "\015\012");
++ output(buf);
++
++ bp = buf;
++ bytes = 0;
++ btot = 0;
++ while((bytes=read_input(bp, BUFFER_SIZE-btot)) > 0)
++ {
++ bp += bytes;
++ btot += bytes;
++ dprintf((stderr, "btot: %d\n", btot));
++ }
++ close(client_sockfd);
++ buf[btot] = '\0';
++
++ dprintf((stderr, "server output: %s\n", buf));
++
++ if(sscanf(buf, " HTTP/1.%*c %3d", &ret) != 1)
++ {
++ ret = -1;
++ }
++
++ switch(ret)
++ {
++ case -1:
++ if(!(options & OPT_QUIET))
++ {
++ show_message("strange server response, are you connecting to the right server?\n");
++ }
++ return(UPDATERES_ERROR);
++ break;
++
++ case 200:
++
++ if(strstr(buf, "0=Success") != NULL)
++ {
++ if(!(options & OPT_QUIET))
++ {
++ printf("Request successful\n");
++ }
++ }
++ else if(strstr(buf, "1=IP is the same as the IP on the system") != NULL)
++ {
++ if(!(options & OPT_QUIET))
++ {
++ printf("Request successful but the IP is the same as previous update\n");
++ }
++ }
++ else if(strstr(buf, "2=Invalid passwords") != NULL)
++ {
++ if(!(options & OPT_QUIET))
++ {
++ printf("Invalid Password\n");
++ }
++ }
++ else if(strstr(buf, "3=User not found") != NULL)
++ {
++ if(!(options & OPT_QUIET))
++ {
++ printf("Username not found\n");
++ }
++ }
++ else if(strstr(buf, "4=Update too often") != NULL)
++ {
++ if(!(options & OPT_QUIET))
++ {
++ printf("Updatting too often\n");
++ }
++ }
++ else
++ {
++ show_message("Errors return from server\n");
++ if(!(options & OPT_QUIET))
++ {
++ fprintf(stderr, "server output: %s\n", buf);
++ }
++ return(UPDATERES_ERROR);
++ }
++ break;
++
++ case 401:
++ if(!(options & OPT_QUIET))
++ {
++ show_message("authentication failure\n");
++ }
++ return(UPDATERES_SHUTDOWN);
++ break;
++
++ default:
++ if(!(options & OPT_QUIET))
++ {
++ // reuse the auth buffer
++ *auth = '\0';
++ sscanf(buf, " HTTP/1.%*c %*3d %255[^\r\n]", auth);
++ show_message("unknown return code: %d\n", ret);
++ show_message("server response: %s\n", auth);
++ }
++ return(UPDATERES_ERROR);
++ break;
++ }
++
++ return(UPDATERES_OK);
++}
++
+ static int is_in_list(char *needle, char **haystack)
+ {
+ char **p;