How to include data files (pictures, text files, …) in a debian package Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionDebian package issue: files are installing into '/'Repackaging a Debian packageCannot create “Hello World” module (and NVIDIA, and VirtualBox)Debian package to install closed-sourceDebian package naming convention?How to build a specific package from a Debian source package?Where should example files for a package go?How to remove a license file when debian packaging using autotools automake?How to determine dependencies for a packageDocker | Chroot jail questions | Node.js kind of hosting

What do you call the holes in a flute?

Antler Helmet: Can it work?

Why use gamma over alpha radiation?

I'm having difficulty getting my players to do stuff in a sandbox campaign

Is there a service that would inform me whenever a new direct route is scheduled from a given airport?

When communicating altitude with a '9' in it, should it be pronounced "nine hundred" or "niner hundred"?

Single author papers against my advisor's will?

Can a non-EU citizen traveling with me come with me through the EU passport line?

Can a monk deflect thrown melee weapons?

How to rotate it perfectly?

Cold is to Refrigerator as warm is to?

Why is "Captain Marvel" translated as male in Portugal?

Can I add database to AWS RDS MySQL without creating new instance?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Why does tar appear to skip file contents when output file is /dev/null?

Replacing HDD with SSD; what about non-APFS/APFS?

Working around an AWS network ACL rule limit

Is 1 ppb equal to 1 μg/kg?

Simulating Exploding Dice

Passing functions in C++

How should I respond to a player wanting to catch a sword between their hands?

What did Darwin mean by 'squib' here?

3 doors, three guards, one stone

Do working physicists consider Newtonian mechanics to be "falsified"?



How to include data files (pictures, text files, …) in a debian package



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionDebian package issue: files are installing into '/'Repackaging a Debian packageCannot create “Hello World” module (and NVIDIA, and VirtualBox)Debian package to install closed-sourceDebian package naming convention?How to build a specific package from a Debian source package?Where should example files for a package go?How to remove a license file when debian packaging using autotools automake?How to determine dependencies for a packageDocker | Chroot jail questions | Node.js kind of hosting



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








6















I followed a tutorial to make a package application, but it only deals with the source; there's absolutely no other file types mentioned.



How do I include data files so that I can access them from my application in a package? For example, in the makefile, there's a $(DESTDIR) option, but I would never move the data files in $(DESTDIR)/usr/bin -- at least I think I'm not supposed to!










share|improve this question






























    6















    I followed a tutorial to make a package application, but it only deals with the source; there's absolutely no other file types mentioned.



    How do I include data files so that I can access them from my application in a package? For example, in the makefile, there's a $(DESTDIR) option, but I would never move the data files in $(DESTDIR)/usr/bin -- at least I think I'm not supposed to!










    share|improve this question


























      6












      6








      6








      I followed a tutorial to make a package application, but it only deals with the source; there's absolutely no other file types mentioned.



      How do I include data files so that I can access them from my application in a package? For example, in the makefile, there's a $(DESTDIR) option, but I would never move the data files in $(DESTDIR)/usr/bin -- at least I think I'm not supposed to!










      share|improve this question
















      I followed a tutorial to make a package application, but it only deals with the source; there's absolutely no other file types mentioned.



      How do I include data files so that I can access them from my application in a package? For example, in the makefile, there's a $(DESTDIR) option, but I would never move the data files in $(DESTDIR)/usr/bin -- at least I think I'm not supposed to!







      debian packaging






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 18 hours ago









      Rui F Ribeiro

      42.1k1483142




      42.1k1483142










      asked Sep 12 '11 at 15:05









      coyotte508coyotte508

      30037




      30037




















          2 Answers
          2






          active

          oldest

          votes


















          4














          If you are including binary data (pictures) you will want to create a version 3.0 package.



          You put the additional files inside the debian/ directory and either move them from the debian/rules script using install -D -m 644 debian/filename $(DESTDIR)/path/to/install/to or using the debian/install file to list the file and the path to install it to like debian/filename path/to/install/to.






          share|improve this answer























          • Thanks. I looked around a bit more, are those files supposed to be installed in like $(DESTDIR)/usr/share/games/<my program name>/ ? That's the real problem, I don't know where to put them.

            – coyotte508
            Sep 12 '11 at 18:14











          • That's a completely different question and is going to depend on what the files are and depend on the program.

            – Arrowmaster
            Sep 13 '11 at 1:26


















          6














          If you make a Debian package, you should at least glance through the Debian Policy Manual and the Debian New Maintainers' Guide, as well as the Filesystem Hierarchy Standard. If you want to become a Debian developer, you need to read the policy and the maintainters' guide.



          The policy manual explains where various file types go, when they need to be found by other programs. For data files that are needed by your program, use a directory that's specific to your program, either /usr/share/myprogram or /usr/lib/myprogram (share is prefered if the files are not architecture-dependent).



          It's recommended that you use dh-make to create your package. Inside debian/rules, use dh_install to copy generic data files to their installation directory under debian/tmp.






          share|improve this answer























          • Thanks. This answers the second part of my question, about the file system hierarchy, and provides me with help for the rest.

            – coyotte508
            Sep 14 '11 at 0:05











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f20554%2fhow-to-include-data-files-pictures-text-files-in-a-debian-package%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          If you are including binary data (pictures) you will want to create a version 3.0 package.



          You put the additional files inside the debian/ directory and either move them from the debian/rules script using install -D -m 644 debian/filename $(DESTDIR)/path/to/install/to or using the debian/install file to list the file and the path to install it to like debian/filename path/to/install/to.






          share|improve this answer























          • Thanks. I looked around a bit more, are those files supposed to be installed in like $(DESTDIR)/usr/share/games/<my program name>/ ? That's the real problem, I don't know where to put them.

            – coyotte508
            Sep 12 '11 at 18:14











          • That's a completely different question and is going to depend on what the files are and depend on the program.

            – Arrowmaster
            Sep 13 '11 at 1:26















          4














          If you are including binary data (pictures) you will want to create a version 3.0 package.



          You put the additional files inside the debian/ directory and either move them from the debian/rules script using install -D -m 644 debian/filename $(DESTDIR)/path/to/install/to or using the debian/install file to list the file and the path to install it to like debian/filename path/to/install/to.






          share|improve this answer























          • Thanks. I looked around a bit more, are those files supposed to be installed in like $(DESTDIR)/usr/share/games/<my program name>/ ? That's the real problem, I don't know where to put them.

            – coyotte508
            Sep 12 '11 at 18:14











          • That's a completely different question and is going to depend on what the files are and depend on the program.

            – Arrowmaster
            Sep 13 '11 at 1:26













          4












          4








          4







          If you are including binary data (pictures) you will want to create a version 3.0 package.



          You put the additional files inside the debian/ directory and either move them from the debian/rules script using install -D -m 644 debian/filename $(DESTDIR)/path/to/install/to or using the debian/install file to list the file and the path to install it to like debian/filename path/to/install/to.






          share|improve this answer













          If you are including binary data (pictures) you will want to create a version 3.0 package.



          You put the additional files inside the debian/ directory and either move them from the debian/rules script using install -D -m 644 debian/filename $(DESTDIR)/path/to/install/to or using the debian/install file to list the file and the path to install it to like debian/filename path/to/install/to.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 12 '11 at 16:54









          ArrowmasterArrowmaster

          1,50411010




          1,50411010












          • Thanks. I looked around a bit more, are those files supposed to be installed in like $(DESTDIR)/usr/share/games/<my program name>/ ? That's the real problem, I don't know where to put them.

            – coyotte508
            Sep 12 '11 at 18:14











          • That's a completely different question and is going to depend on what the files are and depend on the program.

            – Arrowmaster
            Sep 13 '11 at 1:26

















          • Thanks. I looked around a bit more, are those files supposed to be installed in like $(DESTDIR)/usr/share/games/<my program name>/ ? That's the real problem, I don't know where to put them.

            – coyotte508
            Sep 12 '11 at 18:14











          • That's a completely different question and is going to depend on what the files are and depend on the program.

            – Arrowmaster
            Sep 13 '11 at 1:26
















          Thanks. I looked around a bit more, are those files supposed to be installed in like $(DESTDIR)/usr/share/games/<my program name>/ ? That's the real problem, I don't know where to put them.

          – coyotte508
          Sep 12 '11 at 18:14





          Thanks. I looked around a bit more, are those files supposed to be installed in like $(DESTDIR)/usr/share/games/<my program name>/ ? That's the real problem, I don't know where to put them.

          – coyotte508
          Sep 12 '11 at 18:14













          That's a completely different question and is going to depend on what the files are and depend on the program.

          – Arrowmaster
          Sep 13 '11 at 1:26





          That's a completely different question and is going to depend on what the files are and depend on the program.

          – Arrowmaster
          Sep 13 '11 at 1:26













          6














          If you make a Debian package, you should at least glance through the Debian Policy Manual and the Debian New Maintainers' Guide, as well as the Filesystem Hierarchy Standard. If you want to become a Debian developer, you need to read the policy and the maintainters' guide.



          The policy manual explains where various file types go, when they need to be found by other programs. For data files that are needed by your program, use a directory that's specific to your program, either /usr/share/myprogram or /usr/lib/myprogram (share is prefered if the files are not architecture-dependent).



          It's recommended that you use dh-make to create your package. Inside debian/rules, use dh_install to copy generic data files to their installation directory under debian/tmp.






          share|improve this answer























          • Thanks. This answers the second part of my question, about the file system hierarchy, and provides me with help for the rest.

            – coyotte508
            Sep 14 '11 at 0:05















          6














          If you make a Debian package, you should at least glance through the Debian Policy Manual and the Debian New Maintainers' Guide, as well as the Filesystem Hierarchy Standard. If you want to become a Debian developer, you need to read the policy and the maintainters' guide.



          The policy manual explains where various file types go, when they need to be found by other programs. For data files that are needed by your program, use a directory that's specific to your program, either /usr/share/myprogram or /usr/lib/myprogram (share is prefered if the files are not architecture-dependent).



          It's recommended that you use dh-make to create your package. Inside debian/rules, use dh_install to copy generic data files to their installation directory under debian/tmp.






          share|improve this answer























          • Thanks. This answers the second part of my question, about the file system hierarchy, and provides me with help for the rest.

            – coyotte508
            Sep 14 '11 at 0:05













          6












          6








          6







          If you make a Debian package, you should at least glance through the Debian Policy Manual and the Debian New Maintainers' Guide, as well as the Filesystem Hierarchy Standard. If you want to become a Debian developer, you need to read the policy and the maintainters' guide.



          The policy manual explains where various file types go, when they need to be found by other programs. For data files that are needed by your program, use a directory that's specific to your program, either /usr/share/myprogram or /usr/lib/myprogram (share is prefered if the files are not architecture-dependent).



          It's recommended that you use dh-make to create your package. Inside debian/rules, use dh_install to copy generic data files to their installation directory under debian/tmp.






          share|improve this answer













          If you make a Debian package, you should at least glance through the Debian Policy Manual and the Debian New Maintainers' Guide, as well as the Filesystem Hierarchy Standard. If you want to become a Debian developer, you need to read the policy and the maintainters' guide.



          The policy manual explains where various file types go, when they need to be found by other programs. For data files that are needed by your program, use a directory that's specific to your program, either /usr/share/myprogram or /usr/lib/myprogram (share is prefered if the files are not architecture-dependent).



          It's recommended that you use dh-make to create your package. Inside debian/rules, use dh_install to copy generic data files to their installation directory under debian/tmp.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 14 '11 at 0:01









          GillesGilles

          548k13011131631




          548k13011131631












          • Thanks. This answers the second part of my question, about the file system hierarchy, and provides me with help for the rest.

            – coyotte508
            Sep 14 '11 at 0:05

















          • Thanks. This answers the second part of my question, about the file system hierarchy, and provides me with help for the rest.

            – coyotte508
            Sep 14 '11 at 0:05
















          Thanks. This answers the second part of my question, about the file system hierarchy, and provides me with help for the rest.

          – coyotte508
          Sep 14 '11 at 0:05





          Thanks. This answers the second part of my question, about the file system hierarchy, and provides me with help for the rest.

          – coyotte508
          Sep 14 '11 at 0:05

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f20554%2fhow-to-include-data-files-pictures-text-files-in-a-debian-package%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          -debian, packaging

          Popular posts from this blog

          Frič See also Navigation menuinternal link

          Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant

          fontconfig warning: “/etc/fonts/fonts.conf”, line 100: unknown “element blank” The 2019 Stack Overflow Developer Survey Results Are In“tar: unrecognized option --warning” during 'apt-get install'How to fix Fontconfig errorHow do I figure out which font file is chosen for a system generic font alias?Why are some apt-get-installed fonts being ignored by fc-list, xfontsel, etc?Reload settings in /etc/fonts/conf.dTaking 30 seconds longer to boot after upgrade from jessie to stretchHow to match multiple font names with a single <match> element?Adding a custom font to fontconfigRemoving fonts from fontconfig <match> resultsBroken fonts after upgrading Firefox ESR to latest Firefox