2010-05-20 15:42:47 +02:00
|
|
|
#!/bin/bash
|
2011-12-21 12:38:57 +01:00
|
|
|
source build_vars.sh
|
2010-05-20 15:42:47 +02:00
|
|
|
|
2010-12-23 13:34:02 +01:00
|
|
|
if [ ! -d $RPMHOME/RPMS ]; then
|
|
|
|
mkdir -p $RPMHOME/RPMS || exit 1
|
|
|
|
fi
|
|
|
|
|
2010-12-21 13:14:15 +01:00
|
|
|
echo "Creating RPM packages in $RPMHOME/RPMS"
|
2010-05-20 15:42:47 +02:00
|
|
|
|
2010-12-23 13:34:02 +01:00
|
|
|
# Console
|
|
|
|
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.spec || exit 1
|
|
|
|
|
|
|
|
# Server
|
|
|
|
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.spec || exit 1
|
|
|
|
|
|
|
|
# Unix agent
|
|
|
|
rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.spec || exit 1
|
|
|
|
|
|
|
|
# Enterprise console
|
2011-12-21 12:38:57 +01:00
|
|
|
rpmbuild -ba $PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.spec || exit 1
|
2010-12-23 13:34:02 +01:00
|
|
|
|
|
|
|
# Enterprise server
|
2011-12-21 12:38:57 +01:00
|
|
|
rpmbuild -ba $PANDHOME_ENT/pandora_server/PandoraFMS-Enterprise/pandora_server_enterprise.spec || exit 1
|
2010-12-23 13:34:02 +01:00
|
|
|
|
|
|
|
# Updatemanager keygen
|
|
|
|
rpmbuild -ba $CODEHOME_ENT/updatemanager/keygen/pandora/pandora_keygen.spec || exit 1
|
|
|
|
|
|
|
|
exit 0
|
2010-05-20 15:42:47 +02:00
|
|
|
|