Skip to content

Instantly share code, notes, and snippets.

@rcrowley
Created October 1, 2012 16:45
Show Gist options
  • Save rcrowley/3812944 to your computer and use it in GitHub Desktop.
Save rcrowley/3812944 to your computer and use it in GitHub Desktop.
httperf_modified Debian packaging
VERSION="0.9.0"
BUILD="betable1"
set -e -x
OLDESTPWD="$PWD"
cd "$(mktemp -d)"
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM
git clone "git://github.com/rcrowley/httperf_modified.git"
cd "httperf_modified"
./configure --prefix="/usr"
make
cd ".."
mkdir -p "usr/bin" "usr/share/man/man1"
cp "httperf_modified/src/httperf" "usr/bin"
cp "httperf_modified/man/httperf.1" "usr/share/man/man1"
fakeroot fpm -m "Richard Crowley <richard@betable.com>" \
-n "httperf" -v "$VERSION-$BUILD" \
-p "$OLDESTPWD/httperf_${VERSION}-${BUILD}_amd64.deb" \
-s "dir" -t "deb" "usr"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment