From f0098a9aae462bfaf7eee140cef881165fdcb251 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 26 Sep 2016 10:27:13 +0200 Subject: [PATCH 1/7] UI: Fix translation; LibraryBox -> PirateBox --- piratebox/piratebox/www_content/locales/data.en.properties | 2 +- piratebox/piratebox/www_content/locales/data.fr.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/piratebox/piratebox/www_content/locales/data.en.properties b/piratebox/piratebox/www_content/locales/data.en.properties index a5b9f8b..7921e30 100644 --- a/piratebox/piratebox/www_content/locales/data.en.properties +++ b/piratebox/piratebox/www_content/locales/data.en.properties @@ -35,5 +35,5 @@ mainShoutboxRed = Red footerBackToTop = Back to top footerAbout = About footerInspired = Inspired by pirate radio and the free culture movement, PirateBox is a self-contained mobile collaboration and file sharing device. PirateBox utilizes Free, Libre and Open Source software (FLOSS) to create mobile wireless file sharing networks where users can anonymously share images, video, audio, documents, and other digital content. -footerFilesTopSafety = LibraryBox is designed to be safe and secure. No logins are required and no user data is logged. The system is purposely not connected to the Internet in order to prevent tracking and preserve user privacy. +footerFilesTopSafety = PirateBox is designed to be safe and secure. No logins are required and no user data is logged. The system is purposely not connected to the Internet in order to prevent tracking and preserve user privacy. footerLicenceMain = PirateBox is licensed under GPLv3. diff --git a/piratebox/piratebox/www_content/locales/data.fr.properties b/piratebox/piratebox/www_content/locales/data.fr.properties index f4e44d1..ce9edbf 100644 --- a/piratebox/piratebox/www_content/locales/data.fr.properties +++ b/piratebox/piratebox/www_content/locales/data.fr.properties @@ -35,5 +35,5 @@ mainShoutboxRed = Rouge footerBackToTop = Vers le haut footerAbout = À propos footerInspired = Inspiré par les radios pirate et le mouvement de la culture libre, PirateBox est un dispositif mobile autonome de collaboration et de partage de fichiers. PirateBox utilise des logiciels libres pour créer des réseaux mobiles sans fils de partage de fichiers dont les utilisateurs peuvent partager de manière anonyme des images, des vidéos, de l'audio, des documents ou tout autre contenu numérique. -footerFilesTopSafety = LibraryBox est conçue pour être sûre et sécurisée. Aucun compte utilisateur n'est requis et aucune donnée utilisateur n'est sauvegardée. Le système n'est volontairement pas connecté à Internet afin de prévenir toute tentative de suivi et de préserver la vie privée de ses utilisateurs. +footerFilesTopSafety = PirateBox est conçue pour être sûre et sécurisée. Aucun compte utilisateur n'est requis et aucune donnée utilisateur n'est sauvegardée. Le système n'est volontairement pas connecté à Internet afin de prévenir toute tentative de suivi et de préserver la vie privée de ses utilisateurs. footerLicenceMain = PirateBox est distribuée sous licence GPLv3. From fb1cf1833d77372251bbda83ac0ef5d1e42b1c76 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 26 Sep 2016 10:27:46 +0200 Subject: [PATCH 2/7] Prepare 1.1.1 release --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 012f8a3..62979b6 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME = piratebox-ws -VERSION = 1.1.0 +VERSION = 1.1.1 ARCH = all PB_FOLDER=piratebox PB_SRC_FOLDER=$(PB_FOLDER)/$(PB_FOLDER) From 48bb47704257cc7796a2371f753db6bd75ec1b89 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 26 Sep 2016 10:28:39 +0200 Subject: [PATCH 3/7] Changelog : Add language bug --- CHANGELOG | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 9bbe079..72af13c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ CHANGELOG +=== 1.1.1 === +* [Fix] Translation en,fr LibraryBox -> PirateBox + === 1.1.0 === * [New] Enable / Disable file provisioning for custom lighttpd directory listing * [New] ChatBox message is now in conf/chat_init.txt From 1e3ac991103a32b528b19953deb9d4f9e89b80d8 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 26 Sep 2016 20:04:56 +0200 Subject: [PATCH 4/7] Remove unsupported exchange_www.sh completely --- CHANGELOG | 1 + piratebox/piratebox/bin/exchange_www.sh | 47 ------------------------- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100755 piratebox/piratebox/bin/exchange_www.sh diff --git a/CHANGELOG b/CHANGELOG index 72af13c..74908ef 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ CHANGELOG === 1.1.1 === * [Fix] Translation en,fr LibraryBox -> PirateBox +* [Removed] exchange_www.sh === 1.1.0 === * [New] Enable / Disable file provisioning for custom lighttpd directory listing diff --git a/piratebox/piratebox/bin/exchange_www.sh b/piratebox/piratebox/bin/exchange_www.sh deleted file mode 100755 index 94df486..0000000 --- a/piratebox/piratebox/bin/exchange_www.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# Matthias Strubel , 2013-2015 (c) GPL-3 -# matthias.strubel@aod-rpg.de - - -## This is an obsolete feature. -## we exit that stuff only and skip processing it. -## In 99% this breaks stuff, over helping you. -## Will be removed with the next full release. - -echo "exchange_www.sh - was deactivated and does nothing now." -echo " Will be removed with the next full release." -exit 0 - - -# Move www folder to given destination - -# Load configfile - -if [ -z $1 ] || [ -z $2 ]; then - echo "Usage change_www my_config - i.e. # exchange_www.sh /opt/piratebox/conf/piratebox.conf /mnt/usb/PirateBox/www_alt " - exit 1 -fi - - -if [ ! -f $1 ] ; then - echo "Config-File $1 not found..." - exit 1 -fi - -#Load config -. $1 - - echo "----------------------------------------------------" - echo "#### $2 ####" - echo "#### switching directories ####" - echo "----------------------------------------------------" - - mv $WWW_FOLDER $PIRATEBOX_FOLDER/www_old - ln -sf $2 $WWW_FOLDER - echo " Copy over >>fake internet detection-stuff<<" - cp -v $PIRATEBOX_FOLDER/www_old/ncsi.txt $WWW_FOLDER - cp -rv $PIRATEBOX_FOLDER/www_old/library $WWW_FOLDER - echo " Copy over >>redirect.html<< for automatic redirect on wrong entered page<<" - cp -v $PIRATEBOX_FOLDER/www_old/redirect.html $WWW_FOLDER - echo " Done. Now, you are on your own! " From 6b99000a2bf168ec1ded734df079e84a3e8dcc42 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 26 Sep 2016 20:07:32 +0200 Subject: [PATCH 5/7] init scripts: More verbose "copy" message --- piratebox/piratebox/init.d/piratebox | 2 +- piratebox/piratebox/init.d/piratebox_alt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/piratebox/piratebox/init.d/piratebox b/piratebox/piratebox/init.d/piratebox index 40a3e8b..1a6a217 100755 --- a/piratebox/piratebox/init.d/piratebox +++ b/piratebox/piratebox/init.d/piratebox @@ -94,7 +94,7 @@ case "$1" in find $PIRATEBOX/tmp/ -exec rm {} \; if [ "$CUSTOM_DIRLIST_COPY" = "yes" ]; then - echo "Copy over design files" + echo "Copy over directory design files" $PIRATEBOX/bin/distribute_files.sh $SHARE_FOLDER/Shared fi diff --git a/piratebox/piratebox/init.d/piratebox_alt b/piratebox/piratebox/init.d/piratebox_alt index 06d76eb..520ff28 100755 --- a/piratebox/piratebox/init.d/piratebox_alt +++ b/piratebox/piratebox/init.d/piratebox_alt @@ -87,7 +87,7 @@ case "$1" in find $PIRATEBOX/tmp/ -exec rm {} \; if [ "$CUSTOM_DIRLIST_COPY" = "yes" ]; then - echo "Copy over design files" + echo "Copy over directory design files" $PIRATEBOX/bin/distribute_files.sh $SHARE_FOLDER/Shared fi From cde91a86bef33e20c39ff7fd2e9c1326fd9d550b Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Tue, 27 Sep 2016 21:49:02 +0200 Subject: [PATCH 6/7] IRC Server: Fixing startup and quoting some vars If the python IRC server is running as a daemon, it is needed, that the setuid command is used. --- CHANGELOG | 1 + piratebox/piratebox/conf/piratebox.conf | 6 ++++++ piratebox/piratebox/init.d/piratebox | 6 +++--- piratebox/piratebox/init.d/piratebox_alt | 6 +++--- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 74908ef..36bbfa5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ CHANGELOG === 1.1.1 === * [Fix] Translation en,fr LibraryBox -> PirateBox +* [Fix] IRC startup command failed. * [Removed] exchange_www.sh === 1.1.0 === diff --git a/piratebox/piratebox/conf/piratebox.conf b/piratebox/piratebox/conf/piratebox.conf index 87ac41c..aa61cc4 100644 --- a/piratebox/piratebox/conf/piratebox.conf +++ b/piratebox/piratebox/conf/piratebox.conf @@ -186,6 +186,12 @@ LIGHTTPD_GROUP=nogroup #Switch to yes if you want to enable the IRC-Server ENABLE_IRC_SERVER="no" +IRC_USER="$LIGHTTPD_USER" + +## If you want to save rooms and so on, create the folder +# /opt/piratebox/share/IRC_STATE and make sure it is writeable +# for IRC_USER (nobody per default) +#IRC_STATE_DIR="$SHARE_FOLDER/IRC_STATE" #------------------------ Hook in user-config . $PIRATEBOX_FOLDER/conf/hook_custom.conf diff --git a/piratebox/piratebox/init.d/piratebox b/piratebox/piratebox/init.d/piratebox index 1a6a217..e28e890 100755 --- a/piratebox/piratebox/init.d/piratebox +++ b/piratebox/piratebox/init.d/piratebox @@ -200,10 +200,10 @@ case "$1" in . $CONF_IRC - IRC_PARMS="--daemon --motd $IRC_MOTD " + IRC_PARMS="--setuid $IRC_USER --daemon --motd '$IRC_MOTD' " - if [ ! -z $STATEDIR ] ; then - IRC_PARMS=" $IRCPARMS --statedir $STATEDIR " + if [ ! -z "$IRC_STATEDIR" ] ; then + IRC_PARMS=" $IRCPARMS --statedir '$IRC_STATEDIR' " fi log_daemon_msg "Starting Miniircd..." diff --git a/piratebox/piratebox/init.d/piratebox_alt b/piratebox/piratebox/init.d/piratebox_alt index 520ff28..46883ca 100755 --- a/piratebox/piratebox/init.d/piratebox_alt +++ b/piratebox/piratebox/init.d/piratebox_alt @@ -192,10 +192,10 @@ case "$1" in #Start IRC Server if [ "$ENABLE_IRC_SERVER" = "yes" ] ; then . $CONF_IRC - IRC_PARMS="--daemon --motd $IRC_MOTD " + IRC_PARMS="--setuid $IRC_USER --daemon --motd '$IRC_MOTD' " - if [ ! -z $STATEDIR ] ; then - IRC_PARMS=" $IRCPARMS --statedir $STATEDIR " + if [ ! -z "$IRC_STATEDIR" ] ; then + IRC_PARMS=" $IRCPARMS --statedir '$IRC_STATEDIR' " fi echo "Starting Miniircd..." start-stop-daemon $DROOPY_USER -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS From 7cc238178e82e8678eacfb39128cbf27a1ce080e Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Tue, 27 Sep 2016 23:20:02 +0200 Subject: [PATCH 7/7] Fix fr locale --- CHANGELOG | 1 + piratebox/piratebox/www_content/locales/data.fr.properties | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 36bbfa5..ee3c1e7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ CHANGELOG === 1.1.1 === * [Fix] Translation en,fr LibraryBox -> PirateBox +* [Fix] Spellings in translation * [Fix] IRC startup command failed. * [Removed] exchange_www.sh diff --git a/piratebox/piratebox/www_content/locales/data.fr.properties b/piratebox/piratebox/www_content/locales/data.fr.properties index ce9edbf..64e2625 100644 --- a/piratebox/piratebox/www_content/locales/data.fr.properties +++ b/piratebox/piratebox/www_content/locales/data.fr.properties @@ -17,7 +17,7 @@ sidebarIframeNotSupported = Votre navigateur ne supporte pas les iframes. Si vou sidebarBrowseFiles = Parcourir les fichiers -> diskUsage = Espace de stockage -refreshButton.value = Rafra chir +refreshButton.value = Rafraichir refreshButton.title = Le taux d'utilisation du disque ne peut être rafraîchi que toutes les 5 minutes mainChatChat = Chat