diff options
author | Jon Hood <squinky86@gentoo.org> | 2004-09-17 16:52:53 +0000 |
---|---|---|
committer | Jon Hood <squinky86@gentoo.org> | 2004-09-17 16:52:53 +0000 |
commit | 0ebf43dea57bb755062631ecdf4609c52a5ad0e3 (patch) | |
tree | e4054a9e698959951e1b0baaf5f85528107d0347 /net-p2p | |
parent | ignore global classpath (Manifest recommit) (diff) | |
download | gentoo-2-0ebf43dea57bb755062631ecdf4609c52a5ad0e3.tar.gz gentoo-2-0ebf43dea57bb755062631ecdf4609c52a5ad0e3.tar.bz2 gentoo-2-0ebf43dea57bb755062631ecdf4609c52a5ad0e3.zip |
Initial import, #64188.
Diffstat (limited to 'net-p2p')
20 files changed, 275 insertions, 0 deletions
diff --git a/net-p2p/gwebcache/ChangeLog b/net-p2p/gwebcache/ChangeLog new file mode 100644 index 000000000000..33e861efe86c --- /dev/null +++ b/net-p2p/gwebcache/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-p2p/gwebcache +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/gwebcache/ChangeLog,v 1.1 2004/09/17 16:51:00 squinky86 Exp $ + +*gwebcache-1.0.0 (17 Sep 2004) + + 17 Sep 2004; Jon Hood <squinky86@gentoo.org> +metadata.xml, + +files/postinstall-en.txt, +gwebcache-1.0.0.ebuild: + Initial import, #64188. + diff --git a/net-p2p/gwebcache/Manifest b/net-p2p/gwebcache/Manifest new file mode 100644 index 000000000000..d03efcc169ba --- /dev/null +++ b/net-p2p/gwebcache/Manifest @@ -0,0 +1,2 @@ +MD5 ba9a1104a226efd50fd4330fb6f13eee gwebcache-1.0.0.ebuild 1121 +MD5 0cd4b01600e827495b84be5d7ba95116 files/digest-gwebcache-1.0.0 63 diff --git a/net-p2p/gwebcache/files/digest-gwebcache-1.0.0 b/net-p2p/gwebcache/files/digest-gwebcache-1.0.0 new file mode 100644 index 000000000000..93cf9dd75d78 --- /dev/null +++ b/net-p2p/gwebcache/files/digest-gwebcache-1.0.0 @@ -0,0 +1 @@ +MD5 270352c5c12acb9acfaef76925efccbb gwebcache-1.0.0.zip 13948 diff --git a/net-p2p/gwebcache/files/postinstall-en.txt b/net-p2p/gwebcache/files/postinstall-en.txt new file mode 100644 index 000000000000..49f1919bbfc3 --- /dev/null +++ b/net-p2p/gwebcache/files/postinstall-en.txt @@ -0,0 +1,10 @@ +It is strongly recommended that you use a vhost for this +package so that it is easier to remove when you chose to. +Only use this package if you know what you're getting into! +Once you have ${PN} set up, enter its url into: + http://gwebcache.squinky.gotdns.com/ +so that the other servers can index it. + +WARNING: THIS PACKAGE IS KNOWN TO GET MANY HITS PER SECOND! +It is recommended that you install this package only on +machines faster than 1 GHz. diff --git a/net-p2p/gwebcache/gwebcache-1.0.0.ebuild b/net-p2p/gwebcache/gwebcache-1.0.0.ebuild new file mode 100644 index 000000000000..836cc9e88a86 --- /dev/null +++ b/net-p2p/gwebcache/gwebcache-1.0.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/gwebcache/gwebcache-1.0.0.ebuild,v 1.1 2004/09/17 16:51:00 squinky86 Exp $ + +inherit webapp + +DESCRIPTION="web-based distributed host caching system for the gnutella network" +HOMEPAGE="http://www.gnucleus.com/gwebcache/" +SRC_URI="http://www.gnucleus.com/gwebcache/dist/${P}.zip" +LICENSE="GPL-2" +IUSE="" +KEYWORDS="~x86" + +DEPEND=">=app-arch/unzip-5.42-r1" +RDEPEND=">=net-www/apache-1.3.24-r1 + >=dev-lang/perl-5.6.0 + >=dev-perl/CGI-2.93" + +pkg_preinst() { + webapp_src_preinst + ewarn "Only install this package if you know what you're doing!" + ewarn "YOU HAVE BEEN WARNED: while using this package benefits the" + ewarn "gnutella network, it will cause many gnutella users to" + ewarn "connect to your web server, requiring many system resources." +} + +src_install() { + webapp_src_preinst + dodoc license.txt + dodir ${MY_CGIBINDIR}/${PN} + cp ./g* ${D}/${MY_CGIBINDIR}/${PN} + chmod +x ${D}/${MY_CGIBINDIR}/${PN}/gcache.cgi + chmod 666 ${D}/${MY_CGIBINDIR}/${PN}/gdata.dat* ${D}/${MY_CGIBINDIR}/${PN}/gstatlog.txt + webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt + webapp_src_install +} diff --git a/net-p2p/gwebcache/metadata.xml b/net-p2p/gwebcache/metadata.xml new file mode 100644 index 000000000000..30aca20a6a4f --- /dev/null +++ b/net-p2p/gwebcache/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-p2p</herd> +<herd>web-apps</herd> +<maintainer> + <email>squinky86@gentoo.org</email> + <name>Jon Hood</name> +</maintainer> +</pkgmetadata> diff --git a/net-p2p/perlgcache/ChangeLog b/net-p2p/perlgcache/ChangeLog new file mode 100644 index 000000000000..cf44c0583cf6 --- /dev/null +++ b/net-p2p/perlgcache/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-p2p/perlgcache +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/perlgcache/ChangeLog,v 1.1 2004/09/17 16:51:49 squinky86 Exp $ + +*perlgcache-0.7.9 (17 Sep 2004) + + 17 Sep 2004; Jon Hood <squinky86@gentoo.org> +metadata.xml, + +files/postinstall-en.txt, +perlgcache-0.7.9.ebuild: + Initial import, #64188. + diff --git a/net-p2p/perlgcache/Manifest b/net-p2p/perlgcache/Manifest new file mode 100644 index 000000000000..ea6cff171ea1 --- /dev/null +++ b/net-p2p/perlgcache/Manifest @@ -0,0 +1,2 @@ +MD5 ef6265cf5098a057800c657e42a711a3 perlgcache-0.7.9.ebuild 1248 +MD5 373539db89cbc3c2b82563eaf33558b0 files/digest-perlgcache-0.7.9 67 diff --git a/net-p2p/perlgcache/files/digest-perlgcache-0.7.9 b/net-p2p/perlgcache/files/digest-perlgcache-0.7.9 new file mode 100644 index 000000000000..510da3540dea --- /dev/null +++ b/net-p2p/perlgcache/files/digest-perlgcache-0.7.9 @@ -0,0 +1 @@ +MD5 8a45babe13d12de5c56a852f0f5f9931 perlgcache-0.7.9.tar.gz 13518 diff --git a/net-p2p/perlgcache/files/postinstall-en.txt b/net-p2p/perlgcache/files/postinstall-en.txt new file mode 100644 index 000000000000..49f1919bbfc3 --- /dev/null +++ b/net-p2p/perlgcache/files/postinstall-en.txt @@ -0,0 +1,10 @@ +It is strongly recommended that you use a vhost for this +package so that it is easier to remove when you chose to. +Only use this package if you know what you're getting into! +Once you have ${PN} set up, enter its url into: + http://gwebcache.squinky.gotdns.com/ +so that the other servers can index it. + +WARNING: THIS PACKAGE IS KNOWN TO GET MANY HITS PER SECOND! +It is recommended that you install this package only on +machines faster than 1 GHz. diff --git a/net-p2p/perlgcache/metadata.xml b/net-p2p/perlgcache/metadata.xml new file mode 100644 index 000000000000..30aca20a6a4f --- /dev/null +++ b/net-p2p/perlgcache/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-p2p</herd> +<herd>web-apps</herd> +<maintainer> + <email>squinky86@gentoo.org</email> + <name>Jon Hood</name> +</maintainer> +</pkgmetadata> diff --git a/net-p2p/perlgcache/perlgcache-0.7.9.ebuild b/net-p2p/perlgcache/perlgcache-0.7.9.ebuild new file mode 100644 index 000000000000..7a672960fe67 --- /dev/null +++ b/net-p2p/perlgcache/perlgcache-0.7.9.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/perlgcache/perlgcache-0.7.9.ebuild,v 1.1 2004/09/17 16:51:49 squinky86 Exp $ + +inherit webapp + +DESCRIPTION="web-based distributed host caching system for the gnutella network" +HOMEPAGE="http://www.jonatkins.com/perlgcache/" +SRC_URI="http://www.jonatkins.com/perlgcache/${P}.tar.gz" +LICENSE="as-is" +IUSE="" +KEYWORDS="~x86" + +DEPEND=">=sys-apps/sed-4" +RDEPEND=">=net-www/apache-1.3.24-r1 + >=dev-lang/perl-5.6.0 + >=dev-perl/CGI-2.93" + +S=${WORKDIR} + +pkg_preinst() { + webapp_src_preinst + ewarn "Only install this package if you know what you're doing!" + ewarn "YOU HAVE BEEN WARNED: while using this package benefits the" + ewarn "gnutella network, it will cause many gnutella users to" + ewarn "connect to your web server, requiring many system resources." +} + +src_unpack() { + unpack ${A} + cd ${S} + sed -i -e 's:\"data\":\"data/data\":g' perlgcache.cgi +} + +src_install() { + webapp_src_preinst + dodir ${MY_CGIBINDIR}/${PN} + dodir ${MY_CGIBINDIR}/${PN}/data + cp ./perlgcache.cgi ${D}/${MY_CGIBINDIR}/${PN} + chmod +x ${D}/${MY_CGIBINDIR}/${PN}/perlgcache.cgi + keepdir ${D}/${MY_CGIBINDIR}/${PN}/data + webapp_hook_script ${FILESDIR}/reconfig + webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt + webapp_src_install +} diff --git a/net-p2p/phpgnucacheii/ChangeLog b/net-p2p/phpgnucacheii/ChangeLog new file mode 100644 index 000000000000..882cca36b099 --- /dev/null +++ b/net-p2p/phpgnucacheii/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-p2p/phpgnucacheii +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/phpgnucacheii/ChangeLog,v 1.1 2004/09/17 16:52:53 squinky86 Exp $ + +*phpgnucacheii-2.1.1 (17 Sep 2004) + + 17 Sep 2004; Jon Hood <squinky86@gentoo.org> +files/confightaccess, + +files/expert.phpgnucacheii.schema, +files/postinstall-en.txt, + +phpgnucacheii-2.1.1.ebuild, +metadata.xml: + Initial import, #64188. + diff --git a/net-p2p/phpgnucacheii/Manifest b/net-p2p/phpgnucacheii/Manifest new file mode 100644 index 000000000000..5cffa494d2aa --- /dev/null +++ b/net-p2p/phpgnucacheii/Manifest @@ -0,0 +1,2 @@ +MD5 7975e2eb6ee9322fdd8e18fc63e5f928 phpgnucacheii-2.1.1.ebuild 2126 +MD5 edf2f90308c3d97bfe06c91e632ea318 files/digest-phpgnucacheii-2.1.1 70 diff --git a/net-p2p/phpgnucacheii/files/confightaccess b/net-p2p/phpgnucacheii/files/confightaccess new file mode 100644 index 000000000000..3a4288278871 --- /dev/null +++ b/net-p2p/phpgnucacheii/files/confightaccess @@ -0,0 +1 @@ +Deny from all diff --git a/net-p2p/phpgnucacheii/files/digest-phpgnucacheii-2.1.1 b/net-p2p/phpgnucacheii/files/digest-phpgnucacheii-2.1.1 new file mode 100644 index 000000000000..5b8122d3c6d0 --- /dev/null +++ b/net-p2p/phpgnucacheii/files/digest-phpgnucacheii-2.1.1 @@ -0,0 +1 @@ +MD5 55435f794e346479c4bfddef4c72613d phpgnucacheii-2.1.1.tar.gz 22656 diff --git a/net-p2p/phpgnucacheii/files/expert.phpgnucacheii.schema b/net-p2p/phpgnucacheii/files/expert.phpgnucacheii.schema new file mode 100644 index 000000000000..ac01b9bf3228 --- /dev/null +++ b/net-p2p/phpgnucacheii/files/expert.phpgnucacheii.schema @@ -0,0 +1,34 @@ +CREATE TABLE `stats` ( + `sid` int(11) NOT NULL auto_increment, + `up_req` tinyint(4) default NULL, + `client` char(4) default NULL, + `c_ver` char(16) default NULL, + `time` datetime default NULL, + `c_total` bigint(20) default NULL, + `total` bigint(20) default NULL, + PRIMARY KEY (`sid`), + KEY `client_s` (`client`,`c_ver`), + KEY `time_s` (`time`), + KEY `total_s` (`c_total`,`total`) +) TYPE=MyISAM DELAY_KEY_WRITE=1; + + +CREATE TABLE `host` ( + `hid` int(11) NOT NULL auto_increment, + `ip` char(21) default NULL, + `url` char(255) default NULL, + `submitted` datetime NOT NULL default '0000-00-00 00:00:00', + `network` char(20) NOT NULL default '', + PRIMARY KEY (`hid`), + KEY `host_ip` (`ip`), + KEY `host_url` (`url`), + KEY `host_date` (`submitted`), + KEY `host_net` (`network`) +) TYPE=MyISAM DELAY_KEY_WRITE=1; + +CREATE TABLE `clients` ( + `client` char(4) NOT NULL, + `description` varchar(255) NOT NULL, + `url` varchar(255) NOT NULL, + PRIMARY KEY (`client`) +) TYPE=MyISAM DELAY_KEY_WRITE=1; diff --git a/net-p2p/phpgnucacheii/files/postinstall-en.txt b/net-p2p/phpgnucacheii/files/postinstall-en.txt new file mode 100644 index 000000000000..49f1919bbfc3 --- /dev/null +++ b/net-p2p/phpgnucacheii/files/postinstall-en.txt @@ -0,0 +1,10 @@ +It is strongly recommended that you use a vhost for this +package so that it is easier to remove when you chose to. +Only use this package if you know what you're getting into! +Once you have ${PN} set up, enter its url into: + http://gwebcache.squinky.gotdns.com/ +so that the other servers can index it. + +WARNING: THIS PACKAGE IS KNOWN TO GET MANY HITS PER SECOND! +It is recommended that you install this package only on +machines faster than 1 GHz. diff --git a/net-p2p/phpgnucacheii/metadata.xml b/net-p2p/phpgnucacheii/metadata.xml new file mode 100644 index 000000000000..30aca20a6a4f --- /dev/null +++ b/net-p2p/phpgnucacheii/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-p2p</herd> +<herd>web-apps</herd> +<maintainer> + <email>squinky86@gentoo.org</email> + <name>Jon Hood</name> +</maintainer> +</pkgmetadata> diff --git a/net-p2p/phpgnucacheii/phpgnucacheii-2.1.1.ebuild b/net-p2p/phpgnucacheii/phpgnucacheii-2.1.1.ebuild new file mode 100644 index 000000000000..8b92422f42d1 --- /dev/null +++ b/net-p2p/phpgnucacheii/phpgnucacheii-2.1.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/phpgnucacheii/phpgnucacheii-2.1.1.ebuild,v 1.1 2004/09/17 16:52:53 squinky86 Exp $ + +inherit webapp + +DESCRIPTION="web-based distributed host caching system for the gnutella network" +HOMEPAGE="http://gwcii.sourceforge.net/" +SRC_URI="mirror://sourceforge/gwcii/${P}.tar.gz" +LICENSE="GPL-2" +IUSE="" +KEYWORDS="~x86" + +S=${WORKDIR}/${PN} + +RDEPEND=">=net-www/apache-1.3.24-r1 + >=dev-php/mod_php-4.3 + >=dev-db/mysql-4" + +pkg_preinst() { + webapp_src_preinst + ewarn "Only install this package if you know what you're doing!" + ewarn "YOU HAVE BEEN WARNED: while using this package benefits the" + ewarn "gnutella network, it will cause many gnutella users to" + ewarn "connect to your web server, requiring many system resources." +} + +src_install() { + webapp_src_preinst + cp -a gwcii.php expert.phpgnucacheii.schema phpgnucacheii.schema config "${D}/${MY_HTDOCSDIR}" + cp ${FILESDIR}/confightaccess ${D}/${MY_HTDOCSDIR}/config/.htaccess + webapp_configfile ${MY_HTDOCSDIR}/config/.htaccess + dodoc README CHANGELOG + webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt + webapp_src_install +} + +pkg_postinst() { + webapp_pkg_postinst + einfo "To set up the mysql tables for this package, please run:" + einfo "\tebuild /var/db/pkg/net-p2p/${P}/${P}.ebuild config" +} + +pkg_config() { + echo + einfo "Creating database for your cache..." + echo -n "Please enter your mysql root password (will be displayed): " + read mysql_root + einfo "Creating the \"gcache\" database..." + /usr/bin/mysqladmin -p$mysql_root -u root create gcache + /usr/bin/mysql -p$mysql_root -u root gcache < ${FILESDIR}/expert.phpgnucacheii.schema + echo -n "Please enter your username that you want to connect to the database with: " + read user + echo -n "Please enter the password that you want to use for your database: " + read password + einfo "Granting permisions on database using 'GRANT ALL ON gcache.* TO $user IDENTIFIED BY '$password';'" + echo "GRANT ALL ON gcache.* TO $user@localhost IDENTIFIED BY '$password';" | /usr/bin/mysql -p$mysql_root -u root gcache + ewarn "You must now edit the config/config.inc file to connect to the database." +} |