summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Martins <rafaelmartins@gentoo.org>2011-01-13 20:22:42 +0000
committerRafael Martins <rafaelmartins@gentoo.org>2011-01-13 20:22:42 +0000
commitbd2e7e226de6193837af7e6a097b19a48b603e43 (patch)
treeab37c0f63c2b7ab5ae192883b5325b8d14d8fb00 /dev-vcs
parentPython patches included from today (diff)
downloadhistorical-bd2e7e226de6193837af7e6a097b19a48b603e43.tar.gz
historical-bd2e7e226de6193837af7e6a097b19a48b603e43.tar.bz2
historical-bd2e7e226de6193837af7e6a097b19a48b603e43.zip
Initial commit.
Package-Manager: portage-2.2.0_alpha14/cvs/Linux x86_64
Diffstat (limited to 'dev-vcs')
-rw-r--r--dev-vcs/mercurial-server/ChangeLog13
-rw-r--r--dev-vcs/mercurial-server/Manifest6
-rw-r--r--dev-vcs/mercurial-server/files/mercurial-server-1.1_documentation.patch18
-rw-r--r--dev-vcs/mercurial-server/mercurial-server-1.1.ebuild83
-rw-r--r--dev-vcs/mercurial-server/mercurial-server-9999.ebuild83
-rw-r--r--dev-vcs/mercurial-server/metadata.xml15
6 files changed, 218 insertions, 0 deletions
diff --git a/dev-vcs/mercurial-server/ChangeLog b/dev-vcs/mercurial-server/ChangeLog
new file mode 100644
index 000000000000..b72b525891f0
--- /dev/null
+++ b/dev-vcs/mercurial-server/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for dev-vcs/mercurial-server
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial-server/ChangeLog,v 1.1 2011/01/13 20:22:42 rafaelmartins Exp $
+
+*mercurial-server-9999 (13 Jan 2011)
+*mercurial-server-1.1 (13 Jan 2011)
+
+ 13 Jan 2011; Rafael G. Martins <rafaelmartins@gentoo.org>
+ +mercurial-server-1.1.ebuild,
+ +files/mercurial-server-1.1_documentation.patch,
+ +mercurial-server-9999.ebuild, +metadata.xml:
+ Initial commit.
+
diff --git a/dev-vcs/mercurial-server/Manifest b/dev-vcs/mercurial-server/Manifest
new file mode 100644
index 000000000000..f7df909490b4
--- /dev/null
+++ b/dev-vcs/mercurial-server/Manifest
@@ -0,0 +1,6 @@
+AUX mercurial-server-1.1_documentation.patch 1117 RMD160 aea01a541124ae72ad67c17d34faab8061181514 SHA1 2267feb2be6eaae73b0665ab5413c801c68376d8 SHA256 518f3b4154bf8f06aa8b1c2eee663fd0e35de9741e90a30db54bb3228a7639b7
+DIST mercurial-server_1.1.tar.gz 21166 RMD160 d6e1e0c4706c1be750f1ed1f79b76b4d07ec1a94 SHA1 229a17dc84824e1341ad99734d16c426a4e2b639 SHA256 34b18275d48397122aed519f91eb3602983ef952597ed807de868b413ead7091
+EBUILD mercurial-server-1.1.ebuild 1883 RMD160 d89c58dfbfff3ae6a0e1ab7867ae207b3995a4ee SHA1 a819c48c4773d3130935d968889e44fed3578bc5 SHA256 7aad73de515fc8c5eb3ecc9f51be4f3c0aa9664b713f5a308d8ac57b55a9fc4d
+EBUILD mercurial-server-9999.ebuild 1884 RMD160 a87f93d1b0741d9b0dfec9897c69fe58b27522a5 SHA1 c4ee8831910caea4f1d1d0cadfba5ac08af6517a SHA256 ec1ec0ef7dfc026534e5c7af196a9c2035ce8cefa248f00cce37fa27a22daa6f
+MISC ChangeLog 512 RMD160 d01291527c3db979e3a7abf2979b925519ca5bfa SHA1 c6e80b6e3680a61328bf9daa6df948f91bd49e8b SHA256 a2edfa86b0b4f31c71633a6060101e7790882f64b1c7085888180efc7721d15f
+MISC metadata.xml 544 RMD160 92ad4c289d15dfe3b9ee5270796e4391883cdd9c SHA1 5d74d688aa10d0b0dc044a079aa188c6d0595949 SHA256 28ae9073a9a02f971ffd9fda20d0de1f1a7c50cb69bc5aafc078ead4dc18c6e3
diff --git a/dev-vcs/mercurial-server/files/mercurial-server-1.1_documentation.patch b/dev-vcs/mercurial-server/files/mercurial-server-1.1_documentation.patch
new file mode 100644
index 000000000000..545eb3fabfed
--- /dev/null
+++ b/dev-vcs/mercurial-server/files/mercurial-server-1.1_documentation.patch
@@ -0,0 +1,18 @@
+# HG changeset patch
+# User Rafael G. Martins <rafaelmartins@gentoo.org>
+# Date 1294947033 7200
+# Node ID 43c5177150a58f1e5e778319ec055b767971d0b0
+# Parent 022d2e6bcdde0599465cb7193b836f93154b4c78
+add missing configuration step (hginit) to doc/manual.docbook
+
+diff --git a/doc/manual.docbook b/doc/manual.docbook
+--- a/doc/manual.docbook
++++ b/doc/manual.docbook
+@@ -51,6 +51,7 @@
+ <computeroutput>jay@jeeves:~$ </computeroutput><userinput>ssh-add -L > my-key</userinput>
+ <computeroutput>jay@jeeves:~$ </computeroutput><userinput>sudo mkdir -p /etc/mercurial-server/keys/root/jay</userinput>
+ <computeroutput>jay@jeeves:~$ </computeroutput><userinput>sudo cp my-key /etc/mercurial-server/keys/root/jay/spoon</userinput>
++<computeroutput>jay@jeeves:~$ </computeroutput><userinput>sudo -u hg /usr/share/mercurial-server/init/hginit /usr/share/mercurial-server</userinput>
+ <computeroutput>jay@jeeves:~$ </computeroutput><userinput>sudo -u hg /usr/share/mercurial-server/refresh-auth</userinput>
+ <computeroutput>jay@jeeves:~$ </computeroutput><userinput>exit</userinput>
+ <computeroutput>Connection to jeeves closed.
diff --git a/dev-vcs/mercurial-server/mercurial-server-1.1.ebuild b/dev-vcs/mercurial-server/mercurial-server-1.1.ebuild
new file mode 100644
index 000000000000..ea34394002d9
--- /dev/null
+++ b/dev-vcs/mercurial-server/mercurial-server-1.1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial-server/mercurial-server-1.1.ebuild,v 1.1 2011/01/13 20:22:42 rafaelmartins Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+
+if [[ "${PV}" = "9999" ]]; then
+ EHG_REVISION="default"
+ inherit distutils eutils mercurial
+ EHG_REPO_URI="http://hg.opensource.lshift.net/mercurial-server"
+ KEYWORDS=""
+ S="${WORKDIR}/${PN}"
+else
+ inherit distutils eutils
+ MY_P="${PN}_${PV}"
+ SRC_URI="http://dev.lshift.net/paul/mercurial-server/${MY_P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_P}"
+fi
+
+DESCRIPTION="Mercurial authentication and authorization tools"
+HOMEPAGE="http://www.lshift.net/mercurial-server.html"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="doc"
+
+RDEPEND="dev-vcs/mercurial"
+DEPEND="${RDEPEND}
+ doc? (
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ )"
+
+pkg_setup() {
+ enewgroup hg
+ enewuser hg -1 /bin/bash "/var/lib/${PN}" hg
+}
+
+src_prepare() {
+ # remove useless makefile
+ rm Makefile
+
+ # fix installation paths
+ sed -i -e "s|'init'|'share/${PN}/init'|" setup.py \
+ || die 'sed setup.py failed.'
+
+ # fix documentation
+ if [[ "${PV}" = "1.1" ]]; then
+ epatch "${FILESDIR}/${P}_documentation.patch"
+ fi
+}
+
+src_compile() {
+ distutils_src_compile
+
+ # build documentation
+ if use doc; then
+ xsltproc --nonet -o manual.html \
+ /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl \
+ doc/manual.docbook || die "xsltproc failed"
+ fi
+}
+
+src_install() {
+ distutils_src_install --install-scripts="/usr/share/${PN}"
+
+ # install configuration files
+ insinto "/etc/${PN}"
+ doins -r src/init/conf/*
+ keepdir /etc/mercurial-server/keys/{root,users}
+
+ # install documentation
+ if use doc; then
+ dohtml manual.html
+ fi
+
+ # install hg home directory
+ keepdir "/var/lib/${PN}"
+ fowners hg:hg "/var/lib/${PN}"
+ fperms 750 "/var/lib/${PN}"
+}
diff --git a/dev-vcs/mercurial-server/mercurial-server-9999.ebuild b/dev-vcs/mercurial-server/mercurial-server-9999.ebuild
new file mode 100644
index 000000000000..c831772b795c
--- /dev/null
+++ b/dev-vcs/mercurial-server/mercurial-server-9999.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial-server/mercurial-server-9999.ebuild,v 1.1 2011/01/13 20:22:42 rafaelmartins Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+
+if [[ "${PV}" = "9999" ]]; then
+ EHG_REVISION="default"
+ inherit distutils eutils mercurial
+ EHG_REPO_URI="http://hg.opensource.lshift.net/mercurial-server"
+ KEYWORDS=""
+ S="${WORKDIR}/${PN}"
+else
+ inherit distutils eutils
+ MY_P="${PN}_${PV}"
+ SRC_URI="http://dev.lshift.net/paul/mercurial-server/${MY_P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_P}"
+fi
+
+DESCRIPTION="Mercurial authentication and authorization tools"
+HOMEPAGE="http://www.lshift.net/mercurial-server.html"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="doc"
+
+RDEPEND="dev-vcs/mercurial"
+DEPEND="${RDEPEND}
+ doc? (
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ )"
+
+pkg_setup() {
+ enewgroup hg
+ enewuser hg -1 /bin/bash "/var/lib/${PN}" hg
+}
+
+src_prepare() {
+ # remove useless makefile
+ rm Makefile
+
+ # fix installation paths
+ sed -i -e "s|'init'|'share/${PN}/init'|" setup.py \
+ || die 'sed setup.py failed.'
+
+ # fix documentation
+ if [[ "${PV}" = "1.1" ]]; then
+ epatch "${FILESDIR}/${P}_documentation.patch"
+ fi
+}
+
+src_compile() {
+ distutils_src_compile
+
+ # build documentation
+ if use doc; then
+ xsltproc --nonet -o manual.html \
+ /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl \
+ doc/manual.docbook || die "xsltproc failed"
+ fi
+}
+
+src_install() {
+ distutils_src_install --install-scripts="/usr/share/${PN}"
+
+ # install configuration files
+ insinto "/etc/${PN}"
+ doins -r src/init/conf/*
+ keepdir /etc/mercurial-server/keys/{root,users}
+
+ # install documentation
+ if use doc; then
+ dohtml manual.html
+ fi
+
+ # install hg home directory
+ keepdir "/var/lib/${PN}"
+ fowners hg:hg "/var/lib/${PN}"
+ fperms 750 "/var/lib/${PN}"
+}
diff --git a/dev-vcs/mercurial-server/metadata.xml b/dev-vcs/mercurial-server/metadata.xml
new file mode 100644
index 000000000000..6997d83a6e41
--- /dev/null
+++ b/dev-vcs/mercurial-server/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>rafaelmartins@gentoo.org</email>
+ <name>Rafael G. Martins</name>
+ </maintainer>
+ <longdescription lang="en">
+ mercurial-server gives your developers remote read/write access to
+ centralized Mercurial repositories using SSH public key authentication; it
+ provides convenient and fine-grained key management and access control.
+ </longdescription>
+</pkgmetadata>
+