Mailinglist Archive: opensuse-translation (103 mails)

< Previous Next >
Re: [opensuse-translation] Commit rights?
Olav Pettershagen <olpetter@xxxxxxxxx> writes:

I have checked out and updated from svn.opensuse.org (and translated) for
quite a while :), only not been able to commit translations.

So I'm not really in a hurry. I'll ask Karl how to proceed one of these days.

Just send us an _encrypted_ password, that you would like to use for the
opensuse SVN server. To encrypt the password, you can use the attached
bash script as follows:

Usage:
./svn-password <svn-repo> [<user-name>]

Examples:
This example uses the current login name as "user-name":
./svn-password opensuse-i18n

This example sets "foobar123" as "user-name":
./svn-password opensuse-i18n foobar123

Please, send the _encrypted_ password directly to Daniel (see cc:
jdsn@xxxxxxx).

#!/bin/bash
#
# (c) 2011 by J. Daniel Schmidt <jdsn@xxxxxxx>
#

if [ -z $1 ]
then
echo
echo "Usage: $0 <svn-repo-name> [<user-name>]"
echo " svn-repo-name: The name of the svn repository."
echo " user-name: The user name if different from current user name."
echo
exit 1
fi

SVNREPO=$1
NNAME=${2:-$USER}
SVNADMIN=jdsn@xxxxxxx
REALM="Authorization needed to access the ${SVNREPO} subversion repository"

echo
echo "Creating a password hash for user \"$NNAME\" and repo \"$SVNREPO\""

# create the hash and auth_file
TEMPFILE=`mktemp ${SVNREPO}_svn_auth.temp.XXXXX`
read -s -p "Please enter your password: " NEWPASSWD
echo
echo

case ${SVNREPO} in
opensuse-i18n | \
opensuse-doc ) (echo -n "${SVNREPO}: $NNAME:" ; echo -n $NEWPASSWD | perl
-ne 'chomp; print crypt("$_", "\$1\$")."\n"') > ${TEMPFILE} ;;
* ) (echo -n "$NNAME:$REALM:" && echo -n
"$NNAME:$REALM:$NEWPASSWD" | md5sum | sed "s/ \+-$//" ) > ${TEMPFILE} ;;
esac
unset NEWPASSWD

# send auth_file to svn-admin
read -p "Do you have a local mailserver and should I send the svn_auth file to
the SVN-admin? (y/N)"
if [[ $REPLY = [yY] ]]
then
echo '' | mail -a ${TEMPFILE} -s "svn.opensuse.org auth for ${SVNREPO} for
${NNAME}" ${SVNADMIN}
rm -v ${TEMPFILE}
else
echo
echo "Ok, not sending."
echo "--> Please write an eMail to ${SVNADMIN} and attach the file
${TEMPFILE}"
fi


--
Karl Eichwalder SUSE LINUX Products GmbH
R&D / Documentation Maxfeldstraße 5
90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
< Previous Next >
Follow Ups