Created
October 1, 2012 16:45
-
-
Save rcrowley/3812944 to your computer and use it in GitHub Desktop.
httperf_modified Debian packaging
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
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