Creazione di un pacchetto debian .deb: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 5: | Line 5: | ||
== Preparazione del pacchetto in formato tar.gz == | == Preparazione del pacchetto in formato tar.gz == | ||
<pre> | |||
lynx plonk.de | lynx plonk.de | ||
mkdir odmrd09rc9 | mkdir odmrd09rc9 | ||
| Line 13: | Line 14: | ||
cd odmrd-0.9.0rc9 | cd odmrd-0.9.0rc9 | ||
wget http://plonk.de/sw/odmr/odmrspool.pl | wget http://plonk.de/sw/odmr/odmrspool.pl | ||
</pre> | |||
== Debianizzazione == | |||
export DEBFULLNAME="Gabriele Vivinetto" | |||
dh_make -e gabriele.mailing@rvmgroup.it -f ../odmrd09rc9.tar.gz | |||
== Preparazione / Personalizzazione del Makefile == | |||
<pre> | |||
cat > Makefile <<'EOFile' | cat > Makefile <<'EOFile' | ||
SBIN = $DESTDIR/usr/sbin | SBIN = $DESTDIR/usr/sbin | ||
| Line 31: | Line 39: | ||
addgroup --system odmr | addgroup --system odmr | ||
EOFile | EOFile | ||
</pre> | |||
== Creazione del control file == | |||
cd debian | cd debian | ||
<pre> | |||
cat > control <<'EOFile' | cat > control <<'EOFile' | ||
Source: odmrd | Source: odmrd | ||
| Line 50: | Line 63: | ||
It works with Postfix (and Exim too). | It works with Postfix (and Exim too). | ||
EOFile | EOFile | ||
</pre> | |||
== Preparazione degli altri file == | |||
<pre> | |||
cat >copyright <<'EOFile' | cat >copyright <<'EOFile' | ||
This package was debianized by Gabriele Vivinetto <gabriele.mailing@rvmgroup.it-f> on | This package was debianized by Gabriele Vivinetto <gabriele.mailing@rvmgroup.it-f> on | ||
| Line 61: | Line 78: | ||
License: GNU GPL | License: GNU GPL | ||
EOFile | EOFile | ||
</pre> | |||
== Creazione del pacchetto == | |||
cd .. | cd .. | ||
dpkg-buildpackage -rfakeroot | dpkg-buildpackage -rfakeroot | ||
Revision as of 10:44, 16 March 2006
Installazione pacchetti sviluppatore
apt-get install dpkg-dev file gcc g++ libc6-dev make patch perl dh-make fakeroot devscripts lintian linda
Preparazione del pacchetto in formato tar.gz
lynx plonk.de mkdir odmrd09rc9 cd odmrd09rc9 tar xvzf ../odmrd09rc9.tar.gz cd .. mv odmrd09rc9 odmrd-0.9.0rc9 cd odmrd-0.9.0rc9 wget http://plonk.de/sw/odmr/odmrspool.pl
Debianizzazione
export DEBFULLNAME="Gabriele Vivinetto" dh_make -e gabriele.mailing@rvmgroup.it -f ../odmrd09rc9.tar.gz
Preparazione / Personalizzazione del Makefile
cat > Makefile <<'EOFile'
SBIN = $DESTDIR/usr/sbin
ETC = $DESTDIR/etc
DOC = $DESTDIR/usr/share/doc
install: odmrd-target
install -d $(SBIN)
install -m755 ./odmrd09rc9.pl $(SBIN)/odmrd
install -m755 ./odmrspool $(SBIN)/odmrspool
install -d ./odmrd.conf $(ETC)/odmrd/odmrd.conf
install -d $(DESTDIR)/usr/share/doc/odmrd
cp -a readme.html $(DESTDIR)/usr/share/doc/odmrd
adduser --system odmr
addgroup --system odmr
EOFile
Creazione del control file
cd debian
cat > control <<'EOFile'
Source: odmrd
Section: mail
Priority: extra
Maintainer: Gabriele Vivinetto <gabriele.mailing@rvmgroup.it-f>
Build-Depends: debhelper (>= 4.0.0)
Standards-Version: 3.6.1
Package: odmrd
Architecture: all
Depends: postfix (>= 2.1.5-9), libmime-perl (>= 5.417-1), libdbd-mysql-perl (>= 2.9006-1) ${shlibs:Depends}, ${misc:Depends}
Description: An On Demad Mail Relay Daemon that uses ATRN to deliver Mail
ODMR is "SMTP with Dynamic IP Addresses". It uses an "Authenticated TURN"
(ATRN) to deliver queued mail to a mailserver with a dynamic IP address.
It works with Postfix (and Exim too).
EOFile
Preparazione degli altri file
cat >copyright <<'EOFile' This package was debianized by Gabriele Vivinetto <gabriele.mailing@rvmgroup.it-f> on Fri, 17 Jun 2005 17:12:48 +0200. It was downloaded from http://plonk.de/sw/odmr/ Copyright Holder: Jakob Hirsch <odmrd@plonk.de> License: GNU GPL EOFile
Creazione del pacchetto
cd .. dpkg-buildpackage -rfakeroot