Last active
August 29, 2015 14:04
-
-
Save beli-sk/d046b5efe81a7164680d to your computer and use it in GitHub Desktop.
Configure Debian package building environment
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
# for building packages | |
apt-get install build-essential devscripts debhelper | |
# for creating/editing packages | |
apt-get install dh-make quilt | |
cat >>~/.bashrc <<"_EOF" | |
DEBEMAIL="your.email.address@example.org" | |
DEBFULLNAME="Firstname Lastname" | |
export DEBEMAIL DEBFULLNAME | |
alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg" | |
_EOF | |
cat >>~/.quiltrc-dpkg <<"_EOF" | |
d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; done | |
if [ -d $d/debian ] && [ -z $QUILT_PATCHES ]; then | |
# if in Debian packaging tree with unset $QUILT_PATCHES | |
QUILT_PATCHES="debian/patches" | |
QUILT_PATCH_OPTS="--reject-format=unified" | |
QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto" | |
QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index" | |
QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33" | |
if ! [ -d $d/debian/patches ]; then mkdir $d/debian/patches; fi | |
fi | |
_EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment