Line 24... |
Line 24... |
24 |
- ajouter en première ligne "%define _disable_ld_no_undefined 1" pour éviter les erreurs liées au variables non unitisées
|
24 |
- ajouter en première ligne "%define _disable_ld_no_undefined 1" pour éviter les erreurs liées au variables non unitisées
|
25 |
- pour la version 64b, ajouter 2 lignes intégrant le répertoire "lib64" lors de la suppression des binaires statiques (rm -rf $RPM_BUILD_ROOT/usr/lib/*.la)
|
25 |
- pour la version 64b, ajouter 2 lignes intégrant le répertoire "lib64" lors de la suppression des binaires statiques (rm -rf $RPM_BUILD_ROOT/usr/lib/*.la)
|
26 |
- exclure de l'archive les fichiers inutiles pour ALCASAR (wpad.dat, wwwdir, etc. via la directive '%exclude')
|
26 |
- exclure de l'archive les fichiers inutiles pour ALCASAR (wpad.dat, wwwdir, etc. via la directive '%exclude')
|
27 |
|
27 |
|
28 |
**** HAVP ****
|
28 |
**** HAVP ****
|
- |
|
29 |
- install the RPM of clamav-devel
|
29 |
- récupérer le tarball de la dernière version d'HAVP. Le décompresser dans un répertoire et tester la compilation traditionnelle (./configure + make)
|
30 |
- download, uncompress, and test the compilation of the last version of havp (./configure + make)
|
30 |
- copier ce tarball dans ~/rpmbuild/SOURCES/
|
31 |
- copy the tarball in ~/rpmbuild/SOURCES/. copy the patch file ("havp-init.diff") in ~/rpmbuil/SOURCE. Copy and adapt the .spec in ~/rpmbuid/SPEC
|
31 |
- adaptation du fichier .spec (version, packager, commentaires, etc.)
|
32 |
- rpmbuild -dd ***.spec
|
32 |
|
33 |
|
33 |
**** ipt_netflow ****
|
34 |
**** ipt_netflow ****
|
34 |
- install the RPMs "kernel-server-devel", "lib64iptables-devel (or libiptables-devel in 32b arch)"
|
35 |
- install the RPMs "kernel-server-devel", "lib64iptables-devel (or libiptables-devel in 32b arch)"
|
35 |
- download, decompress and test the conpilation of the last version of ipt-netflow (configure, make all install). The module is compiled in the same directory. The lib is copied in the /lib64/iptables
|
36 |
- download, uncompress and test the conpilation of the last version of ipt-netflow (configure, make all install). The module is compiled in the same directory. The lib is copied in the /lib64/iptables
|
36 |
- test the module : go to the directory of source and try to load it (modprobe ipt_NETFLOW), "lsmod" to verify that it's loaded, "alcasar-iptables.sh" to test the iptables rules
|
37 |
- test the module : go to the directory of source and try to load it (modprobe ipt_NETFLOW), "lsmod" to verify that it's loaded, "alcasar-iptables.sh" to test the iptables rules
|
37 |
- if all is ok, copy the tarball in rpmbuild/SOURCES . Copy the .spec in rpmbuild/SPECS
|
38 |
- if all is ok, copy the tarball in rpmbuild/SOURCES. Copy the .spec in rpmbuild/SPECS. In this file, change the kernel number and uncoment the lines to match the architecture.
|
38 |
|
- |
|
- |
|
39 |
- rpmbuild -bb ****.spec
|