Hi!
(I was the one who rewrote that guide , I'm glad to know that people use it).
About the package: Yes, it seems you cannot just use the tiny rules file, because you need the text_file.txt file in the same directory.
I would avoid cluttering /usr/bin with these extra files, as /usr/bin is not supposed to have data files. (Especially recommended if you plan to submit your package to Ubuntu/Debian as your sponsors will be particular about these things).
I would suggest that you overrride dh_auto_build and dh_auto_install as already suggested. You can then install both the script and the text file in /usr/share/foobar/ and then symlink /usr/bin/foobar to /usr/share/foobar/myscript.py.
This can be done by writting a debian/foobar.links file like:
Code:
usr/share/foobar/myscript usr/bin/foobar
(run `man dh_links` for more information)
(where foobar should be replaced with the name of your package or script)
I don't mean to advertise, but you can download a package of mine (my only one in Debian till now) and look at how it does something very similar. Run:
Code:
dget http://ftp.debian.org/debian/pool/main/p/pynagram/pynagram_1.0.0-1.dsc
and browse the pynagram/debian directory.
It installs a script in /usr/share/pynagram/ and has a symlink (/usr/games/pynagram) that points to that script.
Edit: You can read this to decide what to do with your FAQ file. You should be installing it in /usr/share/doc/foobar, but it is better to use dh_installdocs to do that rather than dh_install.
Hope this helps
Bookmarks