1

I have some files that need to be installed in /usr/share/wallpapers when the deb package is installed. I have created the changelog, control files etc. However I don't know how to put the files in it. I have tried using dh_install however I get:

cp can not stat directory debian/tmp//usr/share/wallpapers

How can I go about extracting the wallpapers from the deb file to /usr/share/wallpapers?

1 Answer 1

1

Folders are handled in the same way as files. Add a line to the your_application.install file, like your_wallpapers /usr/share/, to install the your_wallpapers folder into the directory /usr/share/.

7
  • What do i have in the rules file
    – Isaacm
    Mar 7, 2014 at 7:31
  • ok, pasting code in a comment does not work, but are you sure the directory /usr/share/wallpapers exists? if not, you should create a folder wallpapers and install it into /usr/share Mar 7, 2014 at 7:38
  • Do I need any special entries for the .install file
    – Isaacm
    Mar 7, 2014 at 7:40
  • No, it is basically a list of files and directories, followed by the locations they should be copied into. My guess is that something is wrong there Mar 7, 2014 at 7:48
  • 1
    Thanks for the link. I followed the instructions and build the deb and all is working now.
    – Isaacm
    Mar 7, 2014 at 19:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .