Work on debian package
This commit is contained in:
parent
3cccbcb9c2
commit
d420c75ec2
@ -22,12 +22,13 @@ with format .DEB (for Debian, Ubuntu, ...).
|
|||||||
# lintian --pedantic -E -I package.deb To test a package
|
# lintian --pedantic -E -I package.deb To test a package
|
||||||
#
|
#
|
||||||
# dpkg -l List all packages
|
# dpkg -l List all packages
|
||||||
# dpkg -b To build package
|
# dpkg -b To build binary only package
|
||||||
# dpkg -c package.deb List content of package
|
# dpkg -c package.deb List content of package
|
||||||
# dpkg -I package.deb Give informations on package
|
# dpkg -I package.deb Give informations on package
|
||||||
# dpkg -i package.deb Install a package
|
# dpkg -i package.deb Install a package
|
||||||
#
|
# dpkg-reconfigure -plow package Reconfigure package
|
||||||
# dpkg -L packagename List content of installed package
|
# dpkg -L packagename List content of installed package
|
||||||
|
# dpkg -r packagename Remove config files and interactive saved answers
|
||||||
# dpkg --purge Remove config files and interactive saved answers
|
# dpkg --purge Remove config files and interactive saved answers
|
||||||
#
|
#
|
||||||
# dpkg-buildpackage -us -uc Build a source and binary package
|
# dpkg-buildpackage -us -uc Build a source and binary package
|
||||||
|
|||||||
@ -13,29 +13,25 @@ db_version 2.0
|
|||||||
echo Run the dolibarr config script
|
echo Run the dolibarr config script
|
||||||
|
|
||||||
# Rotate old configuration
|
# Rotate old configuration
|
||||||
#if [ "$1" = "reconfigure" ] ; then
|
if [ "$1" = "reconfigure" ] ; then
|
||||||
# config="/etc/dolibarr/apache.conf"
|
config="/etc/dolibarr/apache.conf"
|
||||||
# if [ -f $config ] ; then
|
for i in $(seq 8 -1 0) ; do
|
||||||
# for i in $(seq 8 -1 0) ; do
|
if [ -f ${config}.$i ] ; then
|
||||||
# if [ -f ${config}.$i ] ; then
|
mv ${config}.$i ${config}.$(($i +1))
|
||||||
# mv ${config}.$i ${config}.$(($i +1))
|
fi
|
||||||
# fi
|
done
|
||||||
# done
|
mv ${config} ${config}.0
|
||||||
# mv ${config} ${config}.0
|
fi
|
||||||
# fi
|
|
||||||
#fi
|
|
||||||
# Rotate old configuration
|
# Rotate old configuration
|
||||||
#if [ "$1" = "reconfigure" ] ; then
|
if [ "$1" = "reconfigure" ] ; then
|
||||||
# config="/etc/dolibarr/lighttpd.conf"
|
config="/etc/dolibarr/lighttpd.conf"
|
||||||
# if [ -f $config ] ; then
|
for i in $(seq 8 -1 0) ; do
|
||||||
# for i in $(seq 8 -1 0) ; do
|
if [ -f ${config}.$i ] ; then
|
||||||
# if [ -f ${config}.$i ] ; then
|
mv ${config}.$i ${config}.$(($i +1))
|
||||||
# mv ${config}.$i ${config}.$(($i +1))
|
fi
|
||||||
# fi
|
done
|
||||||
# done
|
mv ${config} ${config}.0
|
||||||
# mv ${config} ${config}.0
|
fi
|
||||||
# fi
|
|
||||||
#fi
|
|
||||||
|
|
||||||
|
|
||||||
db_capb backup
|
db_capb backup
|
||||||
@ -43,9 +39,8 @@ db_capb backup
|
|||||||
db_title "dolibarr" || true
|
db_title "dolibarr" || true
|
||||||
|
|
||||||
|
|
||||||
# Ask if we must delete database
|
# Ask for web server type.
|
||||||
echo "Ask for web server to setup"
|
#db_input critical "dolibarr/webserver" || true
|
||||||
db_input critical dolibarr/reconfigure-webserver || true
|
|
||||||
|
|
||||||
if db_go ; then
|
if db_go ; then
|
||||||
okcancel="1"
|
okcancel="1"
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# postinst script for dolibarr
|
# postinst script for dolibarr
|
||||||
#
|
|
||||||
# see: dh_installdeb(1)
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -16,6 +14,31 @@ set -e
|
|||||||
# for details, see /usr/share/doc/packaging-manual/
|
# for details, see /usr/share/doc/packaging-manual/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
lighttpd_install() {
|
||||||
|
if [ ! -f /etc/lighttpd/conf-available/50-dolibarr.conf ] ; then
|
||||||
|
if which lighty-enable-mod >/dev/null 2>&1 ; then
|
||||||
|
echo "Add link for Lighttpd config file"
|
||||||
|
ln -s /etc/dolibarr/lighttpd.conf /etc/lighttpd/conf-available/50-dolibarr.conf
|
||||||
|
# We enabled it
|
||||||
|
lighty-enable-mod dolibarr fastcgi-php
|
||||||
|
else
|
||||||
|
echo "Lighttpd not installed, skipping"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
apache_install() {
|
||||||
|
webserver=$1
|
||||||
|
if [ -d /etc/$webserver/conf.d ] && [ ! -e /etc/$webserver/conf.d/dolibarr.conf ]; then
|
||||||
|
echo "Add link for Apache config file"
|
||||||
|
ln -s /etc/dolibarr/apache.conf /etc/$webserver/conf.d/dolibarr.conf
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
db_version 2.0
|
db_version 2.0
|
||||||
@ -27,8 +50,6 @@ echo Run the dolibarr postinst script
|
|||||||
# Define vars
|
# Define vars
|
||||||
docdir='/var/lib/dolibarr/documents'
|
docdir='/var/lib/dolibarr/documents'
|
||||||
#docdir='/usr/share/dolibarr/documents'
|
#docdir='/usr/share/dolibarr/documents'
|
||||||
apachefileorig="/usr/share/dolibarr/build/deb/apache.conf"
|
|
||||||
apacheconfig="/etc/dolibarr/apache.conf"
|
|
||||||
installfileorig="/usr/share/dolibarr/build/deb/install.forced.php.install"
|
installfileorig="/usr/share/dolibarr/build/deb/install.forced.php.install"
|
||||||
installconfig="/etc/dolibarr/install.forced.php"
|
installconfig="/etc/dolibarr/install.forced.php"
|
||||||
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
||||||
@ -44,10 +65,6 @@ case "$1" in
|
|||||||
chmod -R 775 $docdir
|
chmod -R 775 $docdir
|
||||||
chmod -R g+s $docdir
|
chmod -R g+s $docdir
|
||||||
|
|
||||||
# Copy apache.conf file into target directory
|
|
||||||
#mkdir -p /etc/dolibarr
|
|
||||||
#cp -p $apachefileorig $apacheconfig
|
|
||||||
|
|
||||||
# Copy install config file (with matching Debian) values into target directory
|
# Copy install config file (with matching Debian) values into target directory
|
||||||
superuserlogin=''
|
superuserlogin=''
|
||||||
superuserpassword=''
|
superuserpassword=''
|
||||||
@ -74,21 +91,23 @@ case "$1" in
|
|||||||
chmod -R 660 $config
|
chmod -R 660 $config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the web server type (use db_get for interactive mode).
|
|
||||||
#db_reset "dolibarr/webserver"
|
|
||||||
#db_get "dolibarr/webserver" # Read value for webserver.
|
|
||||||
#webserver="$RET"
|
|
||||||
|
|
||||||
case $webserver in
|
# Reconfigure web server
|
||||||
Apache) webservers="apache2" ;;
|
db_reset dolibarr/reconfigure-webserver
|
||||||
Apache-SSL) webservers="apache2-ssl" ;;
|
|
||||||
Both) webservers="apache2 apache2-ssl" ;;
|
# Ask if we must delete database
|
||||||
*) webservers="apache2 apache2-ssl" ;;
|
echo "Ask for web server to setup"
|
||||||
esac
|
db_input critical dolibarr/reconfigure-webserver || true
|
||||||
|
db_go || true
|
||||||
|
|
||||||
|
db_get dolibarr/reconfigure-webserver
|
||||||
|
|
||||||
|
webservers="$RET"
|
||||||
|
|
||||||
# Set up web server.
|
# Set up web server.
|
||||||
for server in $webservers ; do
|
for webserver in $webservers ; do
|
||||||
echo Complete config of server $server
|
webserver=${webserver%,}
|
||||||
|
echo Complete config of server $webserver
|
||||||
|
|
||||||
# Detect webuser and webgroup
|
# Detect webuser and webgroup
|
||||||
webuser=
|
webuser=
|
||||||
@ -106,27 +125,32 @@ case "$1" in
|
|||||||
# Set permissions to web server
|
# Set permissions to web server
|
||||||
chown -R $webuser:$webgroup /usr/share/dolibarr
|
chown -R $webuser:$webgroup /usr/share/dolibarr
|
||||||
chown -R root:$webgroup $config
|
chown -R root:$webgroup $config
|
||||||
|
|
||||||
# Add link to config file
|
|
||||||
echo Setup web server $server to add dolibarr config file
|
|
||||||
ln -fs /etc/dolibarr/apache.conf /etc/apache2/conf.d/dolibarr.conf
|
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Restart servers
|
# Restart web server.
|
||||||
servers="apache2-ssl apache2 mysql"
|
for webserver in $webservers; do
|
||||||
# Another way to restart
|
webserver=${webserver%,}
|
||||||
for server in $servers ; do
|
if [ "$webserver" = "lighttpd" ] ; then
|
||||||
if [ -x /usr/sbin/invoke-rc.d ]; then
|
lighttpd_install
|
||||||
echo Restart web server $server using invoke-rc.d
|
else
|
||||||
# This works with Debian (5.05,...) and Ubuntu (9.10,10.04,...)
|
apache_install $webserver
|
||||||
invoke-rc.d $server reload || true
|
fi
|
||||||
else
|
# Reload webserver in any case, configuration might have changed
|
||||||
echo Restart web server $server using $server reload
|
# Redirection of 3 is needed because Debconf uses it and it might
|
||||||
/etc/init.d/$server reload || true
|
# be inherited by webserver. See bug #446324.
|
||||||
fi
|
if [ -f /etc/init.d/$webserver ] ; then
|
||||||
|
if [ -x /usr/sbin/invoke-rc.d ]; then
|
||||||
|
echo Restart web server $server using invoke-rc.d
|
||||||
|
# This works with Debian (5.05,...) and Ubuntu (9.10,10.04,...)
|
||||||
|
invoke-rc.d $webserver reload 3>/dev/null || true
|
||||||
|
else
|
||||||
|
echo Restart web server $server using $server reload
|
||||||
|
/etc/init.d/$webserver reload 3>/dev/null || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
echo ----------
|
echo ----------
|
||||||
echo "Call Dolibarr page http://localhost/dolibarr/ to complete the installation and use Dolibarr."
|
echo "Call Dolibarr page http://localhost/dolibarr/ to complete the installation and use Dolibarr."
|
||||||
echo ----------
|
echo ----------
|
||||||
@ -136,13 +160,13 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "postinst called with unknown argument \`$1'" >&2
|
echo "postinst called with unknown argument $1" >&2
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
db_stop
|
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
|
db_stop
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
115
build/deb/postrm
115
build/deb/postrm
@ -17,7 +17,36 @@ set -e
|
|||||||
# for details, see /usr/share/doc/packaging-manual/
|
# for details, see /usr/share/doc/packaging-manual/
|
||||||
|
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
|
||||||
|
lighttpd_remove() {
|
||||||
|
if [ -f /etc/lighttpd/conf-available/50-dolibarr.conf ] ; then
|
||||||
|
echo "Remove link for Lighttpd config file"
|
||||||
|
rm -f /etc/lighttpd/conf-available/50-dolibarr.conf
|
||||||
|
if which lighty-enable-mod >/dev/null 2>&1 ; then
|
||||||
|
lighty-disable-mod dolibarr
|
||||||
|
else
|
||||||
|
echo "Lighttpd not installed, skipping"
|
||||||
|
fi
|
||||||
|
# See bug #448682
|
||||||
|
if [ -h /etc/lighttpd/conf-enabled/50-dolibarr.conf ] ; then
|
||||||
|
echo 'Manually deleting lighttpd/dolibarr configuration link'
|
||||||
|
rm /etc/lighttpd/conf-enabled/50-dolibarr.conf
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
apache_remove() {
|
||||||
|
if [ -d /etc/$webserver/conf.d ] && [ -L /etc/$webserver/conf.d/dolibarr.conf ]; then
|
||||||
|
echo "Remove link for Apache config file"
|
||||||
|
rm -f /etc/$webserver/conf.d/dolibarr.conf
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [ -f /usr/share/debconf/confmodule ]; then
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
fi
|
||||||
|
|
||||||
db_version 2.0
|
db_version 2.0
|
||||||
|
|
||||||
@ -26,22 +55,11 @@ echo Run the dolibarr postrm script
|
|||||||
|
|
||||||
docdir='/var/lib/dolibarr/documents'
|
docdir='/var/lib/dolibarr/documents'
|
||||||
#docdir='/usr/share/dolibarr/documents'
|
#docdir='/usr/share/dolibarr/documents'
|
||||||
apachefileorig="/usr/share/dolibarr/build/deb/apache.conf"
|
|
||||||
apacheconfig="/etc/dolibarr/apache.conf"
|
|
||||||
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
||||||
config="/etc/dolibarr/conf.php"
|
config="/etc/dolibarr/conf.php"
|
||||||
lockfile="/usr/share/dolibarr/install.lock"
|
lockfile="/usr/share/dolibarr/install.lock"
|
||||||
|
|
||||||
|
|
||||||
export webserver=""
|
|
||||||
# Allows us to loop and substitute in one pass
|
|
||||||
case $webserver in
|
|
||||||
Apache) webservers="apache2" ;;
|
|
||||||
Apache-SSL) webservers="apache2-ssl" ;;
|
|
||||||
Both) webservers="apache2 apache2-ssl" ;;
|
|
||||||
*) webservers="apache2 apache2-ssl" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
||||||
@ -53,36 +71,44 @@ case "$1" in
|
|||||||
remove)
|
remove)
|
||||||
rm -f $lockfile
|
rm -f $lockfile
|
||||||
|
|
||||||
# Remove include files
|
# Reconfigure web server
|
||||||
export restart=""
|
db_get dolibarr/reconfigure-webserver
|
||||||
for server in $webservers ; do
|
|
||||||
export conffile="/etc/$server/conf.d/dolibarr.conf"
|
|
||||||
if [ -f $conffile ] ;
|
|
||||||
then
|
|
||||||
echo Delete link $conffile
|
|
||||||
rm -f $conffile
|
|
||||||
status=purge
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$status" = "xpurge" ] ;
|
webservers="$RET"
|
||||||
then restart="$restart $server"
|
|
||||||
|
# Restart web servers
|
||||||
|
for webserver in $webservers; do
|
||||||
|
webserver=${webserver%,}
|
||||||
|
if [ "$webserver" = "lighttpd" ] ; then
|
||||||
|
lighttpd_remove
|
||||||
|
else
|
||||||
|
apache_remove $webserver
|
||||||
|
fi
|
||||||
|
# Redirection of 3 is needed because Debconf uses it and it might
|
||||||
|
# be inherited by webserver. See bug #446324.
|
||||||
|
if [ -f /etc/init.d/$webserver ] ; then
|
||||||
|
if [ -x /usr/sbin/invoke-rc.d ]; then
|
||||||
|
invoke-rc.d $webserver reload 3>/dev/null || true
|
||||||
|
else
|
||||||
|
/etc/init.d/$webserver reload 3>/dev/null || true
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Call when we uninstall and purge
|
# Call when we uninstall and purge
|
||||||
purge)
|
purge)
|
||||||
echo "postrm purge webservers=$webservers apacheconfig=$apacheconfig"
|
echo "postrm purge webservers=$webservers"
|
||||||
|
|
||||||
# Ask if we must delete database
|
# Ask if we must delete database
|
||||||
echo "postrm db_input dolibarr/postrm"
|
echo "postrm db_input dolibarr/postrm"
|
||||||
db_input critical "dolibarr/postrm" || true
|
db_input critical dolibarr/postrm || true
|
||||||
db_go || true
|
db_go || true
|
||||||
|
|
||||||
echo "postrm db_get dolibarr/postrm"
|
echo "postrm db_get dolibarr/postrm"
|
||||||
# We disable set -e to avoid premature end of script if error
|
# We disable set -e to avoid premature end of script if error
|
||||||
set +e
|
set +e
|
||||||
db_get "dolibarr/postrm"
|
db_get dolibarr/postrm
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ "$RET" = "true" ] ; then
|
if [ "$RET" = "true" ] ; then
|
||||||
@ -185,41 +211,12 @@ case "$1" in
|
|||||||
echo "postrm Delete of dolibarr database and uploaded files not wanted"
|
echo "postrm Delete of dolibarr database and uploaded files not wanted"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove include files
|
|
||||||
export restart=""
|
|
||||||
for server in $webservers ; do
|
|
||||||
export conffile="/etc/$server/conf.d/dolibarr.conf"
|
|
||||||
if [ -f $conffile ] ;
|
|
||||||
then
|
|
||||||
echo Delete file $conffile
|
|
||||||
rm -f $conffile
|
|
||||||
status=purge
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$status" = "xpurge" ] ;
|
|
||||||
then restart="$restart $server"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
rm -rf /etc/dolibarr
|
rm -rf /etc/dolibarr
|
||||||
|
|
||||||
# Restart servers
|
|
||||||
for server in $restart ; do
|
|
||||||
# We disable blocking errors
|
|
||||||
set +e
|
|
||||||
echo "Restart server $server if exists"
|
|
||||||
if [ -x /usr/sbin/invoke-rc.d ]; then
|
|
||||||
invoke-rc.d $server reload || true
|
|
||||||
else
|
|
||||||
/etc/init.d/$server reload || true
|
|
||||||
fi
|
|
||||||
# We restore blocking errors
|
|
||||||
set -e
|
|
||||||
done
|
|
||||||
|
|
||||||
# We clean variable (we ignore errors because db_reset can fails if var was never set)
|
# We clean variable (we ignore errors because db_reset can fails if var was never set)
|
||||||
set +e
|
set +e
|
||||||
db_reset "dolibarr/postrm"
|
db_reset dolibarr/reconfigure-webserver
|
||||||
|
db_reset dolibarr/postrm
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
#db_purge
|
#db_purge
|
||||||
@ -229,7 +226,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "postrm called with unknown argument \`$1'" >&2
|
echo "postrm called with unknown argument $1" >&2
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# \file build/makepack-dolibarr.pl
|
# \file build/makepack-dolibarr.pl
|
||||||
# \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps)
|
# \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps)
|
||||||
# \version $Id: makepack-dolibarr.pl,v 1.127 2011/07/31 18:06:36 eldy Exp $
|
# \version $Id: makepack-dolibarr.pl,v 1.129 2011/08/01 18:22:26 eldy Exp $
|
||||||
# \author (c)2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
# \author (c)2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ if (-d "/usr/src/RPM") {
|
|||||||
|
|
||||||
|
|
||||||
use vars qw/ $REVISION $VERSION /;
|
use vars qw/ $REVISION $VERSION /;
|
||||||
$REVISION='$Revision: 1.127 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
|
$REVISION='$Revision: 1.129 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
|
||||||
$VERSION="1.0 (build $REVISION)";
|
$VERSION="1.0 (build $REVISION)";
|
||||||
|
|
||||||
|
|
||||||
@ -254,9 +254,11 @@ if ($nboftargetok) {
|
|||||||
|
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT/build/DoliW*-*`;
|
$ret=`rm -f $BUILDROOT/$PROJECT/build/DoliW*-*`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT/build/DoliM*-*`;
|
$ret=`rm -f $BUILDROOT/$PROJECT/build/DoliM*-*`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.deb`;
|
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr_*.changes`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr_*.deb`;
|
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr_*.deb`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr_*.dsc`;
|
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr_*.dsc`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr_*.tar.gz`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.deb`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.rpm`;
|
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.rpm`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.tar`;
|
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.tar`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.tar.gz`;
|
$ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.tar.gz`;
|
||||||
@ -316,6 +318,9 @@ if ($nboftargetok) {
|
|||||||
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils`;
|
||||||
#$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils/pfm2afm`;
|
#$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils/pfm2afm`;
|
||||||
#$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils/ttf2ufm`;
|
#$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils/ttf2ufm`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/jquery/plugins/flot/jquery.js`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/jquery/plugins/flot/jquery.min.js`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/jquery/plugins/jcrop/js/jquery.min.js`;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Build package for each target
|
# Build package for each target
|
||||||
@ -444,17 +449,93 @@ if ($nboftargetok) {
|
|||||||
|
|
||||||
print "Remove other files\n";
|
print "Remove other files\n";
|
||||||
$ret=`rm -f $BUILDROOT/$FILENAMETGZ2/htdocs/includes/barcode/php-barcode/genbarcode/genbarcode`;
|
$ret=`rm -f $BUILDROOT/$FILENAMETGZ2/htdocs/includes/barcode/php-barcode/genbarcode/genbarcode`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/README`;
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/README`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/aps`;
|
$ret=`rm -f $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/README`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/deb`;
|
$ret=`rm -f $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/README-FR`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/dmg`;
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/aps`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/doap`;
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/deb`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/exe`;
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/dmg`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/live`;
|
$ret=`rm -f $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/pad/README`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/patch`;
|
$ret=`rm -f $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/tgz/README`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/zip`;
|
$ret=`rm -f $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/deb/README`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/perl`;
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/doap`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/exe`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/live`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/patch`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/zip`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/build/perl`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/dev/dbmodel`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/dev/fpdf`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/dev/initdata`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/dev/iso-normes`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/dev/phpcheckstyle`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/dev/phpunit`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/doc/flyer`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/doc/font`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/doc/tshirt`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/doc/rollup`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/test`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/cashdesk/include/jscalendar/doc/html/CVS`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/cashdesk/include/jscalendar/skins/aqua/CVS`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/includes/ckeditor/plugins/*/dialogs/CVS`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/includes/ckeditor/plugins/*/images/CVS`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/includes/fpdf/fpdf`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/includes/nusoap/lib/Mail`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/includes/odtphp/zip/.svn`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/includes/odtphp/zip/pclzip/.svn`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/includes/smarty`;
|
||||||
|
|
||||||
|
$ret=`rm -f $BUILDROOT/$FILENAMETGZ2/$PROJECT/COPYING`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/includes/barcode/php-barcode/genbarcode/genbarcode`;
|
||||||
|
# To remove once stable
|
||||||
|
$ret=`rm -fr $BUILDROOT/$FILENAMETGZ2/$PROJECT/htdocs/htdocs/theme/bureau2crea`;
|
||||||
|
|
||||||
|
# Apache conf files
|
||||||
|
#print "Copy apache.conf file into $BUILDROOT/$FILENAMETGZ2/etc/$PROJECT/apache.conf\n";
|
||||||
|
#$ret=`mkdir -p "$BUILDROOT/$FILENAMETGZ2/etc/$PROJECT"`;
|
||||||
|
#$ret=`cp "$SOURCE/build/deb/apache.conf" "$BUILDROOT/$FILENAMETGZ2/etc/$PROJECT/apache.conf"`;
|
||||||
|
|
||||||
|
# Dolibarr conf files
|
||||||
|
# TODO
|
||||||
|
|
||||||
|
# dolibarr.desktop
|
||||||
|
#print "Create directory $BUILDROOT/$FILENAMETGZ2/usr/share/applications\n";
|
||||||
|
#$ret=`mkdir -p "$BUILDROOT/$FILENAMETGZ2/usr/share/applications"`;
|
||||||
|
#print "Copy desktop file into $BUILDROOT/$FILENAMETGZ2/usr/share/applications/dolibarr.desktop\n";
|
||||||
|
#$ret=`cp "$SOURCE/build/rpm/dolibarr.desktop" "$BUILDROOT/$FILENAMETGZ2/usr/share/applications/dolibarr.desktop"`;
|
||||||
|
|
||||||
|
# pixmap
|
||||||
|
#print "Create directory $BUILDROOT/$FILENAMETGZ2/usr/share/pixmaps\n";
|
||||||
|
#$ret=`mkdir -p "$BUILDROOT/$FILENAMETGZ2/usr/share/pixmaps"`;
|
||||||
|
#print "Copy pixmap file into $BUILDROOT/$FILENAMETGZ2/usr/share/pixmaps/dolibarr.xpm\n";
|
||||||
|
#$ret=`cp "$SOURCE/doc/images/dolibarr.xpm" "$BUILDROOT/$FILENAMETGZ2/usr/share/pixmaps/dolibarr.xpm"`;
|
||||||
|
|
||||||
|
# Set owners
|
||||||
|
print "Set owners on files/dir\n";
|
||||||
|
$ret=`chown -R root.root $BUILDROOT/$FILENAMETGZ2`;
|
||||||
|
|
||||||
|
print "Set permissions on files/dir\n";
|
||||||
|
$ret=`chmod -R 755 $BUILDROOT/$FILENAMETGZ2`;
|
||||||
|
$cmd="find $BUILDROOT/$FILENAMETGZ2 -type f -exec chmod 644 {} \\; ";
|
||||||
|
$ret=`$cmd`;
|
||||||
|
$cmd="find $BUILDROOT/$FILENAMETGZ2/build -name '*.php' -type f -exec chmod 755 {} \\; ";
|
||||||
|
$ret=`$cmd`;
|
||||||
|
$cmd="find $BUILDROOT/$FILENAMETGZ2/build -name '*.pl' -type f -exec chmod 755 {} \\; ";
|
||||||
|
$ret=`$cmd`;
|
||||||
|
$cmd="find $BUILDROOT/$FILENAMETGZ2/dev -name '*.php' -type f -exec chmod 755 {} \\; ";
|
||||||
|
$ret=`$cmd`;
|
||||||
|
$ret=`chmod -R 644 $BUILDROOT/$FILENAMETGZ2/dev/translation/langAutoParser.class.php`;
|
||||||
|
$ret=`chmod -R 644 $BUILDROOT/$FILENAMETGZ2/dev/skeletons/skeleton_page.php`;
|
||||||
|
$ret=`chmod -R 644 $BUILDROOT/$FILENAMETGZ2/dev/skeletons/modMyModule.class.php`;
|
||||||
|
$ret=`chmod -R 644 $BUILDROOT/$FILENAMETGZ2/dev/skeletons/skeleton_class.class.php`;
|
||||||
|
$cmd="find $BUILDROOT/$FILENAMETGZ2/scripts -name '*.php' -type f -exec chmod 755 {} \\; ";
|
||||||
|
$ret=`$cmd`;
|
||||||
|
$cmd="find $BUILDROOT/$FILENAMETGZ2/htdocs/includes/geoip -name 'sample*.php' -type f -exec chmod 755 {} \\; ";
|
||||||
|
$ret=`$cmd`;
|
||||||
|
$cmd="find $BUILDROOT/$FILENAMETGZ2/htdocs/includes/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts -name '*.pl' -type f -exec chmod 755 {} \\; ";
|
||||||
|
$ret=`$cmd`;
|
||||||
|
|
||||||
|
# Build tgz
|
||||||
print "Compress $FILENAMETGZ2 into $FILENAMETGZ2.tgz...\n";
|
print "Compress $FILENAMETGZ2 into $FILENAMETGZ2.tgz...\n";
|
||||||
$ret=`tar --exclude-from "$SOURCE/build/tgz/tar_exclude.txt" --directory "$BUILDROOT" -czvf "$BUILDROOT/$FILENAMETGZ2.tgz" $FILENAMETGZ2`;
|
$ret=`tar --exclude-from "$SOURCE/build/tgz/tar_exclude.txt" --directory "$BUILDROOT" -czvf "$BUILDROOT/$FILENAMETGZ2.tgz" $FILENAMETGZ2`;
|
||||||
|
|
||||||
@ -491,6 +572,8 @@ if ($nboftargetok) {
|
|||||||
|
|
||||||
if ($target eq 'DEB')
|
if ($target eq 'DEB')
|
||||||
{
|
{
|
||||||
|
$olddir=getcwd();
|
||||||
|
|
||||||
$newbuild = $BUILD;
|
$newbuild = $BUILD;
|
||||||
$newbuild =~ s/(dev|alpha)/1/gi; # dev
|
$newbuild =~ s/(dev|alpha)/1/gi; # dev
|
||||||
$newbuild =~ s/beta/2/gi; # beta
|
$newbuild =~ s/beta/2/gi; # beta
|
||||||
@ -593,19 +676,22 @@ if ($nboftargetok) {
|
|||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/odtphp/zip/.svn`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/odtphp/zip/.svn`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/odtphp/zip/pclzip/.svn`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/odtphp/zip/pclzip/.svn`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/smarty`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/smarty`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/fckeditor/license.txt`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/jquery/plugins/flot/LICENSE.txt`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/php_writeexcel/LICENSE`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/tcpdf/LICENSE.TXT`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/COPYING`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/COPYING`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/barcode/php-barcode/genbarcode/genbarcode`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/barcode/php-barcode/genbarcode/genbarcode`;
|
||||||
# To remove once stable
|
# To remove once stable
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/htdocs/theme/bureau2crea`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/htdocs/theme/bureau2crea`;
|
||||||
|
|
||||||
# Apache conf files
|
# Apache and lighttpd conf files
|
||||||
print "Copy apache.conf file into $BUILDROOT/$PROJECT.tmp/etc/$PROJECT/apache.conf\n";
|
print "Copy apache.conf file into $BUILDROOT/$PROJECT.tmp/etc/$PROJECT/apache.conf\n";
|
||||||
$ret=`mkdir -p "$BUILDROOT/$PROJECT.tmp/etc/$PROJECT"`;
|
$ret=`mkdir -p "$BUILDROOT/$PROJECT.tmp/etc/$PROJECT"`;
|
||||||
$ret=`cp "$SOURCE/build/deb/apache.conf" "$BUILDROOT/$PROJECT.tmp/etc/$PROJECT/apache.conf"`;
|
$ret=`cp "$SOURCE/build/deb/apache.conf" "$BUILDROOT/$PROJECT.tmp/etc/$PROJECT/apache.conf"`;
|
||||||
|
print "Copy lighttpd.conf file into $BUILDROOT/$PROJECT.tmp/etc/$PROJECT/lighttpd.conf\n";
|
||||||
# Dolibarr conf files
|
$ret=`mkdir -p "$BUILDROOT/$PROJECT.tmp/etc/$PROJECT"`;
|
||||||
# TODO
|
$ret=`cp "$SOURCE/build/deb/lighttpd.conf" "$BUILDROOT/$PROJECT.tmp/etc/$PROJECT/lighttpd.conf"`;
|
||||||
|
|
||||||
# dolibarr.desktop
|
# dolibarr.desktop
|
||||||
print "Create directory $BUILDROOT/$PROJECT.tmp/usr/share/applications\n";
|
print "Create directory $BUILDROOT/$PROJECT.tmp/usr/share/applications\n";
|
||||||
@ -622,17 +708,7 @@ if ($nboftargetok) {
|
|||||||
print "Create directory $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT\n";
|
print "Create directory $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT\n";
|
||||||
$ret=`mkdir -p "$BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT"`;
|
$ret=`mkdir -p "$BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT"`;
|
||||||
|
|
||||||
#print "Copy README file into $BUILDROOT/$PROJECT.tmp/DEBIAN\n";
|
# Set owners
|
||||||
#$ret=`cp "$SOURCE/README" "$BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/README"`;
|
|
||||||
|
|
||||||
# copyright (to build binary package directly without sources. Useless if we build from sources)
|
|
||||||
#print "Copy copyright file into $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/copyright\n";
|
|
||||||
#$ret=`cp "$SOURCE/build/deb/copyright" "$BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/copyright"`;
|
|
||||||
|
|
||||||
# changelog (to build binary package directly without sources. Useless if we build from sources)
|
|
||||||
#$ret=`gzip -9 -c "$SOURCE/build/deb/changelog" > $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/changelog.Debian.gz`;
|
|
||||||
#$ret=`gzip -9 -c "$SOURCE/build/deb/changelog" > $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/changelog.gz`;
|
|
||||||
|
|
||||||
print "Set owners on files/dir\n";
|
print "Set owners on files/dir\n";
|
||||||
$ret=`chown -R root.root $BUILDROOT/$PROJECT.tmp`;
|
$ret=`chown -R root.root $BUILDROOT/$PROJECT.tmp`;
|
||||||
|
|
||||||
@ -661,17 +737,15 @@ if ($nboftargetok) {
|
|||||||
$cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts -name '*.pl' -type f -exec chmod 755 {} \\; ";
|
$cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts -name '*.pl' -type f -exec chmod 755 {} \\; ";
|
||||||
$ret=`$cmd`;
|
$ret=`$cmd`;
|
||||||
|
|
||||||
print "Go to directory $BUILDROOT\n";
|
# Creation of binary package (to build without sources)
|
||||||
$olddir=getcwd();
|
#print "Go to directory $BUILDROOT\n";
|
||||||
chdir("$BUILDROOT");
|
#chdir("$BUILDROOT");
|
||||||
|
|
||||||
# Creation of binary package (to build without sources)
|
|
||||||
#$cmd="dpkg -b $BUILDROOT/$PROJECT.tmp $BUILDROOT/${FILENAMEDEB}_all.deb";
|
#$cmd="dpkg -b $BUILDROOT/$PROJECT.tmp $BUILDROOT/${FILENAMEDEB}_all.deb";
|
||||||
#print "Launch DEB build ($cmd)\n";
|
#print "Launch DEB build ($cmd)\n";
|
||||||
#$ret=`$cmd`;
|
#$ret=`$cmd`;
|
||||||
#print $ret."\n";
|
#print $ret."\n";
|
||||||
|
|
||||||
# Creation of source package
|
# Prepare source package
|
||||||
print "Create directory $BUILDROOT/$PROJECT.tmp/debian\n";
|
print "Create directory $BUILDROOT/$PROJECT.tmp/debian\n";
|
||||||
$ret=`mkdir "$BUILDROOT/$PROJECT.tmp/debian"`;
|
$ret=`mkdir "$BUILDROOT/$PROJECT.tmp/debian"`;
|
||||||
$ret=`mkdir "$BUILDROOT/$PROJECT.tmp/debian/source"`;
|
$ret=`mkdir "$BUILDROOT/$PROJECT.tmp/debian/source"`;
|
||||||
@ -683,6 +757,7 @@ if ($nboftargetok) {
|
|||||||
$ret=`cp -f "$SOURCE/build/deb/README.debian" "$BUILDROOT/$PROJECT.tmp/usr/share/doc/dolibarr/README"`;
|
$ret=`cp -f "$SOURCE/build/deb/README.debian" "$BUILDROOT/$PROJECT.tmp/usr/share/doc/dolibarr/README"`;
|
||||||
$ret=`cp -f "$SOURCE/build/deb/changelog" "$BUILDROOT/$PROJECT.tmp/debian/changelog"`;
|
$ret=`cp -f "$SOURCE/build/deb/changelog" "$BUILDROOT/$PROJECT.tmp/debian/changelog"`;
|
||||||
$ret=`cp -f "$SOURCE/build/deb/control.debian" "$BUILDROOT/$PROJECT.tmp/debian/control"`;
|
$ret=`cp -f "$SOURCE/build/deb/control.debian" "$BUILDROOT/$PROJECT.tmp/debian/control"`;
|
||||||
|
$ret=`cp -f "$SOURCE/build/deb/dolibarr.lintian-overrides" "$BUILDROOT/$PROJECT.tmp/debian/dolibarr.lintian-overrides"`;
|
||||||
$ret=`cp -f "$SOURCE/build/deb/install" "$BUILDROOT/$PROJECT.tmp/debian/install"`;
|
$ret=`cp -f "$SOURCE/build/deb/install" "$BUILDROOT/$PROJECT.tmp/debian/install"`;
|
||||||
$ret=`cp -f "$SOURCE/build/deb/rules" "$BUILDROOT/$PROJECT.tmp/debian/rules"`;
|
$ret=`cp -f "$SOURCE/build/deb/rules" "$BUILDROOT/$PROJECT.tmp/debian/rules"`;
|
||||||
$ret=`cp -f "$SOURCE/build/deb/copyright" "$BUILDROOT/$PROJECT.tmp/debian/copyright"`;
|
$ret=`cp -f "$SOURCE/build/deb/copyright" "$BUILDROOT/$PROJECT.tmp/debian/copyright"`;
|
||||||
@ -698,6 +773,9 @@ if ($nboftargetok) {
|
|||||||
|
|
||||||
$cmd="mv $BUILDROOT/$PROJECT.tmp $BUILDROOT/$PROJECT-$MAJOR.$MINOR.$build";
|
$cmd="mv $BUILDROOT/$PROJECT.tmp $BUILDROOT/$PROJECT-$MAJOR.$MINOR.$build";
|
||||||
$ret=`$cmd`;
|
$ret=`$cmd`;
|
||||||
|
|
||||||
|
# Creation of source package
|
||||||
|
print "Go to directory $BUILDROOT\n";
|
||||||
chdir("$BUILDROOT/$PROJECT-$MAJOR.$MINOR.$build");
|
chdir("$BUILDROOT/$PROJECT-$MAJOR.$MINOR.$build");
|
||||||
#$cmd="dpkg-source -b $BUILDROOT/$PROJECT-$MAJOR.$MINOR.$build";
|
#$cmd="dpkg-source -b $BUILDROOT/$PROJECT-$MAJOR.$MINOR.$build";
|
||||||
$cmd="dpkg-buildpackage -us -uc";
|
$cmd="dpkg-buildpackage -us -uc";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user