diff options
author | Daniel Black <dragonheart@gentoo.org> | 2006-09-04 13:33:52 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2006-09-04 13:33:52 +0000 |
commit | 18ab6f90b80ee32c7051ad9850c91696a565805c (patch) | |
tree | fb4d037a0f3f1a75f158e2089abfb0d4f5df166a /dev-util/monotone/files | |
parent | Version bump (diff) | |
download | gentoo-2-18ab6f90b80ee32c7051ad9850c91696a565805c.tar.gz gentoo-2-18ab6f90b80ee32c7051ad9850c91696a565805c.tar.bz2 gentoo-2-18ab6f90b80ee32c7051ad9850c91696a565805c.zip |
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
(Portage version: 2.1.1_rc1-r2)
Diffstat (limited to 'dev-util/monotone/files')
-rw-r--r-- | dev-util/monotone/files/digest-monotone-0.16 | 2 | ||||
-rw-r--r-- | dev-util/monotone/files/digest-monotone-0.18 | 2 | ||||
-rw-r--r-- | dev-util/monotone/files/digest-monotone-0.19 | 2 | ||||
-rw-r--r-- | dev-util/monotone/files/digest-monotone-0.29 | 3 | ||||
-rw-r--r-- | dev-util/monotone/files/hooks.lua | 4 | ||||
-rw-r--r-- | dev-util/monotone/files/monotone.confd | 26 | ||||
-rwxr-xr-x | dev-util/monotone/files/monotone.initd | 80 | ||||
-rw-r--r-- | dev-util/monotone/files/read-permissions | 7 | ||||
-rw-r--r-- | dev-util/monotone/files/write-permissions | 2 |
9 files changed, 128 insertions, 0 deletions
diff --git a/dev-util/monotone/files/digest-monotone-0.16 b/dev-util/monotone/files/digest-monotone-0.16 index 2ed7e567a983..fb7bd42c158f 100644 --- a/dev-util/monotone/files/digest-monotone-0.16 +++ b/dev-util/monotone/files/digest-monotone-0.16 @@ -1 +1,3 @@ MD5 66fe3f50a8fe621afc8f355b25201ecb monotone-0.16.tar.gz 3438625 +RMD160 cf59d85d24b6428888a533b07ffcf372ea4ab0fb monotone-0.16.tar.gz 3438625 +SHA256 103eebcbeafb36c3bd21941ea29a09511c2159ab02976ab01343a98b51f96f71 monotone-0.16.tar.gz 3438625 diff --git a/dev-util/monotone/files/digest-monotone-0.18 b/dev-util/monotone/files/digest-monotone-0.18 index 98e2dbdb8cae..81d558ed2f75 100644 --- a/dev-util/monotone/files/digest-monotone-0.18 +++ b/dev-util/monotone/files/digest-monotone-0.18 @@ -1 +1,3 @@ MD5 16a8f0cce9d219311d75e2b913d0fabc monotone-0.18.tar.gz 3989250 +RMD160 293b194b11aa9e846ea699fd85e5d2243764363c monotone-0.18.tar.gz 3989250 +SHA256 4f4b03e3bc3201a33e0f4dca6cbe3acdfb7f20b22bcf46fa8d58abf80e223342 monotone-0.18.tar.gz 3989250 diff --git a/dev-util/monotone/files/digest-monotone-0.19 b/dev-util/monotone/files/digest-monotone-0.19 index f4794e1f3f0b..7bb0e20170b6 100644 --- a/dev-util/monotone/files/digest-monotone-0.19 +++ b/dev-util/monotone/files/digest-monotone-0.19 @@ -1 +1,3 @@ MD5 aa549380068613dc04ef5d084bec1b1f monotone-0.19.tar.gz 4796447 +RMD160 9bcc5f9a5d03b452f49e4d6dacda682e1f3f6a64 monotone-0.19.tar.gz 4796447 +SHA256 974eba10318244e24d334bdd42c838c88b66cd3b77ce7c370b22187a4204a672 monotone-0.19.tar.gz 4796447 diff --git a/dev-util/monotone/files/digest-monotone-0.29 b/dev-util/monotone/files/digest-monotone-0.29 new file mode 100644 index 000000000000..04e9c342d918 --- /dev/null +++ b/dev-util/monotone/files/digest-monotone-0.29 @@ -0,0 +1,3 @@ +MD5 2261177af47621902c97719b94756994 monotone-0.29.tar.gz 4544609 +RMD160 00222f51b8888e1388fe6c0a29e9168eeafcf859 monotone-0.29.tar.gz 4544609 +SHA256 9ccda631303c96a2d6101ee1cfbc320de2de0ecb4e6503b573e29933ce68512d monotone-0.29.tar.gz 4544609 diff --git a/dev-util/monotone/files/hooks.lua b/dev-util/monotone/files/hooks.lua new file mode 100644 index 000000000000..bbdb0042a5f6 --- /dev/null +++ b/dev-util/monotone/files/hooks.lua @@ -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-util/monotone/files/monotone.confd b/dev-util/monotone/files/monotone.confd new file mode 100644 index 000000000000..acac7d54cb52 --- /dev/null +++ b/dev-util/monotone/files/monotone.confd @@ -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-util/monotone/files/monotone.confd,v 1.1 2006/09/04 13:33:52 dragonheart 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-util/monotone/files/monotone.initd b/dev-util/monotone/files/monotone.initd new file mode 100755 index 000000000000..f31ad1c74f01 --- /dev/null +++ b/dev-util/monotone/files/monotone.initd @@ -0,0 +1,80 @@ +#!/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-util/monotone/files/monotone.initd,v 1.1 2006/09/04 13:33:52 dragonheart Exp $ + +opts="import" + +depend() { + need net +} + +# Substitute common default values +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" + +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:-monotone}:${MTN_GROUP:-monotone} \ + --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:-monotone}:${MTN_GROUP:-monotone} \ + --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() { + dbexists + + ebegin "Starting monotone server" + start-stop-daemon --start --background \ + --chuid ${MTN_USER:-monotone}:${MTN_GROUP:-monotone} \ + --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() { + dbexists + + # Read packets into the database + einfo "Importing packets to monotone database" + cat | /usr/bin/mtn ${MTN_COMMON} read + eend $? +} diff --git a/dev-util/monotone/files/read-permissions b/dev-util/monotone/files/read-permissions new file mode 100644 index 000000000000..d08200aa0059 --- /dev/null +++ b/dev-util/monotone/files/read-permissions @@ -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-util/monotone/files/write-permissions b/dev-util/monotone/files/write-permissions new file mode 100644 index 000000000000..1b138c7fc6c0 --- /dev/null +++ b/dev-util/monotone/files/write-permissions @@ -0,0 +1,2 @@ +joe@example.net +jim@example.net |