initial import
authorJon Hood <squinky86@gentoo.org>
Thu, 25 Nov 2004 00:35:10 +0000 (00:35 +0000)
committerJon Hood <squinky86@gentoo.org>
Thu, 25 Nov 2004 00:35:10 +0000 (00:35 +0000)
net-p2p/ghostwhitecrab/ChangeLog [new file with mode: 0644]
net-p2p/ghostwhitecrab/Manifest [new file with mode: 0644]
net-p2p/ghostwhitecrab/files/digest-ghostwhitecrab-0.9.1 [new file with mode: 0644]
net-p2p/ghostwhitecrab/files/gwc.init [new file with mode: 0644]
net-p2p/ghostwhitecrab/ghostwhitecrab-0.9.1.ebuild [new file with mode: 0644]
net-p2p/ghostwhitecrab/metadata.xml [new file with mode: 0644]

diff --git a/net-p2p/ghostwhitecrab/ChangeLog b/net-p2p/ghostwhitecrab/ChangeLog
new file mode 100644 (file)
index 0000000..8be16d7
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for net-p2p/ghostwhitecrab
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/ghostwhitecrab/ChangeLog,v 1.1 2004/11/25 00:35:10 squinky86 Exp $
+
+*ghostwhitecrab-0.9.1 (24 Nov 2004)
+
+  24 Nov 2004; Jon Hood <squinky86@gentoo.org> +metadata.xml,
+  +files/gwc.init, +ghostwhitecrab-0.9.1.ebuild:
+  Initial import, ebuild by me.
+
diff --git a/net-p2p/ghostwhitecrab/Manifest b/net-p2p/ghostwhitecrab/Manifest
new file mode 100644 (file)
index 0000000..59b25d3
--- /dev/null
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 b1e5bbfaa693938f49059e68135ab170 ChangeLog 401
+MD5 da6649c6cd52477de0db1ccff6d5401b metadata.xml 247
+MD5 a42f7db9b53f140c5d5b5aa77db616ac ghostwhitecrab-0.9.1.ebuild 1917
+MD5 0d3ad4300c554fadb5508ce8b8bb8dd4 files/digest-ghostwhitecrab-0.9.1 62
+MD5 c03b01a8867a131e348d42fbeffde6f5 files/gwc.init 522
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFBpSjEcAgAdbxYsnERAn1LAJ9l1lZsVp8SFVQY1sSTVH6d+CsjYACcCUu5
+WCyg5KT1ILDXaMup8c1AQUI=
+=35On
+-----END PGP SIGNATURE-----
diff --git a/net-p2p/ghostwhitecrab/files/digest-ghostwhitecrab-0.9.1 b/net-p2p/ghostwhitecrab/files/digest-ghostwhitecrab-0.9.1
new file mode 100644 (file)
index 0000000..f7cbff5
--- /dev/null
@@ -0,0 +1 @@
+MD5 fab8521ffa69c95907cb2ca338e0cae6 gwc-0.9.1.tar.bz2 113897
diff --git a/net-p2p/ghostwhitecrab/files/gwc.init b/net-p2p/ghostwhitecrab/files/gwc.init
new file mode 100644 (file)
index 0000000..89002f1
--- /dev/null
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/ghostwhitecrab/files/gwc.init,v 1.1 2004/11/25 00:35:10 squinky86 Exp $
+
+depend() {
+       need net
+}
+
+start() {
+       ebegin "Starting GhostWhiteCrab"
+       start-stop-daemon --start --quiet --background \
+               --exec /usr/bin/gwc -- -f /etc/ghostwhitecrab/gwc.conf
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping GhostWhiteCrab"
+       start-stop-daemon --stop -u gwc -n gwc
+       eend $?
+}
diff --git a/net-p2p/ghostwhitecrab/ghostwhitecrab-0.9.1.ebuild b/net-p2p/ghostwhitecrab/ghostwhitecrab-0.9.1.ebuild
new file mode 100644 (file)
index 0000000..9934036
--- /dev/null
@@ -0,0 +1,68 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/ghostwhitecrab/ghostwhitecrab-0.9.1.ebuild,v 1.1 2004/11/25 00:35:10 squinky86 Exp $
+
+inherit eutils
+
+IUSE=""
+
+MY_P="gwc-${PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="stand-alone gwebcache daemon"
+HOMEPAGE="http://www.ghostwhitecrab.com/crab/"
+SRC_URI="http://www.ghostwhitecrab.com/crab/${MY_P}.tar.bz2"
+LICENSE="as-is FDL-1.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=sys-apps/sed-4
+       sys-libs/zlib
+       virtual/libc"
+RDEPEND=""
+
+pkg_setup() {
+       enewgroup gwc
+       enewuser gwc -1 /bin/bash /dev/null gwc
+}
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       sed -i -e 's:#User:User:g' examples/example.conf
+       sed -i -e 's:#Group:Group:g' examples/example.conf
+       sed -i -e 's:/var/db/gwc:/usr/share/gwc:g' examples/example.conf
+       sed -i -e 's:#data_template\t\t/path/to/data_template:data_template\t\t/usr/share/gwc/data_template:g' examples/example.conf
+       sed -i -e 's:#base_template\t\t/path/to/base_template:base_template\t\t/usr/share/gwc/base_template:g' examples/example.conf
+       sed -i -e 's:sleep 1::g' config.sh
+}
+
+src_compile() {
+       ./config.sh || die
+       emake || die
+}
+
+src_install() {
+       dobin src/gwc
+       dodir /etc/${PN}
+       insinto /etc/${PN}
+       newins examples/example.conf gwc.conf
+       dodir /usr/share/gwc
+       touch ${D}/usr/share/gwc/peer_cache
+       touch ${D}/usr/share/gwc/urls.good
+       touch ${D}/usr/share/gwc/urls.bad
+       insinto /usr/share/gwc
+       newins examples/data_html.template data_template
+       newins examples/base_html.template base_template
+       chown -R gwc:gwc ${D}/usr/share/gwc
+       dodir /var/log/gwc
+       touch ${D}/var/log/gwc/main.log
+       touch ${D}/var/log/gwc/access.log
+       touch ${D}/var/log/gwc/dns.log
+       touch ${D}/var/log/gwc/checks.log
+       chown -R gwc:gwc ${D}/var/log/gwc
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/gwc.init gwc
+       dohtml doc/*.html doc/*.css doc/specs/*.html
+       dodoc doc/specs/*.txt examples/*
+}
diff --git a/net-p2p/ghostwhitecrab/metadata.xml b/net-p2p/ghostwhitecrab/metadata.xml
new file mode 100644 (file)
index 0000000..ee5657f
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-p2p</herd>
+<maintainer>
+       <email>squinky86@gentoo.org</email>
+       <name>Jon Hood</name>
+</maintainer>
+</pkgmetadata>