Newsgroup: it.comp.os.linux.sys
Titolo: Samba + audit su Slackware

Ciao a tutti,
non ho mai modificato un pacchetto standard. Mi aiutate? Pls...
Ho scaricato i sorgenti di samba-2.0.27a e vorrei aggiungere la patch
per audit (
http://thwartedefforts.org/software/samba/samba-audit.html
)
A questo punto pensavo di compilare, per ottenere le stesse impostazioni
inserite nei pacchetti std di slackware, con le impostazioni presenti
nei /source dal cd di slackware 12. Esattamente samba.Slackbuild.
Il problema è che non ho mai usato questo sistema. Di solito installo
dai rorgenti con piccole modifiche.
Problema 1) Non sono riuscito ad applicare correttamente la patch!
Questo è il risultato:
root@server:/usr/local/src/samba-3.0.27a# ls -l
totale 436
-rw-r--r--  1 root   root   17982 2007-11-15 04:15 COPYING
-rw-r--r--  1 root   root    1126 2007-11-15 04:15 MAINTAINERS
-rw-r--r--  1 root   root    2558 2007-11-15 04:15 Manifest
-rw-r--r--  1 root   root    8580 2007-11-15 04:15 README
-rw-r--r--  1 root   root    5547 2007-11-15 04:15 README.Coding
-rw-r--r--  1 root   root       0 2007-11-21 04:59 REVISION
-rw-r--r--  1 root   root       0 2007-11-15 04:15 Read-Manifest-Now
-rw-r--r--  1 root   root    1357 2007-11-15 04:15 Roadmap
-rw-r--r--  1 root   root  332002 2007-11-21 04:58 WHATSNEW.txt
drwxr-xr-x  5 root   root    4096 2007-06-19 19:12 docs/
drwxr-xr-x 21 root   root    4096 2007-11-15 04:15 examples/
drwxr-xr-x 12 root   root    4096 2007-11-15 04:15 packaging/
drwxr-xr-x  2 root   root    4096 2007-11-15 04:15 pcp/
-rwxrw-rw-  1 giulio users  22216 2007-12-04 17:24 samba-audit-2.0.7.diff*
drwxr-xr-x 42 root   root    4096 2007-11-21 05:00 source/
drwxr-xr-x  6 root   root    4096 2007-11-15 04:15 swat/
drwxr-xr-x 10 root   root    4096 2007-11-15 04:15 testsuite/
root@server:/usr/local/src/samba-3.0.27a# patch -p0 < samba-audit-2.0.7.diff
patching file source/Makefile.in
Hunk #1 FAILED at 150.
1 out of 1 hunk FAILED -- saving rejects to file source/Makefile.in.rej
patching file source/include/includes.h
Hunk #1 succeeded at 54 (offset 27 lines).
patching file source/include/syslog_audit.h
patching file source/param/loadparm.c
Hunk #1 FAILED at 249.
Hunk #2 FAILED at 364.
Hunk #3 FAILED at 473.
Hunk #4 FAILED at 500.
Hunk #5 FAILED at 554.
Hunk #6 FAILED at 904.
Hunk #7 FAILED at 1087.
Hunk #8 succeeded at 1472 with fuzz 2 (offset 2 lines).
Hunk #9 FAILED at 1984.
8 out of 9 hunks FAILED -- saving rejects to file
source/param/loadparm.c.rej
patching file source/rpc_server/srv_netlog.c
Hunk #1 succeeded at 183 with fuzz 1 (offset -442 lines).
Hunk #2 FAILED at 323.
Hunk #3 FAILED at 344.
2 out of 3 hunks FAILED -- saving rejects to file
source/rpc_server/srv_netlog.c.rej
patching file source/smbd/close.c
Hunk #1 FAILED at 158.
1 out of 1 hunk FAILED -- saving rejects to file source/smbd/close.c.rej
patching file source/smbd/open.c
Hunk #1 FAILED at 346.
1 out of 1 hunk FAILED -- saving rejects to file source/smbd/open.c.rej
patching file source/smbd/reply.c
Hunk #1 FAILED at 1717.
Hunk #2 FAILED at 1961.
Hunk #3 FAILED at 1992.
Hunk #4 FAILED at 3218.
Hunk #5 FAILED at 3406.
Hunk #6 FAILED at 3714.
Hunk #7 FAILED at 3805.
7 out of 7 hunks FAILED -- saving rejects to file source/smbd/reply.c.rej
patching file source/smbd/server.c
Hunk #1 succeeded at 1117 with fuzz 2 (offset 367 lines).
patching file source/smbd/service.c
Hunk #1 succeeded at 249 with fuzz 2 (offset -247 lines).
Hunk #2 succeeded at 1478 with fuzz 2 (offset 894 lines).
patching file source/smbd/syslog_audit.c
root@server:/usr/local/src/samba-3.0.27a#
Che succede?
Grazie per l'aiuto
Giulio

 root@server:/usr/local/src/samba-3.0.27a# ls -l
                             ^^^^^^^^^^^^
Se la patch si riferisce alla versione di samba 2.0.27 con questa non
funzionera' mai!
-- 
Ciao.
Alessandro 
"Ubuntu" - an African word, meaning "Slackware is too hard for me".