dev-vcs/monotone: Copy from dev-util/monotone
authorSebastian Pipping <sping@gentoo.org>
Fri, 5 Mar 2010 16:49:36 +0000 (16:49 +0000)
committerSebastian Pipping <sping@gentoo.org>
Fri, 5 Mar 2010 16:49:36 +0000 (16:49 +0000)
Package-Manager: portage-2.2_rc64/cvs/Linux i686
RepoMan-Options: --force

dev-vcs/monotone/ChangeLog [new file with mode: 0644]
dev-vcs/monotone/Manifest [new file with mode: 0644]
dev-vcs/monotone/files/50monotone-gentoo.el [new file with mode: 0644]
dev-vcs/monotone/files/hooks.lua [new file with mode: 0644]
dev-vcs/monotone/files/monotone-0.36.initd [new file with mode: 0644]
dev-vcs/monotone/files/monotone.confd [new file with mode: 0644]
dev-vcs/monotone/files/read-permissions [new file with mode: 0644]
dev-vcs/monotone/files/write-permissions [new file with mode: 0644]
dev-vcs/monotone/metadata.xml [new file with mode: 0644]
dev-vcs/monotone/monotone-0.45.ebuild [new file with mode: 0644]

diff --git a/dev-vcs/monotone/ChangeLog b/dev-vcs/monotone/ChangeLog
new file mode 100644 (file)
index 0000000..121fd7d
--- /dev/null
@@ -0,0 +1,303 @@
+# ChangeLog for dev-vcs/monotone
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/ChangeLog,v 1.1 2010/03/05 16:49:35 sping Exp $
+
+  05 Mar 2010; Sebastian Pipping <sping@gentoo.org>
+  +files/50monotone-gentoo.el, +files/monotone-0.36.initd,
+  +monotone-0.45.ebuild, +files/hooks.lua, +files/monotone.confd,
+  +files/read-permissions, +files/write-permissions, +metadata.xml:
+  Move to dev-vcs category
+
+  09 Dec 2009; Christian Faulhammer <fauli@gentoo.org>
+  -monotone-0.40.ebuild, -monotone-0.44.ebuild:
+  clean up
+
+  08 Dec 2009; nixnut <nixnut@gentoo.org> monotone-0.45.ebuild:
+  ppc stable #291749
+
+  07 Dec 2009; Markus Meier <maekke@gentoo.org> monotone-0.45.ebuild:
+  x86 stable, bug #291749
+
+  07 Dec 2009; Markus Meier <maekke@gentoo.org> monotone-0.45.ebuild:
+  amd64 stable, bug #291749
+
+*monotone-0.45 (13 Sep 2009)
+
+  13 Sep 2009; Patrick Lauer <patrick@gentoo.org> +monotone-0.45.ebuild:
+  Bump, closes #284803
+
+  16 Jul 2009; Samuli Suominen <ssuominen@gentoo.org> monotone-0.44.ebuild:
+  Remove obsolete strip-flags and replace FEATURES testing by UID testing
+  wrt #277450, thanks to Jack Lloyd for reporting.
+
+*monotone-0.44 (28 Jun 2009)
+
+  28 Jun 2009; Patrick Lauer <patrick@gentoo.org> +monotone-0.44.ebuild:
+  Bump to 0.44, fixes #270827
+
+  29 Apr 2009; Raúl Porcel <armin76@gentoo.org> monotone-0.43.ebuild:
+  Readd ~ia64 wrt #267773
+
+*monotone-0.43 (28 Apr 2009)
+
+  28 Apr 2009; Daniel Black <dragonheart@gentoo.org> +monotone-0.43.ebuild:
+  version bump as per bug #238026 with ebuild thanks to Dennis Schridde
+
+  08 Nov 2008; nixnut <nixnut@gentoo.org> monotone-0.40.ebuild:
+  Stable on ppc wrt bug 245390
+
+  03 Nov 2008; Markus Meier <maekke@gentoo.org> monotone-0.40.ebuild:
+  amd64/x86 stable, bug #244390
+
+  30 Aug 2008; Daniel Black <dragonheart@gentoo.org>
+  files/monotone-0.36.initd:
+  added default values to init script. patch thanks to Dennis Schridde - bug
+  #235037
+
+  30 Aug 2008; Daniel Black <dragonheart@gentoo.org> monotone-0.39.ebuild,
+  monotone-0.40.ebuild:
+  depricating elist-comp as per bug #235879. thanks Ulrich for the patch
+
+  03 May 2008; Daniel Black <dragonheart@gentoo.org> monotone-0.35.ebuild,
+  -monotone-0.36-r1.ebuild:
+  cleaned out 0.36 version. Fixed boost depend in 0.35 (stable) so it is not a
+  runtime depend. Thanks to gentoofan23 on irc for the prompting
+
+*monotone-0.40 (03 May 2008)
+
+  03 May 2008; Daniel Black <dragonheart@gentoo.org> +monotone-0.40.ebuild:
+  version bump
+
+  03 Apr 2008; Daniel Black <dragonheart@gentoo.org> monotone-0.39.ebuild:
+  use system pcre as suggested by Dennis Schridde in bug #215837
+
+*monotone-0.39 (02 Apr 2008)
+
+  02 Apr 2008; Daniel Black <dragonheart@gentoo.org> -files/monotone.initd,
+  -monotone-0.29.ebuild, -monotone-0.32.ebuild, -monotone-0.33.ebuild,
+  -monotone-0.36.ebuild, +monotone-0.39.ebuild:
+  version bump as per bug #202371 - thanks to fixes from Rainer Keller and
+  suggestions from Xake. Old version cleanout
+
+*monotone-0.36-r1 (26 Oct 2007)
+
+  26 Oct 2007; Ulrich Mueller <ulm@gentoo.org> +files/50monotone-gentoo.el,
+  +monotone-0.36-r1.ebuild:
+  Improve Emacs support: Use elisp-comp function for proper byte-compilation;
+  replace "require" in site-init file by autoload mechanism. Add die commands
+  to elisp-install and elisp-site-file-install.
+
+  24 Oct 2007; Steve Dibb <beandog@gentoo.org> monotone-0.35.ebuild:
+  amd64 stable, bug 187158
+
+  09 Oct 2007; Lars Weiler <pylon@gentoo.org> monotone-0.35.ebuild:
+  stable ppc, bug #187158
+
+  07 Oct 2007; Christian Faulhammer <opfer@gentoo.org> monotone-0.35.ebuild:
+  stable x86, bug 187158
+
+*monotone-0.36 (07 Oct 2007)
+
+  07 Oct 2007; Christian Faulhammer <opfer@gentoo.org>
+  +files/monotone-0.36.initd, +monotone-0.36.ebuild:
+  version bump, fixes bug 193805; correct init file so bug 193935 gets fixed:
+  solution proposed by Dennis Schridde <lindevel@gmx.net>
+
+*monotone-0.35 (21 Jun 2007)
+
+  21 Jun 2007; Daniel Black <dragonheart@gentoo.org>
+  +files/monotone-0.35-numeric-vocab.patch, +monotone-0.35.ebuild:
+  version bump and patch as per bug #177147 thanks to Luis Vitorio
+  Cargnini
+
+  14 May 2007; Thilo Bangert <bangert@gentoo.org> metadata.xml:
+  add <herd>no-herd</herd>
+
+  04 Apr 2007; Leonardo Boshell <leonardop@gentoo.org> metadata.xml:
+  Removing myself as maintainer.
+
+*monotone-0.33 (13 Mar 2007)
+
+  13 Mar 2007; Daniel Black <dragonheart@gentoo.org>
+  +files/monotone-0.33.initd, metadata.xml, -monotone-0.16.ebuild,
+  -monotone-0.18.ebuild, -monotone-0.19.ebuild, -monotone-0.24.ebuild,
+  -monotone-0.25.ebuild, monotone-0.29.ebuild, monotone-0.32.ebuild,
+  +monotone-0.33.ebuild:
+  version bump thanks to johnny. big prune of back versions too. Welcome
+  johnny to the maintainence of monotone
+
+  05 Mar 2007; Daniel Black <dragonheart@gentoo.org> monotone-0.29.ebuild,
+  monotone-0.32.ebuild:
+  bad escaping on einfo comments thanks to johnny in irc
+
+  05 Mar 2007; Marius Mauch <genone@gentoo.org> monotone-0.24.ebuild,
+  monotone-0.25.ebuild, monotone-0.29.ebuild, monotone-0.32.ebuild:
+  Replacing einfo with elog
+
+  22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
+  Transition to Manifest2.
+
+  05 Feb 2007; Simon Stelling <blubb@gentoo.org> monotone-0.29.ebuild:
+  stable on amd64
+
+  20 Jan 2007; Daniel Black <dragonheart@gentoo.org> monotone-0.29.ebuild,
+  monotone-0.32.ebuild:
+  montone typo bit more common - bug #161897 thanks Cameron Brunner
+
+  08 Jan 2007; Christian Faulhammer <opfer@gentoo.org> monotone-0.29.ebuild:
+  stable x86, bug #159152
+
+  07 Jan 2007; Daniel Black <dragonheart@gentoo.org> monotone-0.29.ebuild,
+  monotone-0.32.ebuild:
+  /var/log/montone -> /var/log/monotone typo fix thanks to Markus Meier in bug
+  #159152
+
+  03 Jan 2007; nixnut <nixnut@gentoo.org> monotone-0.29.ebuild:
+  Stable on ppc wrt bug 159152
+
+  29 Dec 2006; Daniel Black <dragonheart@gentoo.org> monotone-0.29.ebuild:
+  change boost dependency as it does not work for 1.34*. monotone versions
+  <=0.25 are on the way out once 0.29 is stabilised
+
+*monotone-0.32 (28 Dec 2006)
+
+  28 Dec 2006; Daniel Black <dragonheart@gentoo.org> +monotone-0.32.ebuild:
+  version bump as per bug #149209. Thanks Jack Lloyd
+
+  29 Oct 2006; Daniel Black <dragonheart@gentoo.org> monotone-0.29.ebuild:
+  requires >=gcc-3.4 as per bug #146971 thanks to Petr Baudis
+
+*monotone-0.29 (04 Sep 2006)
+
+  04 Sep 2006; Daniel Black <dragonheart@gentoo.org> +files/hooks.lua,
+  +files/monotone.confd, +files/monotone.initd, +files/read-permissions,
+  +files/write-permissions, +monotone-0.29.ebuild:
+  version bump as per bug #131044. Thanks to the many many many people who
+  have endured my slowness and contributed to the concoction that is this
+  ebuild and scripts
+
+  12 Jul 2006; Danny van Dyk <kugelfang@gentoo.org> monotone-0.16.ebuild:
+  QA: Added doc to IUSE.
+
+  16 Jan 2006; Mark Loeser <halcy0n@gentoo.org> monotone-0.25.ebuild:
+  Add test-flags for -fstack-protector
+
+*monotone-0.25 (02 Jan 2006)
+
+  02 Jan 2006; Leonardo Boshell <leonardop@gentoo.org>
+  +monotone-0.25.ebuild:
+  Version bump.
+
+*monotone-0.24 (28 Nov 2005)
+
+  28 Nov 2005; Leonardo Boshell <leonardop@gentoo.org>
+  +monotone-0.24.ebuild:
+  Version bump.
+
+  18 Nov 2005; Leonardo Boshell <leonardop@gentoo.org> monotone-0.18.ebuild,
+  monotone-0.19.ebuild:
+  Updated boost dependency version to >=1.32.0 (bug #90457).
+
+*monotone-0.23-r1 (17 Oct 2005)
+
+  17 Oct 2005; Daniel Black <dragonheart@gentoo.org> -monotone-0.23.ebuild,
+  +monotone-0.23-r1.ebuild:
+  added -fno-omit-frame-pointer as per bug #109507 thanks to Glenn L. McGrath
+
+*monotone-0.23 (30 Sep 2005)
+
+  30 Sep 2005; Leonardo Boshell <leonardop@gentoo.org>
+  +monotone-0.23.ebuild:
+  New version.
+
+*monotone-0.22 (09 Aug 2005)
+
+  22 Aug 2005; Leonardo Boshell <leonardop@gentoo.org> monotone-0.22.ebuild:
+  New version.
+
+*monotone-0.21-r1 (08 Aug 2005)
+
+  08 Aug 2005; Leonardo Boshell <leonardop@gentoo.org>
+  monotone-0.21-r1.ebuild, files/30monotone-gentoo.el:
+  New revision. Added 'emacs' USE flag to optionally install elisp files
+  from 'contrib' (bug #101742).
+
+*monotone-0.21 (19 Jul 2005)
+
+  19 Jul 2005; Leonardo Boshell <leonardop@gentoo.org> monotone-0.21.ebuild:
+  New release.
+
+*monotone-0.20 (06 Jul 2005)
+
+  06 Jul 2005; Leonardo Boshell <leonardop@gentoo.org> monotone-0.20.ebuild:
+  New release.
+
+  17 Jun 2005; Michael Hanselmann <hansmi@gentoo.org> monotone-0.19.ebuild:
+  Stable on ppc.
+
+  15 Jun 2005; Leonardo Boshell <leonardop@gentoo.org> monotone-0.19.ebuild:
+  Stable on x86.
+
+*monotone-0.19 (15 May 2005)
+
+  15 May 2005; Leonardo Boshell <leonardop@gentoo.org> monotone-0.19.ebuild,
+  metadata.xml:
+  New release. Reset SLOT to 0. Reworded the post-installation instructions.
+  Added support for the 'ipv6' USE flag, and re-enabled 'doc'. Don't inherit
+  from eutils. Style changes. Added myself as maintainer in metadata.xml.
+  Resolves bug #91490.
+
+  01 May 2005; Daniel Black <dragonheart@gentoo.org> monotone-0.18.ebuild:
+  remove popt dependancy as per bug #90967 by James Rowe
+  <jnrowe@ukfsSPAMLESSn.org>
+
+  24 Apr 2005; Michael Hanselmann <hansmi@gentoo.org> monotone-0.18.ebuild:
+  Stable on ppc.
+
+*monotone-0.18 (21 Apr 2005)
+
+  21 Apr 2005; Daniel Black <dragonheart@gentoo.org> +monotone-0.18.ebuild:
+  Version bump as per bug #85998. Thanks Wojciech Milkowski <wmilkowski@gazeta.pl>
+
+  19 Apr 2005; Daniel Black <dragonheart@gentoo.org> monotone-0.16.ebuild,
+  monotone-0.17.ebuild:
+  changed gcc dependancy down to 3.2 as suggested by Michal Gornisiewicz
+  <michal@tartarus.uNOSPAMwa.edu.au> via email
+
+  12 Apr 2005; David Holm <dholm@gentoo.org> monotone-0.17.ebuild:
+  Added to ~ppc.
+
+  01 Apr 2005; Simon Stelling <blubb@gentoo.org> monotone-0.17.ebuild:
+  stable on amd64
+
+  25 Mar 2005; Daniel Black <dragonheart@gentoo.org> monotone-0.17.ebuild:
+  Selftest now fixed
+
+*monotone-0.17 (24 Mar 2005)
+
+  24 Mar 2005; Daniel Black <dragonheart@gentoo.org> +monotone-0.17.ebuild:
+  Version bump as per bug #85998. Ebuild thanks to Wojciech Milkowski
+  <wmilkowski@gazeta.pl>
+
+  04 Jan 2005; Daniel Black <dragonheart@gentoo.org> monotone-0.16.ebuild:
+  enabled self test with a warning about test #62 cause it failed for Wojciech
+  Milkowski <wmilkowski@gazeta.pl> (bug #76332).
+
+  02 Jan 2005; Daniel Black <dragonheart@gentoo.org> monotone-0.16.ebuild:
+  Added strip-flags at the suggestion of Wojciech Milkowski
+  <wmilkowski@gazeta.pl>. bug #76332
+
+*monotone-0.16 (02 Jan 2005)
+
+  02 Jan 2005; Daniel Black <dragonheart@gentoo.org> -monotone-0.15.ebuild,
+  +monotone-0.16.ebuild:
+  Remove broken 0.15 version. Added version 0.16 as per bug report #76332.
+  Thanks to ajax <ajax@nwnk.net> and Wojciech Milkowski <wmilkowski@gazeta.pl>.
+
+*monotone-0.15 (30 Dec 2004)
+
+  30 Dec 2004; Daniel Black <dragonheart@gentoo.org> +metadata.xml,
+  +monotone-0.15.ebuild:
+  initial import as per bug #39383. Ebuild based of contributions from Peter
+  Simons <simons@cryp.to> and Wojciech Milkowski <wmilkowski@gazeta.pl>.
+
diff --git a/dev-vcs/monotone/Manifest b/dev-vcs/monotone/Manifest
new file mode 100644 (file)
index 0000000..5503012
--- /dev/null
@@ -0,0 +1,10 @@
+AUX 50monotone-gentoo.el 1217 RMD160 82532c08ab1409fe2a9a643baf0f769841f39db2 SHA1 ccdd819dd1e497a5dd546df3b898a8f3efce2e45 SHA256 bfd32a5f57abd47bd6bc35ce27c2a31dfd1c1f7517d869fc0bca6b715d8ea259
+AUX hooks.lua 154 RMD160 0297c570bafe350a4160a46351c00f46ea4fc1ef SHA1 f31bdd8d567639b2aa427e98b2df47351a8e1237 SHA256 55e17360a14ccf70d2da5b3e3ad038b1021c30f4be5c69029f50bd1ec8cbf326
+AUX monotone-0.36.initd 2431 RMD160 bfa9672644eb07cbdfc2a03f7e20c557f2b5cc97 SHA1 448eea7bf3bdf14c85ce01d7197d04cfacedd89d SHA256 361cd19633a64f6b037b98ac50a2622d8856ff2dffb89c0b11b45660ba43bdb6
+AUX monotone.confd 803 RMD160 507ee4058e6f8197bd0b7a25f1115ec42ae226ec SHA1 1887e76fd00585344e614c3392527866bb94614c SHA256 4e266a08108441438fb4b3ac40216e731378d378593807b0826f58446c346e5b
+AUX read-permissions 192 RMD160 de9f340da2e143f306b7cf37584d7b43b100c06b SHA1 b83336348987f9c6f9a46f0191adf9fa87d1b83c SHA256 4f93a644b2f16d6ea5c4d28e3039dfddd7f8e38ca1b8d54389094be751fbfa7c
+AUX write-permissions 32 RMD160 164bc129fb3cdb2314d7ec96d23a9fc6f0e856a3 SHA1 0b48801914336a5a3baebf79725be81b52d279f4 SHA256 ddd40fac5d6fe98d9f58c4731a500eb1350a42ae7ca0ddaa40eaa3bbeb99026c
+DIST monotone-0.45.tar.gz 4645511 RMD160 d225595ba908d2d9366ffc3490caba83aa9ad9bb SHA1 84bd7ab5f7b1bfe98028f5105e3dbcd82c809e51 SHA256 64c734274715f392eb4a879172a11c0606d37c02b4a6f23045772af5f8e2a9ec
+EBUILD monotone-0.45.ebuild 3298 RMD160 3f5e852102203e71dc96133bd236995d4bf6300f SHA1 7007f29a31eaa5feba28e628497d3933e0038b99 SHA256 dda02ccbd05949ce6bd3427a9581a5e5e656ca4e01d2d1eae0c6ab138f601310
+MISC ChangeLog 10969 RMD160 06c8461cb9cc80838a0fe076d6d0711fd39c85af SHA1 cb526a4afb2fbbdd90b3bba862ec0f6834a1aa96 SHA256 9b44dcf564d659b8dbaa6047ba54e75030ab737bc973dc712a2eb4ce22a5ec91
+MISC metadata.xml 1024 RMD160 85108ed2778629efe1db730bcca17511c1df0acf SHA1 f51b9fba062d2a7011df881c8c907b7bfa30373c SHA256 e55ef6758ed6927c8412a7514e43e869c1304b503b7ca3e6d8311558c2413c7c
diff --git a/dev-vcs/monotone/files/50monotone-gentoo.el b/dev-vcs/monotone/files/50monotone-gentoo.el
new file mode 100644 (file)
index 0000000..c84f456
--- /dev/null
@@ -0,0 +1,28 @@
+
+;;; monotone site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'monotone-toggle-vc-prefix-map "monotone"
+  "Toggle between the default and monotone vc-maps, ARG set map." t)
+(autoload 'monotone "monotone"
+  "Prompt for a STRING and run monotone with the split string." t)
+(autoload 'monotone-pull "monotone"
+  "Pull updates from a remote server.  ARG prompts." t)
+(autoload 'monotone-push "monotone"
+  "Push the DB contents to a remote server.  ARG prompts." t)
+(autoload 'monotone-vc-commit "monotone" "Do a commit." t)
+(autoload 'monotone-vc-print-log "monotone"
+  "Print the log for this buffer.  With prefix ARG the global log." t)
+(autoload 'monotone-vc-diff "monotone"
+  "Print the diffs for this buffer.  With prefix ARG, the global diffs." t)
+(autoload 'monotone-vc-register "monotone"
+  "Register this file with monotone for the next commit." t)
+(autoload 'monotone-vc-status "monotone"
+  "Print the status of the current branch." t)
+(autoload 'monotone-grab-id "monotone"
+  "Grab the id under point and put it in the kill buffer for later use." t)
+
+(autoload 'mnav-revdb-reload "monotone-nav")
+(autoload 'mnav-pick "monotone-nav"
+  "Display browser to pick a monotone revision." t)
diff --git a/dev-vcs/monotone/files/hooks.lua b/dev-vcs/monotone/files/hooks.lua
new file mode 100644 (file)
index 0000000..bbdb004
--- /dev/null
@@ -0,0 +1,4 @@
+-- Add custom hooks after the following line.  It includes the identification
+-- needed to start the server.
+
+include(get_confdir() .. "/passphrase.lua")
diff --git a/dev-vcs/monotone/files/monotone-0.36.initd b/dev-vcs/monotone/files/monotone-0.36.initd
new file mode 100644 (file)
index 0000000..4427075
--- /dev/null
@@ -0,0 +1,85 @@
+#!/sbin/runscript
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/files/monotone-0.36.initd,v 1.1 2010/03/05 16:49:36 sping Exp $
+
+opts="import"
+
+depend() {
+       need net
+}
+
+# Substitute common default values
+MTN_USER=${MTN_USER:-monotone}
+MTN_GROUP=${MTN_GROUP:-monotone}
+MTN_KEY=${MTN_KEY:-monotone@`hostname --fqdn`}
+MTN_CONFDIR=${MTN_CONFDIR:-/etc/monotone}
+MTN_COMMON="--norc --confdir=${MTN_CONFDIR} \
+       --keydir=${MTN_KEYDIR:-/var/lib/monotone/keys} \
+       --db=${MTN_DB:-/var/lib/monotone/default.mtn} \
+       --rcfile=${MTN_CONFDIR}/hooks.lua --log=/var/log/monotone/monotone.log"
+       #--dump=$ERRORLOG
+MTN_PIDFILE="/var/run/monotone/monotone.pid"
+MTN_HOME=$(awk -F: -vuid=$MTN_USER -vuser=$MTN_USER '$3 == uid || $1 == user { print $6 }' < /etc/passwd)
+
+dbexists() {
+       # Create the database if it doesn't exist
+       if [ ! -e ${MTN_DB:-/var/lib/monotone/default.mtn} ]; then
+               ebegin "Creating monotone database"
+               start-stop-daemon --start \
+                       --chuid ${MTN_USER}:${MTN_GROUP}  \
+                       --exec /usr/bin/mtn -- ${MTN_COMMON} db init
+               eend $?
+       fi
+       if [ ! -e ${MTN_KEYDIR:-/var/lib/monotone/keys}/${MTN_KEY} ]; then
+               ebegin "Creating monotone server keypair"
+               export MTN_PWD=${RANDOM}
+               yes "${MTN_PWD}" | \
+                       start-stop-daemon --start \
+                       --chuid ${MTN_USER}:${MTN_GROUP}  \
+                       --exec /usr/bin/mtn -- ${MTN_COMMON} genkey ${MTN_KEY}
+                       
+               eend $?
+               # Update the password lua hook
+               cat > ${MTN_CONFDIR}/passphrase.lua <<EOF
+-- This file is automaticaly generated by the init scripts.
+-- If you want to add custom hooks, edit ${MTN_CONFDIR}/hooks.lua
+-- If you want to change the settings, please edit /etc/conf.d/monotone
+
+function get_passphrase(identity)
+  if (identity == "${MTN_KEY}") then
+    return "${MTN_PWD}"
+  end
+  return false
+end
+EOF
+       fi
+}
+
+start() {
+       cd ${MTN_HOME}
+       dbexists
+
+       ebegin "Starting monotone server"
+       start-stop-daemon --start --background \
+               --chuid ${MTN_USER}:${MTN_GROUP}  \
+               --exec /usr/bin/mtn -- ${MTN_COMMON} --pid-file=${MTN_PIDFILE} \
+               --key=${MTN_KEY} --bind=${MTN_ADDRESS:-0.0.0.0} serve
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping monotone server"
+       start-stop-daemon --stop --quiet --pidfile ${MTN_PIDFILE}
+       eend $?
+}
+
+import() {
+       cd ${MTN_HOME}
+       dbexists
+
+       # Read packets into the database
+       einfo "Importing packets to monotone database"
+       cat | /usr/bin/mtn ${MTN_COMMON} read
+       eend $?
+}
diff --git a/dev-vcs/monotone/files/monotone.confd b/dev-vcs/monotone/files/monotone.confd
new file mode 100644 (file)
index 0000000..e95d69f
--- /dev/null
@@ -0,0 +1,26 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/files/monotone.confd,v 1.1 2010/03/05 16:49:36 sping Exp $
+
+# The commented variables in this file are the defaults that are used
+
+# in the init-script.  You don't need to uncomment them except to
+# customize them to different values.
+
+# Location of the served database
+#MTN_DB="/var/lib/monotone/default.mtn"
+
+# Server identification
+#MTN_KEY="monotone@`hostname --fqdn`"
+#MTN_PWD=""
+
+# User and group as which to run monotone
+#MTN_USER="monotone"
+#MTN_GROUP="monotone"
+
+# The address and or port (ADDRESS[:PORT]) monotone should listen on
+#MTN_ADDRESS=0.0.0.0
+
+# Advanced options
+#MTN_CONFDIR=/etc/monotone
+#MTN_KEYDIR=/var/lib/monotone/keys
diff --git a/dev-vcs/monotone/files/read-permissions b/dev-vcs/monotone/files/read-permissions
new file mode 100644 (file)
index 0000000..d08200a
--- /dev/null
@@ -0,0 +1,7 @@
+pattern "net.example.project.{private,security}*"
+allow "joe@example.net"
+allow "jim@example.net"
+
+comment "everyone can read these branches"
+pattern "net.example.{public,project}*"
+allow "*"
diff --git a/dev-vcs/monotone/files/write-permissions b/dev-vcs/monotone/files/write-permissions
new file mode 100644 (file)
index 0000000..1b138c7
--- /dev/null
@@ -0,0 +1,2 @@
+joe@example.net
+jim@example.net
diff --git a/dev-vcs/monotone/metadata.xml b/dev-vcs/monotone/metadata.xml
new file mode 100644 (file)
index 0000000..4175e4d
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+  <maintainer>
+    <email>dragonheart@gentoo.org</email>
+    <name>Daniel Black</name>
+  </maintainer>
+  <maintainer>
+    <email>johnny@localmomentum.net</email>
+    <name>Jonny</name>
+       <description>Future Maintainer</description>
+  </maintainer>
+  <longdescription>
+    A free distributed version control system. It provides a simple,
+    single-file transactional version store, with fully disconnected
+    operation and an efficient peer-to-peer synchronization
+    protocol. It understands history-sensitive merging, lightweight
+    branches, integrated code review and 3rd party testing. It uses
+    cryptographic version naming and client-side RSA certificates. It
+    has good internationalization support, has no external
+    dependencies, runs on linux, solaris, OSX, windows, and other
+    unixes, and is licensed under the GNU GPL.
+  </longdescription>
+</pkgmetadata>
diff --git a/dev-vcs/monotone/monotone-0.45.ebuild b/dev-vcs/monotone/monotone-0.45.ebuild
new file mode 100644 (file)
index 0000000..db7c753
--- /dev/null
@@ -0,0 +1,122 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/monotone-0.45.ebuild,v 1.1 2010/03/05 16:49:35 sping Exp $
+
+EAPI=2
+inherit bash-completion elisp-common eutils
+
+DESCRIPTION="Monotone Distributed Version Control System"
+HOMEPAGE="http://monotone.ca"
+SRC_URI="http://monotone.ca/downloads/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="1"
+KEYWORDS="amd64 ~ia64 ppc x86"
+IUSE="doc emacs ipv6 nls"
+
+RDEPEND="sys-libs/zlib
+       emacs? ( virtual/emacs )
+       >=dev-libs/libpcre-7.6
+       >=dev-libs/botan-1.8.0
+       >=dev-db/sqlite-3.3.8
+       >=dev-lang/lua-5.1
+       net-dns/libidn"
+DEPEND="${RDEPEND}
+       >=dev-libs/boost-1.33.1
+       nls? ( >=sys-devel/gettext-0.11.5 )
+       doc? ( sys-apps/texinfo )"
+
+pkg_setup() {
+       enewgroup monotone
+       enewuser monotone -1 -1 /var/lib/monotone monotone
+       if [[ "$(gcc-version)" == "3.3" ]]; then
+               die 'requires >=gcc-3.4'
+       fi
+}
+
+src_configure() {
+       econf \
+               $(use_enable nls) \
+               $(use_enable ipv6) \
+               --with-system-pcre
+}
+
+src_compile() {
+       emake || die "emake failed"
+
+       if use doc; then
+               emake html || die "emake html failed"
+       fi
+
+       if use emacs; then
+               cd contrib
+               elisp-compile *.el || die "elisp-compile failed"
+       fi
+}
+
+src_test() {
+       if [ $UID != 0 ]; then
+               emake check || die "emake check failed"
+       else
+               ewarn "Tests will fail if ran as root, skipping."
+       fi
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "emake install failed"
+
+       mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF}
+
+       dobashcompletion contrib/monotone.bash_completion
+
+       if use doc; then
+               dohtml -r html/*
+               dohtml -r figures
+       fi
+
+       if use emacs; then
+               elisp-install ${PN} contrib/*.{el,elc} || die "elisp-install failed"
+               elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el \
+                       || die "elisp-site-file-install failed"
+       fi
+
+       dodoc AUTHORS ChangeLog NEWS README* UPGRADE
+       docinto contrib
+       dodoc contrib/*
+       newconfd "${FILESDIR}"/monotone.confd monotone
+       newinitd "${FILESDIR}"/${PN}-0.36.initd monotone
+
+       insinto /etc/monotone ;
+       newins "${FILESDIR}"/hooks.lua hooks.lua
+       newins "${FILESDIR}"/read-permissions read-permissions
+       newins "${FILESDIR}"/write-permissions write-permissions
+
+       keepdir /var/lib/monotone/keys/ /var/log/monotone /var/run/monotone
+       fowners monotone:monotone /var/lib/monotone /var/lib/monotone/keys/ \
+               /var/log/monotone /var/run/monotone
+}
+
+pkg_postinst() {
+       use emacs && elisp-site-regen
+       bash-completion_pkg_postinst
+
+       elog
+       elog "For details and instructions to upgrade from previous versions,"
+       elog "please read /usr/share/doc/${PF}/UPGRADE.bz2"
+       elog
+       elog "  1. edit /etc/conf.d/monotone"
+       elog "  2. import the first keys to enable access with"
+       elog "     env HOME=\${homedir} mtn pubkey me@example.net | /etc/init.d/monotone import"
+       elog "     Thereafter, those with write permission can add other keys via"
+       elog "     netsync with 'monotone push --key-to-push=IDENT' and then IDENT"
+       elog "     can be used in the read-permission and write-permission files."
+       elog "  3. adjust permisions in /etc/monotone/read-permissions"
+       elog "                      and /etc/monotone/write-permissions"
+       elog "  4. start the daemon: /etc/init.d/monotone start"
+       elog "  5. make persistent: rc-update add monotone default"
+       elog
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+}