Fix: Debian package
This commit is contained in:
parent
fefb0a9b36
commit
81f4779e23
@ -120,18 +120,21 @@ case "$1" in
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Copy icon file
|
# Copy icon file
|
||||||
echo "Copy icon file"
|
#echo "Copy icon file"
|
||||||
fileorig="/usr/share/dolibarr/doc/images/dolibarr.xpm"
|
#fileorig="/usr/share/dolibarr/doc/images/dolibarr.xpm"
|
||||||
target="/usr/share/pixmaps/"
|
#target="/usr/share/pixmaps/"
|
||||||
cp -f $fileorig $target
|
#cp -f $fileorig $target
|
||||||
|
|
||||||
echo "Install menu entry"
|
#echo "Install menu entry"
|
||||||
# This one is for Gnome ubuntu
|
# This one is for Gnome ubuntu
|
||||||
fileorig="/usr/share/dolibarr/build/deb/dolibarr.desktop"
|
#fileorig="/usr/share/dolibarr/build/deb/dolibarr.desktop"
|
||||||
target="/usr/share/applications/"
|
#target="/usr/share/applications/"
|
||||||
cp -f $fileorig $target
|
#cp -f $fileorig $target
|
||||||
# Not sure this one is usefull
|
# Not sure this is usefull
|
||||||
if test -x /usr/bin/update-menus; then update-menus; fi
|
if test -x /usr/bin/update-menus; then
|
||||||
|
echo "update-menus"
|
||||||
|
update-menus;
|
||||||
|
fi
|
||||||
|
|
||||||
# TODO Create the file to force parameters in Web installer
|
# TODO Create the file to force parameters in Web installer
|
||||||
#if grep DBHOST /usr/share/dolibarr/htdocs/conf/conf.php > /dev/null
|
#if grep DBHOST /usr/share/dolibarr/htdocs/conf/conf.php > /dev/null
|
||||||
|
|||||||
@ -221,11 +221,11 @@ case "$1" in
|
|||||||
echo "postrm Force remove of /usr/share/dolibarr/htdocs/install"
|
echo "postrm Force remove of /usr/share/dolibarr/htdocs/install"
|
||||||
rm -fr /usr/share/dolibarr/htdocs/install
|
rm -fr /usr/share/dolibarr/htdocs/install
|
||||||
|
|
||||||
echo "postrm Remove menu entry and image"
|
#echo "postrm Remove menu entry and image"
|
||||||
fileorig="/usr/share/applications/dolibarr.desktop"
|
#fileorig="/usr/share/applications/dolibarr.desktop"
|
||||||
rm -f $fileorig
|
#rm -f $fileorig
|
||||||
fileorig="/usr/share/pixmaps/dolibarr.xpm"
|
#fileorig="/usr/share/pixmaps/dolibarr.xpm"
|
||||||
rm -f $fileorig
|
#rm -f $fileorig
|
||||||
# Not sure this is usefull
|
# Not sure this is usefull
|
||||||
if test -x /usr/bin/update-menus; then update-menus; fi
|
if test -x /usr/bin/update-menus; then update-menus; fi
|
||||||
;;
|
;;
|
||||||
|
|||||||
@ -10,7 +10,7 @@ use Cwd;
|
|||||||
|
|
||||||
$PROJECT="dolibarr";
|
$PROJECT="dolibarr";
|
||||||
$MAJOR="3";
|
$MAJOR="3";
|
||||||
$MINOR="0";
|
$MINOR="1";
|
||||||
$BUILD="0-dev"; # Mettre x pour release, x-dev pour dev, x-beta pour beta, x-rc pour release candidate
|
$BUILD="0-dev"; # Mettre x pour release, x-dev pour dev, x-beta pour beta, x-rc pour release candidate
|
||||||
$RPMSUBVERSION="1"; # A incrementer au moment de la release
|
$RPMSUBVERSION="1"; # A incrementer au moment de la release
|
||||||
|
|
||||||
@ -431,9 +431,16 @@ if ($nboftargetok) {
|
|||||||
close SPECFROM;
|
close SPECFROM;
|
||||||
close SPECTO;
|
close SPECTO;
|
||||||
print "Version set to $MAJOR.$MINOR.$newbuild\n";
|
print "Version set to $MAJOR.$MINOR.$newbuild\n";
|
||||||
|
|
||||||
|
print "Create directory $BUILDROOT/$PROJECT/usr/share/applications\n";
|
||||||
|
$ret=`mkdir -p "$BUILDROOT/$PROJECT/usr/share/applications"`;
|
||||||
|
print "Copy desktop file into $BUILDROOT/$PROJECT/usr/share/applications/dolibarr.desktop\n";
|
||||||
|
$ret=`cp "$SOURCE/build/deb/dolibarr.desktop" "$BUILDROOT/$PROJECT/usr/share/applications/dolibarr.desktop"`;
|
||||||
|
|
||||||
print "Create directory $BUILDROOT/$PROJECT/usr/share/$PROJECT/documents\n";
|
print "Create directory $BUILDROOT/$PROJECT/usr/share/pixmaps\n";
|
||||||
$ret=`mkdir -p "$BUILDROOT/$PROJECT/usr/share/$PROJECT/documents"`;
|
$ret=`mkdir -p "$BUILDROOT/$PROJECT/usr/share/pixmaps"`;
|
||||||
|
print "Copy pixmap file into $BUILDROOT/$PROJECT/usr/share/pixmaps/dolibarr.xpm\n";
|
||||||
|
$ret=`cp "$SOURCE/doc/images/dolibarr.xpm" "$BUILDROOT/$PROJECT/usr/share/pixmaps/dolibarr.xpm"`;
|
||||||
|
|
||||||
#print "Create directory $BUILDROOT/$PROJECT/etc/$PROJECT\n";
|
#print "Create directory $BUILDROOT/$PROJECT/etc/$PROJECT\n";
|
||||||
#$ret=`mkdir -p "$BUILDROOT/$PROJECT/etc/$PROJECT"`;
|
#$ret=`mkdir -p "$BUILDROOT/$PROJECT/etc/$PROJECT"`;
|
||||||
@ -450,6 +457,9 @@ if ($nboftargetok) {
|
|||||||
#print "Copy apache conf file into $BUILDROOT/$PROJECT/etc/$PROJECT\n";
|
#print "Copy apache conf file into $BUILDROOT/$PROJECT/etc/$PROJECT\n";
|
||||||
#$ret=`cp "$SOURCE/build/deb/apache.conf" "$BUILDROOT/$PROJECT/etc/$PROJECT"`;
|
#$ret=`cp "$SOURCE/build/deb/apache.conf" "$BUILDROOT/$PROJECT/etc/$PROJECT"`;
|
||||||
|
|
||||||
|
print "Create directory $BUILDROOT/$PROJECT/usr/share/$PROJECT/documents\n";
|
||||||
|
$ret=`mkdir -p "$BUILDROOT/$PROJECT/usr/share/$PROJECT/documents"`;
|
||||||
|
|
||||||
print "Set permissions/owners on files/dir\n";
|
print "Set permissions/owners on files/dir\n";
|
||||||
$ret=`chown -R root.root $BUILDROOT/$PROJECT`;
|
$ret=`chown -R root.root $BUILDROOT/$PROJECT`;
|
||||||
$ret=`chown -R www-data.www-data $BUILDROOT/$PROJECT/usr/share/$PROJECT/documents`;
|
$ret=`chown -R www-data.www-data $BUILDROOT/$PROJECT/usr/share/$PROJECT/documents`;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user