Package Details: dolibarr 19.0.0-1

Git Clone URL: https://aur.archlinux.org/dolibarr.git (read-only, click to copy)
Package Base: dolibarr
Description: Dolibarr ERP CRM: modern software package to manage your company
Upstream URL: https://dolibarr.org/
Licenses: GPL3
Submitter: hsyl20
Maintainer: HLFH
Last Packager: HLFH
Votes: 14
Popularity: 0.000595
First Submitted: 2011-04-15 10:19 (UTC)
Last Updated: 2024-02-29 14:10 (UTC)

Latest Comments

1 2 Next › Last »

HLFH commented on 2023-12-28 11:40 (UTC)

18.0.4 released

HLFH commented on 2023-11-19 08:06 (UTC)

18.0.3 released

HLFH commented on 2023-10-11 13:45 (UTC)

dolibarr 18.0.2 released

HLFH commented on 2023-08-30 13:40 (UTC)

dolibarr 18.0.0 released

HLFH commented on 2023-05-16 09:06 (UTC)

17.0.1 released.

HLFH commented on 2023-05-11 22:41 (UTC)

@floreal Thanks for your patch. Dolibarr updated to Dolibarr 17 with your patch and a few of my changes.

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.