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/phpgnucacheii | |
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/phpgnucacheii')
-rw-r--r-- | net-p2p/phpgnucacheii/ChangeLog | 11 | ||||
-rw-r--r-- | net-p2p/phpgnucacheii/Manifest | 2 | ||||
-rw-r--r-- | net-p2p/phpgnucacheii/files/confightaccess | 1 | ||||
-rw-r--r-- | net-p2p/phpgnucacheii/files/digest-phpgnucacheii-2.1.1 | 1 | ||||
-rw-r--r-- | net-p2p/phpgnucacheii/files/expert.phpgnucacheii.schema | 34 | ||||
-rw-r--r-- | net-p2p/phpgnucacheii/files/postinstall-en.txt | 10 | ||||
-rw-r--r-- | net-p2p/phpgnucacheii/metadata.xml | 10 | ||||
-rw-r--r-- | net-p2p/phpgnucacheii/phpgnucacheii-2.1.1.ebuild | 59 |
8 files changed, 128 insertions, 0 deletions
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." +} |