2011-12-21 12:38:57 +01:00
|
|
|
#!/bin/bash
|
|
|
|
source build_vars.sh
|
|
|
|
|
|
|
|
if [ ! -d $RPMHOME/RPMS ]; then
|
|
|
|
mkdir -p $RPMHOME/RPMS || exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Creating RPM packages in $RPMHOME/RPMS"
|
|
|
|
|
|
|
|
# Console
|
|
|
|
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.redhat.spec || exit 1
|
|
|
|
|
|
|
|
# Server
|
|
|
|
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.redhat.spec || exit 1
|
|
|
|
|
|
|
|
# Unix agent
|
|
|
|
rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.redhat.spec || exit 1
|
|
|
|
|
|
|
|
# Enterprise console
|
|
|
|
rpmbuild -ba $PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.redhat.spec || exit 1
|
|
|
|
|
|
|
|
# Enterprise server
|
2014-06-05 11:29:01 +02:00
|
|
|
rpmbuild -ba $PANDHOME_ENT/pandora_server/PandoraFMS-Enterprise/pandora_server_enterprise.redhat.spec || exit 1
|
2011-12-21 12:38:57 +01:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|