LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 10-21-2010, 09:25 AM   #1
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 300

Rep: Reputation: 33
Creating a .deb file that extracts files to pre-determined directories


Howdy All,

I am wondering how I would go about creating a .deb file that would extract it's contents to two different folders. I would have one file directory that should be extracted to /opt and I have a second that should be extracted to the current user's home folder and /etc/skel - How would I go about doing this?

Regards,
~Jeff
 
Old 11-17-2010, 01:02 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,758
Blog Entries: 54

Rep: Reputation: 2975Reputation: 2975Reputation: 2975Reputation: 2975Reputation: 2975Reputation: 2975Reputation: 2975Reputation: 2975Reputation: 2975Reputation: 2975Reputation: 2975
From a file system standards point of view packaged items should not be placed in a users home folder on install. Instead the documentation should point to say an example configuration file in /usr/share/doc/foo/bar.conf the user could customize and place in ~/ themselves. Some applications run user-centric configuration on application start or provide a post-install script the user can run at will. From a packaging point of view package installation is run by the root user so "current users home folder" would then default to "/root" which may or may not be what you want. And while you can easily create a "postinst" script in the control area of the package to find all user accounts on the system and install your file there it will be hard to ensure all accounts with 'UID >= 500' you find are actually used by humans or that they would want to use the package or would need the file. In short, from a practical point of view, I'd say you'd do like you would building any Debian package but without touching the "current users home folder".

//NTLB
 
  


Reply

Tags
deb file, debian


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a script to move or copy files into multiple directories below the files matthes138 Linux - Newbie 5 08-25-2009 05:57 PM
Webcam SPCA5xx(gspcav1 for kernel 2.6.11+) Pre-compiled Deb. Kingtiger01 Linux - Hardware 2 05-26-2009 12:41 AM
ftp video files - cron job extracts video info & posts to web page? muskiediver Linux - General 6 11-23-2006 09:41 AM
getting file-roller to open .deb files deepclutch Debian 8 02-13-2006 10:01 PM
linux program that extracts .rar file santasballz Linux - Software 2 03-12-2004 02:36 AM


All times are GMT -5. The time now is 09:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration