Work on 3.1 packaging
This commit is contained in:
parent
bf65882fc4
commit
2162ea7aed
@ -1,8 +1,9 @@
|
|||||||
dolibarr (3.1.0) unstable; urgency=low
|
dolibarr (3.1.0-1.1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Non-maintainer upload
|
||||||
* New upstream release.
|
* New upstream release.
|
||||||
closes: bug#634783
|
closes: bug#634783
|
||||||
|
|
||||||
-- Laurent Destailleur <eldy@users.sourceforge.net> Mon, 18 Jul 2011 12:00:00 +0100
|
-- Laurent Destailleur <eldy@users.sourceforge.net> Mon, 30 Jul 2011 12:00:00 +0100
|
||||||
|
|
||||||
# More information into /usr/share/dolibarr/ChangeLog file.
|
# For a changelog file dedicated to users, see /usr/share/doc/dolibarr/UserChangeLog.gz file.
|
||||||
@ -30,6 +30,7 @@ apachefileorig="/usr/share/dolibarr/build/deb/apache.conf"
|
|||||||
apacheconfig="/etc/dolibarr/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"
|
||||||
|
|
||||||
|
|
||||||
export webserver=""
|
export webserver=""
|
||||||
@ -43,6 +44,32 @@ esac
|
|||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
||||||
|
# Call when we upgrade
|
||||||
|
upgrade)
|
||||||
|
;;
|
||||||
|
|
||||||
|
# Call when we uninstall
|
||||||
|
remove)
|
||||||
|
rm -f $lockfile
|
||||||
|
|
||||||
|
# Remove include files
|
||||||
|
export restart=""
|
||||||
|
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" ] ;
|
||||||
|
then restart="$restart $server"
|
||||||
|
fi
|
||||||
|
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 apacheconfig=$apacheconfig"
|
||||||
@ -198,30 +225,6 @@ case "$1" in
|
|||||||
#db_purge
|
#db_purge
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Call when we uninstall
|
|
||||||
remove)
|
|
||||||
rm -f /usr/share/dolibarr/install.lock
|
|
||||||
|
|
||||||
# Remove include files
|
|
||||||
export restart=""
|
|
||||||
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" ] ;
|
|
||||||
then restart="$restart $server"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
|
|
||||||
upgrade)
|
|
||||||
;;
|
|
||||||
|
|
||||||
failed-upgrade|abort-install|abort-upgrade|disappear)
|
failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,11 +5,6 @@
|
|||||||
# file to build a package for your own distributions and
|
# file to build a package for your own distributions and
|
||||||
# edit it if you need to match your rules.
|
# edit it if you need to match your rules.
|
||||||
# --------------------------------------------------------
|
# --------------------------------------------------------
|
||||||
|
|
||||||
#%define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
|
|
||||||
#%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
|
|
||||||
#%define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
|
|
||||||
|
|
||||||
%define name dolibarr
|
%define name dolibarr
|
||||||
%define version __VERSION__
|
%define version __VERSION__
|
||||||
%define release __RELEASE__
|
%define release __RELEASE__
|
||||||
@ -17,18 +12,15 @@
|
|||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
Summary: ERP and CRM software for small and medium companies or foundations
|
Summary: Dolibarr
|
||||||
Summary(es): Software ERP y CRM para pequeñas y medianas empresas o, asociaciones o autónomos
|
|
||||||
Summary(fr): Logiciel ERP & CRM de gestion de PME/PMI, autoentrepreneurs ou associations
|
|
||||||
Summary(it): Programmo gestionale per piccole imprese, fondazioni e liberi professionisti
|
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPL
|
||||||
Packager: Laurent Destailleur (Eldy) <eldy@users.sourceforge.net>
|
Packager: Laurent Destailleur (Eldy) <eldy@users.sourceforge.net>
|
||||||
Vendor: Dolibarr dev team
|
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
|
||||||
@ -56,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.
|
||||||
@ -64,26 +56,27 @@ 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 para pequeñas y medianas empresas, asociaciones
|
Dolibarr ERP y CRM es un software open source/gratis para pequeñas y
|
||||||
o autónomos. Incluye diferentes funcionalidades para la Planificación
|
medianas empresas, asociaciones o autónomos. Incluye diferentes
|
||||||
de Recursos Empresariales (ERP) y Gestión de la Relación con los
|
funcionalidades para la Planificación de Recursos Empresariales (ERP) y
|
||||||
Clientes (CRM) así como para para otras diferentes actividades.
|
Gestión de la Relación con los Clientes (CRM) así como para para otras
|
||||||
Dolibarr ha sido diseñado para suministrarle solamente las funcionalidades
|
diferentes actividades. Dolibarr ha sido diseñado para suministrarle
|
||||||
que necesita y haciendo hincapié en su facilidad de uso.
|
solamente las funcionalidades que necesita y haciendo hincapié en su
|
||||||
|
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 programmo gestionale 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à. Progettato per poter fornire solo ciò di cui hai bisogno
|
attività. Dolibar è progettato per poter fornire solo ciò di cui hai bisogno
|
||||||
ed essere facile da usare.
|
ed essere facile da usare.
|
||||||
Programmo web, progettato per poter fornire solo ciò di
|
Dolibar è completamente web-based, progettato per poter fornire solo ciò di
|
||||||
cui hai bisogno ed essere facile da usare.
|
cui hai bisogno ed essere facile da usare.
|
||||||
|
|
||||||
|
|
||||||
@ -101,51 +94,48 @@ echo Building %{name}-%{version}-%{release}
|
|||||||
|
|
||||||
#---- install
|
#---- install
|
||||||
%install
|
%install
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/dolibarr
|
mkdir -p $RPM_BUILD_ROOT/var/www/dolibarr/build
|
||||||
%{__install} -m 644 etc/dolibarr/apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/dolibarr/apache.conf
|
mkdir -p $RPM_BUILD_ROOT/var/www/dolibarr/doc
|
||||||
%{__install} -m 644 etc/dolibarr/file_contexts.dolibarr $RPM_BUILD_ROOT%{_sysconfdir}/dolibarr/file_contexts.dolibarr
|
mkdir -p $RPM_BUILD_ROOT/var/www/dolibarr/htdocs
|
||||||
|
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
|
||||||
%{__install} -m 644 var/www/dolibarr/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
|
cp build/rpm/dolibarr.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/dolibarr.desktop
|
||||||
%{__install} -m 644 var/www/dolibarr/build/rpm/dolibarr.desktop $RPM_BUILD_ROOT%{_datadir}/applications/dolibarr.desktop
|
|
||||||
|
|
||||||
%{__mkdir} -p $RPM_BUILD_ROOT/var/www/dolibarr/build
|
install -m 444 README $RPM_BUILD_ROOT/var/www/dolibarr/README
|
||||||
%{__mkdir} -p $RPM_BUILD_ROOT/var/www/dolibarr/doc
|
install -m 444 COPYRIGHT $RPM_BUILD_ROOT/var/www/dolibarr/COPYRIGHT
|
||||||
%{__mkdir} -p $RPM_BUILD_ROOT/var/www/dolibarr/htdocs
|
cp -pr build $RPM_BUILD_ROOT/var/www/dolibarr
|
||||||
%{__mkdir} -p $RPM_BUILD_ROOT/var/www/dolibarr/scripts
|
cp -pr doc $RPM_BUILD_ROOT/var/www/dolibarr
|
||||||
%{__cp} -pr var/www/dolibarr/build $RPM_BUILD_ROOT/var/www/dolibarr
|
cp -pr htdocs $RPM_BUILD_ROOT/var/www/dolibarr
|
||||||
%{__cp} -pr var/www/dolibarr/doc $RPM_BUILD_ROOT/var/www/dolibarr
|
cp -pr scripts $RPM_BUILD_ROOT/var/www/dolibarr
|
||||||
%{__cp} -pr var/www/dolibarr/htdocs $RPM_BUILD_ROOT/var/www/dolibarr
|
|
||||||
%{__cp} -pr var/www/dolibarr/scripts $RPM_BUILD_ROOT/var/www/dolibarr
|
|
||||||
%{__install} -m 644 var/www/dolibarr/COPYRIGHT $RPM_BUILD_ROOT/var/www/dolibarr/doc/COPYRIGHT
|
|
||||||
|
|
||||||
|
|
||||||
#---- clean
|
#---- clean
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
#---- files
|
#---- files
|
||||||
%files
|
%files
|
||||||
|
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc README
|
||||||
|
%doc COPYRIGHT
|
||||||
%doc /var/www/dolibarr/doc/*
|
%doc /var/www/dolibarr/doc/*
|
||||||
%dir /var/www/dolibarr/build
|
%dir /var/www/dolibarr/build
|
||||||
%dir /var/www/dolibarr/htdocs
|
%dir /var/www/dolibarr/htdocs
|
||||||
%dir /var/www/dolibarr/scripts
|
%dir /var/www/dolibarr/scripts
|
||||||
%_datadir/pixmaps/dolibarr.png
|
%_datadir/pixmaps/*
|
||||||
%_datadir/applications/%{name}.desktop
|
%_datadir/applications/%{name}.desktop
|
||||||
/var/www/dolibarr/build/*
|
/var/www/dolibarr/build/*
|
||||||
/var/www/dolibarr/htdocs/*
|
/var/www/dolibarr/htdocs/*
|
||||||
/var/www/dolibarr/scripts/*
|
/var/www/dolibarr/scripts/*
|
||||||
|
/var/www/dolibarr/README
|
||||||
%defattr(0664, -, -, 0755)
|
/var/www/dolibarr/COPYRIGHT
|
||||||
%config(noreplace) %{_sysconfdir}/dolibarr/apache.conf
|
#%config /var/www/dolibarr/htdocs/conf/conf.php
|
||||||
%config(noreplace) %{_sysconfdir}/dolibarr/file_contexts.dolibarr
|
|
||||||
|
|
||||||
|
|
||||||
#---- post (after unzip during install)
|
#---- post (after unzip during install)
|
||||||
@ -163,11 +153,9 @@ 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="%{_sysconfdir}/dolibarr/file_contexts.dolibarr"
|
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
||||||
export seconfig="%{_sysconfdir}/selinux/targeted/contexts/files/file_contexts.dolibarr"
|
config="%{_sysconfdir}/dolibarr/conf.php"
|
||||||
#export config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
lockfile="/usr/share/dolibarr/install.lock"
|
||||||
export config="%{_sysconfdir}/dolibarr/conf.php"
|
|
||||||
export lockfile="/usr/share/dolibarr/install.lock"
|
|
||||||
|
|
||||||
|
|
||||||
# Detect OS
|
# Detect OS
|
||||||
@ -201,8 +189,8 @@ echo OS detected: $os
|
|||||||
|
|
||||||
# Create empty directory for uploaded files and generated documents
|
# Create empty directory for uploaded files and generated documents
|
||||||
echo Create document directory $docdir
|
echo Create document directory $docdir
|
||||||
%{__mkdir} -p $docdir
|
mkdir -p $docdir
|
||||||
%{__mkdir} -p %{_sysconfdir}/dolibarr
|
mkdir -p %{_sysconfdir}/dolibarr
|
||||||
|
|
||||||
# Create install.forced.php into Dolibarr install directory
|
# Create install.forced.php into Dolibarr install directory
|
||||||
superuserlogin=''
|
superuserlogin=''
|
||||||
@ -214,12 +202,12 @@ if [ -f %{_sysconfdir}/mysql/debian.cnf ] ; then
|
|||||||
fi
|
fi
|
||||||
echo Mysql superuser found to use is $superuserlogin
|
echo Mysql superuser found to use is $superuserlogin
|
||||||
if [ -z "$superuserlogin" ] ; then
|
if [ -z "$superuserlogin" ] ; then
|
||||||
%{__cat} $installfileorig | sed -e 's/__SUPERUSERLOGIN__/root/g' | sed -e 's/__SUPERUSERPASSWORD__//g' > $installconfig
|
cat $installfileorig | sed -e 's/__SUPERUSERLOGIN__/root/g' | sed -e 's/__SUPERUSERPASSWORD__//g' > $installconfig
|
||||||
else
|
else
|
||||||
%{__cat} $installfileorig | sed -e 's/__SUPERUSERLOGIN__/'$superuserlogin'/g' | sed -e 's/__SUPERUSERPASSWORD__/'$superuserpassword'/g' > $installconfig
|
cat $installfileorig | sed -e 's/__SUPERUSERLOGIN__/'$superuserlogin'/g' | sed -e 's/__SUPERUSERPASSWORD__/'$superuserpassword'/g' > $installconfig
|
||||||
fi
|
fi
|
||||||
%{__chown} -R root:$apachegroup $installconfig
|
chown -R root:$apachegroup $installconfig
|
||||||
%{__chmod} -R 660 $installconfig
|
chmod -R 660 $installconfig
|
||||||
|
|
||||||
# Create an empty conf.php with permission to web server
|
# Create an empty conf.php with permission to web server
|
||||||
if [ ! -f $config ]
|
if [ ! -f $config ]
|
||||||
@ -230,24 +218,15 @@ 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
|
||||||
# chmod a-x $apacheconfig
|
chmod a-x $apacheconfig
|
||||||
# chmod go-w $apacheconfig
|
chmod go-w $apacheconfig
|
||||||
#fi
|
|
||||||
|
|
||||||
# Create config file for se $seconfig
|
|
||||||
if [ "x$os" = "xfedora-redhat" -a -s /sbin/restorecon -a ! -f $seconfig ]; then
|
|
||||||
echo Add SE Linux permission from file $sefileorig
|
|
||||||
# cp $sefileorig $seconfig
|
|
||||||
restorecon -R -v /etc/dolibarr
|
|
||||||
restorecon -R -v /var/www/dolibarr
|
|
||||||
restorecon -R -v /usr/share/dolibarr
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a config link dolibarr.conf
|
# Create a config link dolibarr.conf for Fedora or Redhat
|
||||||
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
|
||||||
@ -263,6 +242,18 @@ echo Set permission to $apacheuser:$apachegroup on $docdir
|
|||||||
chown -R $apacheuser:$apachegroup $docdir
|
chown -R $apacheuser:$apachegroup $docdir
|
||||||
chmod -R o-w $docdir
|
chmod -R o-w $docdir
|
||||||
|
|
||||||
|
# Set SE Linux on OS SE is enabled
|
||||||
|
if [ "x$os" = "xfedora-redhat" -a -s /usr/bin/chcon ]; then
|
||||||
|
echo Set SELinux permissions
|
||||||
|
# Warning: chcon seems not cumulative
|
||||||
|
#chcon -R -h -t httpd_sys_content_t $targetdir
|
||||||
|
#chcon -R -h -t httpd_sys_content_t $docdir
|
||||||
|
chcon -R -h -t httpd_sys_script_rw_t $targetdir
|
||||||
|
chcon -R -h -t httpd_sys_script_rw_t $docdir
|
||||||
|
chcon -R -h -t httpd_sys_script_rw_t %{_sysconfdir}/dolibarr
|
||||||
|
#chcon -R -h -t httpd_sys_script_exec_t $targetdir
|
||||||
|
fi
|
||||||
|
|
||||||
# Restart web server
|
# Restart web server
|
||||||
echo Restart web server
|
echo Restart web server
|
||||||
if [ -f %{_sysconfdir}/init.d/httpd ]; then
|
if [ -f %{_sysconfdir}/init.d/httpd ]; then
|
||||||
@ -272,12 +263,6 @@ if [ -f %{_sysconfdir}/init.d/apache2 ]; then
|
|||||||
%{_sysconfdir}/init.d/apache2 restart
|
%{_sysconfdir}/init.d/apache2 restart
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart mysql
|
|
||||||
echo Restart mysql
|
|
||||||
if [ -f /etc/init.d/mysqld ]; then
|
|
||||||
/etc/init.d/mysqld restart
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Show result
|
# Show result
|
||||||
echo
|
echo
|
||||||
echo "----- Dolibarr %version - (c) Dolibarr dev team -----"
|
echo "----- Dolibarr %version - (c) Dolibarr dev team -----"
|
||||||
@ -305,9 +290,9 @@ 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 config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
||||||
export config="%{_sysconfdir}/dolibarr/conf.php"
|
config="%{_sysconfdir}/dolibarr/conf.php"
|
||||||
export lockfile="$targetdir/install.lock"
|
lockfile="$targetdir/install.lock"
|
||||||
|
|
||||||
|
|
||||||
# Detect OS
|
# Detect OS
|
||||||
@ -342,7 +327,7 @@ echo OS detected: $os
|
|||||||
if [ -f $apachelink ] ;
|
if [ -f $apachelink ] ;
|
||||||
then
|
then
|
||||||
echo Delete apache config link for Dolibarr
|
echo Delete apache config link for Dolibarr
|
||||||
%{__rm} -f $apachelink
|
rm -f $apachelink
|
||||||
status=purge
|
status=purge
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -360,16 +345,12 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Removed dirs after apache restart
|
# Removed dirs after apache restart
|
||||||
echo Removed remaining $config
|
echo Removed remaining dirs
|
||||||
%{__rm} -f $config
|
rm -f $apacheconfig
|
||||||
echo Removed remaining $installconfig
|
rm -f $config
|
||||||
%{__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
|
||||||
|
rmdir $targetdir/htdocs >/dev/null 2>&1
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jul 31 2011 Laurent Destailleur 3.1.0-0.2.beta1
|
|
||||||
- Initial version (#723326)
|
|
||||||
|
|||||||
@ -3,10 +3,11 @@ $force_install_noedit=2;
|
|||||||
$force_install_message='KeepDefaultValuesDeb';
|
$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_dbserver='localhost';
|
||||||
$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__';
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
* \file htdocs/install/etape5.php
|
* \file htdocs/install/etape5.php
|
||||||
* \ingroup install
|
* \ingroup install
|
||||||
* \brief Last page of upgrade or install process
|
* \brief Last page of upgrade or install process
|
||||||
* \version $Id: etape5.php,v 1.104 2011/07/30 14:56:43 eldy Exp $
|
* \version $Id: etape5.php,v 1.106 2011/07/31 13:28:45 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once("./inc.php");
|
include_once("./inc.php");
|
||||||
@ -315,7 +315,6 @@ if ($action == "set")
|
|||||||
if (! empty($force_install_lockinstall))
|
if (! empty($force_install_lockinstall))
|
||||||
{
|
{
|
||||||
// Install is finished, we create the lock file
|
// Install is finished, we create the lock file
|
||||||
$lockfile="../../install.lock";
|
|
||||||
$fp = @fopen($lockfile, "w");
|
$fp = @fopen($lockfile, "w");
|
||||||
if ($fp)
|
if ($fp)
|
||||||
{
|
{
|
||||||
@ -365,7 +364,6 @@ elseif (preg_match('/upgrade/i',$action))
|
|||||||
if (! empty($force_install_lockinstall))
|
if (! empty($force_install_lockinstall))
|
||||||
{
|
{
|
||||||
// Upgrade is finished, we create the lock file
|
// Upgrade is finished, we create the lock file
|
||||||
$lockfile="../../install.lock";
|
|
||||||
$fp = @fopen($lockfile, "w");
|
$fp = @fopen($lockfile, "w");
|
||||||
if ($fp)
|
if ($fp)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_10_c_regions.sql,v 1.12 2011/07/28 18:34:46 eldy Exp $
|
-- $Id: llx_10_c_regions.sql,v 1.13 2011/07/31 12:31:00 eldy Exp $
|
||||||
--
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
@ -158,21 +158,21 @@ insert into llx_c_regions (rowid, fk_pays, code_region, cheflieu, tncc, nom, act
|
|||||||
insert into llx_c_regions (rowid, fk_pays, code_region, cheflieu, tncc, nom, active) values (7001, 70, 7001, '', 0, 'Colombie', 1);
|
insert into llx_c_regions (rowid, fk_pays, code_region, cheflieu, tncc, nom, active) values (7001, 70, 7001, '', 0, 'Colombie', 1);
|
||||||
|
|
||||||
-- Regions Chile (id country=67)
|
-- Regions Chile (id country=67)
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6701, 01, 67, NULL, NULL, 'Tarapacá', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6701, 6701, 67, NULL, NULL, 'Tarapacá', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6702, 02, 67, NULL, NULL, 'Antofagasta', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6702, 6702, 67, NULL, NULL, 'Antofagasta', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6703, 03, 67, NULL, NULL, 'Atacama', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6703, 6703, 67, NULL, NULL, 'Atacama', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6704, 04, 67, NULL, NULL, 'Coquimbo', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6704, 6704, 67, NULL, NULL, 'Coquimbo', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6705, 05, 67, NULL, NULL, 'Valparaíso', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6705, 6705, 67, NULL, NULL, 'Valparaíso', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6706, 06, 67, NULL, NULL, 'General Bernardo O Higgins', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6706, 6706, 67, NULL, NULL, 'General Bernardo O Higgins', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6707, 07, 67, NULL, NULL, 'Maule', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6707, 6707, 67, NULL, NULL, 'Maule', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6708, 08, 67, NULL, NULL, 'Biobío', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6708, 6708, 67, NULL, NULL, 'Biobío', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6709, 09, 67, NULL, NULL, 'Raucanía', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6709, 6709, 67, NULL, NULL, 'Raucanía', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6710, 10, 67, NULL, NULL, 'Los Lagos', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6710, 6710, 67, NULL, NULL, 'Los Lagos', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6711, 11, 67, NULL, NULL, 'Aysén General Carlos Ibáñez del Campo', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6711, 6711, 67, NULL, NULL, 'Aysén General Carlos Ibáñez del Campo', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6712, 12, 67, NULL, NULL, 'Magallanes y Antártica Chilena', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6712, 6712, 67, NULL, NULL, 'Magallanes y Antártica Chilena', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6713, 13, 67, NULL, NULL, 'Metropolitana de Santiago', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6713, 6713, 67, NULL, NULL, 'Metropolitana de Santiago', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6714, 14, 67, NULL, NULL, 'Los Ríos', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6714, 6714, 67, NULL, NULL, 'Los Ríos', 1);
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6715, 15, 67, NULL, NULL, 'Arica y Parinacota', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6715, 6715, 67, NULL, NULL, 'Arica y Parinacota', 1);
|
||||||
|
|
||||||
-- Regions San Salvador (id country=86)
|
-- Regions San Salvador (id country=86)
|
||||||
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (8601, 8601, 86, NULL, NULL, 'Central', 1);
|
INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (8601, 8601, 86, NULL, NULL, 'Central', 1);
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_20_c_departements.sql,v 1.14 2011/07/28 18:34:46 eldy Exp $
|
-- $Id: llx_20_c_departements.sql,v 1.15 2011/07/31 12:31:00 eldy Exp $
|
||||||
--
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
@ -566,7 +566,6 @@ INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, nc
|
|||||||
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('OAX', 15401, '', 0, 'OAX', 'Oaxaca', 1);
|
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('OAX', 15401, '', 0, 'OAX', 'Oaxaca', 1);
|
||||||
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('PUE', 15401, '', 0, 'PUE', 'Puebla', 1);
|
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('PUE', 15401, '', 0, 'PUE', 'Puebla', 1);
|
||||||
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('QRO', 15401, '', 0, 'QRO', 'Querétaro', 1);
|
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('QRO', 15401, '', 0, 'QRO', 'Querétaro', 1);
|
||||||
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('HGO', 15401, '', 0, 'HGO', 'Hidalgo', 1);
|
|
||||||
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('ROO', 15401, '', 0, 'ROO', 'Quintana Roo', 1);
|
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('ROO', 15401, '', 0, 'ROO', 'Quintana Roo', 1);
|
||||||
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('SLP', 15401, '', 0, 'SLP', 'San Luis Potosí', 1);
|
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('SLP', 15401, '', 0, 'SLP', 'San Luis Potosí', 1);
|
||||||
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('SIN', 15401, '', 0, 'SIN', 'Sinaloa', 1);
|
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES ('SIN', 15401, '', 0, 'SIN', 'Sinaloa', 1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user