diff options
author | 2018-01-28 04:23:07 +0300 | |
---|---|---|
committer | 2018-01-28 04:27:26 +0300 | |
commit | 48cb223907cae5bbe36d9cd35fb10865e15c414b (patch) | |
tree | d6c3430f6a8ee76d213856585362eaa56b57b184 /dev-vcs/monotone/files | |
parent | x11-misc/kronometer: 2.2.1 version bump (diff) | |
download | gentoo-48cb223907cae5bbe36d9cd35fb10865e15c414b.tar.gz gentoo-48cb223907cae5bbe36d9cd35fb10865e15c414b.tar.bz2 gentoo-48cb223907cae5bbe36d9cd35fb10865e15c414b.zip |
dev-vcs/monotone: remove last rited package
Closes: https://bugs.gentoo.org/634316
Closes: https://bugs.gentoo.org/434242
Closes: https://bugs.gentoo.org/496724
Closes: https://bugs.gentoo.org/526280
Closes: https://bugs.gentoo.org/537572
Diffstat (limited to 'dev-vcs/monotone/files')
-rw-r--r-- | dev-vcs/monotone/files/hooks.lua | 4 | ||||
-rw-r--r-- | dev-vcs/monotone/files/monotone-0.36.initd | 84 | ||||
-rw-r--r-- | dev-vcs/monotone/files/monotone.confd | 25 | ||||
-rw-r--r-- | dev-vcs/monotone/files/read-permissions | 7 | ||||
-rw-r--r-- | dev-vcs/monotone/files/write-permissions | 2 |
5 files changed, 0 insertions, 122 deletions
diff --git a/dev-vcs/monotone/files/hooks.lua b/dev-vcs/monotone/files/hooks.lua deleted file mode 100644 index bbdb0042a5f6..000000000000 --- a/dev-vcs/monotone/files/hooks.lua +++ /dev/null @@ -1,4 +0,0 @@ --- 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 deleted file mode 100644 index 286264c5f772..000000000000 --- a/dev-vcs/monotone/files/monotone-0.36.initd +++ /dev/null @@ -1,84 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2006-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later - -extra_commands="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 \ - --user ${MTN_USER} --group ${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 \ - --user ${MTN_USER} --group ${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 \ - --user ${MTN_USER} --group ${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 deleted file mode 100644 index 717725431717..000000000000 --- a/dev-vcs/monotone/files/monotone.confd +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -# 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 deleted file mode 100644 index d08200aa0059..000000000000 --- a/dev-vcs/monotone/files/read-permissions +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 1b138c7fc6c0..000000000000 --- a/dev-vcs/monotone/files/write-permissions +++ /dev/null @@ -1,2 +0,0 @@ -joe@example.net -jim@example.net |