#------------------------------------------------------------------------------ # Copyright (c) 2001-2006 The Eisfair Team, c/o Frank Meyer, frank(at)eisfair(dot)org # # Creation: 24.09.2006 jed # Last Update: $Id$ # # !!! this is not a script but an step-by-step howto !!! #------------------------------------------------------------------------------ exit 1 The procedure for compiling perl modules is the same for all modules. 1. Extract the files for a perl module to a temporary folder on your development machine. 2. Read the included documentation to make sure that all prerequisites are matched and all refered perl modules are installed. 3. Change to the temporary module directory and run the following commands in the given order. Make sure that no error messages appear! The output of the 'make install' command should be logged to a file to be able to extract all installed files from the development system and copy it to the SVN package directory. 1. perl Makefile.PL 2. make 3. make test 4. perl-files.sh 4. Right after copying the files the following package files need to be updated too: _ADMIN/perl_addons_01-files.txt tmp/preinstall.sh tmp/install.sh usr/share/doc/perl_addons_01/changes.txt usr/share/doc/perl_addons_01/perl_addons_01.txt var/install/deinstall/perl_addons_01 var/install/packages/perl_addons_01 5. To check if all package files have properly added to the perl_addons_01-files.txt file you can run the ./maketarball.sh skript from the central SVN-_ADMIN directory. beim Build der 5.12.0 Module waren folgende Einzeiler hilfreich zum svn add und die file-lsit erstellen, jeweils -p perl_addons_0{1-3} anpassen for i in `ls -F bin_5_12_* | grep -v "/$" | sed 's/://'` ; do echo $i ; svn add $i ; ../../_ADMIN/create-list.sh -q -p $i perl_addons_03 ; rm -f $i/_ADMIN/*~ ; done for i in `ls -F eis1_bin_5_12_* | grep -v "/$" | sed 's/://'` ; do echo $i ; svn add $i ; ../../_ADMIN/create-list.sh -q -p $i perl_addons_03 ; rm -f $i/_ADMIN/*~ ; done jeweils zum auflisten fuer die Einpackliste ls -F bin_5_12_* | grep -Ev "/$|^$" | sed 's/://' ls -F eis1_bin_5_12_* | grep -Ev "/$|^$" | sed 's/://' #------------------------- # 2012-04-06 (hbfl) bei Ergaenzungen hilfreich ich habe mit 'ls' eine Datei vom perl folder auf dem build System erstellt, der laesst sich direkt in die Einpackliste kopieren und auch sonst sehr gut benutzen ########################################################################## zum Bauen der Module mit 'perl-files.sh' export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" perl-files.sh entsprechend an die Pfade und Version anpassen! tar xf $perl-modul cd $perl-modul perl Makefile.PL make make test sh ../perl-files.sh dann fallen die fertigen Module in z.b /public/perl raus cd /public/perl ls >perl_addons_0[1-3].txt, jenachdem anpassen, dann gibt es die liste der Module, die kann dann entsprechend mit z.B. sed bearbeitet werden mv perl perl_addons_01 z.B. mit dem mc einpacken perl_addons_01.tar.xz perl_module=$(cat perl_addons_01.txt) for i in ${perl_module} do echo ${i} echo "" >${i}/_ADMIN/perl_addons_01-files.txt svn add ${i} svn ps svn:keywords "Id" ${i}/_ADMIN/perl_addons_01-files.txt svn ps svn:eol-style "native" ${i}/_ADMIN/perl_addons_01-files.txt ../../_ADMIN/create-list.sh --quiet -p ${i} perl_addons_01 rm ${i}/_ADMIN/perl_addons_01-files.txt.* done fuer die changes die Namen vorbereiten echo "$perl_modules" | sed 's#^.*5_16_2_##; s#\(^.*\)_\(.*\)#\1.\2#; s#\(^.*\)_\(.*\)#\1 v\2#; s#_#::#g'