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

          Mobil Contents History Mobil brands Former Mobil brands Lukoil transaction Mobil UK Mobil Australia Mobil New Zealand Mobil Greece Mobil in Japan Mobil in Canada Mobil Egypt See also References External links Navigation menuwww.mobil.com"Mobil Corporation"the original"Our Houston campus""Business & Finance: Socony-Vacuum Corp.""Popular Mechanics""Lubrite Technologies""Exxon Mobil campus 'clearly happening'""Toledo Blade - Google News Archive Search""The Lion and the Moose - How 2 Executives Pulled off the Biggest Merger Ever""ExxonMobil Press Release""Lubricants""Archived copy"the original"Mobil 1™ and Mobil Super™ motor oil and synthetic motor oil - Mobil™ Motor Oils""Mobil Delvac""Mobil Industrial website""The State of Competition in Gasoline Marketing: The Effects of Refiner Operations at Retail""Mobil Travel Guide to become Forbes Travel Guide""Hotel Rankings: Forbes Merges with Mobil"the original"Jamieson oil industry history""Mobil news""Caltex pumps for control""Watchdog blocks Caltex bid""Exxon Mobil sells service station network""Mobil Oil New Zealand Limited is New Zealand's oldest oil company, with predecessor companies having first established a presence in the country in 1896""ExxonMobil subsidiaries have a business history in New Zealand stretching back more than 120 years. We are involved in petroleum refining and distribution and the marketing of fuels, lubricants and chemical products""Archived copy"the original"Exxon Mobil to Sell Its Japanese Arm for $3.9 Billion""Gas station merger will end Esso and Mobil's long run in Japan""Esso moves to affiliate itself with PC Optimum, no longer Aeroplan, in loyalty point switch""Mobil brand of gas stations to launch in Canada after deal for 213 Loblaws-owned locations""Mobil Nears Completion of Rebranding 200 Loblaw Gas Stations""Learn about ExxonMobil's operations in Egypt""Petrol and Diesel Service Stations in Egypt - Mobil"Official websiteExxon Mobil corporate websiteMobil Industrial official websiteeeeeeeeDA04275022275790-40000 0001 0860 5061n82045453134887257134887257

          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

          My Life (Mary J. Blige album) Contents Background Critical reception Accolades Commercial performance Track listing Personnel Charts Certifications See also References External links Navigation menu"1. Mary J Blige, My Life - The 50 Best R&B albums of the '90s""American album certifications – Mary J. Blige – My Life""Mary J. Blige's My Life LP (1994) revisited with co-producer Chucky Thompson | Return To The Classics"the original"Key Tracks: Mary J. Blige's My Life""My Life – Mary J. Blige""Worth The Wait""My Life""Forget '411,' Mary J., Better Call 911""Spins"My Life AccoladesThe 500 Greatest Albums of All TimeTime's All-TIME 100 Albums"Top RPM Albums: Issue chartid""Dutchcharts.nl – Mary J. Blige – My Life""Mary J. Blige | Artist | Official Charts""Mary J. Blige Chart History (Billboard 200)""Mary J. Blige Chart History (Top R&B/Hip-Hop Albums)""Canadian album certifications – Mary J Blige – My Life""British album certifications – Mary J Blige – My Life""American album certifications – Mary J Blige – My Life"My LifeMy Life accoladesee