|
Deb package (and its installer dpkg) has advanced control linkages and dependencies between different components of the system - and the programs used by libraries. In this way, installing a new program is to ensure that there is no conflict with other installed programs. If not, install the program could be stopped functioning due to lack of individual components, which are required for proper operation. After a brief introduction, move on to the heart of the matter, contrary to appearances, building deb packages is not the easiest thing, especially if you build the package to the official repository. To get started, of course, we must select a program (or library, etc.) from which you want to do a package in this example I will build mpview package, which I have built the official repository of Debian.
To get started, of course, we have to download the program from which we will do a package, then create a directory, such as Debian, moving it to the downloaded archive. Generally speaking, we should have the debian directory now
mpview-0.4.1 / mpview-0.4.1.tar.gz
It should be noted on the format
program-version / program-wersja.tar.gz
program must have an archive of tar.gz extension, if not, we need to przepakować, then enter
export DEBFULLNAME = "First Name Last Name"
and in the directory
mpview-0.4.1 /
gives a
dh_make address e-@ e-mail-c license-f .. / archiwum.tar.gz
in the parameter c we can choose the GPL, LGPL, artistic, BSD, if the program is not under any of these licenses, we leave the parameter, after the above command in the directory should appear in a subdirectory named debian build simple package if needed we will only files
changelog compat control copyright rules watch
compat file type 7
echo 7> compat
at the beginning, on to the main file, which is to control
Source: mpview Section: graphics Priority: optional Maintainer: Adam Ziaja <adam{@}ziaja.name> Build-Depends: debhelper (> = 7), autotools-dev, libbz2-1.0 (> = 1.0.5-1 ~), libexpat1 (> = 2.0.1-4), libfftw3-dev (> = 3.1.2 - 3.1), libfontconfig1 (> = 2.6.0-3), libfreetype6-dev (> = 2.3.7-2), libgmp3c2 (> = 2), libice6 (> = 2), libjpeg62-dev (> = 6b-14 ), libpng12-dev (> = 1.2.27-2), libsm6 (> = 2), libtiff4-dev (> = 3.8.2-11), libx11-6 (> = 2), libxau6 (> = 1) , libxcb1 (> = 1.1-1.1), libxdmcp6 (> = 1), libxext6 (> = 2), libxt6 (> = 1), zlib1g-dev (> = 1), qmake-qt4, libqt4-dev Standards-Version: 3.8.1 Homepage: http://mpview.sourceforge.net
Package: mpview Architecture: any Depends: $ (shlibs: Depends), $ (misc: Depends) Description: MP View is cross-platform image viewer with possibility of image manipulation MP View is cross-platform image viewer with possibility of image manipulation (crop, resize, running filters), based on CImg and Qt.
Perhaps you noticed that Debian is divided into the following sections: main (includes free software), non-free (includes software that is not free) and contrib (includes free software that depends on software that is not free).
In addition, each section is divided into logical subsections that briefly describe what a specific package. We therefore admin section, which includes programs for system administrator, base with basic tools, the tools devel programmers, doc documentation libs libraries, mail programs for handling electronic mail, net of network applications and network services, daemons, sound musical applications, graphics applications with graphical X11 programs for X11 systems, which do not fit anywhere else, and many others. Section to change the graphics. Prefix "Main /" is taken by default, so you can omit it. In the next line, we have Priority, a complete list of priorities can be found here. Maintainer is, of course, the person who created the package, Build-Depends temporarily skip, homepage to the homepage, Architecture describes the architecture of the processor for which can be compiled package. Leave it in any, since the package dpkg-gencontrol (1) fill in the same place the appropriate value for each type of machine on which the package is compiled. |