diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-07-05 10:54:07 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-07-05 10:54:07 -0700 |
commit | 192bc4fcf0b11d2292e0e69f286ba16d40981649 (patch) | |
tree | e34d6d16d1145514715ae2cd36bb8c64cef7d6e1 | |
parent | fc4ea57a9cd814874c5c68e426a043b69cd3fd66 (diff) | |
download | infinitytier-192bc4fcf0b11d2292e0e69f286ba16d40981649.tar.gz infinitytier-192bc4fcf0b11d2292e0e69f286ba16d40981649.zip |
More repo work.
-rw-r--r-- | linux-build-farm/README.md | 2 | ||||
-rwxr-xr-x | linux-build-farm/make-apt-repos.sh (renamed from linux-build-farm/aptly.sh) | 0 | ||||
-rwxr-xr-x | linux-build-farm/make-rpm-repos.sh | 17 |
3 files changed, 18 insertions, 1 deletions
diff --git a/linux-build-farm/README.md b/linux-build-farm/README.md index c0c8325f..8055eb0b 100644 --- a/linux-build-farm/README.md +++ b/linux-build-farm/README.md @@ -5,4 +5,4 @@ This subfolder contains Dockerfiles and a script to build Linux packages for a v Running `build.sh` with no arguments builds everything. You can run `build.sh` with the name of a distro (e.g. centos-7) to only build that. Both 32 and 64 bit packages are built except where no 32-bit version of the distribution exists. -The `aptly.sh` script creates Debian repositories with *aptly*. You will need it installed. Be careful if you have an existing *aptly* configuration since this may mess with it. +The `make-apt-repos.sh` and `make-rpm-repos.sh` scripts build repositories. They may require some editing for outside-of-ZeroTier use, and be careful with the apt one if you have an existing *aptly* configuration. diff --git a/linux-build-farm/aptly.sh b/linux-build-farm/make-apt-repos.sh index 7a81cc5c..7a81cc5c 100755 --- a/linux-build-farm/aptly.sh +++ b/linux-build-farm/make-apt-repos.sh diff --git a/linux-build-farm/make-rpm-repos.sh b/linux-build-farm/make-rpm-repos.sh new file mode 100755 index 00000000..cbcaa9bf --- /dev/null +++ b/linux-build-farm/make-rpm-repos.sh @@ -0,0 +1,17 @@ +#!/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 +cp `find . -type f -name '*.rpm'` /tmp/zt-rpm-repo + +for rpm in /tmp/zt-rpm-repo/*.rpm; do + rpmsign --resign --key-id=$GPG_KEY --digest-algo=sha256 $rpm +done + +createrepo --database /tmp/zt-rpm-repo + +echo Repo created in /tmp/zt-rpm-repo |