Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 dont 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

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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/.

share|improve this answer
    
What do i have in the rules file –  Isaacm Mar 7 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 –  Jacob Vlijm Mar 7 at 7:38
    
Do I need any special entries for the .install file –  Isaacm Mar 7 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 –  Jacob Vlijm Mar 7 at 7:48
1  
Thanks for the link. I followed the instructions and build the deb and all is working now. –  Isaacm Mar 7 at 19:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.