Creazione di un pacchetto debian .deb

From RVM Wiki
Revision as of 14:43, 28 February 2006 by Gabriele.vivinetto (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 export DEBFULLNAME="Gabriele Vivinetto" dh_make -e gabriele.mailing@rvmgroup.it -f ../odmrd09rc9.tar.gz

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

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

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


cd .. dpkg-buildpackage -rfakeroot