Update debian package

This commit is contained in:
Laurent Destailleur 2010-01-23 12:57:57 +00:00
parent 93ad853850
commit 3735946657
5 changed files with 13 additions and 1 deletions

2
build/deb/dolibarr.menu Normal file
View File

@ -0,0 +1,2 @@
?package(dolibarr):needs="X11" section="Applications/File Management" \
title="Dolibarr" command="/usr/bin/rundolibarr.sh" icon="/usr/share/pixmaps/nautilus.xpm"

3
build/deb/menu Normal file
View File

@ -0,0 +1,3 @@
# This file seems to be useless
# Antoher way to add menu is file dolibarr.menu
text Apps/Misc dolibarr none "Dolibarr ERP/CRM" rundolibarr.sh

View File

@ -127,7 +127,8 @@ case "$1" in
done
done
echo "Go on page http://localhost/dolibarr/ to complete the installation and use Dolibarr."
echo "Install menu entry"
if test -x /usr/bin/update-menus; then update-menus; fi
# TODO Create the file to force parameters in Web installer
#if grep DBHOST /usr/share/dolibarr/htdocs/conf/conf.php > /dev/null
@ -141,6 +142,7 @@ case "$1" in
servers="apache2-ssl apache2 mysql"
. /usr/share/wwwconfig-common/restart.sh
echo "Launch Dolibarr on page http://localhost/dolibarr/ to complete the installation and use Dolibarr."
;;
abort-upgrade|abort-remove|abort-deconfigure)

View File

@ -99,7 +99,11 @@ case "$1" in
db_purge
;;
remove)
echo "Force remove of /usr/share/dolibarr/htdocs/install"
rm -fr /usr/share/dolibarr/htdocs/install
echo "Remove menu entry"
if test -x /usr/bin/update-menus; then update-menus; fi
;;
upgrade)
;;

View File

@ -384,6 +384,7 @@ if ($nboftargetok) {
open (SPECTO,">$BUILDROOT/$PROJECT/DEBIAN/control") || die "Error";
while (<SPECFROM>) {
$newbuild = $BUILD;
$newbuild =~ s/dev/0/gi;
$newbuild =~ s/alpha/0/gi;
$newbuild =~ s/beta/1/gi;
if ($newbuild !~ /-/) { $newbuild.='-2'; }