aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <kleiner_otti@gmx.de>2010-03-06 17:12:39 +0100
committerChristoph Junghans <kleiner_otti@gmx.de>2010-03-06 17:12:39 +0100
commit04b494e718b7de5f61378b8fe472c11328e6de59 (patch)
treecab5e030834afbdb56ac477a01a9ad1060080f58 /dev-vcs/mercurial-server
parentdev-util/mercurial-server: clean up (diff)
downloadsci-04b494e718b7de5f61378b8fe472c11328e6de59.tar.gz
sci-04b494e718b7de5f61378b8fe472c11328e6de59.tar.bz2
sci-04b494e718b7de5f61378b8fe472c11328e6de59.zip
dev-vcs/mercurial-server: dev-util -> dev-vcs
Diffstat (limited to 'dev-vcs/mercurial-server')
-rw-r--r--dev-vcs/mercurial-server/ChangeLog41
-rw-r--r--dev-vcs/mercurial-server/Manifest15
-rw-r--r--dev-vcs/mercurial-server/files/mercurial-server-0.9-docbook-path.patch32
-rw-r--r--dev-vcs/mercurial-server/mercurial-server-1.0.1.ebuild70
-rw-r--r--dev-vcs/mercurial-server/metadata.xml8
5 files changed, 166 insertions, 0 deletions
diff --git a/dev-vcs/mercurial-server/ChangeLog b/dev-vcs/mercurial-server/ChangeLog
new file mode 100644
index 000000000..955b46b42
--- /dev/null
+++ b/dev-vcs/mercurial-server/ChangeLog
@@ -0,0 +1,41 @@
+# ChangeLog for dev-util/mercurial-server
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 06 Mar 2010; Christoph Junghans <kleiner_otti@gmx.de>
+ -mercurial-server-0.9.ebuild, -mercurial-server-1.0.ebuild:
+ clean up
+
+ 15 Jan 2010; Christoph Junghans <kleiner_otti@gmx.de>
+ mercurial-server-1.0.1.ebuild:
+ Added ~amd64 keyword
+
+*mercurial-server-1.0.1 (03 Jan 2010)
+
+ 03 Jan 2010; Christoph Junghans <kleiner_otti@gmx.de>
+ +mercurial-server-1.0.1.ebuild:
+ Version bump
+
+*mercurial-server-1.0 (13 Dec 2009)
+
+ 13 Dec 2009; Christoph Junghans <kleiner_otti@gmx.de>
+ +mercurial-server-1.0.ebuild:
+ version bump to 1.0
+
+*mercurial-server-0.9 (14 Nov 2009)
+
+ 14 Nov 2009; Christoph Junghans <kleiner_otti@gmx.de>
+ -mercurial-server-0.6.ebuild, +mercurial-server-0.9.ebuild,
+ +files/mercurial-server-0.9-docbook-path.patch:
+ version bump to 0.9
+
+ 28 Sep 2009; Christoph Junghans <kleiner_otti@gmx.de>
+ mercurial-server-0.6.ebuild:
+ Homepage updated, bug 286695
+
+*mercurial-server-0.6 (27 Sep 2009)
+
+ 27 Sep 2009; Christoph Junghans <kleiner_otti@gmx.de>
+ +mercurial-server-0.6.ebuild, +metadata.xml:
+ Initial commit
+
diff --git a/dev-vcs/mercurial-server/Manifest b/dev-vcs/mercurial-server/Manifest
new file mode 100644
index 000000000..2f00d638c
--- /dev/null
+++ b/dev-vcs/mercurial-server/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX mercurial-server-0.9-docbook-path.patch 1038 RMD160 41262720f38576b47bdbb8a22097f54ddaa57c25 SHA1 52bc6cfd6fb1ff125b65f1a4a58e4b672ab3895e SHA256 7f443fe6f54fd62db06c93ae8340cda2e1e39052f0121cdf13fa68aa11630c7e
+DIST mercurial-server_1.0.1.tar.gz 20302 RMD160 e6ba21bca38f4b9cb48229fe000779dcf9b39072 SHA1 9f9b5b4a6f2a0cbbae8374db744350561618ff8d SHA256 6d67b8584730883c83972d35cf77bd1b45e7d2222458c5c3ac4ae94b3ec8f1ee
+EBUILD mercurial-server-1.0.1.ebuild 2258 RMD160 2d613d44966c0473278abd5315971d448d3b8c6f SHA1 f1d661be6fdebf72101d4c668d1cbf15aa3104c6 SHA256 7383f70566b53c61d8d3eacfb347208736f9846c73e9ed2c3bbcd742bbadd2ed
+MISC ChangeLog 1167 RMD160 75f879d2ff7b5235279d1f3447ef516f204bdf72 SHA1 764187ea6b22544e10ae16a5328add6772b1872f SHA256 f7e8bf5d7b0b9c398b5af54a53d2127cabe07423e5553896c5da6bb9b94abfb8
+MISC metadata.xml 220 RMD160 fd3dba7eeac39bb91e6658be7d4d846249c1c329 SHA1 0aafe188f55c4c22697755bea33de012cccf3f49 SHA256 0b5c322d93461039b700509ae2671b429f0637f66596c61e48ebba9e365c9f92
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.14 (GNU/Linux)
+
+iEYEARECAAYFAkuSfpgACgkQy0OE/ans1/kuGACfSQBzYzmsMs/KbbdiOVOs93KJ
+SEoAnAn6MvIdmyw4C1jDx3x12ES4kFP0
+=u3U/
+-----END PGP SIGNATURE-----
diff --git a/dev-vcs/mercurial-server/files/mercurial-server-0.9-docbook-path.patch b/dev-vcs/mercurial-server/files/mercurial-server-0.9-docbook-path.patch
new file mode 100644
index 000000000..c978e8775
--- /dev/null
+++ b/dev-vcs/mercurial-server/files/mercurial-server-0.9-docbook-path.patch
@@ -0,0 +1,32 @@
+# HG changeset patch
+# User Christoph Junghans <kleiner_otti@gmx.de>
+# Date 1258219410 -3600
+# Node ID ddd0f0d12e128a4f90f5a5faf577239e6e2aedd9
+# Parent 31e862df1884641a650e907909e247e1d9afb4a4
+make docbook stylesheet path changeable
+
+diff -r 31e862df1884 -r ddd0f0d12e12 Makefile
+--- a/Makefile Thu Nov 12 11:19:36 2009 +0000
++++ b/Makefile Sat Nov 14 18:23:30 2009 +0100
+@@ -5,6 +5,7 @@
+ DOCDIR=$(PREFIX)/doc/mercurial-server
+ ETCDIR=/etc/mercurial-server
+ NEWUSER=hg
++XSL=/usr/share/xml/docbook/stylesheet/nwalsh
+
+ INSTALL=install
+
+@@ -29,11 +30,11 @@
+ $(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR)/html build/html/index.html
+
+ build/html/index.html: doc/manual.docbook
+- xsltproc --nonet -o $@ /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl $^
++ xsltproc --nonet -o $@ $(XSL)/html/docbook.xsl $^
+
+ build/pdf/manual.pdf: doc/manual.docbook
+ mkdir -p build/pdf
+- fop -xml $^ -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl $@
++ fop -xml $^ -xsl $(XSL)/fo/docbook.xsl $@
+
+ pythonbuild:
+ python setup.py build
diff --git a/dev-vcs/mercurial-server/mercurial-server-1.0.1.ebuild b/dev-vcs/mercurial-server/mercurial-server-1.0.1.ebuild
new file mode 100644
index 000000000..1c869bf22
--- /dev/null
+++ b/dev-vcs/mercurial-server/mercurial-server-1.0.1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Mercurial authentication and authorization tools"
+HOMEPAGE="http://www.lshift.net/mercurial-server.html"
+SRC_URI="http://dev.lshift.net/paul/mercurial-server/mercurial-server_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="dev-util/mercurial
+ dev-lang/python
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt"
+
+RDEPEND="dev-util/mercurial
+ dev-lang/python"
+
+S="${WORKDIR}/${PN}_${PV}.orig"
+
+pkg_setup() {
+ enewgroup hg
+ enewuser hg -1 /bin/sh /home/hg hg
+ chmod 700 /home/hg
+}
+
+src_compile() {
+ emake DOCBOOK_XSL=/usr/share/sgml/docbook/xsl-stylesheets || die "emake failed"
+}
+
+src_install() {
+ emake installfiles PREFIX=/usr/share DOCDIR="/usr/share/doc/${PF}" DESTDIR="${D}"
+}
+
+
+pkg_postinst() {
+ #skip the comments if there is already a hgadmin repo
+ if [ ! -d /home/hg/repos/hgadmin/.hg ]; then
+ #Parts could be done automatically, but maybe there is a user hg
+ elog "This seem to be a first time install, things you may want to do"
+ elog "-Add your public ssh key to root key folder"
+ elog " sudo cp ~/.ssh/id_rsa.pub ${ROOT}etc/mercurial-server/keys/root/\${USER}"
+ elog "-Create hgadmin repo"
+ elog " sudo -u hg ${ROOT}usr/share/mercurial-server/init/hginit ${ROOT}usr/share/mercurial-server"
+ elog "-Init hg's ssh authorized_keys file"
+ elog " sudo -u hg ${ROOT}usr/share/mercurial-server/refresh-auth"
+ elog "-Clone hgadmin repo"
+ elog " hg clone ssh://hg@localhost/hgadmin hgadmin"
+ elog "-Start administration"
+ elog " cd hgadmin"
+ elog " mkdir -p keys/root"
+ elog " cp ${ROOT}etc/mercurial-server/keys/root/\${USER} keys/root"
+ elog " cp ${ROOT}etc/mercurial-server/access.conf ."
+ elog " hg add"
+ elog " hg commit -m 'initial commit'"
+ elog " hg push ssh://hg@localhost/hgadmin"
+ elog "-Remove the key in ${ROOT}etc/mercurial-server/keys/root"
+ elog " rm ${ROOT}etc/mercurial-server/keys/root/\${USER}"
+ fi
+ ewarn "If you are upgrading from an older version of ${PN}, please take a look at"
+ ewarn "${ROOT}usr/share/mercurial-server/init/dot-mercurial-server"
+ ewarn "and add missing lines to ~hg/.mercurial-server"
+}
diff --git a/dev-vcs/mercurial-server/metadata.xml b/dev-vcs/mercurial-server/metadata.xml
new file mode 100644
index 000000000..2f9afc209
--- /dev/null
+++ b/dev-vcs/mercurial-server/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>sci</herd>
+<maintainer>
+ <email>kleiner_otti@gmx.de</email>
+</maintainer>
+</pkgmetadata>