| #!/bin/bash |
| # Builds and uploads a debian package for git-cookie-authdaemon. |
| APPNAME=git-cookie-authdaemon |
| DESCRIPTION="Controls Git authentication." |
| SYSTEMD="${APPNAME}.service" |
| |
| DEPENDS=git |
| |
| set -e -x |
| |
| # Copy files into the right locations in ${ROOT}. |
| copy_release_files() |
| { |
| if [ -d third_party/gcompute-tools ]; then |
| cd third_party/gcompute-tools |
| git pull |
| cd ../.. |
| else |
| mkdir -p third_party |
| cd third_party |
| git clone https://gerrit.googlesource.com/gcompute-tools |
| cd .. |
| fi |
| |
| INSTALL="fakeroot install -D --verbose --backup=none --group=root --owner=root" |
| INSTALL_DIR="fakeroot install -d --verbose --backup=none --group=root --owner=root" |
| |
| ${INSTALL} --mode=755 -T ./third_party/gcompute-tools/git-cookie-authdaemon ${ROOT}/usr/local/bin/git-cookie-authdaemon |
| ${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service |
| } |
| |
| source ../bash/release.sh |