diff options
-rw-r--r-- | www-misc/htdig/ChangeLog | 11 | ||||
-rw-r--r-- | www-misc/htdig/Manifest | 9 | ||||
-rw-r--r-- | www-misc/htdig/files/3.1.6-ssl.patch | 653 | ||||
-rw-r--r-- | www-misc/htdig/files/htdig-3.1.6-unescaped-output.diff | 17 | ||||
-rw-r--r-- | www-misc/htdig/htdig-3.1.6-r7.ebuild | 75 | ||||
-rw-r--r-- | www-misc/htdig/htdig-3.1.6-r8.ebuild | 63 | ||||
-rw-r--r-- | www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild | 39 |
7 files changed, 29 insertions, 838 deletions
diff --git a/www-misc/htdig/ChangeLog b/www-misc/htdig/ChangeLog index 15894933eae3..45650ed1956b 100644 --- a/www-misc/htdig/ChangeLog +++ b/www-misc/htdig/ChangeLog @@ -1,9 +1,14 @@ # ChangeLog for www-misc/htdig -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-misc/htdig/ChangeLog,v 1.42 2007/12/05 05:20:41 wrobel Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/htdig/ChangeLog,v 1.43 2009/12/13 21:57:34 abcd Exp $ + + 13 Dec 2009; Jonathan Callen <abcd@gentoo.org> -files/3.1.6-ssl.patch, + -htdig-3.1.6-r7.ebuild, -htdig-3.1.6-r8.ebuild, + -files/htdig-3.1.6-unescaped-output.diff, htdig-3.2.0_beta6-r3.ebuild: + Drop some old versions; fix QA warnings; general cleanups 05 Dec 2007; <wrobel@gentoo.org> -htdig-3.2.0_beta6-r2.ebuild: - -m Removed insecure htdig-3.2.0_beta6-r2 (sec bug #200285). + Removed insecure htdig-3.2.0_beta6-r2 (sec bug #200285). 04 Dec 2007; Tobias Scherbaum <dertobi123@gentoo.org> htdig-3.2.0_beta6-r3.ebuild: diff --git a/www-misc/htdig/Manifest b/www-misc/htdig/Manifest index 56860381d720..2fcfc8a23752 100644 --- a/www-misc/htdig/Manifest +++ b/www-misc/htdig/Manifest @@ -1,12 +1,7 @@ -AUX 3.1.6-ssl.patch 19082 RMD160 32c8d70ae5aad26901e70fd1068fc58201fb8ea2 SHA1 672aa5f408ef250a888877e73901eae2f9270697 SHA256 d1b07cf0a684547578b1f015f8e73568706cd213ece1259012de60e0d3730064 -AUX htdig-3.1.6-unescaped-output.diff 640 RMD160 112bbd3c2dcf392888183974d7604f0de5e0033b SHA1 aa7e349bee6df022e86cfa5b9d32fa789d1132a5 SHA256 75cc4caefd3302fa06a851a1378de11e7a9a0986611478fdf2bc8457827ec63f AUX htdig-3.2.0_beta6-as-needed.patch 2244 RMD160 312aa0861fb155f89d6e447063aa06fea523ab2f SHA1 c0f79d84c8321fc5778b7133f338553c21215d44 SHA256 3d0e74896a15f698532d4305f0a2257302ee0d275639b5f1d761cba51a6885fa AUX htdig-3.2.0_beta6-gcc4.patch 541 RMD160 3b684305cee717d6cf4a628fbea6af1b7891164b SHA1 a7db0eca162197556f4ea709822835d50b237015 SHA256 729ea1d0fd415b5b144b2b95bba0575c4eef942f77adfbf54bb69e7da7dd58c3 AUX htdig-3.2.0_beta6-quoting.patch 1130 RMD160 df995515a46234cce7ad8ded7dcd2c508c680a18 SHA1 de725d4c0666992e359279385fe706241fa93c45 SHA256 d84222aa6895305c2ee87f9975bfc348a7872f63ee02a33e862b325f125b8109 -DIST htdig-3.1.6.tar.gz 2068675 RMD160 1414943255f16cd278a31b8014a5bfe6c4400ead SHA1 603fc244ba59ee1efcbe8f2ba087567cb14468d0 SHA256 c50aae9beeeb4525901f19319350631bc16a501855f1e6f918209ba44c19638b DIST htdig-3.2.0b6.tar.gz 3104936 RMD160 621e85920f3452bc1a28a61cf7f8b3e08808bc55 SHA1 106db8c137a3e8f0f5fcf24ac96e01f3515e9cae SHA256 6da9e0ee8627d5302f5685a1b3e5de5f1e6e8df4c0a92c0ca00796bca9e546c8 -EBUILD htdig-3.1.6-r7.ebuild 1927 RMD160 1565e2f715779072133d539de3e8696cb8f333f1 SHA1 ba602677bb2d91f211528f7baeea404fabac032d SHA256 2f3cfa956b2c2740b705f2ac6f87b8469b1954e2d6cb61e4ff50a69afd398450 -EBUILD htdig-3.1.6-r8.ebuild 1621 RMD160 1beb70f95187b6bbe62adb96e3a245273dbda664 SHA1 8f71b9a926c387c92c28c2148cc9a1f2d5c1db4f SHA256 2b552cdf0c0497999cc3651b9ea9d3670a97a17a336cc9b20d60905c45e6d1ae -EBUILD htdig-3.2.0_beta6-r3.ebuild 1606 RMD160 e14214ba0c15a0b09407b186b47e64297ead7bcf SHA1 baa55bfba16165e2832fcd1df26847841db469a4 SHA256 2599a5c714ed07626faa812b4acd78536cfa7b260b02c4106055e102836350a8 -MISC ChangeLog 9583 RMD160 ab4990c017f69fdc7987522076f6694e5f1fc064 SHA1 71eaf11ac9b3027510b3e5f88093ce5cc4de0f9c SHA256 75fdf39f6f7f98b4bdff898542c94b3428224ab5ac0574a9e3491ed3797bed9c +EBUILD htdig-3.2.0_beta6-r3.ebuild 1623 RMD160 54cca0e0e2267eaae6a5c2ad02b87b2b97541b07 SHA1 d41b193a30e2cc5aeb32622bd88461e2394b9b02 SHA256 7e447b4d608f4e5e5a9295079ed09cc82cffc51aeb8a2dd1add23019c4588610 +MISC ChangeLog 9835 RMD160 795e54f99341ea6f8b54d353de1bb8aae5aac507 SHA1 4027bad64d7fbaabeb966a566872eb1d8434bfa5 SHA256 e4a6a800c5272328cf6d6563f3deacea364e5766467c1c8f79029b8172cfcea2 MISC metadata.xml 161 RMD160 d47e924599b33a35a50f4c9f5564d325c271f83b SHA1 5b91a6d8d06d3dca2d774425befba30caca51507 SHA256 9cd891fcf0af580e98b62d2f4ded9e53671599f5a7aafd5dce692b996d2a83f4 diff --git a/www-misc/htdig/files/3.1.6-ssl.patch b/www-misc/htdig/files/3.1.6-ssl.patch deleted file mode 100644 index 5a3ac2fd6437..000000000000 --- a/www-misc/htdig/files/3.1.6-ssl.patch +++ /dev/null @@ -1,653 +0,0 @@ -diff -urd htdig-3.1.6/Makefile.config.in htdig-3.1.6-ssl/Makefile.config.in ---- htdig-3.1.6/Makefile.config.in Fri Feb 1 00:47:14 2002 -+++ htdig-3.1.6-ssl/Makefile.config.in Mon Oct 21 17:30:40 2002 -@@ -23,14 +23,15 @@ - PDF_PARSER= @PDF_PARSER@ - SENDMAIL= @SENDMAIL@ - --DEFINES= -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -+DEFINES= @DEFS@ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DHAVE_SSL -+LIBDIRS= -L../htlib -L../htcommon -L../db/dist -L/usr/lib -L$(OPENSSL)/lib - LIBDIRS= -L../htlib -L../htcommon -L../db/dist -L/usr/lib - INCS= -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -- -I../db/dist -I../include -+ -I../db/dist -I../include -I$(OPENSSL)/include - HTLIBS= ../htcommon/libcommon.a \ - ../htlib/libht.a \ - ../db/dist/libdb.a --LIBS= $(HTLIBS) @LIBS@ -+LIBS= $(HTLIBS) @LIBS@ -lssl -lcrypto - - DIST= @PACKAGE@-@VERSION@ - DISTDIR= $(top_srcdir)/../$(DIST) -diff -urd htdig-3.1.6/htcommon/DocumentDB.cc htdig-3.1.6-ssl/htcommon/DocumentDB.cc ---- htdig-3.1.6/htcommon/DocumentDB.cc Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htcommon/DocumentDB.cc Mon Oct 21 04:40:54 2002 -@@ -231,7 +231,11 @@ - while ((key = dbf->Get_Next())) - { - dbf->Get(key, data); -+#ifndef HAVE_SSL - if (strncmp(HtURLCodec::instance()->decode(key), "http:", 5) == 0) -+#else /* HAVE_SSL */ -+ if (strncmp(HtURLCodec::instance()->decode(key), "http:", 5) == 0 || strncmp(HtURLCodec::instance()->decode(key), "https:", 6) == 0) -+#endif /* HAVE_SSL */ - { - ref = new DocumentRef; - ref->Deserialize(data); -@@ -419,7 +423,11 @@ - while ((coded_key = dbf->Get_Next())) - { - String key = HtURLCodec::instance()->decode(coded_key); -+#ifndef HAVE_SSL - if (mystrncasecmp(key, "http:", 5) == 0) -+#else /* HAVE_SSL */ -+ if (mystrncasecmp(key, "http:", 5) == 0 || mystrncasecmp(key, "https:", 6) == 0) -+#endif /* HAVE_SSL */ - { - DocumentRef *ref = (*this)[key]; - if (ref) -diff -urd htdig-3.1.6/htcommon/defaults.cc htdig-3.1.6-ssl/htcommon/defaults.cc ---- htdig-3.1.6/htcommon/defaults.cc Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htcommon/defaults.cc Mon Oct 21 04:40:54 2002 -@@ -43,7 +43,11 @@ - {"boolean_syntax_errors", "Expected 'a search word' 'at the end' 'instead of' 'end of expression'"}, - {"build_select_lists", ""}, - {"case_sensitive", "true"}, -+#ifndef HAVE_SSL - {"common_url_parts", "http:// http://www. ftp:// ftp://ftp. /pub/ .html .htm .gif .jpg .jpeg /index.html /index.htm .com/ .com mailto:"}, -+#else /* HAVE_SSL */ -+ {"common_url_parts", "https:// https://www. http:// http://www. ftp:// ftp://ftp. /pub/ .html .htm .gif .jpg .jpeg /index.html /index.htm .com/ .com mailto:"}, -+#endif /* HAVE_SSL */ - {"create_image_list", "false"}, - {"create_url_list", "false"}, - {"compression_level", "0"}, -diff -urd htdig-3.1.6/htdig/Document.cc htdig-3.1.6-ssl/htdig/Document.cc ---- htdig-3.1.6/htdig/Document.cc Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htdig/Document.cc Mon Oct 21 17:37:56 2002 -@@ -474,7 +474,10 @@ - return Document_no_host; - } - } -- -+ -+#ifdef HAVE_SSL -+ c.assign_ssl(strcmp(url->service(), "https") == 0); -+#endif /* HAVE_SSL */ - if (c.connect(1) == NOTOK) - { - if (debug) -@@ -484,6 +487,10 @@ - { - cout << "(Via proxy " << proxy->host() << ':' << proxy->port() << ')' << endl; - } -+#ifdef HAVE_SSL -+ if (strcmp(url->service(), "https") == 0) -+ cout << c.ssl_error_message() << endl; -+#endif /* HAVE_SSL */ - } - c.close(); - return Document_no_server; -diff -urd htdig-3.1.6/htdig/Images.cc htdig-3.1.6-ssl/htdig/Images.cc ---- htdig-3.1.6/htdig/Images.cc Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htdig/Images.cc Mon Oct 21 04:40:54 2002 -@@ -61,7 +61,11 @@ - { - String u = url; - URL Url(url); -+#ifndef HAVE_SSL - if (strcmp(Url.service(), "http") != 0) -+#else /* HAVE_SSL */ -+ if (strcmp(Url.service(), "http") != 0 && strcmp(Url.service(), "https") != 0) -+#endif /* HAVE_SSL */ - return 0; - - u.lowercase(); -@@ -81,6 +85,9 @@ - return 0; - if (c.assign_server(Url.host()) == NOTOK) - return 0; -+#ifdef HAVE_SSL -+ c.assign_ssl(strcmp(Url.service(), "https") == 0); -+#endif /* HAVE_SSL */ - - if (c.connect(1) == NOTOK) - { -diff -urd htdig-3.1.6/htdig/Retriever.cc htdig-3.1.6-ssl/htdig/Retriever.cc ---- htdig-3.1.6/htdig/Retriever.cc Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htdig/Retriever.cc Tue Oct 22 06:44:31 2002 -@@ -137,10 +137,14 @@ - cout << "\t" << from << ":" << (int) log << ":" << url; - if (!server) - { -- String robotsURL = "http://"; -- robotsURL << u.host() << "/robots.txt"; -+ String robotsURL = u.service(); -+ robotsURL << "://" << u.host() << "/robots.txt"; - StringList *localRobotsFiles = GetLocal(robotsURL.get()); -+#ifndef HAVE_SSL - server = new Server(u.host(), u.port(), localRobotsFiles); -+#else /* HAVE_SSL */ -+ server = new Server(u.host(), u.port(), strcmp(u.service(), "https") == 0, localRobotsFiles); -+#endif /* HAVE_SSL */ - servers.Add(u.signature(), server); - delete localRobotsFiles; - } -@@ -679,10 +683,18 @@ - // Currently, we only deal with HTTP URLs. Gopher and ftp will - // come later... ***FIX*** - // -+#ifndef HAVE_SSL - if (strstr(u, "/../") || strncmp(u, "http://", 7) != 0) -+#else /* HAVE_SSL */ -+ if (strstr(u, "/../") || (strncmp(u, "http://", 7) != 0 && strncmp(u, "https://", 8) != 0)) -+#endif /* HAVE_SSL */ - { - if (debug > 2) -+#ifndef HAVE_SSL - cout << endl <<" Rejected: Not an http or relative link!"; -+#else /* HAVE_SSL */ -+ cout << endl <<" Rejected: Not an http, https or relative link!"; -+#endif /* HAVE_SSL */ - return FALSE; - } - -@@ -1365,10 +1377,14 @@ - // - // Hadn't seen this server, yet. Register it - // -- String robotsURL = "http://"; -- robotsURL << url.host() << "/robots.txt"; -+ String robotsURL = url.service(); -+ robotsURL << "://" << url.host() << "/robots.txt"; - StringList *localRobotsFile = GetLocal(robotsURL.get()); -+#ifndef HAVE_SSL - server = new Server(url.host(), url.port(), localRobotsFile); -+#else /* HAVE_SSL */ -+ server = new Server(url.host(), url.port(), strcmp(url.service(), "https") == 0, localRobotsFile); -+#endif /* HAVE_SSL */ - servers.Add(url.signature(), server); - delete localRobotsFile; - } -@@ -1509,10 +1525,14 @@ - // - // Hadn't seen this server, yet. Register it - // -- String robotsURL = "http://"; -- robotsURL << url.host() << "/robots.txt"; -+ String robotsURL = url.service(); -+ robotsURL << "://" << url.host() << "/robots.txt"; - StringList *localRobotsFile = GetLocal(robotsURL.get()); -+#ifndef HAVE_SSL - server = new Server(url.host(), url.port(), localRobotsFile); -+#else /* HAVE_SSL */ -+ server = new Server(url.host(), url.port(), strcmp(url.service(), "https") == 0, localRobotsFile); -+#endif /* HAVE_SSL */ - servers.Add(url.signature(), server); - delete localRobotsFile; - } -diff -urd htdig-3.1.6/htdig/Server.cc htdig-3.1.6-ssl/htdig/Server.cc ---- htdig-3.1.6/htdig/Server.cc Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htdig/Server.cc Mon Oct 21 19:57:02 2002 -@@ -20,9 +20,17 @@ - - - //***************************************************************************** --// Server::Server(char *host, int port, StringList *local_robots_files) -+//#ifndef HAVE_SSL -+// Server::Server(char *host, int port, StringList *local_robots_files) -+//#else /* HAVE_SSL */ -+// Server::Server(char *host, int port, int ssl, StringList *local_robots_files) -+//#endif /* HAVE_SSL */ - // --Server::Server(char *host, int port, StringList *local_robots_files) -+#ifndef HAVE_SSL -+Server::Server(char *host, int port, StringList *local_robots_files) -+#else /* HAVE_SSL */ -+Server::Server(char *host, int port, int ssl, StringList *local_robots_files) -+#endif /* HAVE_SSL */ - { - if (debug > 0) - cout << endl << "New server: " << host << ", " << port << endl; -@@ -41,6 +49,9 @@ - // Attempt to get a robots.txt file from the specified server - // - String url = "http://"; -+#ifdef HAVE_SSL -+ if (ssl) url = "https://"; -+#endif /* HAVE_SSL */ - url << host << ':' << port << "/robots.txt"; - Document doc(url, 0); - -diff -urd htdig-3.1.6/htdig/Server.h htdig-3.1.6-ssl/htdig/Server.h ---- htdig-3.1.6/htdig/Server.h Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htdig/Server.h Mon Oct 21 19:57:02 2002 -@@ -26,7 +26,11 @@ - // - // Construction/Destruction - // -- Server(char *host, int port, StringList *local_robots_files = NULL); -+#ifndef HAVE_SSL -+ Server(char *host, int port, StringList *local_robots_files = NULL); -+#else /* HAVE_SSL */ -+ Server(char *host, int port, int ssl, StringList *local_robots_files = NULL); -+#endif /* HAVE_SSL */ - ~Server(); - - // -diff -urd htdig-3.1.6/htdig/htdig.cc htdig-3.1.6-ssl/htdig/htdig.cc ---- htdig-3.1.6/htdig/htdig.cc Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htdig/htdig.cc Mon Oct 21 05:35:33 2002 -@@ -386,7 +386,11 @@ - { - cout << "usage: htdig [-v][-i][-c configfile][-t][-h hopcount][-s] \\\n"; - cout << " [-u username:password][-a][-m minimalfile][file]\n"; -- cout << "This program is part of ht://Dig " << VERSION << "\n\n"; -+ cout << "This program is part of ht://Dig " << VERSION; -+#ifdef HAVE_SSL -+ cout << "/SSL"; -+#endif /* HAVE_SSL */ -+ cout << "\n\n"; - cout << "Options:\n"; - - cout << "\t-v\tVerbose mode. This increases the verbosity of the\n"; -diff -urd htdig-3.1.6/htlib/Connection.cc htdig-3.1.6-ssl/htlib/Connection.cc ---- htdig-3.1.6/htlib/Connection.cc Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htlib/Connection.cc Tue Oct 22 06:44:31 2002 -@@ -42,6 +42,10 @@ - int rresvport(int *); - } - -+#ifdef HAVE_SSL -+SSL_CTX *Connection::ctx = NULL; -+SSL_METHOD *Connection::meth = NULL; -+#endif /* HAVE_SSL */ - List all_connections; - - Connection::Connection() -@@ -54,7 +58,47 @@ - timeout_value = 0; - retry_value = 1; - wait_time = 5; // wait 5 seconds after a failed connection -+#ifdef HAVE_SSL -+ ssl = NULL; -+ m_ssl_on = 0; -+#endif /* HAVE_SSL */ -+} -+ -+#ifdef HAVE_SSL -+void Connection::initSSL() -+{ -+ static int init = 0; -+ -+ if (! init) -+ { -+ init = 1; -+ -+ SSL_library_init(); -+ SSL_load_error_strings(); -+#ifdef SSL_NEED_RANDFILE -+ char buffer[200]; -+ RAND_load_file(RAND_file_name(buffer, sizeof buffer), -1); -+#endif /* SSL_NEED_RANDFILE */ -+#ifdef SSL_NEEDS_EGD_SOCKET -+ if (getenv("EGD_SOCKET") != NULL) -+ { -+ RAND_egd(getenv("EGD_SOCKET")); -+ } -+#endif /* SSL_NEEDS_EGD_SOCKET */ -+ meth = SSLv23_client_method(); -+ } -+ -+ if (ctx == NULL) -+ { -+ ctx = SSL_CTX_new(meth); -+ if (ctx == NULL) -+ { -+ cout << ssl_error_message() << endl; -+ exit(1); -+ } -+ } - } -+#endif /* HAVE_SSL */ - - - //************************************************************************* -@@ -79,6 +117,10 @@ - timeout_value = 0; - retry_value = 1; - wait_time = 5; -+#ifdef HAVE_SSL -+ ssl = NULL; -+ m_ssl_on = 0; -+#endif /* HAVE_SSL */ - } - - -@@ -91,6 +133,13 @@ - this->close(); - delete peer; - delete server_name; -+#ifdef HAVE_SSL -+ if (ctx != NULL) -+ { -+ SSL_CTX_free(ctx); -+ ctx = NULL; -+ } -+#endif - } - - -@@ -164,7 +213,15 @@ - connected = 0; - if (sock >= 0) - { -+#ifdef HAVE_SSL -+ if (m_ssl_on) -+ SSL_shutdown(ssl); -+#endif /* HAVE_SSL */ - int ret = ::close(sock); -+#ifdef HAVE_SSL -+ SSL_free(ssl); -+ ssl = NULL; -+#endif /* HAVE_SSL */ - sock = -1; - return ret; - } -@@ -245,6 +302,27 @@ - static void handler_timeout(int) { - } - -+ -+#ifdef HAVE_SSL -+//***************************************************************************** -+// int Connection::assign_ssl(int ssl_on) -+// -+int Connection::assign_ssl(int ssl_on) -+{ -+ m_ssl_on = ssl_on; -+ return OK; -+} -+ -+//***************************************************************************** -+// char* Connection::ssl_error_message(void) -+// -+char* Connection::ssl_error_message(void) -+{ -+ return ERR_error_string(ERR_get_error(), NULL); -+} -+#endif /* HAVE_SSL */ -+ -+ - //***************************************************************************** - // int Connection::connect(int allow_EINTR) - // -@@ -253,6 +331,11 @@ - int status; - int retries = retry_value; - -+#ifdef HAVE_SSL -+ if (m_ssl_on) -+ initSSL(); -+#endif -+ - while (retries--) - { - // -@@ -278,8 +361,29 @@ - - if (status == 0 || errno == EALREADY || errno == EISCONN) - { -+#ifndef HAVE_SSL - connected = 1; - return OK; -+#else /* HAVE_SSL */ -+ if (m_ssl_on) -+ { -+ ssl = SSL_new(ctx); -+ if (ssl != NULL) -+ { -+ SSL_set_fd(ssl, sock); -+ if (SSL_connect(ssl) > 0) -+ { -+ connected = 1; -+ return OK; -+ } -+ } -+ } -+ else -+ { -+ connected = 1; -+ return OK; -+ } -+#endif /* HAVE_SSL */ - } - - // -@@ -441,7 +545,16 @@ - } - - if (!need_io_stop) -+ { -+#ifndef HAVE_SSL - count = ::read(sock, buffer, maxlength); -+#else /* HAVE_SSL */ -+ if (ssl != NULL) -+ count = SSL_read(ssl, buffer, maxlength); -+ else -+ count = ::read(sock, buffer, maxlength); -+#endif /* HAVE_SSL */ -+ } - else - count = -1; // Input timed out - } -@@ -461,7 +574,14 @@ - - do - { -+#ifndef HAVE_SSL - count = ::write(sock, buffer, maxlength); -+#else /* HAVE_SSL */ -+ if (ssl != NULL) -+ count = SSL_write(ssl, buffer, maxlength); -+ else -+ count = ::write(sock, buffer, maxlength); -+#endif /* HAVE_SSL */ - } - while (count < 0 && errno == EINTR && !need_io_stop); - need_io_stop = 0; -diff -urd htdig-3.1.6/htlib/Connection.h htdig-3.1.6-ssl/htlib/Connection.h ---- htdig-3.1.6/htlib/Connection.h Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htlib/Connection.h Mon Oct 21 05:57:32 2002 -@@ -44,6 +44,16 @@ - #include <netinet/in.h> - #include <netdb.h> - -+#ifdef HAVE_SSL -+#include <openssl/rsa.h> -+#include <openssl/crypto.h> -+#include <openssl/x509.h> -+#include <openssl/pem.h> -+#include <openssl/ssl.h> -+#include <openssl/err.h> -+#include <openssl/rand.h> -+#endif /* HAVE_SSL */ -+ - class String; - - class Connection : public io -@@ -73,6 +83,13 @@ - int assign_server(unsigned int addr = INADDR_ANY); - char *get_server() {return server_name;} - -+#ifdef HAVE_SSL -+ // SLL stuff -+ void initSSL(); -+ int assign_ssl(int ssl_on); -+ char *ssl_error_message(void); -+#endif /* HAVE_SSL */ -+ - // Connection establishment - int connect(int allow_EINTR = 0); - Connection *accept(int priv = 0); -@@ -99,6 +116,12 @@ - - private: - int sock; -+#ifdef HAVE_SSL -+ int m_ssl_on; -+ SSL *ssl; -+ static SSL_CTX *ctx; -+ static SSL_METHOD *meth; -+#endif /* HAVE_SSL */ - struct sockaddr_in server; - int connected; - char *peer; -diff -urd htdig-3.1.6/htlib/URL.cc htdig-3.1.6-ssl/htlib/URL.cc ---- htdig-3.1.6/htlib/URL.cc Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htlib/URL.cc Tue Oct 22 06:44:31 2002 -@@ -131,9 +131,21 @@ - while (isalpha(*p)) - p++; - int hasService = (*p == ':'); -+#ifndef HAVE_SSL - if ((hasService && ((strncmp(ref, "http://", 7) == 0) || - (strncmp(ref, "http:", 5) != 0))) - || strncmp(ref, "//", 2) == 0) -+#else /* HAVE_SSL */ -+ -+ if ((hasService && -+ ( (strncmp(ref, "http://", 7) == 0) || -+ (strncmp(ref, "http:", 5) != 0) || -+ (strncmp(ref, "https://", 8) == 0) || -+ (strncmp(ref, "https:", 6) != 0) -+ ) -+ ) -+ || (strncmp(ref, "//", 2) == 0)) -+#endif /* HAVE_SSL */ - { - // - // No need to look at the parent url since this is a complete url... -@@ -218,7 +230,14 @@ - _url << ":"; - if (_host.length()) - _url << "//" << _host; -+ // Add on the port if its not one of the standard ones -+#ifndef HAVE_SSL - if (_port != 80 && strcmp(_service, "http") == 0) -+#else /* HAVE_SSL */ -+ if ((strcmp(_service, "https") == 0 && _port != 443)|| -+ (strcmp(_service, "http" ) == 0 && _port != 80) -+ ) -+#endif /* HAVE_SSL */ - _url << ':' << _port; - _url << _path; - } -@@ -292,13 +311,29 @@ - if (p) - _port = atoi(p); - if (!p || _port <= 0) -+#ifndef HAVE_SSL - _port = 80; -+#else /* HAVE_SSL */ -+ { -+ if( strcmp( _service, "https" ) == 0 ) -+ _port = 443; -+ else -+ _port = 80; -+ } -+#endif /* HAVE_SSL */ - } - else - { - _host = strtok(p, "/"); - _host.chop(" \t"); -+#ifndef HAVE_SSL - _port = 80; -+#else /* HAVE_SSL */ -+ if( strcmp( _service, "https" ) == 0 ) -+ _port = 443; -+ else -+ _port = 80; -+#endif /* HAVE_SSL */ - } - - // -@@ -317,7 +352,12 @@ - // - _url = _service; - _url << "://" << _host; -+#ifndef HAVE_SSL - if (_port != 80) -+#else /* HAVE_SSL */ -+ if ((strcmp(_service, "https") == 0 && _port != 443)|| -+ (strcmp(_service, "http" ) == 0 && _port != 80)) -+#endif /* HAVE_SSL */ - _url << ':' << _port; - _url << _path; - } -@@ -446,7 +486,12 @@ - _path.lowercase(); - _url = _service; - _url << "://" << _host; -+#ifndef HAVE_SSL - if (_port != 80) -+#else /* HAVE_SSL */ -+ if ((strcmp(_service, "https") == 0 && _port != 443)|| -+ (strcmp(_service, "http" ) == 0 && _port != 80)) -+#endif /* HAVE_SSL */ - _url << ':' << _port; - _url << _path; - } -@@ -496,7 +541,12 @@ - if (_service.length() == 0 || _normal) - return; - -+#ifndef HAVE_SSL - if (strcmp(_service, "http") != 0) -+#else /* HAVE_SSL */ -+ if (strcmp(_service, "http") != 0 && -+ strcmp(_service, "https") != 0) -+#endif /* HAVE_SSL */ - return; - - removeIndex(_path); -@@ -553,7 +603,12 @@ - _url << ":"; - if (_host.length()) - _url << "//" << _host; -+#ifndef HAVE_SSL - if (_port != 80 && strcmp(_service, "http") == 0) -+#else /* HAVE_SSL */ -+ if ((strcmp(_service, "https") == 0 && _port != 443)|| -+ (strcmp(_service, "http" ) == 0 && _port != 80)) -+#endif /* HAVE_SSL */ - _url << ':' << _port; - _url << _path; - _normal = 1; -diff -urd htdig-3.1.6/htlib/URL.h htdig-3.1.6-ssl/htlib/URL.h ---- htdig-3.1.6/htlib/URL.h Fri Feb 1 00:47:17 2002 -+++ htdig-3.1.6-ssl/htlib/URL.h Mon Oct 21 19:57:02 2002 -@@ -59,18 +59,18 @@ - - void parse(char *url); - -- char *host() {return _host;} -+ char *host() {return _host.get();} - void host(char *h) {_host = h;} - int port() {return _port;} - void port(int p) {_port = p;} -- char *service() {return _service;} -+ char *service() {return _service.get();} - void service(char *s) {_service = s;} -- char *path() {return _path;} -+ char *path() {return _path.get();} - void path(char *p); - int hopcount() {return _hopcount;} - void hopcount(int h) {_hopcount = h;} - -- char *get() {return _url;} -+ char *get() {return _url.get();} - void dump(); - void normalize(); - void rewrite(); diff --git a/www-misc/htdig/files/htdig-3.1.6-unescaped-output.diff b/www-misc/htdig/files/htdig-3.1.6-unescaped-output.diff deleted file mode 100644 index 5a041f11f8a1..000000000000 --- a/www-misc/htdig/files/htdig-3.1.6-unescaped-output.diff +++ /dev/null @@ -1,17 +0,0 @@ -diff -urN htdig-3.1.6.orig/htsearch/htsearch.cc htdig-3.1.6/htsearch/htsearch.cc ---- htdig-3.1.6.orig/htsearch/htsearch.cc 2005-02-10 10:44:13.593198276 -0500 -+++ htdig-3.1.6/htsearch/htsearch.cc 2005-02-10 10:46:15.391055719 -0500 -@@ -143,11 +143,8 @@ - configFile << '/' << input["config"] << ".conf"; - } - if (access(configFile, R_OK) < 0) -- { -- if (filenameok) filenamemsg << " '" << configFile.get() << "'"; -- reportError(form("Unable to read configuration file%s", -- filenamemsg.get())); -- } -+ reportError("Unable to read configuration file."); -+ - config.Read(configFile); - - if (input.exists("method")) diff --git a/www-misc/htdig/htdig-3.1.6-r7.ebuild b/www-misc/htdig/htdig-3.1.6-r7.ebuild deleted file mode 100644 index b4fd355a410e..000000000000 --- a/www-misc/htdig/htdig-3.1.6-r7.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-misc/htdig/htdig-3.1.6-r7.ebuild,v 1.5 2005/09/08 00:23:30 rl03 Exp $ - -inherit webapp eutils flag-o-matic - -DESCRIPTION="HTTP/HTML indexing and searching system" -SRC_URI="http://www.htdig.org/files/${P}.tar.gz" -HOMEPAGE="http://www.htdig.org" -KEYWORDS="x86 sparc ppc ~mips amd64" -LICENSE="GPL-2" - -RDEPEND=">=sys-libs/zlib-1.1.3 - app-arch/unzip" -DEPEND="${RDEPEND}" - -SLOT="0" -WEBAPP_MANUAL_SLOT="yes" - -export CPPFLAGS="${CPPFLAGS} -Wno-deprecated" - -src_unpack() { - unpack ${A} - cd ${S} - - # security bug 80602 - epatch ${FILESDIR}/${P}-unescaped-output.diff - -} - -src_compile() { - append-flags -Wno-deprecated - - ./configure \ - --prefix=/usr \ - --with-config-dir=/${MY_HOSTROOTDIR}/${PN} \ - --with-cgi-bin-dir=${MY_CGIBINDIR} \ - --with-common-dir=/usr/share/${PN} \ - --with-database-dir=${MY_HOSTROOTDIR}/${PN}/db \ - --with-image-dir=${MY_HTDOCSDIR} \ - --with-default-config-file=${MY_HOSTROOTDIR}/${PN}/${PN}.conf \ - || die "configure failed" - - emake || die "emake failed" -} - -src_install () { - webapp_src_preinst - dodir ${MY_HOSTROOTDIR}/${PN} - - make \ - DESTDIR=${D} \ - CONFIG_DIR=${D}/${MY_HOSTROOTDIR}/${PN} \ - SEARCH_DIR=${D}/${MY_HOSTROOTDIR} \ - CGIBIN_DIR=${D}/${MY_CGIBINDIR} \ - COMMON_DIR=${D}/usr/share/${PN} \ - DATABASE_DIR=${D}/${MY_HOSTROOTDIR}/${PN}/db \ - IMAGE_DIR=${D}/${MY_HTDOCSDIR} \ - DEFAULT_CONFIG_FILE=${D}/${MY_HOSTROOTDIR}/${PN}/${PN}.conf \ - exec_prefix=${D}/usr \ - install || die "make install failed" - - dodoc ChangeLog COPYING README - dohtml -r htdoc - - sed -e "s/@DATABASE_DIR@/\/var\/${PN}\/db/" -i ${D}/${MY_HOSTROOTDIR}/${PN}/htdig.conf - - dosed ${MY_HOSTROOTDIR}/${PN}/${PN}.conf - dosed /usr/bin/rundig - - # symlink htsearch so it can be easily found. see bug #62087. - dosym ${MY_CGIBINDIR}/htsearch /usr/bin/htsearch - - webapp_src_install -} diff --git a/www-misc/htdig/htdig-3.1.6-r8.ebuild b/www-misc/htdig/htdig-3.1.6-r8.ebuild deleted file mode 100644 index 25e5ea76c2fd..000000000000 --- a/www-misc/htdig/htdig-3.1.6-r8.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-misc/htdig/htdig-3.1.6-r8.ebuild,v 1.1 2006/05/01 13:42:02 rl03 Exp $ - -inherit eutils flag-o-matic - -DESCRIPTION="HTTP/HTML indexing and searching system" -SRC_URI="http://www.htdig.org/files/${P}.tar.gz" -HOMEPAGE="http://www.htdig.org" -KEYWORDS="~x86 ~sparc ~ppc ~mips ~amd64" -LICENSE="GPL-2" - -DEPEND=">=sys-libs/zlib-1.1.3 - app-arch/unzip" - -SLOT="0" - -IUSE="ssl" - -export CPPFLAGS="${CPPFLAGS} -Wno-deprecated" - -src_unpack() { - unpack ${A} - cd ${S} - - # security bug 80602 - epatch ${FILESDIR}/${P}-unescaped-output.diff - - use ssl && epatch ${FILESDIR}/${PV}-ssl.patch -} - -src_compile() { - append-flags -Wno-deprecated - - econf \ - --with-config-dir=/etc/${PN} \ - --with-default-config-file=/etc/${PN}/${PN}.conf \ - --with-database-dir=/var/lib/${PN}/db \ - --with-cgi-bin-dir=/var/www/localhost/cgi-bin \ - --with-search-dir=/var/www/localhost/htdocs/${PN} \ - --with-image-dir=/var/www/localhost/htdocs/${PN} \ - --with-image-url-prefix=file:///var/www/localhost/htdocs/${PN} \ - || die "configure failed" - - emake || die "emake failed" -} - -src_install () { - # einstall is required here - einstall \ - SEARCH_DIR="${D}/var/www/localhost/htdocs/${PN}" \ - CGIBIN_DIR="${D}/var/www/localhost/cgi-bin" \ - IMAGE_DIR="${D}/var/www/localhost/htdocs/${PN}" - - dodoc ChangeLog COPYING README - dohtml -r htdoc - - dosed /etc/${PN}/${PN}.conf - dosed /usr/bin/rundig - - # symlink htsearch so it can be easily found. see bug #62087 - dosym /var/www/localhost/cgi-bin/htsearch /usr/bin/htsearch -} diff --git a/www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild b/www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild index 01225ba645bf..5ff8f345125f 100644 --- a/www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild +++ b/www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild,v 1.7 2007/12/04 19:46:11 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild,v 1.8 2009/12/13 21:57:34 abcd Exp $ inherit eutils autotools @@ -8,40 +8,37 @@ MY_PV=${PV/_beta/b} S=${WORKDIR}/${PN}-${MY_PV} DESCRIPTION="HTTP/HTML indexing and searching system" -SRC_URI="http://www.htdig.org/files/${PN}-${MY_PV}.tar.gz" HOMEPAGE="http://www.htdig.org" -KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" +SRC_URI="http://www.htdig.org/files/${PN}-${MY_PV}.tar.gz" + LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="ssl" DEPEND=">=sys-libs/zlib-1.1.3 app-arch/unzip ssl? ( dev-libs/openssl )" -IUSE="ssl" -SLOT="0" - src_unpack() { - unpack "${A}" + unpack ${A} cd "${S}" - epatch "${FILESDIR}/${P}"-gcc4.patch - epatch "${FILESDIR}/${P}"-as-needed.patch - epatch "${FILESDIR}/${P}"-quoting.patch + epatch "${FILESDIR}"/${P}-gcc4.patch + epatch "${FILESDIR}"/${P}-as-needed.patch + epatch "${FILESDIR}"/${P}-quoting.patch eautoreconf } src_compile() { - local conf=" + econf \ --with-config-dir=/etc/${PN} \ --with-default-config-file=/etc/${PN}/${PN}.conf \ --with-database-dir=/var/lib/${PN}/db \ --with-cgi-bin-dir=/var/www/localhost/cgi-bin \ --with-search-dir=/var/www/localhost/htdocs/${PN} \ - --with-image-dir=/var/www/localhost/htdocs/${PN} - " - use ssl && conf="${conf} --with-ssl" - - econf ${conf} || die "configure failed" + --with-image-dir=/var/www/localhost/htdocs/${PN} \ + $(use_with ssl) # --with-image-url-prefix=file:///var/www/localhost/htdocs/${PN} \ @@ -54,9 +51,11 @@ src_install () { dodoc ChangeLog README dohtml -r htdoc - dosed /etc/${PN}/${PN}.conf - dosed /usr/bin/rundig + sed -i "s:${D}::g" \ + "${D}"/etc/${PN}/${PN}.conf \ + "${D}"/usr/bin/rundig \ + || die "sed failed (removing \${D} from installed files)" # symlink htsearch so it can be easily found. see bug #62087 - dosym /var/www/localhost/cgi-bin/htsearch /usr/bin/htsearch + dosym ../../var/www/localhost/cgi-bin/htsearch /usr/bin/htsearch } |