diff options
author | Rafael Martins <rafaelmartins@gentoo.org> | 2011-01-13 20:22:42 +0000 |
---|---|---|
committer | Rafael Martins <rafaelmartins@gentoo.org> | 2011-01-13 20:22:42 +0000 |
commit | b03d3ac5dcf3f7ec0b5daaa4e2d22e34d9540311 (patch) | |
tree | 644a8228cdeb9dd38a11f05f2fc8e2ad2baded54 /dev-vcs | |
parent | Version bump (diff) | |
download | gentoo-2-b03d3ac5dcf3f7ec0b5daaa4e2d22e34d9540311.tar.gz gentoo-2-b03d3ac5dcf3f7ec0b5daaa4e2d22e34d9540311.tar.bz2 gentoo-2-b03d3ac5dcf3f7ec0b5daaa4e2d22e34d9540311.zip |
Initial commit.
(Portage version: 2.2.0_alpha14/cvs/Linux x86_64)
Diffstat (limited to 'dev-vcs')
-rw-r--r-- | dev-vcs/mercurial-server/ChangeLog | 13 | ||||
-rw-r--r-- | dev-vcs/mercurial-server/files/mercurial-server-1.1_documentation.patch | 18 | ||||
-rw-r--r-- | dev-vcs/mercurial-server/mercurial-server-1.1.ebuild | 83 | ||||
-rw-r--r-- | dev-vcs/mercurial-server/mercurial-server-9999.ebuild | 83 | ||||
-rw-r--r-- | dev-vcs/mercurial-server/metadata.xml | 15 |
5 files changed, 212 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/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> + |