mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-09 04:04:13 +00:00
More repo work.
This commit is contained in:
parent
fc4ea57a9c
commit
192bc4fcf0
@ -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.
|
||||
|
17
linux-build-farm/make-rpm-repos.sh
Executable file
17
linux-build-farm/make-rpm-repos.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user