Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

marked as duplicate by Jorge Castro, devav2, Ringtail, Mik, Mitch Oct 14 '12 at 17:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
You should probably give an example file structure and desired target directory. –  hbdgaf 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? –  user97575 Oct 14 '12 at 12:23
    
What do you want to add as dependencies... –  hbdgaf Oct 14 '12 at 13:09

2 Answers 2

up vote 1 down vote accepted

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!

share|improve this answer

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

share|improve this answer