Compare commits

..

No commits in common. "8aeddc0b8523bc9d00e43cadde6b7b1eadee5e56" and "d804d339fe0105f9c6af8a21eb69abe11f237d77" have entirely different histories.

6 changed files with 23 additions and 43 deletions

13
debian/changelog vendored
View File

@ -1,12 +1,5 @@
mobilizon (4.0.2-2) UNRELEASED; urgency=medium mobilizon (4.0.2-1) UNRELEASED; urgency=medium
* fix postinst script * Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP>
* include wrapper script /bin/mobilizon_ctl
-- pitchum <pitchum@gramaton.org> Wed, 17 Jan 2024 11:45:42 +0000 -- unknown <pitchum@unknown> Sat, 13 Jan 2024 13:54:48 +0000
mobilizon (4.0.2-1) bookworm; urgency=medium
* Initial release.
-- pitchum <pitchum@gramaton.org> Sat, 13 Jan 2024 13:54:48 +0000

12
debian/control vendored
View File

@ -1,19 +1,17 @@
Source: mobilizon Source: mobilizon
Section: web Section: web
Priority: optional Priority: optional
Maintainer: Chapril animsys team <animsys@chapril.org> Maintainer: pitchum <pitchum@gramaton.org>
Uploaders:
pitchum <pitchum@gramaton.org>,
Rules-Requires-Root: no Rules-Requires-Root: no
Build-Depends: Build-Depends:
debhelper-compat (= 13), git-buildpackage, debhelper-compat (= 13),
build-essential, curl, unzip, openssl, cmake, file, cmake, build-essential, curl, unzip, openssl, cmake, file, cmake,
elixir, erlang-dev, erlang-eldap, imagemagick, inotify-tools, webp, elixir, erlang-dev, erlang-eldap, imagemagick, inotify-tools, webp,
nodejs, npm, nodejs, npm,
Standards-Version: 4.6.2 Standards-Version: 4.6.2
Homepage: https://joinmobilizon.org/ Homepage: https://joinmobilizon.org/
Vcs-Browser: https://forge.chapril.org/pitchum/debianize-mobilizon #Vcs-Browser: https://salsa.debian.org/debian/mobilizon
Vcs-Git: https://forge.chapril.org/pitchum/debianize-mobilizon #Vcs-Git: https://salsa.debian.org/debian/mobilizon.git
Package: mobilizon Package: mobilizon
Architecture: any Architecture: any
@ -21,7 +19,7 @@ Depends:
${shlibs:Depends}, ${shlibs:Depends},
${misc:Depends}, ${misc:Depends},
imagemagick, curl, tar, file, imagemagick, curl, tar, file,
Recommends: postgresql, postgresql-contrib, postgresql-postgis, postgis Recommends: postgresql, postgresql-contrib, postgresql-postgis
Description: Mobilizon instance Description: Mobilizon instance
Mobilizon is a web application that helps you find, create and organize events. Mobilizon is a web application that helps you find, create and organize events.
. .

3
debian/install vendored
View File

@ -1,3 +1,2 @@
debian/config.exs.tpl etc/mobilizon debian/config.exs etc/mobilizon
_build/prod/rel/mobilizon usr/share _build/prod/rel/mobilizon usr/share
debian/mobilizon_ctl bin

View File

@ -1,4 +0,0 @@
#! /bin/bash
cd /usr/share/mobilizon
sudo -u mobilizon ./bin/mobilizon_ctl $@

34
debian/postinst vendored
View File

@ -10,7 +10,7 @@ set -e
case "$1" in case "$1" in
configure) configure)
# Create a dedicated system user # TODO create system user
if ! getent passwd mobilizon >/dev/null; then if ! getent passwd mobilizon >/dev/null; then
adduser \ adduser \
--disabled-password \ --disabled-password \
@ -23,30 +23,24 @@ case "$1" in
mobilizon mobilizon
fi fi
if [ ! -f /etc/mobilizon/config.exs ]; then # Use debconf values to initialize config.exs
# Use debconf values to initialize config.exs db_get mobilizon/domain_name
cp /etc/mobilizon/config.exs.tpl /etc/mobilizon/config.exs.tmp sed -i "s/__DOMAIN_NAME__/${RET}/" /etc/mobilizon/config.exs
db_get mobilizon/domain_name db_get mobilizon/listen_port
sed -i "s/__DOMAIN_NAME__/${RET}/" /etc/mobilizon/config.exs.tmp sed -i "s/__LISTEN_PORT__/${RET}/" /etc/mobilizon/config.exs
db_get mobilizon/listen_port db_get mobilizon/db_host
sed -i "s/__LISTEN_PORT__/${RET}/" /etc/mobilizon/config.exs.tmp sed -i "s/__DB_HOST__/${RET}/" /etc/mobilizon/config.exs
db_get mobilizon/db_host db_get mobilizon/db_name
sed -i "s/__DB_HOST__/${RET}/" /etc/mobilizon/config.exs.tmp sed -i "s/__DB_NAME__/${RET}/" /etc/mobilizon/config.exs
db_get mobilizon/db_name db_get mobilizon/db_username
sed -i "s/__DB_NAME__/${RET}/" /etc/mobilizon/config.exs.tmp sed -i "s/__DB_USERNAME__/${RET}/" /etc/mobilizon/config.exs
db_get mobilizon/db_username db_get mobilizon/db_userpass
sed -i "s/__DB_USERNAME__/${RET}/" /etc/mobilizon/config.exs.tmp sed -i "s/__DB_USERPASS__/${RET}/" /etc/mobilizon/config.exs
db_get mobilizon/db_userpass
sed -i "s/__DB_USERPASS__/${RET}/" /etc/mobilizon/config.exs.tmp
mv /etc/mobilizon/config.exs.tmp /etc/mobilizon/config.exs
fi
;; ;;