pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/monotone-server Fix this package to adhere to th...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d3e9b5019a11
branches: trunk
changeset: 530329:d3e9b5019a11
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Sun Jun 24 20:55:27 2007 +0000
description:
Fix this package to adhere to the "new" monotone behavior. It has probably
been broken since monotone 0.32...
diffstat:
devel/monotone-server/Makefile | 11 +++-----
devel/monotone-server/PLIST | 3 +-
devel/monotone-server/files/monotone-server-init.sh | 26 +++++++++-----------
devel/monotone-server/files/monotone.sh | 12 +++------
4 files changed, 21 insertions(+), 31 deletions(-)
diffs (154 lines):
diff -r 818200a1315f -r d3e9b5019a11 devel/monotone-server/Makefile
--- a/devel/monotone-server/Makefile Sun Jun 24 10:56:56 2007 +0000
+++ b/devel/monotone-server/Makefile Sun Jun 24 20:55:27 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.31 2007/05/13 10:45:37 jmmv Exp $
+# $NetBSD: Makefile,v 1.32 2007/06/24 20:55:27 jmmv Exp $
#
DISTNAME= monotone-server-0.35
+PKGREVISION= 1
CATEGORIES= devel scm
MASTER_SITES= # empty
DISTFILES= # empty
@@ -26,10 +27,7 @@
BUILD_DEFS+= MONOTONE_GROUP MONOTONE_USER
EXAMPLEDIR= ${PREFIX}/share/examples/monotone-server
-CONF_FILES_PERMS= ${EXAMPLEDIR}/branches.conf \
- ${PKG_SYSCONFDIR}/branches.conf \
- ${MONOTONE_USER} ${MONOTONE_GROUP} 600
-CONF_FILES_PERMS+= ${EXAMPLEDIR}/hooks.conf \
+CONF_FILES_PERMS= ${EXAMPLEDIR}/hooks.conf \
${PKG_SYSCONFDIR}/hooks.conf \
${MONOTONE_USER} ${MONOTONE_GROUP} 600
CONF_FILES_PERMS+= ${EXAMPLEDIR}/read-permissions \
@@ -65,7 +63,7 @@
INSTALLATION_DIRS= sbin
do-extract:
-.for f in branches.conf hooks.conf monotone-server-init.sh read-permissions \
+.for f in hooks.conf monotone-server-init.sh read-permissions \
write-permissions
${CP} ${FILESDIR}/${f} ${WRKSRC}
.endfor
@@ -74,7 +72,6 @@
${INSTALL_SCRIPT} ${WRKSRC}/monotone-server-init.sh \
${PREFIX}/sbin/monotone-server-init
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
- ${INSTALL_DATA} ${WRKSRC}/branches.conf ${EXAMPLEDIR}/branches.conf
${INSTALL_DATA} ${WRKSRC}/hooks.conf ${EXAMPLEDIR}/hooks.conf
${INSTALL_DATA} ${WRKSRC}/read-permissions \
${EXAMPLEDIR}/read-permissions
diff -r 818200a1315f -r d3e9b5019a11 devel/monotone-server/PLIST
--- a/devel/monotone-server/PLIST Sun Jun 24 10:56:56 2007 +0000
+++ b/devel/monotone-server/PLIST Sun Jun 24 20:55:27 2007 +0000
@@ -1,6 +1,5 @@
-@comment $NetBSD: PLIST,v 1.3 2006/02/21 16:09:16 jmmv Exp $
+@comment $NetBSD: PLIST,v 1.4 2007/06/24 20:55:28 jmmv Exp $
sbin/monotone-server-init
-share/examples/monotone-server/branches.conf
share/examples/monotone-server/hooks.conf
share/examples/monotone-server/read-permissions
share/examples/monotone-server/write-permissions
diff -r 818200a1315f -r d3e9b5019a11 devel/monotone-server/files/monotone-server-init.sh
--- a/devel/monotone-server/files/monotone-server-init.sh Sun Jun 24 10:56:56 2007 +0000
+++ b/devel/monotone-server/files/monotone-server-init.sh Sun Jun 24 20:55:27 2007 +0000
@@ -1,6 +1,6 @@
#!@SH@
#
-# $NetBSD: monotone-server-init.sh,v 1.3 2006/02/21 16:09:16 jmmv Exp $
+# $NetBSD: monotone-server-init.sh,v 1.4 2007/06/24 20:55:29 jmmv Exp $
#
progname=$(basename $0)
@@ -81,7 +81,7 @@
echo "Initializing database: \`${home}/monotone.db'"
su - ${MONOTONE_USER} -c "${MONOTONE} --confdir=${PKG_SYSCONFDIR} \
- --db=monotone.db db init"
+ --db=monotone.db --keydir=${PKG_SYSCONFDIR}/keys db init"
cat <<EOF
@@ -93,17 +93,11 @@
EOF
su - ${MONOTONE_USER} -c "${MONOTONE} --confdir=${PKG_SYSCONFDIR} \
- --db=monotone.db genkey ${keyname}"
-su - ${MONOTONE_USER} -c "${MONOTONE} --confdir=${PKG_SYSCONFDIR} \
- --db=monotone.db pubkey ${keyname} >${keyname}-public"
-su - ${MONOTONE_USER} -c "${MONOTONE} --confdir=${PKG_SYSCONFDIR} \
- --db=monotone.db privkey ${keyname} >${keyname}-private"
+ --db=monotone.db --keydir=${PKG_SYSCONFDIR}/keys \
+ genkey ${keyname}"
-chown ${MONOTONE_USER}:${MONOTONE_GROUP} monotone.db \
- ${keyname}-public ${keyname}-private
+chown ${MONOTONE_USER}:${MONOTONE_GROUP} monotone.db
chmod 600 monotone.db
-chmod 444 ${keyname}-public
-chmod 400 ${keyname}-private
cat <<EOF
@@ -114,14 +108,18 @@
${PKG_SYSCONFDIR}/keys/${keyname}
-At last, edit the following files to finish the configuration of your
-new server:
+Then, edit the following files to finish the configuration of your new
+server:
- ${PKG_SYSCONFDIR}/branches.conf
${PKG_SYSCONFDIR}/hooks.conf
${PKG_SYSCONFDIR}/read-permissions
${PKG_SYSCONFDIR}/write-permissions
+At last, do not forget to register the public keys for the users with
+write access by using a command similar to:
+
+ monotone --db=${home}/monotone.db read < file-with-public-keys
+
Once finished, use the installed rc.d script (monotone) to start the
dedicated server process.
EOF
diff -r 818200a1315f -r d3e9b5019a11 devel/monotone-server/files/monotone.sh
--- a/devel/monotone-server/files/monotone.sh Sun Jun 24 10:56:56 2007 +0000
+++ b/devel/monotone-server/files/monotone.sh Sun Jun 24 20:55:27 2007 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: monotone.sh,v 1.4 2006/04/10 17:46:31 jmmv Exp $
+# $NetBSD: monotone.sh,v 1.5 2007/06/24 20:55:30 jmmv Exp $
#
# PROVIDE: monotone
# REQUIRE: DAEMON
@@ -11,10 +11,6 @@
. @PKG_SYSCONFDIR@/rc.conf
fi
-if [ -f "@PKG_SYSCONFDIR@/branches.conf" ]; then
- monotone_branches=$(cat @PKG_SYSCONFDIR@/branches.conf | grep -v '^#')
-fi
-
: ${monotone_group=@MONOTONE_GROUP@}
: ${monotone_home=@VARBASE@/monotone}
: ${monotone_user=@MONOTONE_USER@}
@@ -25,12 +21,12 @@
command_args="--norc \
--confdir=@PKG_SYSCONFDIR@ \
--db=${monotone_home}/monotone.db \
+ --keydir=@PKG_SYSCONFDIR@/keys \
--rcfile=@PKG_SYSCONFDIR@/hooks.conf \
- serve ${monotone_branches} \
+ serve \
>>${monotone_home}/monotone.log 2>&1 &"
required_dirs="@PKG_SYSCONFDIR@/keys"
-required_files="@PKG_SYSCONFDIR@/branches.conf \
- @PKG_SYSCONFDIR@/hooks.conf \
+required_files="@PKG_SYSCONFDIR@/hooks.conf \
@PKG_SYSCONFDIR@/read-permissions \
@PKG_SYSCONFDIR@/write-permissions \
${monotone_home}/monotone.db"
Home |
Main Index |
Thread Index |
Old Index