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;
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
add a comment |
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
add a comment |
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
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
debian packaging
edited 18 hours ago
Rui F Ribeiro
42.1k1483142
42.1k1483142
asked Sep 12 '11 at 15:05
coyotte508coyotte508
30037
30037
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
.
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
add a comment |
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
.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
.
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
add a comment |
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
.
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
add a comment |
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
.
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
.
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
add a comment |
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
add a comment |
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
.
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
add a comment |
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
.
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
add a comment |
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
.
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
.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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