Browse Source

More repo work.

pull/1/head
Adam Ierymenko 10 years ago
parent
commit
192bc4fcf0
  1. 2
      linux-build-farm/README.md
  2. 0
      linux-build-farm/make-apt-repos.sh
  3. 17
      linux-build-farm/make-rpm-repos.sh

2
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.

0
linux-build-farm/aptly.sh → linux-build-farm/make-apt-repos.sh

17
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
Loading…
Cancel
Save