diff --git a/build/deb/README b/build/deb/README index e898dd43821..a3df01413da 100644 --- a/build/deb/README +++ b/build/deb/README @@ -7,6 +7,7 @@ This directory contains files used by makepack-dolibarr.pl script to build a package, ready to be distributed, with format .DEB (for Debian, Ubuntu, ...). + # This is standard command to work on Debian packaging: # # lintian package To test a package @@ -19,3 +20,16 @@ with format .DEB (for Debian, Ubuntu, ...). # # dpkg -L packagename List content of installed package # dpkg --purge Remove config files and interactive saved answers + + +To submit a package to Debian: + +- Post an ITP with reportbugs : +> reportbug -B debian --email username@domain.tld wnpp +See page http://www.debian.org/devel/wnpp/#l1 for example of ITP requests contents. + +- Wait until you received bug number + +- Add a line for upstream into file changelog with bug number + +- Call for a mentor on ML debian-mentors to upload packages diff --git a/build/deb/postinst b/build/deb/postinst index 650bbc741dc..80193b7d01b 100644 --- a/build/deb/postinst +++ b/build/deb/postinst @@ -39,8 +39,8 @@ case "$1" in superuserpassword='' if [ -f /etc/mysql/debian.cnf ] ; then # Load superuser login and pass - superuserlogin=$(/bin/grep --max-count=1 "user" /etc/mysql/debian.cnf | /bin/sed -e 's/^user[ =]*//g') - superuserpassword=$(/bin/grep --max-count=1 "password" /etc/mysql/debian.cnf | /bin/sed -e 's/^password[ =]*//g') + superuserlogin=$(grep --max-count=1 "user" /etc/mysql/debian.cnf | /bin/sed -e 's/^user[ =]*//g') + superuserpassword=$(grep --max-count=1 "password" /etc/mysql/debian.cnf | /bin/sed -e 's/^password[ =]*//g') fi echo Mysql superuser found to use is $superuserlogin if [ -z "$superuserlogin" ] ; then @@ -101,6 +101,7 @@ case "$1" in # not have the same user/group. # chown -R $webuser:$webgroup /usr/share/dolibarr + chown -R root:$webgroup /usr/share/dolibarr/htdocs/conf/conf.php # Add link to config file echo Setup web server $server to add dolibarr config file diff --git a/build/deb/postrm b/build/deb/postrm index c4d1c790e5d..78219066f9a 100644 --- a/build/deb/postrm +++ b/build/deb/postrm @@ -59,15 +59,15 @@ case "$1" in echo postrm Mysql database deletion # Get database configuration dbserver="localhost" - dbname="dolibarr" + dbname="dolibarrmysql" #db_get "dolibarr/db/name" #dbname="$RET" superuserlogin='' superuserpassword='' if [ -f /etc/mysql/debian.cnf ] ; then # Load superuser login and pass - superuserlogin=$(/bin/grep --max-count=1 "user" /etc/mysql/debian.cnf | /bin/sed -e 's/^user[ =]*//g') - superuserpassword=$(/bin/grep --max-count=1 "password" /etc/mysql/debian.cnf | /bin/sed -e 's/^password[ =]*//g') + superuserlogin=$(grep --max-count=1 "user" /etc/mysql/debian.cnf | /bin/sed -e 's/^user[ =]*//g') + superuserpassword=$(grep --max-count=1 "password" /etc/mysql/debian.cnf | /bin/sed -e 's/^password[ =]*//g') fi echo postrm Mysql superuser found to use is $superuserlogin dbadmin="$superuserlogin" diff --git a/build/rpm/README b/build/rpm/README index d868ed411b8..1e947a16435 100644 --- a/build/rpm/README +++ b/build/rpm/README @@ -21,4 +21,22 @@ with format RPM (for Redhat, Mandriva, ...). # # On Mageia (after su - root) # urpmi dolibarr-...rpm To install package and dependencies -# urpme dolibarr To remove package \ No newline at end of file +# urpme dolibarr To remove package + + +To submit a package to Fedora: + +- Create a bug with form https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedora&format=fedora-review +This is example of content of review field (used for Bug 723326): +Spec URL: http://www.dolibarr.org/files/fedora/dolibarr.spec +SRPM URL: http://www.dolibarr.org/files/fedora/dolibarr-3.1.0-0.src.rpm +Description: Dolibarr ERP & CRM is an easy to use open source/free software +for small and medium companies, foundations or freelances. It includes +different features for Enterprise Resource Planning (ERP) and Customer +Relationship Management (CRM) but also for different other activities. +I am author of other already packaged OpenSources packages (awstats) but this +is my first package to maintain myself. So i'm seeking a sponsor. + +- Edit field "Block" and add FE-NEEDSPONSOR + + \ No newline at end of file