summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-04-18 18:52:50 +0000
committerStuart Herbert <stuart@gentoo.org>2004-04-18 18:52:50 +0000
commitbf3bd55cbaea2f4e2f167df52ade9e1cf28a68bb (patch)
treebdd05b135fa3b8a042911c1c1f7cf501b91e931e /dev-util/perforce-server
parentfixes #48222. SRC_URI change (Manifest recommit) (diff)
downloadgentoo-2-bf3bd55cbaea2f4e2f167df52ade9e1cf28a68bb.tar.gz
gentoo-2-bf3bd55cbaea2f4e2f167df52ade9e1cf28a68bb.tar.bz2
gentoo-2-bf3bd55cbaea2f4e2f167df52ade9e1cf28a68bb.zip
Added missing startup files
Diffstat (limited to 'dev-util/perforce-server')
-rw-r--r--dev-util/perforce-server/ChangeLog8
-rw-r--r--dev-util/perforce-server/Manifest5
-rw-r--r--dev-util/perforce-server/files/perforce-2003.2/50perforce3
-rw-r--r--dev-util/perforce-server/files/perforce-2003.2/conf.d/perforce3
-rw-r--r--dev-util/perforce-server/files/perforce-2003.2/init.d/perforce35
-rw-r--r--dev-util/perforce-server/perforce-server-2003.2.ebuild2
6 files changed, 53 insertions, 3 deletions
diff --git a/dev-util/perforce-server/ChangeLog b/dev-util/perforce-server/ChangeLog
index 18681a4cd8a6..d1841cbafde4 100644
--- a/dev-util/perforce-server/ChangeLog
+++ b/dev-util/perforce-server/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/perforce-server
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/perforce-server/ChangeLog,v 1.1 2004/04/18 18:45:21 stuart Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/perforce-server/ChangeLog,v 1.2 2004/04/18 18:52:50 stuart Exp $
+
+ 18 Apr 2004; Stuart Herbert <stuart@gentoo.org>
+ perforce-server-2003.2.ebuild, files/perforce-2003.2/50perforce,
+ files/perforce-2003.2/conf.d/perforce,
+ files/perforce-2003.2/init.d/perforce:
+ Added missing init.d and conf.d files
*perforce-server-2003.2 (18 Apr 2004)
diff --git a/dev-util/perforce-server/Manifest b/dev-util/perforce-server/Manifest
index 5045b5aaebf4..6c6390126b1b 100644
--- a/dev-util/perforce-server/Manifest
+++ b/dev-util/perforce-server/Manifest
@@ -1,4 +1,7 @@
MD5 13262f072989611340f03c320eac457c ChangeLog 409
MD5 71da003bb2109fed15aff6635287c6a6 metadata.xml 222
-MD5 b12ba7d86f313a6b7b7a99457e010721 perforce-server-2003.2.ebuild 1352
+MD5 ad47ec8516f6e7586f9a2c2002183130 perforce-server-2003.2.ebuild 1352
MD5 b9b08fb5ced4f4f3e798e90b7ecce0d7 files/digest-perforce-server-2003.2 199
+MD5 7a54cc6c6d53acca3c67df75fb125100 files/perforce-2003.2/50perforce 95
+MD5 848a2cb4e6486e833a0015794c7456c8 files/perforce-2003.2/conf.d/perforce 70
+MD5 1eedae457d30425e7a5aa63755d32bb8 files/perforce-2003.2/init.d/perforce 966
diff --git a/dev-util/perforce-server/files/perforce-2003.2/50perforce b/dev-util/perforce-server/files/perforce-2003.2/50perforce
new file mode 100644
index 000000000000..e2fcc607a662
--- /dev/null
+++ b/dev-util/perforce-server/files/perforce-2003.2/50perforce
@@ -0,0 +1,3 @@
+PATH=/opt/perforce/bin
+ROOTPATH=/opt/perforce/bin:/opt/perforce/sbin
+MANPATH=/opt/perforce/man
diff --git a/dev-util/perforce-server/files/perforce-2003.2/conf.d/perforce b/dev-util/perforce-server/files/perforce-2003.2/conf.d/perforce
new file mode 100644
index 000000000000..889d1b7941ca
--- /dev/null
+++ b/dev-util/perforce-server/files/perforce-2003.2/conf.d/perforce
@@ -0,0 +1,3 @@
+# Config file for /etc/init.d/perforce
+
+P4D="-q -L /var/log/perforce"
diff --git a/dev-util/perforce-server/files/perforce-2003.2/init.d/perforce b/dev-util/perforce-server/files/perforce-2003.2/init.d/perforce
new file mode 100644
index 000000000000..fa3816404d81
--- /dev/null
+++ b/dev-util/perforce-server/files/perforce-2003.2/init.d/perforce
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/perforce-server/files/perforce-2003.2/init.d/perforce,v 1.1 2004/04/18 18:52:50 stuart Exp $
+#
+# NB: Configuration is in /etc/conf.d/perforce
+
+PIDFILE=/var/run/p4d.pid
+
+depend() {
+ need net
+}
+
+
+start() {
+ ebegin "Starting Perforce SCM"
+ # 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
+ P4D="`echo ${P4D} | sed -e 's#-d##' -e 's#-r [^[:space:]]*##'`"
+ start-stop-daemon --start --quiet --chuid perforce:perforce \
+ --exec /usr/sbin/p4d \
+ -- ${P4D} -d -r /var/lib/perforce
+ eend $?
+
+}
+
+stop() {
+ ebegin "Stopping Perforce SCM"
+ if ( ps -C p4d | grep 'p4d' > /dev/null )
+ then
+ killall p4d
+ fi
+ eend $?
+}
diff --git a/dev-util/perforce-server/perforce-server-2003.2.ebuild b/dev-util/perforce-server/perforce-server-2003.2.ebuild
index a88e5a759649..215a8673fff5 100644
--- a/dev-util/perforce-server/perforce-server-2003.2.ebuild
+++ b/dev-util/perforce-server/perforce-server-2003.2.ebuild
@@ -15,7 +15,7 @@ DEPEND="virtual/glibc"
#RDEPEND=""
S=${WORKDIR}
RESTRICT="nomirror nostrip"
-MY_FILES=$FILESDIR/perforce-2003.1/
+MY_FILES=$FILESDIR/perforce-2003.2/
src_unpack ()
{