2010-12-23 Ramon Novoa <rnovoa@artica.es>
* build_src.sh, build_windows_agent.sh, build_deb.sh, build_rpm.sh: Return error codes and exclude .po files. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3696 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
af18b475f8
commit
f417abae88
|
@ -1,3 +1,8 @@
|
||||||
|
2010-12-23 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* build_src.sh, build_windows_agent.sh,
|
||||||
|
build_deb.sh, build_rpm.sh: Return error codes and exclude .po files.
|
||||||
|
|
||||||
2010-12-21 Ramon Novoa <rnovoa@artica.es>
|
2010-12-21 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* build_src.sh, build_deb.sh, build_rpm.sh: Small fixes to build scripts.
|
* build_src.sh, build_deb.sh, build_rpm.sh: Small fixes to build scripts.
|
||||||
|
|
|
@ -2,35 +2,27 @@
|
||||||
CODEHOME=~/code/pandora/trunk
|
CODEHOME=~/code/pandora/trunk
|
||||||
CODEHOME_ENT=~/code/artica/code
|
CODEHOME_ENT=~/code/artica/code
|
||||||
RPMHOME=/usr/src/packages
|
RPMHOME=/usr/src/packages
|
||||||
START_DIR=`pwd`
|
|
||||||
|
|
||||||
mkdir -p $RPMHOME/DEB
|
if [ ! -d $RPMHOME/DEB ]; then
|
||||||
|
mkdir -p $RPMHOME/DEB || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Creating DEB packages in $RPMHOME/DEB"
|
echo "Creating DEB packages in $RPMHOME/DEB"
|
||||||
cd $CODEHOME/pandora_console/DEBIAN
|
|
||||||
bash ./make_deb_package.sh
|
|
||||||
cd ..
|
|
||||||
mv *.deb $RPMHOME/DEB
|
|
||||||
|
|
||||||
cd $CODEHOME/pandora_server/DEBIAN
|
# Console
|
||||||
bash ./make_deb_package.sh
|
cd $CODEHOME/pandora_console/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
||||||
cd ..
|
|
||||||
mv *.deb $RPMHOME/DEB
|
|
||||||
|
|
||||||
cd $CODEHOME/pandora_agents/unix/DEBIAN
|
# Server
|
||||||
bash ./make_deb_package.sh
|
cd $CODEHOME/pandora_server/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
||||||
cd ..
|
|
||||||
mv *.deb $RPMHOME/DEB
|
|
||||||
|
|
||||||
cd $CODEHOME_ENT/pandora/trunk/pandora_console/DEBIAN
|
# Unix agent
|
||||||
bash ./make_deb_package.sh
|
cd $CODEHOME/pandora_agents/unix/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
||||||
cd ..
|
|
||||||
mv *.deb $RPMHOME/DEB
|
|
||||||
|
|
||||||
cd $CODEHOME_ENT/pandora/trunk/pandora_server/PandoraFMS-Enterprise/DEBIAN
|
# Enterprise console
|
||||||
bash ./make_deb_package.sh
|
cd $CODEHOME_ENT/pandora/trunk/pandora_console/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
||||||
cd ..
|
|
||||||
mv *.deb $RPMHOME/DEB
|
|
||||||
|
|
||||||
cd $START_DIR
|
# Enterprise server
|
||||||
|
cd $CODEHOME_ENT/pandora/trunk/pandora_server/PandoraFMS-Enterprise/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,29 @@ CODEHOME=~/code/pandora/trunk
|
||||||
CODEHOME_ENT=~/code/artica/code
|
CODEHOME_ENT=~/code/artica/code
|
||||||
RPMHOME=/usr/src/packages
|
RPMHOME=/usr/src/packages
|
||||||
|
|
||||||
|
if [ ! -d $RPMHOME/RPMS ]; then
|
||||||
|
mkdir -p $RPMHOME/RPMS || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Creating RPM packages in $RPMHOME/RPMS"
|
echo "Creating RPM packages in $RPMHOME/RPMS"
|
||||||
|
|
||||||
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.spec
|
# Console
|
||||||
rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.spec
|
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.spec || exit 1
|
||||||
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.spec
|
|
||||||
rpmbuild -ba $CODEHOME_ENT/pandora/trunk/pandora_console/enterprise/pandora_console_enterprise.spec
|
# Server
|
||||||
rpmbuild -ba $CODEHOME_ENT/pandora/trunk/pandora_server/PandoraFMS-Enterprise/pandora_server_enterprise.spec
|
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.spec || exit 1
|
||||||
rpmbuild -ba $CODEHOME_ENT/updatemanager/keygen/pandora/pandora_keygen.spec
|
|
||||||
|
# Unix agent
|
||||||
|
rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.spec || exit 1
|
||||||
|
|
||||||
|
# Enterprise console
|
||||||
|
rpmbuild -ba $CODEHOME_ENT/pandora/trunk/pandora_console/enterprise/pandora_console_enterprise.spec || exit 1
|
||||||
|
|
||||||
|
# Enterprise server
|
||||||
|
rpmbuild -ba $CODEHOME_ENT/pandora/trunk/pandora_server/PandoraFMS-Enterprise/pandora_server_enterprise.spec || exit 1
|
||||||
|
|
||||||
|
# Updatemanager keygen
|
||||||
|
rpmbuild -ba $CODEHOME_ENT/updatemanager/keygen/pandora/pandora_keygen.spec || exit 1
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
|
@ -5,29 +5,29 @@ RPMHOME=/usr/src/packages
|
||||||
VERSION=$(grep 'my $pandora_version =' $CODEHOME/pandora_server/lib/PandoraFMS/Config.pm | awk '{print substr($4, 2, length($4) - 3)}')
|
VERSION=$(grep 'my $pandora_version =' $CODEHOME/pandora_server/lib/PandoraFMS/Config.pm | awk '{print substr($4, 2, length($4) - 3)}')
|
||||||
KEYGEN_VERSION=$(grep "%define version" $CODEHOME_ENT/updatemanager/keygen/pandora/pandora_keygen.spec | awk '{print $3}')
|
KEYGEN_VERSION=$(grep "%define version" $CODEHOME_ENT/updatemanager/keygen/pandora/pandora_keygen.spec | awk '{print $3}')
|
||||||
|
|
||||||
|
if [ ! -d $RPMHOME/SOURCES ]; then
|
||||||
|
mkdir -p $RPMHOME/SOURCES || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Creating source tarballs in $RPMHOME/SOURCES"
|
echo "Creating source tarballs in $RPMHOME/SOURCES"
|
||||||
rm -Rf /usr/src/rpm/SOURCES/pandorafms_*.tar.gz
|
|
||||||
|
|
||||||
cd $CODEHOME/pandora_agents
|
# Console
|
||||||
tar zcvf $RPMHOME/SOURCES/pandorafms_agent-$VERSION.tar.gz --exclude \.svn --exclude nohup linux
|
cd $CODEHOME && tar zcvf $RPMHOME/SOURCES/pandorafms_console-$VERSION.tar.gz --exclude \.svn --exclude config.php --exclude enterprise --exclude \*\.po pandora_console || exit 1
|
||||||
tar zvcf $RPMHOME/SOURCES/pandorafms_agent_unix-$VERSION.tar.gz --exclude \.svn --exclude nohup --exclude NT4 unix
|
|
||||||
|
|
||||||
cd $CODEHOME
|
# Server
|
||||||
tar zcvf $RPMHOME/SOURCES/pandorafms_server-$VERSION.tar.gz --exclude \.svn pandora_server
|
cd $CODEHOME && tar zcvf $RPMHOME/SOURCES/pandorafms_server-$VERSION.tar.gz --exclude \.svn pandora_server || exit 1
|
||||||
|
|
||||||
# Console OpenSource
|
# Linux and Unix agents
|
||||||
cd $CODEHOME
|
cd $CODEHOME/pandora_agents && tar zcvf $RPMHOME/SOURCES/pandorafms_agent-$VERSION.tar.gz --exclude \.svn --exclude nohup linux && tar zvcf $RPMHOME/SOURCES/pandorafms_agent_unix-$VERSION.tar.gz --exclude \.svn --exclude nohup --exclude NT4 unix || exit 1
|
||||||
tar zcvf $RPMHOME/SOURCES/pandorafms_console-$VERSION.tar.gz --exclude \.svn --exclude config.php --exclude enterprise pandora_console
|
|
||||||
|
|
||||||
# Console Enterprise
|
# Enterprise console
|
||||||
cd $CODEHOME_ENT/pandora/trunk/pandora_console
|
cd $CODEHOME_ENT/pandora/trunk/pandora_console && tar zcvf $RPMHOME/SOURCES/pandorafms_console_enterprise-$VERSION.tar.gz --exclude \.svn enterprise/* || exit 1
|
||||||
tar zcvf $RPMHOME/SOURCES/pandorafms_console_enterprise-$VERSION.tar.gz --exclude \.svn enterprise/*
|
|
||||||
|
|
||||||
# Server OpenSource
|
# Enterprise server
|
||||||
cd $CODEHOME_ENT/pandora/trunk/pandora_server/
|
cd $CODEHOME_ENT/pandora/trunk/pandora_server/ && tar zcvf $RPMHOME/SOURCES/pandorafms_server_enterprise-$VERSION.tar.gz --exclude \.svn PandoraFMS-Enterprise || exit 1
|
||||||
tar zcvf $RPMHOME/SOURCES/pandorafms_server_enterprise-$VERSION.tar.gz --exclude \.svn PandoraFMS-Enterprise
|
|
||||||
|
|
||||||
# Updatemanager Client keygen
|
# Updatemanager keygen
|
||||||
cd $CODEHOME_ENT/updatemanager/keygen
|
cd $CODEHOME_ENT/updatemanager/keygen && tar cvzf $RPMHOME/SOURCES/pandorafms_keygen-$KEYGEN_VERSION.tar.gz --exclude .svn --exclude keygen --exclude keygen.i386.static --exclude pandora_keygen.spec pandora || exit 1
|
||||||
tar cvzf $RPMHOME/SOURCES/pandorafms_keygen-$KEYGEN_VERSION.tar.gz --exclude .svn --exclude keygen --exclude keygen.i386.static --exclude pandora_keygen.spec pandora
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,13 @@
|
||||||
CODEHOME=~/code/pandora/trunk
|
CODEHOME=~/code/pandora/trunk
|
||||||
RPMHOME=/usr/src/packages
|
RPMHOME=/usr/src/packages
|
||||||
|
|
||||||
mkdir -p $RPMHOME/EXE
|
if [ ! -d $RPMHOME/EXE ]; then
|
||||||
|
mkdir -p $RPMHOME/EXE || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Creating Pandora FMS Agent Windows installer in $RPMHOME/EXE"
|
echo "Creating Pandora FMS Agent Windows installer in $RPMHOME/EXE"
|
||||||
|
|
||||||
|
# Windows agent
|
||||||
rm -rf $CODEHOME/pandora_agents/win32/installer/output/*.exe
|
rm -rf $CODEHOME/pandora_agents/win32/installer/output/*.exe
|
||||||
cd $CODEHOME/pandora_agents/win32
|
cd $CODEHOME/pandora_agents/win32
|
||||||
./build.sh
|
./build.sh
|
||||||
|
|
Loading…
Reference in New Issue