mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Work on 3.1 packaging
This commit is contained in:
@@ -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.123 2011/07/30 14:56:12 eldy Exp $
|
# \version $Id: makepack-dolibarr.pl,v 1.124 2011/07/31 13:17:03 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.123 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
|
$REVISION='$Revision: 1.124 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
|
||||||
$VERSION="1.0 (build $REVISION)";
|
$VERSION="1.0 (build $REVISION)";
|
||||||
|
|
||||||
|
|
||||||
@@ -696,12 +696,12 @@ if ($nboftargetok) {
|
|||||||
if ($OS =~ /windows/i)
|
if ($OS =~ /windows/i)
|
||||||
{
|
{
|
||||||
print "Move *_all.deb to $DESTI\n";
|
print "Move *_all.deb to $DESTI\n";
|
||||||
$ret=`mv "$BUILDROOT/*_all.deb" "$DESTI/"`;
|
$ret=`mv $BUILDROOT/*_all.deb "$DESTI/"`;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "Move *_all.deb to $DESTI\n";
|
print "Move *_all.deb to $DESTI\n";
|
||||||
$ret=`mv "$BUILDROOT/*_all.deb" "$DESTI/"`;
|
$ret=`mv $BUILDROOT/*_all.deb "$DESTI/"`;
|
||||||
}
|
}
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ Vendor: Dolibarr dev team
|
|||||||
|
|
||||||
URL: http://www.%{name}.org
|
URL: http://www.%{name}.org
|
||||||
Source: /usr/src/RPM/SOURCES/%{name}-%{version}.tgz
|
Source: /usr/src/RPM/SOURCES/%{name}-%{version}.tgz
|
||||||
BuildArch: noarch
|
#BuildArch: noarch
|
||||||
#BuildArchitectures: noarch
|
#BuildArchitectures: noarch
|
||||||
BuildRoot: /tmp/%{name}-buildroot
|
BuildRoot: /tmp/%{name}-buildroot
|
||||||
#Icon: dolibarr_logo1.gif
|
#Icon: dolibarr_logo1.gif
|
||||||
@@ -48,7 +48,7 @@ AutoReqProv: no
|
|||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
An easy to use CRM & ERP open source/free software for small
|
Dolibarr ERP & CRM is an easy to use open source/free software for small
|
||||||
and medium companies, foundations or freelances. It includes different
|
and medium companies, foundations or freelances. It includes different
|
||||||
features for Enterprise Resource Planning (ERP) and Customer Relationship
|
features for Enterprise Resource Planning (ERP) and Customer Relationship
|
||||||
Management (CRM) but also for different other activities.
|
Management (CRM) but also for different other activities.
|
||||||
@@ -56,7 +56,7 @@ Dolibarr was designed to provide only features you need and be easy to
|
|||||||
use.
|
use.
|
||||||
|
|
||||||
%description -l es
|
%description -l es
|
||||||
Un software ERP y CRM open source/gratis para pequeñas y
|
Dolibarr ERP y CRM es un software open source/gratis para pequeñas y
|
||||||
medianas empresas, asociaciones o autónomos. Incluye diferentes
|
medianas empresas, asociaciones o autónomos. Incluye diferentes
|
||||||
funcionalidades para la Planificación de Recursos Empresariales (ERP) y
|
funcionalidades para la Planificación de Recursos Empresariales (ERP) y
|
||||||
Gestión de la Relación con los Clientes (CRM) así como para para otras
|
Gestión de la Relación con los Clientes (CRM) así como para para otras
|
||||||
@@ -65,13 +65,13 @@ solamente las funcionalidades que necesita y haciendo hincapié en su
|
|||||||
facilidad de uso.
|
facilidad de uso.
|
||||||
|
|
||||||
%description -l fr
|
%description -l fr
|
||||||
Logiciel ERP & CRM de gestion de PME/PMI, autoentrepreneurs,
|
Dolibarr ERP & CRM est un logiciel de gestion de PME/PMI, autoentrepreneurs,
|
||||||
artisans ou associations. Il permet de gérer vos clients, prospect,
|
artisans ou associations. Il permet de gérer vos clients, prospect,
|
||||||
fournisseurs, devis, factures, comptes bancaires, agenda, campagne emailings
|
fournisseurs, devis, factures, comptes bancaires, agenda, campagne emailings
|
||||||
et bien d'autres choses dans une interface pensée pour la simplicité.
|
et bien d'autres choses dans une interface pensée pour la simplicité.
|
||||||
|
|
||||||
%description -l it
|
%description -l it
|
||||||
Un programma gestionale open source e gratuito per piccole e medie
|
Dolibarr è un programma gestionale open source e gratuito per piccole e medie
|
||||||
imprese, fondazioni e liberi professionisti. Include varie funzionalità per
|
imprese, fondazioni e liberi professionisti. Include varie funzionalità per
|
||||||
Enterprise Resource Planning e gestione dei clienti (CRM), ma anche ulteriori
|
Enterprise Resource Planning e gestione dei clienti (CRM), ma anche ulteriori
|
||||||
attività. Dolibar è progettato per poter fornire solo ciò di cui hai bisogno
|
attività. Dolibar è progettato per poter fornire solo ciò di cui hai bisogno
|
||||||
@@ -101,7 +101,6 @@ mkdir -p $RPM_BUILD_ROOT/var/www/dolibarr/doc
|
|||||||
mkdir -p $RPM_BUILD_ROOT/var/www/dolibarr/htdocs
|
mkdir -p $RPM_BUILD_ROOT/var/www/dolibarr/htdocs
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/www/dolibarr/scripts
|
mkdir -p $RPM_BUILD_ROOT/var/www/dolibarr/scripts
|
||||||
|
|
||||||
# %{_datadir} = /usr/share
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
||||||
cp doc/images/dolibarr_48x48.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/dolibarr.png
|
cp doc/images/dolibarr_48x48.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/dolibarr.png
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
||||||
@@ -154,8 +153,6 @@ export installfileorig="$targetdir/build/rpm/install.forced.php.install"
|
|||||||
export installconfig="%{_sysconfdir}/dolibarr/install.forced.php"
|
export installconfig="%{_sysconfdir}/dolibarr/install.forced.php"
|
||||||
export apachefileorig="$targetdir/build/rpm/httpd-dolibarr.conf"
|
export apachefileorig="$targetdir/build/rpm/httpd-dolibarr.conf"
|
||||||
export apacheconfig="%{_sysconfdir}/dolibarr/apache.conf"
|
export apacheconfig="%{_sysconfdir}/dolibarr/apache.conf"
|
||||||
export sefileorig="$targetdir/build/rpm/file_contexts.dolibarr"
|
|
||||||
export seconfig="%{_sysconfdir}/selinux/targeted/contexts/files/file_contexts.dolibarr"
|
|
||||||
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
||||||
config="%{_sysconfdir}/dolibarr/conf.php"
|
config="%{_sysconfdir}/dolibarr/conf.php"
|
||||||
lockfile="/usr/share/dolibarr/install.lock"
|
lockfile="/usr/share/dolibarr/install.lock"
|
||||||
@@ -221,7 +218,7 @@ then
|
|||||||
chmod -R 660 $config
|
chmod -R 660 $config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create config file for apache $apacheconfig
|
# Create a config file $apacheconfig
|
||||||
if [ ! -f $apacheconfig ]; then
|
if [ ! -f $apacheconfig ]; then
|
||||||
echo Create dolibarr web server config file $apacheconfig
|
echo Create dolibarr web server config file $apacheconfig
|
||||||
cp $apachefileorig $apacheconfig
|
cp $apachefileorig $apacheconfig
|
||||||
@@ -229,15 +226,7 @@ if [ ! -f $apacheconfig ]; then
|
|||||||
chmod go-w $apacheconfig
|
chmod go-w $apacheconfig
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create config file for se $seconfig
|
# Create a config link dolibarr.conf for Fedora or Redhat
|
||||||
if [ ! -f $seconfig ]; then
|
|
||||||
echo Create se config file $seconfig
|
|
||||||
cp $sefileorig $seconfig
|
|
||||||
# chmod a-x $apacheconfig
|
|
||||||
# chmod go-w $apacheconfig
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create a config link dolibarr.conf
|
|
||||||
if [ ! -f $apachelink ]; then
|
if [ ! -f $apachelink ]; then
|
||||||
echo Create dolibarr web server config link $apachelink
|
echo Create dolibarr web server config link $apachelink
|
||||||
ln -fs $apacheconfig $apachelink
|
ln -fs $apacheconfig $apachelink
|
||||||
@@ -356,19 +345,12 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Removed dirs after apache restart
|
# Removed dirs after apache restart
|
||||||
echo Removed remaining $apacheconfig
|
echo Removed remaining dirs
|
||||||
rm -f $apacheconfig
|
rm -f $apacheconfig
|
||||||
echo Removed remaining $config
|
|
||||||
rm -f $config
|
rm -f $config
|
||||||
echo Removed remaining $installconfig
|
|
||||||
rm -f $installconfig
|
rm -f $installconfig
|
||||||
echo Removed remaining $lockfile
|
|
||||||
rm -f $lockfile
|
rm -f $lockfile
|
||||||
echo Removed remaining dir $targetdir/doc
|
|
||||||
rmdir $targetdir/doc >/dev/null 2>&1
|
rmdir $targetdir/doc >/dev/null 2>&1
|
||||||
#echo Removed remaining dir $targetdir/htdocs
|
rmdir $targetdir/htdocs >/dev/null 2>&1
|
||||||
#rmdir $targetdir/htdocs >/dev/null 2>&1 # Already removed by rpm
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jul 31 2011 Laurent Destailleur 3.1.0-0.2.beta1
|
|
||||||
- Initial version (#723326)
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ $force_install_message='KeepDefaultValuesDeb';
|
|||||||
$force_install_main_data_root='/usr/share/dolibarr/documents';
|
$force_install_main_data_root='/usr/share/dolibarr/documents';
|
||||||
$force_install_type='mysqli';
|
$force_install_type='mysqli';
|
||||||
$force_install_port='3306';
|
$force_install_port='3306';
|
||||||
$force_install_database='dolibarr';
|
$force_install_database='dolibarrrpm';
|
||||||
$force_install_createdatabase='1';
|
$force_install_createdatabase='1';
|
||||||
$force_install_databaselogin='dolibarrmysql';
|
$force_install_databaselogin='dolibarrrpm';
|
||||||
$force_install_databasepass='';
|
$force_install_databasepass='';
|
||||||
$force_install_createuser='1';
|
$force_install_createuser='1';
|
||||||
$force_install_databaserootlogin='__SUPERUSERLOGIN__';
|
$force_install_databaserootlogin='__SUPERUSERLOGIN__';
|
||||||
|
|||||||
Reference in New Issue
Block a user