Creation d'un .deb de rsyslog

Bonjour à tous.

Je cherche a crée un .deb de rsyslog 4.8 pour pouvoir l’installer sur une Lenny.

Voila le processus de création que j’effectue :

Dans mon répertoire rsyslog-4.8.0

[code]dh_make -e adresse@mail
Choix de l’option single

edition du fichier debian/control

Source: rsyslog
Section: admin
Priority: extra
Maintainer: root adresse@mail
Build-Depends: debhelper (>= 7), autotools-dev, libc6 (>= 2.7-1), zlib1g (>= 1:1.1.4), lsb-base (>= 3.2-14)
Standards-Version: 3.7.3

Package: rsyslog4
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Rsyslog with /etc/rsyslog.conf and /etc/init.d/rsyslog

debuild -k0xidkey -S -sa --lintian-opts -i

pbuilder build rsyslog_4.8.0-1.dsc[/code]

Et voila l’erreur que j’obtiens :

In file included from stream.h:72, from obj.h:50, from rsyslog.h:483, from rsyslog.c:63: zlibw.h:28:18: error: zlib.h: No such file or directory In file included from stream.h:72, from obj.h:50, from rsyslog.h:483, from rsyslog.c:63: zlibw.h:32: error: expected ')' before 'strm' zlibw.h:33: error: expected ';' before 'int' In file included from obj.h:50, from rsyslog.h:483, from rsyslog.c:63: stream.h:123: error: expected specifier-qualifier-list before 'Bytef' make[3]: *** [librsyslog_la-rsyslog.lo] Error 1 make[3]: Leaving directory `/tmp/buildd/rsyslog-4.8.0/runtime' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/buildd/rsyslog-4.8.0' make[1]: *** [all] Error 2 make[1]: Leaving directory `/tmp/buildd/rsyslog-4.8.0' make: *** [build-stamp] Error 2 dpkg-buildpackage: failure: debian/rules build gave error exit status 2 pbuilder: Failed autobuilding of package -> Aborting with an error -> unmounting dev/pts filesystem -> unmounting proc filesystem -> cleaning the build env -> removing directory /var/cache/pbuilder/build//7529 and its subdirectories ~
zlib1g-dev est installe.
Je suis sur une version 5.0.10 de debian.

Merci d’avance
Sky

Salut,

Jusque là, j’ai compris.

Par contre là … :033

Sinon, au plus simple.

# aptitude install fakeroot dpkg-repack

[code]# cd /home/loreleil/reconstruction-deb

:/home/loreleil/reconstruction-deb# fakeroot -u dpkg-repack rsyslog
dpkg-deb: building package rsyslog' in./rsyslog_4.6.4-2_i386.deb’.

[/code]

[code]:/home/loreleil/reconstruction-deb# ls -la
total 316
drwxr-xr-x 2 root root 4096 25 mai 19:21 .
drwxr-xr-x 40 loreleil loreleil 4096 25 mai 19:16 …
-rw-r–r-- 1 root root 307588 25 mai 19:21 rsyslog_4.6.4-2_i386.deb

:/home/loreleil/reconstruction-deb#
[/code]
Il te restes à copier ce deb sur l’autre machine, et l’installer.

# dpkg -i rsyslog_4.6.4-2_i386.deb

Tout simple, non …

Merci beaucoup. Ca fonctionne.