summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2003-12-14 09:58:06 +0000
committerStuart Herbert <stuart@gentoo.org>2003-12-14 09:58:06 +0000
commit45e7b008a76ecb60182e847540a3db4454eeca16 (patch)
tree7acd6e119f12441d3ed7c62dc4289cfa62008c5c /dev-util/perforce-proxy
parentInitial import (diff)
downloadgentoo-2-45e7b008a76ecb60182e847540a3db4454eeca16.tar.gz
gentoo-2-45e7b008a76ecb60182e847540a3db4454eeca16.tar.bz2
gentoo-2-45e7b008a76ecb60182e847540a3db4454eeca16.zip
Initial import
Diffstat (limited to 'dev-util/perforce-proxy')
-rw-r--r--dev-util/perforce-proxy/ChangeLog10
-rw-r--r--dev-util/perforce-proxy/Manifest4
-rw-r--r--dev-util/perforce-proxy/files/digest-perforce-proxy-2003.11
-rw-r--r--dev-util/perforce-proxy/files/perforce-proxy-2003.1/conf.d/perforce-proxy6
-rw-r--r--dev-util/perforce-proxy/files/perforce-proxy-2003.1/init.d/perforce-proxy35
-rw-r--r--dev-util/perforce-proxy/metadata.xml8
-rw-r--r--dev-util/perforce-proxy/perforce-proxy-2003.1.ebuild50
7 files changed, 113 insertions, 1 deletions
diff --git a/dev-util/perforce-proxy/ChangeLog b/dev-util/perforce-proxy/ChangeLog
new file mode 100644
index 000000000000..95dc7bfe1cec
--- /dev/null
+++ b/dev-util/perforce-proxy/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-util/perforce-gui
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/perforce-proxy/ChangeLog,v 1.1 2003/12/14 09:58:01 stuart Exp $
+
+*perforce-gui-2003.1 (14 Dec 2003)
+
+ 14 Dec 2003; Stuart Herbert <stuart@gentoo.org> metadata.xml,
+ perforce-gui-2003.1.ebuild:
+ Initial import; closes bug #19586. Thanks to Ben Calvert
+ (ben@stonehenge-net.com) for an example ebuild
diff --git a/dev-util/perforce-proxy/Manifest b/dev-util/perforce-proxy/Manifest
index 47b9b02e961e..e0d9a8419125 100644
--- a/dev-util/perforce-proxy/Manifest
+++ b/dev-util/perforce-proxy/Manifest
@@ -1,4 +1,6 @@
MD5 d3e875329af017162705197f60e11b9f perforce-proxy-2003.1.ebuild 1139
+MD5 5fe7aec100e144349bacf6d9f4ec9c14 ChangeLog 464
+MD5 71da003bb2109fed15aff6635287c6a6 metadata.xml 222
MD5 ae258be7d58f712f991a3bf2bacaa621 files/digest-perforce-proxy-2003.1 48
MD5 49ae77911e5fb6af6fbeb5f061f418bf files/perforce-proxy-2003.1/conf.d/perforce-proxy 219
-MD5 0ba9cf65d964854ae0930bfb39cb8e1f files/perforce-proxy-2003.1/init.d/perforce-proxy 974
+MD5 df4b6dfe2be4271957ad8e34d02a6238 files/perforce-proxy-2003.1/init.d/perforce-proxy 992
diff --git a/dev-util/perforce-proxy/files/digest-perforce-proxy-2003.1 b/dev-util/perforce-proxy/files/digest-perforce-proxy-2003.1
new file mode 100644
index 000000000000..84057e2c76e5
--- /dev/null
+++ b/dev-util/perforce-proxy/files/digest-perforce-proxy-2003.1
@@ -0,0 +1 @@
+MD5 94cfb794b2d5727ee4c5c961cc46b87d p4p 580033
diff --git a/dev-util/perforce-proxy/files/perforce-proxy-2003.1/conf.d/perforce-proxy b/dev-util/perforce-proxy/files/perforce-proxy-2003.1/conf.d/perforce-proxy
new file mode 100644
index 000000000000..016903c3fbda
--- /dev/null
+++ b/dev-util/perforce-proxy/files/perforce-proxy-2003.1/conf.d/perforce-proxy
@@ -0,0 +1,6 @@
+# Config file for /etc/init.d/perforce
+#
+# You *must* change the 'localhost:1666' to point to the p4d that
+# you want to proxy
+
+P4P="-q -p 1999 -r /var/cache/perforce-proxy -t localhost:1666 -L /var/log/perforce-proxy"
diff --git a/dev-util/perforce-proxy/files/perforce-proxy-2003.1/init.d/perforce-proxy b/dev-util/perforce-proxy/files/perforce-proxy-2003.1/init.d/perforce-proxy
new file mode 100644
index 000000000000..fbd4c6acdb10
--- /dev/null
+++ b/dev-util/perforce-proxy/files/perforce-proxy-2003.1/init.d/perforce-proxy
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/dev-util/perforce-proxy/files/perforce-proxy-2003.1/init.d/perforce-proxy,v 1.1 2003/12/14 09:58:01 stuart Exp $
+#
+# NB: Configuration is in /etc/conf.d/perforce-proxy
+
+PIDFILE=/var/run/p4d.pid
+
+depend() {
+ need net
+}
+
+
+start() {
+ ebegin "Starting Perforce SCM Proxy"
+ # make sure they can't break our startup by passing -d (which would
+ # cause incorrect PID to be written to pidfile), or the incorrect
+ # depot root
+ P4P="`echo ${P4P} | sed -e 's#-d##' -e 's#-r [^[:space:]]*##'`"
+ start-stop-daemon --start --quiet --chuid perforce:perforce \
+ --exec /usr/sbin/p4p \
+ -- ${P4P} -d
+ eend $?
+
+}
+
+stop() {
+ ebegin "Stopping Perforce SCM Proxy"
+ if ( ps -C p4d | grep 'p4p' > /dev/null )
+ then
+ killall p4d
+ fi
+ eend $?
+}
diff --git a/dev-util/perforce-proxy/metadata.xml b/dev-util/perforce-proxy/metadata.xml
new file mode 100644
index 000000000000..71d7ba9c0605
--- /dev/null
+++ b/dev-util/perforce-proxy/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>stuart@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/perforce-proxy/perforce-proxy-2003.1.ebuild b/dev-util/perforce-proxy/perforce-proxy-2003.1.ebuild
new file mode 100644
index 000000000000..e33f584a4479
--- /dev/null
+++ b/dev-util/perforce-proxy/perforce-proxy-2003.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Proxy daemon for a commercial version control system"
+HOMEPAGE="http://www.perforce.com/"
+URI_BASE="ftp://ftp.perforce.com/perforce/r03.1/"
+BIN_BASE="$URI_BASE/bin.linux24x86"
+DOC_BASE="$URI_BASE/doc"
+SRC_URI="${BIN_BASE}/p4p"
+LICENSE="perforce.pdf"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+DEPEND="virtual/glibc"
+#RDEPEND=""
+S=${WORKDIR}
+RESTRICT="nomirror nostrip"
+MY_FILES=$FILESDIR/perforce-2003.1/
+
+src_unpack ()
+{
+ # we have to copy all of the files from $DISTDIR, otherwise we get
+ # sandbox violations when trying to install
+
+ for x in p4p ; do
+ cp ${DISTDIR}/$x .
+ done
+}
+
+src_install()
+{
+ enewuser perforce
+ enewgroup perforce
+
+ dosbin p4p
+
+ fowners perforce:perforce /usr/sbin/p4p
+
+ mkdir -p ${D}/var/log
+ touch ${D}/var/log/perforce-proxy
+ fowners perforce:perforce /var/log/perforce-proxy
+
+ keepdir /var/cache/perforce-proxy
+ fowners perforce:perforce /var/cache/perforce-proxy
+
+ exeinto /etc/init.d
+ doexe ${MY_FILES}/init.d/perforce-proxy
+ insinto /etc/conf.d
+ doins ${MY_FILES}/conf.d/perforce-proxy
+}