1

Possible Duplicate:
Simplest Debian Packaging Guide?

I have a group of BASH scripts, XML files, etc. The scripts require that some programs already be installed. How do I create a *.deb on Ubuntu that will make sure that dependencies are satisfied and put my scripts and files where they need to be?

  • You should probably give an example file structure and desired target directory. – RobotHumans Oct 14 '12 at 12:18
  • I am not sure yet where I would like to place the scripts. As for file structure, I have scripts in ./ and the XML files (AIML files to be more specific) are in ./aiml. I also have ./logs and ./temp. Does this answer your question @AbrahamVanHelpsing? –  Oct 14 '12 at 12:23
  • What do you want to add as dependencies... – RobotHumans Oct 14 '12 at 13:09

2 Answers2

2

Starting with something like this:

:~/testing/yourapp/yourapp$ find ./
./
./logs
./temp
./somenondescriptscript.sh
./aiml
./aiml/xmloraiml.aiml

If you have binary files (icons and other) you can hide them in the ./debian folder.

For now let's add a version number to yourapp and build the orig.tar.gz.

cd ..  
mv yourapp yourapp-0.1  
tar czfv yourapp_0.1.orig.tar.gz yourapp-0.1/  
cd yourapp-0.1  
mkdir debian
dch --create -v 0.1-1 --package yourapp  

Finish your edits and save the changelog.

Dependencies:

Waits for OP response...

References:
Debian packaging guide
Another question

RobotHumans
  • 29,530
2

Creating .deb-Packages With Checkinstall

http://www.howtoforge.com/howto_linux_debian_deb_checkinstall

Checkinstall is a nice tool to create simple .deb-packages that you can use in your local network (e.g. if you have to install the same piece of software on multiple computers running Debian). It lets you compile and install software from the sources like before, but with the difference that you end up with a simple Debian package which also means that you can easily uninstall the software you just compiled by running dpkg -r!

ptheo
  • 1,676