Work on 3.1.0 packagings
This commit is contained in:
parent
1bff179e3f
commit
ec6ed39a03
@ -7,6 +7,7 @@ This directory contains files used by makepack-dolibarr.pl
|
|||||||
script to build a package, ready to be distributed,
|
script to build a package, ready to be distributed,
|
||||||
with format .DEB (for Debian, Ubuntu, ...).
|
with format .DEB (for Debian, Ubuntu, ...).
|
||||||
|
|
||||||
|
|
||||||
# This is standard command to work on Debian packaging:
|
# This is standard command to work on Debian packaging:
|
||||||
#
|
#
|
||||||
# lintian package To test a package
|
# 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 -L packagename List content of installed package
|
||||||
# dpkg --purge Remove config files and interactive saved answers
|
# 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
|
||||||
|
|||||||
@ -39,8 +39,8 @@ case "$1" in
|
|||||||
superuserpassword=''
|
superuserpassword=''
|
||||||
if [ -f /etc/mysql/debian.cnf ] ; then
|
if [ -f /etc/mysql/debian.cnf ] ; then
|
||||||
# Load superuser login and pass
|
# Load superuser login and pass
|
||||||
superuserlogin=$(/bin/grep --max-count=1 "user" /etc/mysql/debian.cnf | /bin/sed -e 's/^user[ =]*//g')
|
superuserlogin=$(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')
|
superuserpassword=$(grep --max-count=1 "password" /etc/mysql/debian.cnf | /bin/sed -e 's/^password[ =]*//g')
|
||||||
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
|
||||||
@ -101,6 +101,7 @@ case "$1" in
|
|||||||
# not have the same user/group.
|
# not have the same user/group.
|
||||||
#
|
#
|
||||||
chown -R $webuser:$webgroup /usr/share/dolibarr
|
chown -R $webuser:$webgroup /usr/share/dolibarr
|
||||||
|
chown -R root:$webgroup /usr/share/dolibarr/htdocs/conf/conf.php
|
||||||
|
|
||||||
# Add link to config file
|
# Add link to config file
|
||||||
echo Setup web server $server to add dolibarr config file
|
echo Setup web server $server to add dolibarr config file
|
||||||
|
|||||||
@ -59,15 +59,15 @@ case "$1" in
|
|||||||
echo postrm Mysql database deletion
|
echo postrm Mysql database deletion
|
||||||
# Get database configuration
|
# Get database configuration
|
||||||
dbserver="localhost"
|
dbserver="localhost"
|
||||||
dbname="dolibarr"
|
dbname="dolibarrmysql"
|
||||||
#db_get "dolibarr/db/name"
|
#db_get "dolibarr/db/name"
|
||||||
#dbname="$RET"
|
#dbname="$RET"
|
||||||
superuserlogin=''
|
superuserlogin=''
|
||||||
superuserpassword=''
|
superuserpassword=''
|
||||||
if [ -f /etc/mysql/debian.cnf ] ; then
|
if [ -f /etc/mysql/debian.cnf ] ; then
|
||||||
# Load superuser login and pass
|
# Load superuser login and pass
|
||||||
superuserlogin=$(/bin/grep --max-count=1 "user" /etc/mysql/debian.cnf | /bin/sed -e 's/^user[ =]*//g')
|
superuserlogin=$(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')
|
superuserpassword=$(grep --max-count=1 "password" /etc/mysql/debian.cnf | /bin/sed -e 's/^password[ =]*//g')
|
||||||
fi
|
fi
|
||||||
echo postrm Mysql superuser found to use is $superuserlogin
|
echo postrm Mysql superuser found to use is $superuserlogin
|
||||||
dbadmin="$superuserlogin"
|
dbadmin="$superuserlogin"
|
||||||
|
|||||||
@ -21,4 +21,22 @@ with format RPM (for Redhat, Mandriva, ...).
|
|||||||
#
|
#
|
||||||
# On Mageia (after su - root)
|
# On Mageia (after su - root)
|
||||||
# urpmi dolibarr-...rpm To install package and dependencies
|
# urpmi dolibarr-...rpm To install package and dependencies
|
||||||
# urpme dolibarr To remove package
|
# 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
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user