Package Details: dolibarr 13.0.2-1

Git Clone URL: https://aur.archlinux.org/dolibarr.git (read-only, click to copy)
Package Base: dolibarr
Description: ERP/CRM for small and medium companies
Upstream URL: http://www.dolibarr.org/
Licenses: GPL3
Submitter: hsyl20
Maintainer: floreal
Last Packager: cbrunet
Votes: 13
Popularity: 0.67
First Submitted: 2011-04-15 10:19 (UTC)
Last Updated: 2021-03-30 00:14 (UTC)

Latest Comments

floreal commented on 2022-06-06 13:36 (UTC) (edited on 2022-06-06 13:37 (UTC) by floreal)

Shall this package be upgraded?

Guidelines seems to have changed and recommends to put the app in /usr/share/$package instead of /usr/share/webapps/$package since last comment.

Also here is my patch:

diff --git a/PKGBUILD b/PKGBUILD
index 72b6395..f0bf2a2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Charles Brunet <charles AT cbrunet DOT net>
 # Contributor: Okki <okki666@free.fr>
 pkgname=dolibarr
-pkgver=13.0.2
+pkgver=15.0.2
 pkgrel=1
 pkgdesc="ERP/CRM for small and medium companies"
 arch=('any')
@@ -15,38 +15,38 @@ optdepends=('php-intl: Languages support')
 optdepends=('php-xsl: xlsx export')
 optdepends=('php-tcpdf: pdf export')
 options=('!strip' 'emptydirs')
-backup=("etc/webapps/$pkgname/conf.php")
+backup=("etc/$pkgname/conf.php")
 install=dolibarr.install
 source=("http://downloads.sourceforge.net/project/$pkgname/Dolibarr%20ERP-CRM/$pkgver/$pkgname-$pkgver.tgz"
         nginx.conf.example
         apache.conf.example)
-md5sums=('94955641ce3cb72c0111244c181b8c3a'
-         '4b36b8318edad5fe10fd9ef5ade92ed3'
-         'd468572a7aa663d958c302b3e15147f1')
+md5sums=('231194e91b267150579a5fc158bf6be7'
+    '311b7cec433d7d95f279dea58d070bba'
+    '6b2a7d33be0b3b2f119112ca20b3d5fd')

 prepare() {
    sed -e "3,5d" \
        -e "s|example for ||g" \
-       -e "s|main_document_root=''|main_document_root='/usr/share/webapps/$pkgname/htdocs'|g" \
+       -e "s|main_document_root=''|main_document_root='/usr/share/$pkgname/htdocs'|g" \
        -e "s|main_data_root=''|main_data_root='/var/lib/$pkgname'|g" \
        "$pkgname-$pkgver/htdocs/conf/conf.php.example" >"$pkgname-$pkgver/htdocs/conf/conf.php"
 }

 package() {
-   mkdir -p "$pkgdir/usr/share/webapps/$pkgname"
-   mkdir -p "$pkgdir/etc/webapps/$pkgname"
+   mkdir -p "$pkgdir/usr/share/$pkgname"
+   mkdir -p "$pkgdir/etc/$pkgname"
    mkdir -p "$pkgdir/var/lib/$pkgname"
    mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
    mkdir -p "$pkgdir/usr/share/doc/$pkgname"

-   cp *.conf.example "$pkgdir/etc/webapps/$pkgname/"
+   cp *.conf.example "$pkgdir/etc/$pkgname/"

    cd "$pkgname-$pkgver"
-   cp -ra htdocs "$pkgdir/usr/share/webapps/$pkgname/"
-   cp -ra scripts "$pkgdir/usr/share/webapps/$pkgname/"
+   cp -ra htdocs "$pkgdir/usr/share/$pkgname/"
+   cp -ra scripts "$pkgdir/usr/share/$pkgname/"
    cp COPYING "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
    cp -ra doc/* "$pkgdir/usr/share/doc/$pkgname/"
-   cp htdocs/conf/conf.php "$pkgdir/etc/webapps/$pkgname/conf.php"
-   rm "$pkgdir/usr/share/webapps/$pkgname/htdocs/conf/conf.php"
-   ln -s /etc/webapps/$pkgname/conf.php "$pkgdir/usr/share/webapps/$pkgname/htdocs/conf/conf.php"
+   cp htdocs/conf/conf.php "$pkgdir/etc/$pkgname/conf.php"
+   rm "$pkgdir/usr/share/$pkgname/htdocs/conf/conf.php"
+   ln -s /etc/$pkgname/conf.php "$pkgdir/usr/share/$pkgname/htdocs/conf/conf.php"
 }
diff --git a/apache.conf.example b/apache.conf.example
index 2d0675e..4111e43 100644
--- a/apache.conf.example
+++ b/apache.conf.example
@@ -1,5 +1,5 @@
-Alias /dolibarr "/usr/share/webapps/dolibarr"
-<Directory "/usr/share/webapps/dolibarr/htdocs">
+Alias /dolibarr "/usr/share/dolibarr"
+<Directory "/usr/share/dolibarr/htdocs">
   DirectoryIndex index.html index.php
   AllowOverride All
   Options FollowSymlinks
diff --git a/dolibarr.install b/dolibarr.install
index b6ad8b1..69f97a8 100644
--- a/dolibarr.install
+++ b/dolibarr.install
@@ -1,7 +1,7 @@
 post_install() {
    chown -R http:http var/lib/dolibarr
-   chown http:http etc/webapps/dolibarr/conf.php
-   echo 'Please configure your webserver. Example files are provided in /etc/webapps/dolibarr'
+   chown http:http etc/dolibarr/conf.php
+   echo 'Please configure your webserver. Example files are provided in /etc/dolibarr'
    echo 'It could be necessary to add /var/lib/dolibarr/ to open_basedir in php.ini'
    echo 'Finish installation by pointing your webbrowser to http://dolibarr.localdomain/install'
 }
@@ -17,7 +17,7 @@ post_upgrade() {
        fi  
    fi
    rm var/lib/dolibarr/install.lock
-   cd usr/share/webapps/dolibarr/htdocs/install
+   cd usr/share/dolibarr/htdocs/install
    echo 'upgrade.php' $old $new
    php upgrade.php $old $new > /dev/null
    echo 'upgrade2.php' $old $new
diff --git a/nginx.conf.example b/nginx.conf.example
index 6031fcd..0509afb 100644
--- a/nginx.conf.example
+++ b/nginx.conf.example
@@ -1,7 +1,7 @@
 server {
         server_name     dolibarr.localdomain;

-        root    /usr/share/webapps/dolibarr/htdocs;
+        root    /usr/share/dolibarr/htdocs;
         index   index.php;

         location ~ [^/]\.php(/|$) {

cbrunet commented on 2020-09-09 03:25 (UTC)

According to https://wiki.archlinux.org/index.php/Web_application_package_guidelines, /usr/share/webapps is the right place.

I've updated the list of optional packages, and the nginx.conf example.

dpriskorn commented on 2020-08-07 09:43 (UTC) (edited on 2020-08-07 09:43 (UTC) by dpriskorn)

The nginx conf example here most probably does not work with the REST API. See https://wiki.dolibarr.org/index.php/Module_Web_Services_API_REST_(developer)#Nginx_setup for a version that works with the API. See https://github.com/Dolibarr/dolibarr/issues/6163#issuecomment-391265538 for more information and another version with pretty REST API urls.

dpriskorn commented on 2020-08-07 09:33 (UTC) (edited on 2020-08-07 09:39 (UTC) by dpriskorn)

Also needs php-intl for language and php-xsl for xlsx export support (see https://github.com/Dolibarr/dolibarr/issues/12785).

I agree with piedro.

piedro commented on 2019-08-11 12:30 (UTC)

sry, typo:

imho it should be

/srv/http/dolibarr

instead of

/usr/share/webapps/dolibarr

cheers, p.

piedro commented on 2019-08-11 12:28 (UTC)

Shouldn't this nowadays not install /srv/httpd for consistency?

Anyway, thx for your efforts!

zwastik commented on 2019-08-02 18:35 (UTC)

It seems dolibarr v10 is the latest version. https://github.com/Dolibarr/dolibarr/releases/tag/10.0.0

dpriskorn commented on 2018-09-30 08:46 (UTC)

Hi. According to https://github.com/Dolibarr/dolibarr/blob/develop/composer.json there are several dependencies not mentioned in this pkgbuild. E.g. php-tcpdf that enables dolibarr to export PDFs.

cbrunet commented on 2015-11-03 14:03 (UTC)

Thank you for your comments. Package updated. Are php-imagick and php-mcrypt really optional dependencies of dolibarr? The only references to those modules I see in the code are in the tcpdf library. I think the php dependency is enough as it will be provided by any php variant, and those php variant will require a web server... Correct me if I'm wrong. For the database, I'm not sure how to handle the fact it supports both mysql (mariadb) and postgresql. I will put both in optional dependencies. mariadb and mysql are interchangeable, therefore, recommending mariadb implies that it could be provided by mysql.

rdoursenaud commented on 2015-11-03 06:35 (UTC)

You should point to /htdocs in your apache.conf.example. You're doing it right in the nginx.conf.example file ;) You should also recommend mysql, mariadb or postgresql for the database backend, php-fpm or php-apache for the application server and nginx or apache for the webserver. Other optional dependencies: - php-imagick - php-mcrypt Oh and we released 3.8.1 a few weeks ago :)

hsyl20 commented on 2012-04-24 15:30 (UTC)

@Jamay Thanks. I have updated it to the last version too.

commented on 2012-04-20 14:02 (UTC)

To install (it works for me), edit the PKGBUILD : arch=('x86' 'x86_64') >>>> arch=('i686' 'x86_64') install=(dolibarr.install) >>>> install=dolibarr.install