(From old notes, circa 2013)
dpkg --contents PACKAGENAME
sudo apt-get --purge remove PACKAGENAME
Step 1: Create /debian/jpwrappa.install
file. Each line represents source/destination path, e.g.:
jpwrappa/config.xml etc/jpwrappa
jpwrappa/profiles/* etc/jpwrappa/profiles/
Do not prepend file paths by any '/' characters!
Step 2: Add destination directories to /debian/dirs
, e.g.:
usr/bin
etc/jpwrappa
etc/jpwrappa/profiles
(Actually I'm not even 100% sure if this step is absolutely necessary - please try for yourself!)
Step 3: Add dh_install
command to /debian/rules
, e.g. like this:
# Build architecture-independent files here.
binary-indep: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_install
dh_installman
dh_link
dh_compresshttps://twitter.com/#
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
(Note: I have no idea about the 'proper' place to put this, but at least it works!).