#---------------------------------------------------------------------------- # build_libspf2.txt - how to build the binaries and create folder and packages # # Creation : 2012-01-04 jed # Last update: $Id$ # # !!! this is not a script but an step-by-step howto !!! #------------------------------------------------------------------------------ exit 1 ### download the source code from the internet, e.g. wget http://www.libspf2.org/spf/libspf2-1.2.9.tar.gz ### extract file in a temporary location tar -xzvf libspf2-1.2.9.tar.gz cd libspf2-1.2.9 1. ./configure --prefix=/usr --enable-perl 2. make 3. export DESTDIR=/public/libspf2-1.2.9; make install 4. strip -s /public/libspf2-1.2.9/usr/bin/spf* strip -s /public/libspf2-1.2.9/usr/lib/libspf2.so.2.1.0 strip -s /usr/lib/perl5/site_perl/5.12.0/i686-linux-thread-multi/auto/Mail/SPF_XS/SPF_XS.so 5. tar cvzf libspf2-1.2.9-E[1|2].tgz /public/libspf2-1.2.9 6. separate files in differen package folders binaries in /usr/bin and .so-library -> library package header files and .a/.la files -> library developer package usr/lib/perl5/... files -> perl_addons_01 package