116 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
5a159f7d39
upgrades: Improve handling of backports
- Merge backports functionality into upgrades module.

- No need to enable systemd timer as dh_installsystemd automatically enables
  this during package installation and upgrade.

- Use https:// and deb.debian.org for repository checking. When using Tor for
  package installations request the URL via Tor.

- Make daily checking service more generic for all kind of future apt repository
  updates.

- Force removal of repository file during purge to avoid failures.

- Don't add contrib/non-free as backports is intended to be enabled for just the
  freedombox package and it is free. When the need arises, we can introduce
  contrib/non-free. This also eliminates an issue that adding these components
  doesn't work without the usage of tor.

- Allow generate apt preferences file to avoid lintian complaining about its
  presence. Remove on purge.

- Add unattended upgrades origin pattern to allow it to upgrade from backports
  repositories.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-05 14:58:55 -08:00
Joseph Nuthalapati
3d38b8a686
backports: Add buster-backports to apt sources list
Fixes freedombox-team/freedom-maker#149

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-05 14:58:27 -08:00
James Valleroy
010e26e94a
Release v0.48.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-28 19:33:25 -05:00
James Valleroy
19d335bf38
Release v0.47.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-14 22:09:06 -05:00
James Valleroy
37dfc7876b
debian: Update debhelper compat version to 12
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-14 22:03:22 -05:00
Prachi Srivastava
5d68f6bf52
Replace glyphicons with forkawesome icons
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-14 17:37:58 -08:00
Sunil Mohan Adapa
1faee11d4d
django: Use Argon2 password hash
Passwords will be automatically upgraded for each user on login.

Usernames not yet upgraded are vulnerable to user enumeration attack due to
difference in password check timing.

No need to add build dependency on python3-argon2 because tests use a different
Django configuration which does not use argon2 hash.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-13 14:46:15 -05:00
James Valleroy
97bb99b91c
Release v0.46.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-04 23:18:08 -05:00
James Valleroy
edfc7a55ed
debian: Fix spelling errors in lintian override comment
Thanks to Chris Lamb for pointing it out.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-04 23:05:35 -05:00
Sunil Mohan Adapa
25b5eaf4d9
debian: Replace and break older versions of plinth
This is necessary to avoid errors when installing freedombox with older plinth
already installed. Also make plinth depend on latest freedombox to ensure
upgrades go smoothly.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-04 22:52:15 -05:00
James Valleroy
d8f161adce
Release v0.46.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-31 16:46:58 -05:00
James Valleroy
f93b6e2d54
debian: Standards-Version is now 4.3.0
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-31 16:45:32 -05:00
Sunil Mohan Adapa
5f8965df25
debian: Rename plinth package to freedombox
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-31 15:59:08 -05:00
Sunil Mohan Adapa
d9b374137b
debian: Update short description
Plinth is no longer just the web interface but all of freedombox.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-31 15:59:02 -05:00
Sunil Mohan Adapa
399647f93c
debian: Don't change ownership recursively in postinst
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-31 15:58:57 -05:00
Sunil Mohan Adapa
a6479648a6
debian: Use description from freedombox.org
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-31 15:58:39 -05:00
Sunil Mohan Adapa
9f93c874db
debian: Break current version of freedombox-setup
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-31 15:58:29 -05:00
Sunil Mohan Adapa
4c1572a3f0
debian: Add dependencies from freedombox-setup
All the packages that are removed as dependencies in freedombox-setup and are
not essential for the operation of FreedomBox/Plinth have been moved to
Recommends .

The following packages were *moved* from freedombox-setup directly as is:

- bridge-utils
- curl
- devio
- dnsutils
- dosfstools
- haveged
- htop
- iftop
- iputils-ping
- iw
- libnss-gw-name
- libnss-mdns
- libnss-myhostname
- libpam-tmpdir
- libpam-abl
- locales
- locales-all
- lsof
- netcat-openbsd
- psmisc
- resolvconf
- rfkill
- tcpdump
- vim-tiny
- wget
- wireless-tools
- zile

The following packages have been *added* as they are part of standard system
utilities present in a Debian system:

- bzip2
- file
- openssh-client
- pciutils
- whois

The following packages were *dropped* as dependencies from freedombox-setup:

- dialog: no utility to an admin on command line. No scripts are currently using
  it. Any script using it should have a dependency on it.

- dnsmasq-base: network-manager is one that uses it and it already recommends
  it.

- parted: Added as dependency for the storage module which uses it.

- ssl-cert: apache2 and other packages that use it already recommend it.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-31 15:58:04 -05:00
Sunil Mohan Adapa
bf8fc21e08
debian: Alter control file indentation
To a more natural appearance.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-31 15:56:22 -05:00
Sunil Mohan Adapa
35c70861dc
logging: Remove references to old log files
- Remove access/error log references in configuration files and tests.

- Ensure that /var/log/plinth directory is not created anymore.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-30 13:45:23 -05:00
James Valleroy
1813f175da
debian: Move Recommends to binary package
This field is not recognized for the source package, and causes a
warning.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-26 19:50:37 -08:00
Sunil Mohan Adapa
f36753fcb8
logging: Log to systemd journal directly
While capturing stdout and stderr and automatically logging that to system
logging daemon provides basic information, a lot of information lost in the
process.

This change logs to systemd journal directly so that rich information such as
code file, code function, code line, etc, can be captured in a structured way.
To avoid double logging, discard stdout and stderr in the systemd unit file.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-23 17:18:13 -05:00
James Valleroy
b6cd60b647
Release v0.45.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-17 19:06:31 -05:00
James Valleroy
5dab4835b4
Release v0.44.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-03 20:03:16 -05:00
James Valleroy
1dda15db8a
Release v0.43.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-19 17:35:28 -05:00
James Valleroy
629e34f93c
Release v0.42.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-05 18:41:35 -08:00
James Valleroy
0dfa3cc9de
Release v0.41.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-22 19:49:06 -04:00
James Valleroy
9b8251e16c
debian: Add Russian translation of debconf template
Closes: #910848

Thanks to Lev Lamberov for the patch.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-14 15:04:19 -04:00
James Valleroy
310f66c936
Release v0.40.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-09 06:02:09 -04:00
James Valleroy
5e13ba0424
debian: Use 'setup.py test' to run tests
Since pytest is a build-depend, pybuild uses it by default.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 23:03:24 -04:00
James Valleroy
7f5749927f
Update changelog
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 22:21:36 -04:00
Joseph Nuthalapati
5e06017e5c
customization: Serve custom shortcuts through the REST API
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 20:30:24 -04:00
James Valleroy
a71f3e7a66
debian: Add Portuguese translation for debconf messages
Closes: #909745

Thanks to "Traduz" - Portuguese Translation Team for the patch.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-09-27 19:22:52 -04:00
James Valleroy
c7047a2bd3
Release v0.39.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-09-24 19:39:56 -04:00
James Valleroy
32727e23d5
Cleanup udiskie module
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-09-24 19:39:19 -04:00
James Valleroy
8fa1b54ba7
Bump Standards-Version to 4.2.1
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-09-24 19:22:41 -04:00
James Valleroy
bf347c4aee
debian: Don't make backup of /etc/security/access.conf
Closes: #909484

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-09-24 18:46:19 -04:00
James Valleroy
c4c3adbbaa
Release v0.38.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-09-10 18:12:47 -04:00
James Valleroy
fc3151a17c
debian: Add German translation of debconf messages
Closes: #907787

Thanks to Helge Kreutzmann for the patch.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-09-03 10:12:36 -04:00
James Valleroy
d14a1a5812
Release v0.37.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-27 20:10:17 -04:00
James Valleroy
9b620d7986
Bump Standards-Version to 4.2.0
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-27 18:22:33 -04:00
James Valleroy
f35d5e5994
debian: Add Dutch translation of debconf messages
Closes: #906945

Thanks to Frans Spiesschaert for the patch.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-22 20:06:23 -04:00
James Valleroy
24fc482bc6
Release v0.36.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-13 18:25:03 -04:00
James Valleroy
fd988987a4
[INTL:fr] French debconf translation (Closes: #905933)
Thanks to jean-pierre giraud for this translation patch.
2018-08-11 19:22:14 -04:00
James Valleroy
13761ff2ff
Release v0.35.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-30 19:24:45 -04:00
Joseph Nuthalapati
f762f57d1c
Add turbolinks
- Load scripts in the head with `defer` instead of at the end of the body
- Disable turbolinks for application shortcuts and manual download

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 12:22:52 -04:00
Joseph Nuthalapati
d75b03b85f
debian: Remove Bdale Garbee from the list of uploaders
As requested. Closes #1339.

Thanks for all those uploads, Bdale!

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-07-28 12:27:23 +05:30
James Valleroy
6d6fcc2b32
Release v0.34.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-16 19:35:01 -04:00
James Valleroy
6fdd033625
debian: Update standards version
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-16 19:34:42 -04:00
James Valleroy
ad50753d8a
lintian: Add override for no-debconf-config
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-04 20:34:52 -04:00