Overview
Comment: | Améliorer le paquet debian : ajouter Garradin dans le menu et les applications dispo, et utiliser un PID |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
b3c9619c4eb05b15406469b420b0b50f |
User & Date: | bohwaz on 2019-01-25 10:07:18 |
Other Links: | manifest | tags |
Context
2019-01-26
| ||
10:37 | Ne pas supprimer la version 0.8.5 lors de la publication, elle est utile check-in: 07770b5ea6 user: bohwaz tags: trunk | |
2019-01-25
| ||
10:07 | Améliorer le paquet debian : ajouter Garradin dans le menu et les applications dispo, et utiliser un PID check-in: b3c9619c4e user: bohwaz tags: trunk | |
2019-01-24
| ||
10:45 | Ne pas faire apparaître les écritures de report dans le rapprochement check-in: 95fd97dcb2 user: bohwaz tags: trunk, stable | |
Changes
Modified debian/config.debian.php from [d4c3b1b5ce] to [2a98e1b5ea].
︙ | ︙ | |||
49 50 51 52 53 54 55 | { $last_sqlite = trim($_ENV['GARRADIN_STANDALONE']); } else if (file_exists($last_file)) { $last_sqlite = trim(file_get_contents($last_file)); } | | | > > > > > > > > > > > > | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | { $last_sqlite = trim($_ENV['GARRADIN_STANDALONE']); } else if (file_exists($last_file)) { $last_sqlite = trim(file_get_contents($last_file)); } else { $last_sqlite = $_ENV['XDG_DATA_HOME'] . '/garradin/association.sqlite'; } file_put_contents($last_file, $last_sqlite); $secret_file = $_ENV['XDG_CONFIG_HOME'] . '/garradin/secret'; if (!file_exists($secret_file)) { $random = function_exists('random_bytes') ? random_bytes(64) : mt_rand(); $random = sha1($random . $secret_file); file_put_contents($secret_file, $random); } define('Garradin\SECRET_KEY', trim(file_get_contents($secret_file))); define('Garradin\DB_FILE', $last_sqlite); define('Garradin\LOCAL_LOGIN', 1); } |
Modified debian/garradin from [872310890e] to [f3db96af25].
1 2 3 4 5 | #!/bin/sh ROOT=/usr/share/garradin/www #ROOT=~/fossil/garradin/src/www ROUTER=${ROOT}/_route.php | | > > > | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/bin/sh ROOT=/usr/share/garradin/www #ROOT=~/fossil/garradin/src/www ROUTER=${ROOT}/_route.php PORT=8081 ADDRESS="127.0.0.1" VERBOSE=0 PID_FILE="${XDG_RUNTIME_DIR}/garradin/pid" [ ! -d `dirname $PID_FILE` ] && mkdir -p `dirname $PID_FILE` # Execute getopt ARGS=`getopt -o "p:vh" -l "port:,verbose,help" -n "garradin" -- "$@"` # Bad arguments if [ $? -ne 0 ]; then exit 1 fi # A little magic eval set -- "$ARGS" # Now go through all the options while true; do case "$1" in |
︙ | ︙ | |||
33 34 35 36 37 38 39 | -h|--help) cat <<EOF Usage : $0 [COMMANDE] [PROJET] Où COMMANDE peut être : | | | | | | > > > > > | < < < | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | -h|--help) cat <<EOF Usage : $0 [COMMANDE] [PROJET] Où COMMANDE peut être : server [-p|--port PORT] Démarre un serveur web Garradin sur le port spécifié (ou sur le port 8081 par défaut) ui [-p|--port PORT] Idem que 'server' mais démarre ensuite le navigateur web par défaut et connecte automatiquement avec le premier administrateur de l'association. Si aucune COMMANDE n'est donnée, Garradin utilisera 'ui' par défaut. PROJET est le chemin menant à un projet Garradin précis (fichier .garradin.sqlite). Si aucun projet n'est indiqué, le dernier projet ouvert sera rouvert. Si aucun projet n'a jamais été ouvert un nouveau projet sera créé. Options : -p|--port PORT Spécifie le port pour le mode ui ou le mode serveur. -v|--verbose Affiche les requêtes reçues sur le serveur web. -h|--help Affiche ce message. EOF exit shift;; --) shift break;; esac done CMD="$1" [ "$CMD" = "" ] && { CMD="ui" } PROJECT="$2" [ "$PROJECT" = "" ] && PROJECT="1" export GARRADIN_STANDALONE="$PROJECT" [ -f $PID_FILE ] && kill `cat $PID_FILE` > /dev/null 2>&1 && rm -f $PID_FILE [ $VERBOSE = 1 ] && { php -S ${ADDRESS}:${PORT} -t ${ROOT} -d variables_order=EGPCS ${ROUTER} & } || { php -S ${ADDRESS}:${PORT} -t ${ROOT} -d variables_order=EGPCS ${ROUTER} > /dev/null 2>&1 & } php_pid=$! echo $php_pid > $PID_FILE sleep .5 [ "$CMD" = "ui" ] && { URL="http://${ADDRESS}:${PORT}/admin/" [ "$DISPLAY" != "" ] && { x-www-browser ${URL} & } || { www-browser ${URL} & } } || { wait $php_pid } |
Added debian/garradin.desktop version [0ea3e7ac4d].
> > > > > > | 1 2 3 4 5 6 | [Desktop Entry] Name=Garradin Exec=garradin Icon=garradin Type=Application Categories=Office;Finance;Database |
Added debian/garradin.menu version [6b9a082e8a].
> > > | 1 2 3 | ?package(garradin):needs="X11" section="Applications/Office"\ title="Garradin" command="/usr/bin/garradin"\ icon="/usr/share/garradin/garradin.png" |
Added debian/garradin.png version [ed09b910ce].
cannot compute difference between binary files
Modified debian/makedeb.sh from [b70d32f694] to [242f467b69].
1 2 3 4 5 6 7 8 9 | #!/bin/bash # Ripped from fossil makdedeb.sh DEB_REV=${1-1} # .deb package build/revision number. PACKAGE_DEBNAME=garradin THISDIR=${PWD} DEB_ARCH_NAME=all | > | > > > > | > > > > > > > < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | #!/bin/bash # Ripped from fossil makdedeb.sh DEB_REV=${1-1} # .deb package build/revision number. PACKAGE_DEBNAME=garradin THISDIR=${PWD} DEB_ARCH_NAME=all PACKAGE_VERSION=`cat ../src/VERSION` [ ! -f ../src/garradin-${PACKAGE_VERSION}.tar.bz2 ] && (cd ../src; make release) tar xjvf ../src/garradin-${PACKAGE_VERSION}.tar.bz2 -C /tmp SRCDIR="/tmp/garradin-${PACKAGE_VERSION}" test -e ${SRCDIR} || { echo "This script must be run from a BUILT copy of the source tree." exit 1 } DEBROOT=$PWD/deb.tmp test -d ${DEBROOT} && rm -fr ${DEBROOT} DEBLOCALPREFIX=${DEBROOT}/usr BINDIR=${DEBLOCALPREFIX}/bin mkdir -p ${BINDIR} mkdir -p ${DEBLOCALPREFIX}/share/doc/${PACKAGE_DEBNAME} cp ${THISDIR}/garradin ${BINDIR} mkdir -p "${DEBLOCALPREFIX}/share/menu" cp ${THISDIR}/garradin.menu "${DEBLOCALPREFIX}/share/menu/garradin" mkdir -p "${DEBLOCALPREFIX}/share/applications" cp ${THISDIR}/garradin.desktop "${DEBLOCALPREFIX}/share/applications/" CODEDIR=${DEBLOCALPREFIX}/share/${PACKAGE_DEBNAME} mkdir -p ${CODEDIR} cp -r ${SRCDIR}/* ${CODEDIR} cp ${THISDIR}/config.debian.php ${CODEDIR}/config.local.php rm -rf ${CODEDIR}/*.sqlite ${CODEDIR}/cache ${CODEDIR}/www/squelettes cp ${THISDIR}/garradin.png "${CODEDIR}" # Cleaning files that will be copied to /usr/share/doc rm -f ${CODEDIR}/{README,COPYING} cd $DEBROOT || { echo "Debian dest dir [$DEBROOT] not found. :(" exit 2 } rm -fr DEBIAN mkdir DEBIAN PACKAGE_DEB_VERSION=${PACKAGE_VERSION}-${DEB_REV} DEBFILE=${THISDIR}/${PACKAGE_DEBNAME}-${PACKAGE_DEB_VERSION}-dev-${DEB_ARCH_NAME}.deb PACKAGE_TIME=$(/bin/date) rm -f ${DEBFILE} echo "Creating .deb package [${DEBFILE}]..." |
︙ | ︙ | |||
134 135 136 137 138 139 140 141 142 143 | dpkg-deb --info ${DEBFILE} } cd - >/dev/null true && { echo "Cleaning up..." rm -fr ${DEBROOT} } echo "Done :)" | > | 145 146 147 148 149 150 151 152 153 154 155 | dpkg-deb --info ${DEBFILE} } cd - >/dev/null true && { echo "Cleaning up..." rm -fr ${DEBROOT} rm -rf ${SRCDIR} } echo "Done :)" |