2009-11-03 Miguel de Dios <miguel.dedios@artica.es>

* DEBIAN/make_deb_package.sh: move the script to make the deb package into
	the DEBIAN and change some things into the sourcecode for the directory
	change.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2071 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-11-03 17:15:06 +00:00
parent ef03620ab9
commit 5c4988e1fe
2 changed files with 39 additions and 27 deletions

View File

@ -1,3 +1,8 @@
2009-11-03 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/make_deb_package.sh: move the script to make the deb package into
the DEBIAN and change some things into the sourcecode for the directory
change.
2009-11-03 Raul Mateos <raulofpandora@gmail.com> 2009-11-03 Raul Mateos <raulofpandora@gmail.com>
* godmode/alerts/configure*.php: Improving integrity of * godmode/alerts/configure*.php: Improving integrity of

View File

@ -16,53 +16,52 @@
pandora_console_version="3.0.0.rc1" pandora_console_version="3.0.0.rc1"
echo Test if you has the tools for to make the packages. echo "Test if you has the tools for to make the packages."
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
if [ $? = 1 ] if [ $? = 1 ]
then then
echo No found \"dpkg-deb\" aplication, please install. echo "No found \"dpkg-deb\" aplication, please install."
exit 1 exit 1
else else
echo Found \"dpkg-debs\". echo "Found \"dpkg-debs\"."
fi fi
whereis dh-make-pear | cut -d":" -f2 | grep dh-make-pear > /dev/null whereis dh-make-pear | cut -d":" -f2 | grep dh-make-pear > /dev/null
if [ $? = 1 ] if [ $? = 1 ]
then then
echo No found \"dh-make-pear\" aplication, please install. echo "No found \"dh-make-pear\" aplication, please install."
exit 1 exit 1
else else
echo Found \"dh-make-pear\". echo "Found \"dh-make-pear\"."
fi fi
whereis fakeroot | cut -d":" -f2 | grep fakeroot > /dev/null whereis fakeroot | cut -d":" -f2 | grep fakeroot > /dev/null
if [ $? = 1 ] if [ $? = 1 ]
then then
echo No found \"fakeroot\" aplication, please install. echo "No found \"fakeroot\" aplication, please install."
exit 1 exit 1
else else
echo Found \"fakeroot\". echo "Found \"fakeroot\"."
fi fi
whereis dpkg-buildpackage | cut -d":" -f2 | grep dpkg-buildpackage > /dev/null whereis dpkg-buildpackage | cut -d":" -f2 | grep dpkg-buildpackage > /dev/null
if [ $? = 1 ] if [ $? = 1 ]
then then
echo No found \"dpkg-buildpackage\" aplication, please install. echo "No found \"dpkg-buildpackage\" aplication, please install."
exit 1 exit 1
else else
echo Found \"dpkg-buildpackage\". echo "Found \"dpkg-buildpackage\"."
fi fi
echo Make a \"temp_package\" temp dir for job. echo "Make a \"temp_package\" temp dir for job."
mkdir temp_package mkdir -p ../temp_package/var/www/pandora_console
mkdir temp_package/var cd ..
mkdir temp_package/var/www/
mkdir temp_package/var/www/pandora_console
echo Make directory system tree for package. echo "Make directory system tree for package."
for item in `ls ` for item in `ls `
do do
echo -n "." echo -n "."
if [ $item != 'temp_package' -a $item != 'pandora_console.spec' ] if [ $item != 'temp_package' -a $item != 'pandora_console.spec' ]
then then
if [ $item = 'DEBIAN' ] if [ $item = 'DEBIAN' ]
@ -73,10 +72,13 @@ do
fi fi
fi fi
done done
echo "END"
echo "" # if [ $item != 'temp_package' -a $item != 'pandora_console.spec' -a $item != 'make_deb_package.sh' ]
# then
# fi
echo Remove the SVN files. echo "Remove the SVN files and other temp files."
for item in `find temp_package` for item in `find temp_package`
do do
echo -n "." echo -n "."
@ -86,11 +88,17 @@ do
then then
rm -rf $item rm -rf $item
fi fi
echo $item | grep "make_deb_package.sh" > /dev/null
#last command success
if [ $? -eq 0 ]
then
rm -rf $item
fi
done done
echo "END"
echo "" echo "Calcule md5sum for md5sums file control of package."
echo Calcule md5sum for md5sums file control of package
for item in `find temp_package` for item in `find temp_package`
do do
echo -n "." echo -n "."
@ -108,15 +116,13 @@ do
fi fi
fi fi
done done
echo "END"
echo "" echo "Make the package \"Pandorafms console\"."
echo Make the package \"Pandorafms console\".
dpkg-deb --build temp_package dpkg-deb --build temp_package
mv temp_package.deb pandorafms.console_$pandora_console_version.deb mv temp_package.deb pandorafms.console_$pandora_console_version.deb
echo "Make the package \"php-xml-rpc\"."
echo Make the package \"php-xml-rpc\".
cd temp_package cd temp_package
dh-make-pear --maintainer "Miguel de Dios <miguel.dedios@artica.es>" XML_RPC dh-make-pear --maintainer "Miguel de Dios <miguel.dedios@artica.es>" XML_RPC
cd php-xml-rpc-* cd php-xml-rpc-*
@ -125,5 +131,6 @@ cd ..
mv php-xml-rpc*.deb .. mv php-xml-rpc*.deb ..
cd .. cd ..
echo Delete the \"temp_package\" temp dir for job.
echo "Delete the \"temp_package\" temp dir for job."
rm -rf temp_package rm -rf temp_package