core-agent-linux/debian
2015-02-12 11:29:00 -05:00
..
patches Merge branch 'r3-templates' of github.com:nrgaway/core-agent-linux into r3-templates 2015-02-11 08:06:45 -05:00
source debian: Converted debian package to a quilt package to allow patches 2015-02-11 08:02:55 -05:00
changelog debian: Converted debian package to a quilt package to allow patches 2015-02-11 08:02:55 -05:00
compat Initial debian packaging 2014-07-23 05:13:32 +02:00
control debian: Revert depends back to use libxen-dev 2015-02-12 11:27:35 -05:00
copyright Initial debian packaging 2014-07-23 05:13:32 +02:00
qubes-core-agent.dirs debian: Move creation of directories into debian.dirs configuration file 2015-02-12 11:29:00 -05:00
qubes-core-agent.postinst debian: Remove 'exit 0' in maintainer section scripts to all other debhelpers (if any) to also execute 2015-02-11 08:02:55 -05:00
qubes-core-agent.postrm remove 'bashisms' or explicit use bash 2015-02-05 05:42:08 +01:00
qubes-core-agent.preinst debian: Move creation of directories into debian.dirs configuration file 2015-02-12 11:29:00 -05:00
qubes-core-agent.prerm debian: prerm: remove obsolete code 2015-02-05 05:42:08 +01:00
qubes-core-agent.triggers debian: Added functionality to move desktop entry config files to /usr/share/qubes/xdg/autostart to preserve originals 2014-11-09 12:58:57 -05:00
README.configuration debian: Converted debian package to a quilt package to allow patches 2015-02-11 08:02:55 -05:00
rules debian: Refactor Debian quilt packaging for xen 2015-02-11 08:02:55 -05:00

Debian Packaging Guide
----------------------
https://www.debian.org/doc/manuals/maint-guide/first.en.html


===============================================================================
                               Bash.rc
===============================================================================
# Assume usename 'user' running this, otherwise
# /home/user/.bashrc
cat >>~/.bashrc <<'EOF'
DEBMAIL="user@chroot.local"
DEBFULLNAME="Qubes Builder"
export DEBMAIL DEBFULLNAME

alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg"
complete -F _quilt_completion $_quilt_complete_opt dquilt
EOF


===============================================================================
                              Quilt RC
===============================================================================
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

===============================================================================
                  Create a fresh Debian configuration
===============================================================================
apt-get dh-make

# Example
$ cd ~/gentoo
$ wget http://example.org/gentoo-0.9.12.tar.gz
$ tar -xvzf gentoo-0.9.12.tar.gz
$ cd gentoo-0.9.12
$ dh_make -f ../gentoo-0.9.12.tar.gz


===============================================================================
                              Adding Patches
===============================================================================
https://www.debian.org/doc/manuals/maint-guide/modify.en.html

# When anyone (including yourself) provides a patch foo.patch to the source 
# later, modifying a 3.0 (quilt) source package is quite simple:
$ dpkg-source -x gentoo_0.9.12.dsc
$ cd gentoo-0.9.12
$ dquilt import ../foo.patch
$ dquilt push
$ dquilt refresh
$ dquilt header -e
... describe patch



===============================================================================
                                   Other
===============================================================================
# To list all dh_ modules...
man -k dh_

# To indicate what build-depends are required!
dpkg-depcheck -d ./configure

# Test build (unsigned)
dpkg-buildpackage -us -uc