Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1811 → Rev 1812

/conf/rpms/rpm-build-howto
18,10 → 18,10
- all is in the /usr/local". Remove the instaled files ("make uninstall") and the binaries ("make clean").
- Compress the directory (ie : coova-chilli-1.3.0.tar.gz). Copy this tarball in the directory ~/rpmbuild/SOURCES/.
- copy the SPEC file from the ALCASAR archive to the directory ~/rpmbuild/SPEC
- change to the directory ~/pmbuild/SPEC and run the RPM build process excluding 'ssl' (rpmbuild -ba coova-chilli.spec --without ssl)
- change to the directory ~/pmbuild/SPEC and run the RPM build process excluding 'ssl' : "rpmbuild -bb coova-chilli.spec --without ssl" (rpmbuild -ba to create also the SRPMS)
 
INFO : .spec modifications since Redhat RPM :
- ajouter en première ligne "%define _disable_ld_no_undefined 1"
- ajouter en première ligne "%define _disable_ld_no_undefined 1" pour éviter les erreurs liées au variables non unitisées
- 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)
- exclure de l'archive les fichiers inutiles pour ALCASAR (wpad.dat, wwwdir, etc. via la directive '%exclude')
 
31,7 → 31,7
- adaptation du fichier .spec (version, packager, commentaires, etc.)
 
**** ipt_netflow ****
- install the RPMs "kernel-server-devel-x.y", "lib64iptables-devel (or libiptables-devel in 32b arch)"
- install the RPMs "kernel-server-devel", "lib64iptables-devel (or libiptables-devel in 32b arch)"
- 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
- 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
- if all is ok, copy the tarball in rpmbuild/SOURCES . Copy the .spec in rpmbuild/SPECS