diff options
author | 2010-12-01 10:14:23 -0800 | |
---|---|---|
committer | 2010-12-01 10:17:31 -0800 | |
commit | 918fb0f79af51a143b12c13bc6e7424cc83ed4c9 (patch) | |
tree | 8b597b5843cd9b7c60469a5343e41ac49c1e58ee | |
download | JoseQ-918fb0f79af51a143b12c13bc6e7424cc83ed4c9.tar.gz JoseQ-918fb0f79af51a143b12c13bc6e7424cc83ed4c9.tar.bz2 JoseQ-918fb0f79af51a143b12c13bc6e7424cc83ed4c9.zip |
Import Perforce ebuilds from bugs.gentoo.org (slightly modified
already).
-rw-r--r-- | dev-vcs/perforce-cli/Manifest | 3 | ||||
-rw-r--r-- | dev-vcs/perforce-cli/perforce-cli-2010.1.251161.ebuild | 36 | ||||
-rw-r--r-- | dev-vcs/perforce-gui/Manifest | 3 | ||||
-rw-r--r-- | dev-vcs/perforce-gui/perforce-gui-2010.1.251161.ebuild | 34 | ||||
-rw-r--r-- | dev-vcs/perforce-server/Manifest | 5 | ||||
-rw-r--r-- | dev-vcs/perforce-server/files/p4d.confd | 10 | ||||
-rw-r--r-- | dev-vcs/perforce-server/files/p4d.initd | 34 | ||||
-rw-r--r-- | dev-vcs/perforce-server/perforce-server-2010.1.251161.ebuild | 58 | ||||
-rw-r--r-- | profiles/repo_name | 1 |
9 files changed, 184 insertions, 0 deletions
diff --git a/dev-vcs/perforce-cli/Manifest b/dev-vcs/perforce-cli/Manifest new file mode 100644 index 0000000..93ec175 --- /dev/null +++ b/dev-vcs/perforce-cli/Manifest @@ -0,0 +1,3 @@ +DIST perforce-cli-2010.1.251161-amd64 808360 RMD160 d5f6de001403fc61663d71ae802eb284aff0dae9 SHA1 82f61c7320a8fb760761d31a9951d0f5bccd6d86 SHA256 59ed7e034fe117d54e8fec5a286ad89baceb06b1899d19f1552e75f19debfc93 +DIST perforce-cli-2010.1.251161-x86 755848 RMD160 c5379b51a36dba4e1cd576494c748271e4400cab SHA1 272c9d92a850a34c4a7c343d84781fd8a141c482 SHA256 92d6250ba409ff202d91016376dca526261529933c66cc9336e0e03d729ed551 +EBUILD perforce-cli-2010.1.251161.ebuild 822 RMD160 b884b4faf1c8ded086629e0cd0ce2dadd63a52c9 SHA1 6a02e4019179c43dd1fb5050adc60b16f27db194 SHA256 f1474a90b6e39bc85164427e98879601883d47f5a259b65e2443942390666ebb diff --git a/dev-vcs/perforce-cli/perforce-cli-2010.1.251161.ebuild b/dev-vcs/perforce-cli/perforce-cli-2010.1.251161.ebuild new file mode 100644 index 0000000..a4fe959 --- /dev/null +++ b/dev-vcs/perforce-cli/perforce-cli-2010.1.251161.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +inherit versionator + +EAPI=2 + +REL=$(get_version_component_range 1-2) +SHORTREL=${REL/#20/} + +DESCRIPTION="Command line tool for Perforce version control system" +HOMEPAGE="http://www.perforce.com/" +SRC_URI="x86? ( ftp://ftp.perforce.com/perforce/r${SHORTREL}/bin.linux26x86/p4 \ + -> ${PF}-x86 ) + amd64? ( ftp://ftp.perforce.com/perforce/r${SHORTREL}/bin.linux26x86_64/p4 \ + -> ${PF}-amd64 )" + +LICENSE="perforce" +SLOT="0" +KEYWORDS="-* ~x86 ~amd64" +IUSE="" +RESTRICT="mirror strip" + +S=${WORKDIR} + +src_unpack() { + # we have to copy all of the files from $DISTDIR, otherwise we get + # sandbox violations when trying to install + + cp ${DISTDIR}/${A} p4 +} + +src_install() { + dobin p4 || die +} diff --git a/dev-vcs/perforce-gui/Manifest b/dev-vcs/perforce-gui/Manifest new file mode 100644 index 0000000..7786b13 --- /dev/null +++ b/dev-vcs/perforce-gui/Manifest @@ -0,0 +1,3 @@ +DIST perforce-gui-2010.1.251161-amd64.tgz 38997860 RMD160 210a1e6b445b209ae72b69a1d4b6a9111ede65f4 SHA1 7c4232824ab24313de98ba989ffdc39872078b4d SHA256 ed7130950988fad2c2ef15a2f145d9eae91227ca60372da455909a7a24cb85f0 +DIST perforce-gui-2010.1.251161-x86.tgz 38948530 RMD160 6e4cf7bcb5a74627a3ab1753034178b07bfb70d2 SHA1 61b163c6d715135657626e9cb7a270e5aa57dca5 SHA256 9117f00a64c5c32ced927db24b9a187fc2e565b9dd01960e82d1ce2c28f3f302 +EBUILD perforce-gui-2010.1.251161.ebuild 728 RMD160 73ce2f73b9e1a01f0c150ac5dd55a749eb91437d SHA1 f15152bde2d1c8d940cebaf682126a8700282097 SHA256 5022c94e55ff960c0a4cb142301561e5ce4af77edea1cf4849abe4f8c7f4f039 diff --git a/dev-vcs/perforce-gui/perforce-gui-2010.1.251161.ebuild b/dev-vcs/perforce-gui/perforce-gui-2010.1.251161.ebuild new file mode 100644 index 0000000..81f3b63 --- /dev/null +++ b/dev-vcs/perforce-gui/perforce-gui-2010.1.251161.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +inherit versionator + +EAPI=2 + +REL=$(get_version_component_range 1-2) +SHORTREL=${REL/#20/} + +DESCRIPTION="GUI for Perforce version control system" +HOMEPAGE="http://www.perforce.com/" +SRC_URI="x86? ( + ftp://ftp.perforce.com/perforce/r${SHORTREL}/bin.linux26x86/p4v.tgz -> \ + ${PF}-x86.tgz ) + amd64? ( + ftp://ftp.perforce.com/perforce/r${SHORTREL}/bin.linux26x86_64/p4v.tgz -> \ + ${PF}-amd64.tgz )" + +LICENSE="perforce" +SLOT="0" +KEYWORDS="-* ~x86 ~amd64" +IUSE="" +RESTRICT="mirror strip" + +S=${WORKDIR} + +src_install() { + cd p4v-${PVR} || die + insopts -m0755 + insinto /opt + doins -r * || die +} diff --git a/dev-vcs/perforce-server/Manifest b/dev-vcs/perforce-server/Manifest new file mode 100644 index 0000000..6ab2bdb --- /dev/null +++ b/dev-vcs/perforce-server/Manifest @@ -0,0 +1,5 @@ +AUX p4d.confd 244 RMD160 14cf335b09b5eea7d2515507bbfeb9673efb88be SHA1 0ebffbc9895389e44fd53dc7bbb734659458cd6b SHA256 fa5ec85b708657cdd5584b3e11aeacf4fad027046685fca576756002b11a6fb7 +AUX p4d.initd 592 RMD160 200311364cc0801f11d79bd9d23c79bc60fac971 SHA1 561a84b753c90972db3bfd9ef633eadc61095786 SHA256 3737adc779b2873e8cb345fe56334c2784f897b467411e6ed541b8ba1c83e2be +DIST perforce-server-2010.1.251161-amd64 2193920 RMD160 573d4ea2f3d6eaf606607f278891168c0953c14c SHA1 1c23f7bca9def456098dde0074a29ba1ce7e1d43 SHA256 9f1aac6ef282fbed60c00b58314aaeb59d2c98a7936b6e23b89a6143b007d2ab +DIST perforce-server-2010.1.251161-x86 2078580 RMD160 32b8939556d33f47905df0525f07b7b849806eec SHA1 654f104457d026c506fc3b3d5972d3425579c821 SHA256 6270a5749db7470f0ce94ca887898b6be0a9c39fca276b6b47c0ad6102aee03d +EBUILD perforce-server-2010.1.251161.ebuild 1171 RMD160 bd661839204f04e36fd4e04a19e197d6d3383361 SHA1 d16e48aeb592d733591484e33b96ba439bed3f83 SHA256 a50c8d26a734ac367c0ceaecdee53ae449ca590837b485fe7183fbec78217766 diff --git a/dev-vcs/perforce-server/files/p4d.confd b/dev-vcs/perforce-server/files/p4d.confd new file mode 100644 index 0000000..8e76c1c --- /dev/null +++ b/dev-vcs/perforce-server/files/p4d.confd @@ -0,0 +1,10 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Options to pass to p4d + +ROOT_DIRECTORY="/var/lib/perforce" +JOURNAL_FILE="journal" +PORT="1666" +LOG_FILE="/var/log/perforce.log" + diff --git a/dev-vcs/perforce-server/files/p4d.initd b/dev-vcs/perforce-server/files/p4d.initd new file mode 100644 index 0000000..44c3c12 --- /dev/null +++ b/dev-vcs/perforce-server/files/p4d.initd @@ -0,0 +1,34 @@ +#!/sbin/runscript + +opts="start stop restart" + +start() { + ebegin "Starting Perforce Server" + + touch $LOG_FILE + chown perforce:perforce $LOG_FILE + chmod 600 $LOG_FILE + + start-stop-daemon --start --quiet --exec /usr/sbin/p4d -c perforce -- -d -r $ROOT_DIRECTORY -J $JOURNAL_FILE -p $PORT -L $LOG_FILE -q + + sleep 2 + + if ! pgrep p4d &> /dev/null + then + eerror "p4d could not be started! Check logfile $LOG_FILE" + eend 1 + return 1 + fi + eend $? +} + +stop() { + ebegin "Stopping Perforce Server" + start-stop-daemon --stop --quiet --exec /usr/sbin/p4d + eend $? +} + +restart() { + svc_stop + svc_start +} diff --git a/dev-vcs/perforce-server/perforce-server-2010.1.251161.ebuild b/dev-vcs/perforce-server/perforce-server-2010.1.251161.ebuild new file mode 100644 index 0000000..50619c5 --- /dev/null +++ b/dev-vcs/perforce-server/perforce-server-2010.1.251161.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +inherit versionator eutils + +EAPI=2 + +REL=$(get_version_component_range 1-2) +SHORTREL=${REL/#20/} + +DESCRIPTION="Perforce version control system server" +HOMEPAGE="http://www.perforce.com/" +SRC_URI="x86? ( ftp://ftp.perforce.com/perforce/r${SHORTREL}/bin.linux26x86/p4d \ + -> ${PF}-x86 ) + amd64? ( + ftp://ftp.perforce.com/perforce/r${SHORTREL}/bin.linux26x86_64/p4d \ + -> ${PF}-amd64 )" + +LICENSE="perforce" +SLOT="0" +KEYWORDS="-* ~x86 ~amd64" +IUSE="" +RESTRICT="mirror strip" + +S=${WORKDIR} + +pkg_setup() { + enewgroup perforce + enewuser perforce -1 -1 /var/lib/perforce perforce +} + +src_unpack() { + + cp ${DISTDIR}/${A} p4d +} + +src_install() { + dosbin p4d + + insinto /etc/conf.d + newins ${FILESDIR}/p4d.confd p4d + + exeinto /etc/init.d + newexe ${FILESDIR}/p4d.initd p4d + + dodir /var/lib/perforce || die + fowners perforce:perforce /var/lib/perforce +} + +pkg_postinst() { + einfo + einfo "Remember to edit the config file /etc/conf.d/p4d" + einfo "By default, the journal file will be created in the same directory as" + einfo "the database." + einfo "We highly recommend moving it to a different hard disk" + einfo +} diff --git a/profiles/repo_name b/profiles/repo_name new file mode 100644 index 0000000..3a355e4 --- /dev/null +++ b/profiles/repo_name @@ -0,0 +1 @@ +JoseQ |