Last active
August 29, 2015 14:04
-
-
Save mildred/4e32276fc197395f0f81 to your computer and use it in GitHub Desktop.
Install geard from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#See: https://aur.archlinux.org/packages/ge/geard-git/PKGBUILD | |
set -e | |
mkdir -p /usr/local/src/geard.go | |
cd /usr/local/src/geard.go | |
export GOPATH="$PWD" | |
mkdir -p src/github.com/openshift | |
git clone https://github.com/openshift/geard.git src/github.com/openshift/geard || true | |
src/github.com/openshift/geard/contrib/build -n -l | |
sed 's:/usr/bin:/usr/local/bin:g' src/github.com/openshift/geard/contrib/geard.service >geard.service | |
set -x | |
install -d /usr/local/stow/geard/lib/systemd/system/ /usr/local/stow/geard/bin/ | |
for binfile in bin/*; do | |
install -Dm755 $binfile /usr/local/stow/geard/bin/${binfile##*/} | |
done | |
install -Dm644 geard.service /usr/local/stow/geard/lib/systemd/system/ | |
set +x | |
find /usr/local/stow/geard | |
cd /usr/local/stow | |
stow -R geard | |
echo "systemctl enable geard.service" | |
echo "systemctl start geard.service" | |
echo "systemctl status geard.service" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment