summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDennis Gilmore <dennis@ausil.us>2009-06-22 19:37:01 -0500
committerDennis Gilmore <dennis@ausil.us>2009-06-22 19:37:01 -0500
commitea4d7ec760fa7eef94bf88b35a8c148d6db6c9e7 (patch)
tree9a90f347dbcd0e9988b23c43bf4813b3b2aaf200 /src
parent9dcf86c43a5b9cb699ae95241a64a13dff5b8fd2 (diff)
parent2d297175f4ceba254849ee09d7a2a42cfa12da9a (diff)
downloadfedora-packager-ea4d7ec760fa7eef94bf88b35a8c148d6db6c9e7.tar.gz
fedora-packager-ea4d7ec760fa7eef94bf88b35a8c148d6db6c9e7.tar.xz
fedora-packager-ea4d7ec760fa7eef94bf88b35a8c148d6db6c9e7.zip
run merge
Diffstat (limited to 'src')
-rw-r--r--src/fedora-getsvn22
-rwxr-xr-xsrc/fedora-packager-setup.py10
-rwxr-xr-xsrc/fedora-packager-setup.sh120
3 files changed, 29 insertions, 123 deletions
diff --git a/src/fedora-getsvn b/src/fedora-getsvn
new file mode 100644
index 0000000..72f08ab
--- /dev/null
+++ b/src/fedora-getsvn
@@ -0,0 +1,22 @@
+#! /bin/sh
+
+if [ $# -ne 3 ];
+then
+ echo "Usage: $0 <project> <url> <revision>"
+ exit 1
+fi
+
+project=$1
+url=$2
+rev=$3
+
+tmpdir=`mktemp -d`
+curdir=`pwd`
+
+(
+ cd ${tmpdir}
+ LANG=C TZ=GMT svn export ${url} -r ${rev} ${project}
+ tar cjvf ${curdir}/${project}-svn${rev}.tar.bz2 ${project}
+)
+
+rm -rf ${tmpdir}
diff --git a/src/fedora-packager-setup.py b/src/fedora-packager-setup.py
index 898e111..1828b11 100755
--- a/src/fedora-packager-setup.py
+++ b/src/fedora-packager-setup.py
@@ -114,16 +114,20 @@ Save it to ~/.fedora.cert and re-run this script'''
download_cert('https://admin.fedoraproject.org/accounts/fedora-server-ca.cert', server_ca_cert)
if not os.path.islink(upload_ca_cert):
print 'Linking: ~/.fedora-server-ca.cert to ~/.fedora-upload-ca.cert'
- os.unlink(upload_ca_cert)
+ if os.path.exists(upload_ca_cert):
+ os.unlink(upload_ca_cert)
os.symlink(server_ca_cert, upload_ca_cert)
if not os.path.isdir(os.path.join(user_home, '.koji')):
os.mkdir(os.path.join(user_home, '.koji'))
- for arch in ['sparc', 'arm', 'alpha', 'ia64', 's390']:
+ for arch in ['sparc', 'arm', 'alpha', 'ia64', 's390', 'hppa']:
config_file = '%s/.koji/%s-config' % (user_home, arch)
if not os.path.isfile(config_file):
write_arch_config(arch, config_file)
else:
- print "koji config for %s exists" % arch
+ print "koji config for %s exists. Replacing with new file." % arch
+ os.unlink(config_file)
+ write_arch_config(arch, config_file)
+
print 'Setting up Browser Certificates'
generate_browser_cert()
diff --git a/src/fedora-packager-setup.sh b/src/fedora-packager-setup.sh
deleted file mode 100755
index cbb2868..0000000
--- a/src/fedora-packager-setup.sh
+++ /dev/null
@@ -1,120 +0,0 @@
-#!/bin/bash
-
-set -e
-
-function check_wget() {
- if [ ! -f /usr/bin/wget ]; then
- echo "You must have wget installed to download the required CA certificates"
- echo "Please run \"yum install wget\" as root, and re-run this script"
- exit 1
- fi
-}
-
-echo "Setting up Koji client..."
-
-if [ ! -f ~/.fedora.cert ]; then
- echo "You need a client certificate from the Fedora Account System"
- echo "Please download one from https://admin.fedoraproject.org/accounts/user/gencert"
- echo "Save it to ~/.fedora.cert and re-run this script"
- exit 1
-fi
-
-rm ~/.fedora-upload-ca.cert
-
-if [ ! -f ~/.fedora-upload-ca.cert ]; then
- check_wget
- /usr/bin/wget -q "https://admin.fedoraproject.org/accounts/fedora-upload-ca.cert" -O ~/.fedora-upload-ca.cert
-fi
-
-rm ~/.fedora-server-ca.cert
-
-if [ ! -f ~/.fedora-server-ca.cert ]; then
- check_wget
- /usr/bin/wget -q "https://admin.fedoraproject.org/accounts/fedora-server-ca.cert" -O ~/.fedora-server-ca.cert
-fi
-
-if [ ! -d ~/.koji ]; then
- mkdir ~/.koji
-fi
-
-
-for arch in arm alpha ia64 sparc s390 parisc ;do
-rm -f ~/.koji/$arch-config
-cat > ~/.koji/$arch-config <<EOF
-[koji]
-
-;configuration for koji cli tool
-
-;url of XMLRPC server
-server = http://$arch.koji.fedoraproject.org/kojihub
-
-;url of web interface
-weburl = http://$arch.koji.fedoraproject.org/koji
-
-;url of package download site
-pkgurl = http://$arch.koji.fedoraproject.org/packages
-
-;path to the koji top directory
-;topdir = /mnt/koji
-
-;configuration for SSL athentication
-
-;client certificate
-cert = ~/.fedora.cert
-
-;certificate of the CA that issued the client certificate
-ca = ~/.fedora-upload-ca.cert
-
-;certificate of the CA that issued the HTTP server certificate
-serverca = ~/.fedora-server-ca.cert
-
-EOF
-echo "Wrote $arch koji config file"
-done
-
-cat > ~/.plague-client.cfg <<EOF
-[Certs]
-user-ca-cert = ~/.fedora-upload-ca.cert
-server-ca-cert = ~/.fedora-server-ca.cert
-user-cert = ~/.fedora.cert
-
-[User]
-email = $email
-
-[Server]
-use_ssl = yes
-upload_user = me
-allow_uploads = no
-address = https://buildsys.fedoraproject.org:8887
-EOF
-echo "Wrote Plague Config file"
-
-cat <<EOF
-Creating an SSL certificate to import into your browser, to enable
-user authentication at http://koji.fedoraproject.org/koji/
-Choose your own passphrase, you will be prompted for this when importing the certificate.
-
-EOF
-
-if [ -f ~/fedora-browser-cert.p12 ]; then
- rm ~/fedora-browser-cert.p12
-fi
-
-/usr/bin/openssl pkcs12 -export -in ~/.fedora.cert -CAfile ~/.fedora-upload-ca.cert -out ~/fedora-browser-cert.p12
-
-cat <<EOF
-
-Browser certificate exported to ~/fedora-browser-cert.p12
-To import the certificate into Firefox:
-
-Edit -> Preferences -> Advanced
-Click "View Certificates"
-On "Your Certificates" tab, click "Import"
-Select ~/fedora-browser-cert.p12
-Type the export passphrase you chose earlier
-
-Once imported, you should see a certificate named "Fedora Project".
-Your username should appear underneath this.
-
-You should now be able to click the "login" link at http://koji.fedoraproject.org/koji/ successfully.
-EOF