Rev | Author | # | Line |
---|---|---|---|
1 | CraigBox | 1 | Some notes from the WLUG meeting on [Debian] and packaging: |
2 | |||
3 | To create Debian packages, install: | ||
8 | MattBrown | 4 | <verbatim> |
5 | apt-get install dpkg-dev, file, gcc, g++, libc6-dev, make, patch, perl, dh-make, debhelper, fakeroot, gnupg, lintian. | ||
6 | </verbatim> | ||
5 | CraigBox | 7 | * Choose a program |
8 | * Check no-one else is developing it already | ||
9 | * Debian: must have a license, as free as possible | ||
1 | CraigBox | 10 | * Get the source, make sure the source works |
11 | * Run ''dh_make -e your@maintainer.address -f ../filename-version.tar.gz'' in the source dir & pick package type | ||
5 | CraigBox | 12 | ** Single binary - creates debian/ directory |
1 | CraigBox | 13 | * Make the program install in a subdirectory using Makefile and debian/rules |
14 | * Edit debian/control, changelog, copyright, README.Debian etc | ||
15 | * dpkg-buildpackage -rfakeroot | ||
16 | |||
17 | Investigate package with ''dpkg --info file'', ''dpkg --contents file'' and ''lintian file'' | ||
5 | CraigBox | 18 | |
19 | make sure makefile has a proper install target, syntax of install program | ||
20 | install -d $(BIN) $(ICONS) $(DESTDIR)/etc | ||
21 | install -m644 file $(BIN) etc | ||
22 | |||
23 | Editing debian files. | ||
24 | |||
25 | Control file - add dependencies etc. | ||
26 | copyright file | ||
27 | changelog file | ||
28 | rules file - makefile. | ||
29 | |||
8 | MattBrown | 30 | <verbatim> |
5 | CraigBox | 31 | dpkg-buildpackage -rfakeroot |
8 | MattBrown | 32 | </verbatim> |
33 | You may want to also specify -uc and -us to ''dpkg-buildpackage'' to prevent it from attempting to sign the package. | ||
4 | DanielLawson | 34 | |
35 | ---- | ||
8 | MattBrown | 36 | ! Other Resources |
37 | * The official reference for package building is the "Debian New Maintainer's Guide", available at http://www.debian.org/doc/maint-guide/ | ||
38 | * The "Debian Policy Manual" is also an invaluable reference with lots of the finer details and information on making your packages comply with the Debian Policy (a must if you are trying to get them in to the actual distribution), get it at http://www.debian.org/doc/debian-policy/ | ||
39 | * AsSeenOnSlashdot, for a guide to making [Debian Packages|http://www-106.ibm.com/developerworks/linux/library/l-debpkg.html?ca=dgr-lnxw01DebianLinux] | ||
4 | DanielLawson | 40 | |
41 | ---- | ||
7 | PerryLorier | 42 | CategoryDebian |
lib/blame.php:177: Warning: Invalid argument supplied for foreach()