LinuxQuestions.org
Visit Jeremy's Blog.
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-19-2007, 10:09 AM   #1
robux
LQ Newbie
 
Registered: Oct 2007
Posts: 14

Rep: Reputation: 0
create a .deb without joining the src files


hello,

Here is my pb : My project is finished and ready to be distribued. I compile it and then all is ok. bugs are fixed.

I would like to distribute it without my sources files by creating a .deb file because I worked under Kubuntu 7.04.

I Do not know which step I have to follow and how to make this job. Could any developers who create and distribute software help me?

Thanks

Robux
 
Old 10-19-2007, 10:48 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Hi. You can start by searching on google for "how+to+create+debian+packages". There are links to many articles that you may find helpful.
 
Old 10-22-2007, 04:00 AM   #3
robux
LQ Newbie
 
Registered: Oct 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by reddazz View Post
Hi. You can start by searching on google for "how+to+create+debian+packages". There are links to many articles that you may find helpful.
Hello reddazz,

Thanks a lot but as you know google is the very first reflex before writting a thread in a forum.
I am not looking "how create a .deb package" but "create a deb. packages without joinging the source files". I have read tuto but it deals with creating packages from .tar.bz and create package with sources for ./configure and make them. It is not my issue since I would not join the src files.

If you have any idea for this...

Thanks a lot

Robux
 
Old 10-22-2007, 04:38 AM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I think most of the pages found do tell you how to build a "binary .deb" (one that just installs the precompiled files). This looked like one:

http://linuxdevices.com/articles/AT8047723203.html

More on search engines..

Remember to make sure that your distribution methods are ok with the licence you're using; if your project is open source, you need to make the sources available. If it's not, then it's not, but still you should be careful with the licence and distribution of the files. No offence meant here, just a friendly note to avoid troublematic situations..

You could probably also "explode" an existing .deb package (extract it's contents without installing them) into some directory and see what is actually inside. Basically, for a binary package, there are the files that need to exist on the system and then some "instruction files" (scripts or others) that tell the package manager program how to deal with the files, where to put them etc. It shouldn't be all that difficult once you get into it, but I admit it does look difficult at first..
 
Old 10-22-2007, 06:09 AM   #5
robux
LQ Newbie
 
Registered: Oct 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Hello B0uncer

I was reading exactly this tuto when you send me the message. By reading I stopped on the "scripts" and "the final step" paragraph I really do not exactly understand.

http://linuxdevices.com/articles/AT8047723203.html

[HTML]
Scripts
Your package will also need a few scripts to be run by the system when installing and removing the package. (Remember, no matter how wonderful your program is, someone may wish to uninstall it later on down the road.)
The postinst script should contain any necessary steps to be done after installing your program. The prerm script should contain instructions on what should be done to remove the program. Both of these scripts are required (see Resources for more on this).

The final step
After all the prep work that goes into making a Debian package, the actual package creation is somewhat anticlimactic.
You'll use the dpkg command with the -b or --build option (-b and --build are the same). The syntax for creating a package is dpkg -b directory packagename.deb where directory contains the filesystem tree with all the requisite files for your program. Note, you can build the package without specifying the name of the new package, but then it will simply place the package file under directory as ".deb" -- which might lead you to believe that the package wasn't created at all.
So, for example, if your program has a configuration file that belongs in etc/, the program itself, which will live in usr/bin/, and some documentation that lives under usr/share/doc/package/, you'll recreate that filesystem tree in a directory that will be used to create your package.

[/HTML]

My question are :
1/ what is a scrypt? is it like shell code that I have to write?
2/ In the final step section : "you'll recreate that filesystem tree in a directory that will be used to create your package". -> not understand how a directory can contain directory information!

Thanks

Robux

Last edited by robux; 10-22-2007 at 07:15 AM.
 
  


Reply


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
dselect and deb-src black_man Debian 7 06-28-2006 08:33 AM
deb-src Locations Kenji Miyamoto Debian 1 08-22-2005 02:36 PM
How to unzip all the src files in linux src folder? raj_ice Linux - Newbie 1 10-15-2004 10:46 AM
deb-src nowens Debian 1 10-04-2004 10:24 PM
building optimized deb-src packages (debian/rules) Rounan Debian 1 02-17-2004 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:28 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration