Changes between Initial Version and Version 1 of Internal/DPKG


Ignore:
Timestamp:
Jul 6, 2011, 6:02:18 PM (13 years ago)
Author:
jsingh
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/DPKG

    v1 v1  
     1We create debian packages for Orbit and Wimax. These are some steps you can follow to create your own debian package.[[BR]]
     2Make a folder for your application[[BR]]
     3 {{{ mkdir app }}} [[BR]]
     4Inside the folder please create a DEBIAN folder. The most import folder inside the DEBIAN folder is the control file which details all the information about the particular application. Please see the example control file below
     5{{{
     6Source: applicationA
     7Package: applicationA
     8Section: omf
     9Priority: optional
     10Maintainer: Ivan Seskar <seskar@winlab.rutgers.edu>
     11Build-Depends: debhelper (>= 7)
     12Standards-Version: 3.7.2
     13Version: 1.0
     14Architecture: all
     15Depends: daemon, snmpd,ruby
     16Description: Demon for controlling base functionality.
     17
     18}}}
     19This file tells you that its name is ApplicationA , which has optional priority , is under the omf section. It is maintained by Ivan Seskar, needs the following packages 'daemon,snmpd and ruby' installed before it can be installed. Its current release version is 1.0 [[BR]]
     20Another file needed here is called the 'dirs' which lists all the directories you will be adding your files to on the target system, lets look at an example file
     21{{{
     22/etc
     23/usr/bin
     24}}}
     25Following this dirs file you will create two folders under the app folder
     26{{{
     27cd app
     28mkdir etc
     29mkdir usr
     30mkdir usr/bin
     31}}}
     32You will copy your intended files in these folders so they can be installed in the target machine.
     33{{{
     34cp app.xml ./etc/
     35cp app ./usr/bin/
     36}}}
     37If you need to execute any commands even before the dependencies are added you can add your statements to a 'preinst' file and the dpkg will execute those commands. On the other hand if you need to execute some commands after the installation has been completed, you can put those commands in the 'postinst' file.
     38Now lets create our package, go one folder up from the app directory
     39{{{
     40dpkg-deb --build app
     41}}}
     42This will produce for you app.deb file if all goes well.