More repo work.

This commit is contained in:
Adam Ierymenko 2016-07-05 10:54:07 -07:00
parent fc4ea57a9c
commit 192bc4fcf0
3 changed files with 18 additions and 1 deletions

View File

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

View File

@ -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