Line 15... |
Line 15... |
15 |
- create directories structure in your home : mkdir -p ~/rpmbuild/{SRPMS,SOURCES,SPECS,tmp}
|
15 |
- create directories structure in your home : mkdir -p ~/rpmbuild/{SRPMS,SOURCES,SPECS,tmp}
|
16 |
- Option : find the ".rpmmacros" file on mageia wiki (https://wiki.mageia.org/en/Packagers_RPM_tutorial) and copy it in your home directory
|
16 |
- Option : find the ".rpmmacros" file on mageia wiki (https://wiki.mageia.org/en/Packagers_RPM_tutorial) and copy it in your home directory
|
17 |
|
17 |
|
18 |
**** For Coova-chilli *****
|
18 |
**** For Coova-chilli *****
|
19 |
- retrieve the last tarball of coova-chilli (or the svn archive).
|
19 |
- retrieve the last tarball of coova-chilli (or the svn archive).
|
20 |
- Untar it and test the compilation process ("sh ./bootstrap", "./configure --enable-json --enable-libjson --enable-mdns", "make", "make install").
|
20 |
- Untar it and test the compilation process ("sh ./bootstrap", "./configure --disable-static --enable-shared --enable-largelimits --enable-chilliredir --enable-chilliscript --with-poll --enable-dhcpopt --enable-libjson --enable-json --enable-mdns --with-openssl", "make", "make install").
|
21 |
- all is in the /usr/local". Remove the instaled files ("make uninstall") and the binaries ("make clean").
|
21 |
- all is in the /usr/local". Remove the instaled files ("make uninstall") and the binaries ("make clean").
|
22 |
- rename the directory and compress it (ie : tar -cvzf coova-chilli-1.4.tar.gz coova-chilli-1.4). Copy this tarball in the directory ~/rpmbuild/SOURCES/.
|
22 |
- rename the directory and compress it (ie : tar -cvzf coova-chilli-1.x.tar.gz coova-chilli-1.x). Copy this tarball in the directory ~/rpmbuild/SOURCES/.
|
23 |
- copy the SPEC file from the ALCASAR archive to the directory ~/rpmbuild/SPEC
|
23 |
- copy the SPEC file from the ALCASAR archive to the directory ~/rpmbuild/SPEC
|
24 |
- change to the directory ~/pmbuild/SPEC and run the RPM build process excluding 'ssl' : "rpmbuild -bb coova-chilli.spec" (or rpmbuild -ba to create also the SRPMS)
|
24 |
- change to the directory ~/pmbuild/SPEC and run the RPM build process : "rpmbuild -bb coova-chilli.spec" (or rpmbuild -ba to create also the SRPMS)
|
25 |
|
25 |
|
26 |
INFO : .spec modifications since Redhat RPM :
|
26 |
INFO : .spec modifications since Redhat RPM :
|
27 |
- add this 1st line : "%define _disable_ld_no_undefined 1" to avoid errors for unused variables
|
27 |
- add this 1st line : "%define _disable_ld_no_undefined 1" to avoid errors for unused variables (no more needed with V1.5)
|
28 |
- for 64b version, add 2 lines with "lib64" directory on the section removing statics binaries (rm -rf $RPM_BUILD_ROOT/usr/lib/*.la)
|
28 |
- for 64b version, add 2 lines with "lib64" directory on the section removing statics binaries (rm -rf $RPM_BUILD_ROOT/usr/lib/*.la)
|
29 |
- remove from the archive the unuused files for ALCASAR (wpad.dat, wwwdir, etc. via la directive '%exclude')
|
29 |
- remove from the archive the unuused files for ALCASAR (wpad.dat, wwwdir, etc. via la directive '%exclude')
|
30 |
- change %make (deprecated) with %make_build and change %makeinstall (deprecated) with %make_install
|
30 |
- change %make (deprecated) with %make_build and change %makeinstall (deprecated) with %make_install
|
31 |
|
31 |
|
32 |
**** For HAVP ****
|
32 |
**** For HAVP ****
|
33 |
- install the RPM of clamav-devel
|
33 |
- install the RPM of clamav-devel
|
34 |
- download, uncompress, and test the compilation of the last version of havp (./configure + make)
|
34 |
- download, uncompress, and test the compilation of the last version of havp (./configure + make)
|
35 |
- copy the tarball in ~/rpmbuild/SOURCES/. copy the patch file ("havp-init.diff") in ~/rpmbuil/SOURCE. Copy and adapt the .spec in ~/rpmbuid/SPEC
|
35 |
- copy the tarball in ~/rpmbuild/SOURCES/. copy the patch file ("havp-init.diff") in ~/rpmbuil/SOURCE. Copy and adapt the .spec in ~/rpmbuid/SPEC
|