summaryrefslogtreecommitdiff
path: root/attic/linux-build-farm/make-rpm-repos.sh
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-12-23 14:33:04 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-12-23 14:33:04 -0800
commit6b5d6efe6c9d597c49b3fe57d6c40342b226556f (patch)
treef1da6bc254fd73fa8a444a0056fd6279306064a4 /attic/linux-build-farm/make-rpm-repos.sh
parent5bff70194b8c6928e0c828139652fd881dcf3afb (diff)
downloadinfinitytier-6b5d6efe6c9d597c49b3fe57d6c40342b226556f.tar.gz
infinitytier-6b5d6efe6c9d597c49b3fe57d6c40342b226556f.zip
Retire old build farm (something new is coming) and update makefile for linux to not auto-build doc.
Diffstat (limited to 'attic/linux-build-farm/make-rpm-repos.sh')
-rwxr-xr-xattic/linux-build-farm/make-rpm-repos.sh64
1 files changed, 64 insertions, 0 deletions
diff --git a/attic/linux-build-farm/make-rpm-repos.sh b/attic/linux-build-farm/make-rpm-repos.sh
new file mode 100755
index 00000000..0ed1cfe4
--- /dev/null
+++ b/attic/linux-build-farm/make-rpm-repos.sh
@@ -0,0 +1,64 @@
+#!/bin/bash
+
+export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
+
+GPG_KEY=contact@zerotier.com
+
+rm -rf /tmp/zt-rpm-repo
+mkdir /tmp/zt-rpm-repo
+
+for distro in centos-* fedora-* amazon-*; do
+ dname=`echo $distro | cut -d '-' -f 1`
+ if [ "$dname" = "centos" ]; then
+ dname=el
+ fi
+ if [ "$dname" = "fedora" ]; then
+ dname=fc
+ fi
+ if [ "$dname" = "amazon" ]; then
+ dname=amzn1
+ fi
+ dvers=`echo $distro | cut -d '-' -f 2`
+
+ mkdir -p /tmp/zt-rpm-repo/$dname/$dvers
+
+ cp -v $distro/*.rpm /tmp/zt-rpm-repo/$dname/$dvers
+done
+
+rpmsign --resign --key-id=$GPG_KEY --digest-algo=sha256 `find /tmp/zt-rpm-repo -type f -name '*.rpm'`
+
+for db in `find /tmp/zt-rpm-repo -mindepth 2 -maxdepth 2 -type d`; do
+ createrepo --database $db
+done
+
+# Stupid RHEL stuff
+cd /tmp/zt-rpm-repo/el
+ln -sf 6 6Client
+ln -sf 6 6Workstation
+ln -sf 6 6Server
+ln -sf 6 6.0
+ln -sf 6 6.1
+ln -sf 6 6.2
+ln -sf 6 6.3
+ln -sf 6 6.4
+ln -sf 6 6.5
+ln -sf 6 6.6
+ln -sf 6 6.7
+ln -sf 6 6.8
+ln -sf 6 6.9
+ln -sf 7 7Client
+ln -sf 7 7Workstation
+ln -sf 7 7Server
+ln -sf 7 7.0
+ln -sf 7 7.1
+ln -sf 7 7.2
+ln -sf 7 7.3
+ln -sf 7 7.4
+ln -sf 7 7.5
+ln -sf 7 7.6
+ln -sf 7 7.7
+ln -sf 7 7.8
+ln -sf 7 7.9
+
+echo
+echo Repo created in /tmp/zt-rpm-repo