mdx_debian_package
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
mdx_debian_package [2008/11/26 12:03] – created daniel | mdx_debian_package [2011/07/18 12:32] (current) – [1) Create Makefile and build] daniel | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | == How to create a debian package for manitou-mdx == | + | ====== How to create a debian package for manitou-mdx |
We start from a fresh source tree for manitou-mdx, | We start from a fresh source tree for manitou-mdx, | ||
- | The commands we need to create the package are available through the '' | + | The commands we need to create the package are available through the '' |
The steps are: | The steps are: | ||
- | 1) Create Makefile and build | + | ===== 1) Create Makefile and build ===== |
< | < | ||
- | cd manitou-mdx-0.9.11 | + | $ cd manitou-mdx-0.9.11 |
- | perl Makefile.PL | + | $ perl Makefile.PL |
- | make | + | $ make |
</ | </ | ||
- | If not setting PREFIX and DESTDIR, the files would be installed into / | ||
- | 2) dh_make | + | ===== 2) dh_make |
- | < | + | |
- | 3) Replace the contents of '' | + | < |
+ | |||
+ | ===== 3) Replace the contents of debian/ | ||
+ | by this file: {{control.txt}} (rename it to '' | ||
< | < | ||
Source: manitou-mdx | Source: manitou-mdx | ||
Section: email | Section: email | ||
Priority: optional | Priority: optional | ||
- | Maintainer: Daniel Verite <daniel@manitou-mail.org> | + | Maintainer: Daniel Verite <email@domain.tld> |
Build-Depends: | Build-Depends: | ||
Package: manitou-mdx | Package: manitou-mdx | ||
- | Architecture: | + | Architecture: |
Priority: optional | Priority: optional | ||
Depends: libdbd-pg-perl (>= 1.32), libmailtools-perl (>= 1.62), libmime-perl (>= 5.417), libbit-vector-perl (>= 6.4), libdigest-sha1-perl (>= 2.11), perl | Depends: libdbd-pg-perl (>= 1.32), libmailtools-perl (>= 1.62), libmime-perl (>= 5.417), libbit-vector-perl (>= 6.4), libdigest-sha1-perl (>= 2.11), perl | ||
Description: | Description: | ||
- | | + | |
</ | </ | ||
- | 4) edit '' | + | ===== 4) edit debian/ |
In the clean target, comment the line that reads: -$(MAKE) clean | In the clean target, comment the line that reads: -$(MAKE) clean | ||
This is necessary because our '' | This is necessary because our '' | ||
- | 5) Run '' | + | ===== 5) Run dpkg-buildpackage -rfakeroot |
- | + | ||
- | After that step, the binary package file named manitou-mdx_0_9_11.deb should be present in the directory immediately above the source directory. It should be directly installable by a root user issuing: | + | |
< | < | ||
- | # dpkg -i manitou-mdx_0_9_11.deb | + | $ dpkg-buildpackage |
</ | </ | ||
+ | After that step, the binary package file named manitou-mdx_0_9_11_all.deb should be present in the directory immediately above the source directory. It should be installable by root: | ||
+ | < | ||
+ | # dpkg -i manitou-mdx_0_9_11_all.deb | ||
+ | </ | ||
+ |
mdx_debian_package.1227701017.txt.gz · Last modified: 2008/11/26 12:03 by daniel