8569 Commits

Author SHA1 Message Date
James Valleroy
14d69e2cf7 freedombox Debian release 24.5
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmXdU4cWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICMstD/9zF868IP5XxLe2+ZV8QNkHeBpX
 ElOWKA6uK7jrcR39oMX7JJnRDWFNE3IG44f3GWDfKQ8Vpann3XNGhcRvR9rhlsq6
 TEU9y518WsCLvfkFZ7TVOrx3CVXpBzrJClt3kvIGoT/UB4z2IQ4p5Vsuei1TiD1K
 R5hBBQBSTDxKIIqv+whHLaaWnUI/d2vlZeZuddfI8BPT2juhvOTxlaLlMIxXdzhU
 IMbsFMbOaFy9+F/OyWs/euLNHhGoNEwqruFL/JuACBY5UtfQpnyHozY7dq/T09Ho
 6djoLpvhVK808Vx6tNicXeC1XpARsQ6brBPasB96A7q9rYuDY++QP9Mexj7YLZJ/
 Q4TRAKsRGtIMbg411QoRO5bQqag67PLZ/b+0UwJDgwbQrzsnKI8iC4LOrxvU2rMI
 Uo1yWcnFxJZ8P7xZ+DStQU830ssddm78w38ja2R8qoNdxUS/RODz9uZxLSNoF9+v
 RKt6pf72SlJXXOiZdTgNIiuh2o2n4J/SdKxZtjeFeqHS9+5HoD4LgA28rE5ElGTQ
 fP5KGzp+X6v6TcvgIbhJ1yX2SEm5/SiuAnmPwGQ5ItjNh9SXPEU/7ekt7u5iDkf4
 x7ZyD43dmk8y6cO4v6zQFOqCyd7m0+hgFv5UwDonpOd2e6CqI7xQzMyWFofZdQbv
 PseKweEOq9y0frebYg==
 =iF1H
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmXjWscWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICL/ZD/oC5JkU8BA6lIbhxoP4Z4Vgg5Dw
 hL9Gbh0VPyV87ZNChxvp9JUFiVrrj44WMydtv8KE+GD5Dc8byp2Ipr4cPtAcMy36
 f40DSbxPwD59ku+BlyOhQpCk5C0wgG0hageWFg27X77FTedNo7PQGpVryrZY/MTY
 aM9bL5hmlJoFvOoC6oqiF11yRdZJ24cUNSIn/JXcBs7bMhepW/6y/sDb719ZBHwG
 QtTPMYSWlrKsUIeKYkO8v3rBht2gGw851PhwmnqZ8oTEhnYc6XU/kdcyon6hFEiG
 fDSEw5X3OwJdxzR7CTXPD7qN2lZsA84GS7iyNafEDVa6hZmAV88T1xbD0+QoPz+V
 6S149azfG7QFMx/UVs5Cpf73pIKZvRH1oxHjhX55DOWk9a0B4IAwR3sRFFsfZPsd
 A0QL6A9qmdoT7+eWy9VTqyqkKFMm0hbyTVNDIemxhVkQHiUqveK1XmzdQ+RNBerL
 g14T1XBePwxy8oAFsY7uw4PP8QLv7vk4F4/cuCrpGYtqrU/+iTIZMp57kO15LIwT
 81+L+F7KaN2XvWBdEgPB6Xt3vqbR+sr6EJmhp+4BKxevkXRtSCpBkC7GHP/p7ktO
 yeoz/4HtI6q3o+1mqbllR7a4tBEM8qc+D5CzwPz6MCGCHdQqx5cMC+xgbo5EAduT
 hICdutjwRgmJ4QeDnQ==
 =1fNa
 -----END PGP SIGNATURE-----

Merge tag 'v24.5' into debian/bookworm-backports

freedombox Debian release 24.5
2024-03-02 11:58:46 -05:00
James Valleroy
c217fdb5c6
Release v24.5 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v24.5
2024-02-26 20:59:13 -05:00
James Valleroy
169eb9854f
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-26 20:58:28 -05:00
Olaf Schaf
a9b77bbec8
Translated using Weblate (German)
Currently translated at 100.0% (1557 of 1557 strings)
2024-02-22 15:02:04 +01:00
Sunil Mohan Adapa
dbdac3b001
zoph: Add shared daemon component for mariadb/mysql
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-21 20:54:54 -05:00
Sunil Mohan Adapa
2fc354ea7f
wordpress: Add shared daemon component for mariadb/mysql
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-21 20:54:52 -05:00
Sunil Mohan Adapa
02e409a3a1
daemon: Add new component for daemons shared across apps
- This is useful for managing redis service needed by the upcoming Nextcloud
app.

- Disable the daemon only if all the apps using it are disabled. Enable it when
even one of the them is enabled.

- The component is not a 'leader' component as it does not decide the
enabled/disabled status of the app.

Tests:

- Unit tests pass.

- Install zoph and wordpress with full patch series. If one of the apps is
disabled, mysql service is still enabled and running. If both apps are disabled,
then mysql service is disabled and not running. Enabled/disabled status of apps
are accurate after they are enabled/disabled.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-21 20:54:49 -05:00
Sunil Mohan Adapa
d32d02ecb5
gitweb, users: Minor fixes for newer pycodestyle
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-21 20:54:47 -05:00
Sunil Mohan Adapa
5399efde73
pyproject.toml: Exclude the build directory from mypy checks
- build/ directory is generated after the 'make build install' step and contains
files that are duplicates of the main source leading to a failure.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-21 20:54:44 -05:00
Sunil Mohan Adapa
3aae4b39d6
tor: tests: Convert to pytest style tests from class based tests
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-18 18:21:33 -05:00
Sunil Mohan Adapa
37b9e21e30
tor: tests: Fix issue with pytest 8.x versions
Closes: https://bugs.debian.org/1063968.

- Due to a changed behavior in pytest 8.x, any imports with 'setup_module' name
will be treated as a method to setup the module in the style of unittest/nose.
pytest tries to call this as a method and will fail.

- Rename the import to 'setup_module_' instead of 'setup_module' to fix this issue.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-18 18:21:31 -05:00
Sunil Mohan Adapa
71a10bfd31
backups: tests: Don't use pytest marks on fixtures
- It removes this warning. plinth/modules/backups/tests/test_ssh_remotes.py:62: PytestRemovedIn9Warning: Marks applied to fixtures have no effect.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-18 18:21:28 -05:00
James Valleroy
6c5fbf6523
tests: Patch apps_init for enable/disable daemon test
Otherwise, apps_init calls _sort_apps, which randomly fails in functional tests
CI job. The failure may be due to the tests running in parallel, since I could
not reproduce it locally.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-02-18 10:13:46 -08:00
James Valleroy
819754e277
Release v24.4~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v24.4_bpo12+1
2024-02-18 11:00:55 -05:00
James Valleroy
b4db509204 freedombox Debian release 24.4
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmXK4hQWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICE3iD/47DgwgOFHyLGI6hL6GHrB0m529
 nZCM+RY9UMORhKvk/1i5PKgeFyIF1IrMXq8bBzrTkbRYtbuoQu3gxXmlaguLlvN1
 1NNCogaEIsic0EPZC0LG2d+Jwf1e+VUm6qDjRmSEl5HGmtCiUrAp3ueYX+kp80eL
 UllzQJIj+t4ogz1j07h89dZQ4hUBqle6Kr6SoRuhTMtjkF+H52YkmrwNh6p9c+oo
 ap4ihYkf3IkCrlUCnuupsvNpz63EnBeweMebhCiFim4Yyy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gJBCy
 xXv9qbLsn44Bcivw526UYmitiR1/Fm5Resf5DEPnW/KGCvd8jDH4tPU+DHXLXJmr
 gxzJqU1YwRwgVeMUWsIAcfqW+QEwEfk1lbG915HfTnsMwUk9bNF1olM1wm/UWALg
 Mm9aUDgt8SFuKyC01zZ1Z47X7bflCHi5ZlaIl4pI/khtvQQyISkC725qF6WmuFVH
 mtTS6k6gUJl4kZN4WQ==
 =X3DH
 -----END PGP SIGNATURE-----

Merge tag 'v24.4' into debian/bookworm-backports

freedombox Debian release 24.4
2024-02-18 11:00:25 -05:00
Sunil Mohan Adapa
5e10b2d4ae
firewalld: Implement force upgrading to any 2.x versions
Closes: #2396.

New configuration options were introduced from 1.3.x to 2.1.x. This cause
configuration file prompt due to our existing changes to the configuration file.
Changes to the configuration file were investigated in #2396.

Tests:

- Install firewalld 1.3.x. Ensure that firewalld configuration changes are
present as intended by FreedomBox. Change priority of the .deb package to allow
installing 2.1.x. Run apt update and notice that force upgrade has been
performed to 2.1.x.

- firewalld upgrade has also been tested as part of this patch series.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-15 19:47:53 -05:00
Sunil Mohan Adapa
bd4ddcf158
setup: Ensure that apt is updated before checking force upgrade
If the package cache is outdated and a check is performed for whether force
upgrade is needed, it might return negative. After the operation proceeds to run
setup, we perform 'apt update' before 'apt install' at this point the
configuration file prompt will cause failure.

Tests:

- Re-run firewalld upgrade from 1.3.x to 2.1.x with a re-run setup.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-15 19:47:51 -05:00
Sunil Mohan Adapa
e208bdbbca
setup: Ensure that force upgrade won't run when app is not installed
- This keep the initial setup of the app simple and efficient. Setup will be
less prone to any issues in force upgrade code. There are also fewer chances for
immediate regressions.

Tests:

- Tested as part of the patch series.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-15 19:47:48 -05:00
Sunil Mohan Adapa
56b58174b3
setup: Minor refactoring of force upgrader class instantiation
- It is okay to instantiate before shutdown to mark shutdown initiation.

- Still keep the instantiating lazy.

Tests:

- Tested as part of patch series.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-15 19:47:45 -05:00
James Valleroy
29d48e86b7
setup: Try force upgrade before running app setup
Avoid running setup if it would bypass a needed force upgrade.

Fixes: #2397

Tests:

- Rerun setup on an app and see that there are no errors.

- Install modified freedombox on bookworm and perform dist-upgrade to
  testing. Then rerun setup on Firewall app. It fails with the message "App
  firewall failed to force upgrade." firewalld package is not upgraded.

- Modify Firewall app to allow force upgrade to latest version. Then rerun
  setup on Firewall app. firewalld is successfully force upgraded.

  NOTE: In this case, Firewall setup is run twice, once by force upgrade, and
  again by rerun setup.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-02-15 19:47:41 -05:00
Sunil Mohan Adapa
7b2a65d449
container: Fix issue with missing make command on stable image
Fixes: #2402.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-15 19:42:33 -05:00
James Valleroy
b09f2cd74e
Release v24.4 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v24.4
2024-02-12 21:24:48 -05:00
James Valleroy
13793fee1f
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 21:23:44 -05:00
James Valleroy
b355faf59a
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 20:40:56 -05:00
Besnik Bleta
510daf3d43
Translated using Weblate (Albanian)
Currently translated at 99.6% (1552 of 1558 strings)
2024-02-13 02:32:56 +01:00
James Valleroy
2d3c610f3a
debian: Remove lintian override for init script
The lintian tag was removed. See:
579d080bff

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 20:18:52 -05:00
Sunil Mohan Adapa
2788d6810d
Makefile: Move various tests into build system
- This allows those tests to be invoked on console and not just in CI pipelines.

Tests:

- Running make check works.

- CI pipeline succeeds.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
[jvalleroy: Remove phony test target]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:16 -05:00
Sunil Mohan Adapa
ba55d8fe2e
Makefile: Move most of the provision process into build system
Tests:

- Performing a fresh container setup works.

- Performing a fresh VM setup works.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:14 -05:00
Sunil Mohan Adapa
808380ff52
doc: dev: Update all references to setup.py
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:11 -05:00
Sunil Mohan Adapa
812ed5d60d
*: Introduce make file based build, eliminate setup.py
- setuptools aims to a build library instead of being invoked by setup.py.
Launching setup tools using ./setup.py is deprecated. Launching it using
generic build tools that use pyproject.toml is recommended.

- With the new approach customizing the build is not possible to the earlier
extent. So, introduce is a simple and sufficient build system using 'make'.

Tests:

- Check the pyproject.toml using validate-pyproject tool.

- Run diffoscope on old and new packages and verify that no unexpected changes
were introduced by the build system change.

- None of the files part of .deb package have different file permissions
compared to before.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:09 -05:00
Sunil Mohan Adapa
e9adf0d78f
pyproject.toml: Move project meta data from setup.py
- setuptools and other tools can pickup the information from here.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:06 -05:00
Sunil Mohan Adapa
54f447785d
doc: Install man1 page using Makefile
- Also fix a typo with target name.

- Remove redundant OUTPUT= declarations.

- Make sure that 'manual-pages' PHONY target is not attempted to be removed on
clean.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:04 -05:00
Sunil Mohan Adapa
09103d0c25
actions: Drop legacy placeholders for unused actions
Since we have done a stable release after changes to action scripts. All
FreedomBox installations can be assumed to have moved to the new action scripts
format. All old installations will continue to get a security updates only and
this change will not reach them.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:01 -05:00
Sunil Mohan Adapa
8202b734a6
help: tests: Run tests using doc in current dir instead of /usr
- This prevents the test from failing if install has not run yet.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:16:59 -05:00
Sunil Mohan Adapa
721984c0e0
d/copyright: Update copyright year
- Avoids a lintian message.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:16:55 -05:00
Besnik Bleta
34257fcacb
Translated using Weblate (Albanian)
Currently translated at 96.9% (1511 of 1558 strings)
2024-02-11 21:14:40 +01:00
Sunil Mohan Adapa
f52ebd535f
Translated using Weblate (Telugu)
Currently translated at 95.8% (1493 of 1558 strings)
2024-02-11 21:14:39 +01:00
Dietmar
974fe1e96b
Translated using Weblate (German)
Currently translated at 99.9% (1557 of 1558 strings)
2024-02-11 21:14:38 +01:00
James Valleroy
81c6d02579
Translated using Weblate (Telugu)
Currently translated at 95.4% (1487 of 1558 strings)
2024-02-10 23:12:24 +01:00
Aswith Varma
c724bdc172
Translated using Weblate (Telugu)
Currently translated at 95.4% (1487 of 1558 strings)
2024-02-10 07:01:55 +01:00
Sreehitha Velivela
c3022c67a9
Translated using Weblate (Telugu)
Currently translated at 95.4% (1487 of 1558 strings)
2024-02-10 07:01:55 +01:00
Sri Harsha
33e0f83fc1
Translated using Weblate (Telugu)
Currently translated at 95.4% (1487 of 1558 strings)
2024-02-10 07:01:55 +01:00
Bhavishya nitha
4a442232b7
Translated using Weblate (Telugu)
Currently translated at 95.4% (1487 of 1558 strings)
2024-02-10 07:01:55 +01:00
Sri Harsha
ac189b9eea
Translated using Weblate (Telugu)
Currently translated at 95.2% (1484 of 1558 strings)
2024-02-09 06:12:49 +01:00
VINAY K.V.N.S
7a199c58e3
Translated using Weblate (Telugu)
Currently translated at 95.2% (1484 of 1558 strings)
2024-02-09 06:12:49 +01:00
Bhavishya nitha
aff8303e8d
Translated using Weblate (Telugu)
Currently translated at 95.2% (1484 of 1558 strings)
2024-02-09 06:12:49 +01:00
Aswith Varma
a1f50732a6
Translated using Weblate (Telugu)
Currently translated at 95.2% (1484 of 1558 strings)
2024-02-09 06:12:49 +01:00
M Jagadeesh
65c5b73d89
Translated using Weblate (Telugu)
Currently translated at 95.2% (1484 of 1558 strings)
2024-02-09 06:12:49 +01:00
Aswith Varma
775eff1fdc
Translated using Weblate (Telugu)
Currently translated at 94.2% (1469 of 1558 strings)
2024-02-09 06:04:22 +01:00
VINAY K.V.N.S
cbfeab2b26
Translated using Weblate (Telugu)
Currently translated at 94.2% (1468 of 1558 strings)
2024-02-09 06:04:21 +01:00