Verified Commit 17ee7125 authored by Federico Ceratto's avatar Federico Ceratto Committed by Sunil Mohan Adapa

debian: Switch to native package

Reviewed-by: Sunil Mohan Adapa's avatarSunil Mohan Adapa <sunil@medhas.org>
parent 0af8175f
* /var/lib/plinth should be owned by www-data (-R)
* improper installation procedure (see tons of lintian warnings)
* Embedded libraries?
This diff is collapsed.
Source: plinth
Section: web
Priority: optional
Maintainer: FreedomBox packaging team <freedombox-pkg-team@lists.alioth.debian.org>
Uploaders:
Tzafrir Cohen <tzafrir@debian.org>
, Piotr Ożarowski <piotr@debian.org>
, Bdale Garbee <bdale@gag.com>
, Petter Reinholdtsen <pere@debian.org>
, Sunil Mohan Adapa <sunil@medhas.org>
, Nick Daly <Nick.M.Daly@gmail.com>
, Federico Ceratto <federico@debian.org>
, James Valleroy <jvalleroy@mailbox.org>
Build-Depends: debhelper (>= 10~)
, dblatex
, dh-python
, docbook-utils
, gir1.2-nm-1.0
, libjs-bootstrap
, python3-all
, python3-apt
, python3-augeas
, python3-bootstrapform
, python3-cherrypy3
, python3-configobj
, python3-coverage
, python3-django (>= 1.11)
, python3-django-axes
, python3-django-captcha
, python3-django-stronghold
, python3-gi
, python3-psutil
, python3-requests
, python3-ruamel.yaml
, python3-yaml
, python3-setuptools
, python3-setuptools-git
, xmlto
Standards-Version: 4.1.1
Homepage: https://github.com/freedombox/Plinth/
Vcs-Git: https://anonscm.debian.org/git/freedombox/plinth.git
Vcs-Browser: https://anonscm.debian.org/gitweb/?p=freedombox/plinth.git;a=summary
Package: plinth
Breaks: freedombox-setup (<< 0.11~)
Replaces: freedombox-setup (<< 0.11~)
Architecture: all
Depends: ${python3:Depends}
, ${misc:Depends}
, ${plinth:Depends}
, adduser
, augeas-tools
, gettext
, gir1.2-glib-2.0
, gir1.2-nm-1.0
, javascript-common
, ldapscripts
, libjs-bootstrap
, libjs-jquery
, libjs-modernizr
, network-manager
, ppp
, pppoe
, python3-apt
, python3-augeas
, python3-bootstrapform
, python3-cherrypy3
, python3-configobj
, python3-django (>= 1.11)
, python3-django-axes
, python3-django-captcha
, python3-django-stronghold
, python3-gi
, python3-psutil
, python3-requests
, python3-ruamel.yaml
, sudo
Description: web front end for administering every aspect of a FreedomBox
The FreedomBox is a net appliance conceived by Eben Moglen. It
contains free software and is designed to allow you to interface with
the rest of the net under conditions of protected privacy and data
security.
.
The Plinth front end is a web interface to administer the functions of
the FreedomBox. For example, the FreedomBox is a wireless router,
and the front end is where you can adjust its settings.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://github.com/freedombox/Plinth
Upstream-Name: Plinth
Files-Excluded: plinth/modules/jsxc/static/img plinth/modules/jsxc/static/libjs-jsxc/*
Files: *
Copyright: 2011-2015 Plinth Developers
License: AGPL-3+
Released under the GNU Affero General Public License, version 3 or later.
See https://www.gnu.org/licenses/agpl.html for terms.
Files: static/themes/default/FreedomBox-Logo.7z
Copyright: 2012 Robert Martinez
License: GPL-3+-or-CC-BY-SA
Some rights reserved.
Files: plinth/tests/coverage/coverage.py
Copyright: 2009 Jeet Sukumaran and Mark T. Holder
License: GPL-3+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
Files: debian/*
Copyright: 2013 Tzafrir Cohen
License: GPL-2+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems you will find a copy of the GPL (version 2) at
/usr/share/common-licenses/GPL-2.
./doc/plinth.1
Subject: Skip privileged actions test
--- a/plinth/tests/test_actions.py
+++ b/plinth/tests/test_actions.py
@@ -33,6 +33,7 @@
cfg.actions_dir = os.path.join(root_dir, 'actions')
+@unittest.skip('Skipping privileged actions tests')
class TestPrivileged(unittest.TestCase):
"""Verify that privileged actions perform as expected.
--- a/plinth/modules/letsencrypt/tests/test_domain_name_changes.py
+++ b/plinth/modules/letsencrypt/tests/test_domain_name_changes.py
@@ -23,6 +23,7 @@
from .. import on_domain_added, on_domain_removed
+@unittest.skip('Skipping tests that require root privileges')
class TestDomainNameChanges(unittest.TestCase):
"""Test for automatically obtaining and revoking Let's Encrypt certs"""
Subject: Skip copying the doc/ directory
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@
]
DIRECTORIES_TO_COPY = [
- ('/usr/share/doc/plinth', 'doc'),
+ #('/usr/share/doc/plinth', 'doc'),
('/usr/share/plinth/static', 'static'),
]
Subject: Disable the restore module
--- a/data/etc/plinth/modules-enabled/restore
+++ b/data/etc/plinth/modules-enabled/restore
@@ -1 +1 @@
-plinth.modules.restore
+#plinth.modules.restore
--- a/data/etc/plinth/modules-enabled/shaarli
+++ b/data/etc/plinth/modules-enabled/shaarli
@@ -1 +1 @@
-plinth.modules.shaarli
+#plinth.modules.shaarli
Subject: workaround for login issue
When testing new image builds, I found users created through plinth
could not login through console or SSH. The reason is that slapd and
nslcd services were not enabled and not running. I don't know what is
causing this situation, so this is just a workaround.
--- a/actions/users
+++ b/actions/users
@@ -113,6 +113,12 @@
{'nsswitch': 'group, passwd, shadow'})
action_utils.service_restart('nscd')
+ # XXX: Workaround for login issue
+ action_utils.service_enable('slapd')
+ action_utils.service_start('slapd')
+ action_utils.service_enable('nslcd')
+ action_utils.service_start('nslcd')
+
def configure_ldap_structure():
"""Configure LDAP basic structure."""
#0001-disable-privileged-actions-test.patch
#0002-skip-copy-doc-dir.patch
#0003-disable-missing-packages.patch
#0004-enable-login-services.patch
Document: plinth
Title: Plinth Documentation
Author: Plinth Authors
Abstract: web front end for administering every aspect of a FreedomBox
The FreedomBox is a net appliance conceived by Eben Moglen. It
contains free software and is designed to allow you to interface with
the rest of the net under conditions of protected privacy and data
security.
The Plinth front end is a web interface to administer the functions of
the FreedomBox. For example, the FreedomBox is a wireless router,
and the front end is where you can adjust its settings.
Section: Network/Communication
Format: HTML
Index: /usr/share/doc/plinth/freedombox-manual.html
Files: /usr/share/doc/plinth/*
README.md
HACKING
doc/*.html
doc/*.pdf
doc/images
/usr/share/libjs-jsxc/img/ /usr/lib/python3/dist-packages/plinth/modules/jsxc/static/img
/usr/share/libjs-jsxc/css/jsxc.css /usr/lib/python3/dist-packages/plinth/modules/jsxc/static/libjs-jsxc/jsxc.css
/usr/share/javascript/jsxc/lib /usr/lib/python3/dist-packages/plinth/modules/jsxc/static/libjs-jsxc/lib
/usr/share/libjs-jsxc/sound/ /usr/lib/python3/dist-packages/plinth/modules/jsxc/static/libjs-jsxc/sound
# Apache configuration for the Plinth itself is shipped with proper
# name plinth.conf. However, due to the nature of the package, Plinth
# takes the responsibility of configuring various other services
# behind Apache. The upstream hence ships various Apache
# configuration files which are enabled and disabled when user
# requests.
plinth binary: non-standard-apache2-configuration-name *
rm_conffile /etc/plinth/modules-enabled/lib 0.4.3-1~
rm_conffile /etc/plinth/modules-enabled/expert_mode 0.4.3-1~
rm_conffile /etc/plinth/modules-enabled/packages 0.5-1~
rm_conffile /etc/plinth/modules-enabled/xmpp 0.13.0+ds-1~
rm_conffile /etc/plinth/modules-enabled/apps 0.15.1+ds-2~
rm_conffile /etc/plinth/modules-enabled/owncloud 0.15.1+ds-2~
rm_conffile /etc/plinth/modules-enabled/system 0.15.1+ds-2~
rm_conffile /etc/plinth/modules-enabled/disks 0.15.3+ds-1~
#!/bin/sh
set -e
daemonuser=plinth
daemongroup=plinth
case "$1" in
configure)
addgroup --system --quiet plinth
adduser --system --quiet --ingroup plinth --no-create-home --home /var/lib/plinth plinth
chown -R plinth: /var/lib/plinth /var/log/plinth
;;
esac
#DEBHELPER#
exit 0
#!/bin/sh
set -e
case "$1" in
purge)
deluser --system --quiet plinth || true
rm -rf /var/log/plinth /var/lib/plinth
;;
esac
#DEBHELPER#
exit 0
#!/usr/bin/make -f
export DH_VERBOSE=1
export PYBUILD_NAME=plinth
%:
dh $@ --with python3 --with systemd --buildsystem=pybuild
override_dh_auto_install-indep:
dh_auto_install
./run --list-dependencies 2> /dev/null | sort | tr '\n' ', ' | \
sed -e 's/^/plinth:Depends=/' >> debian/plinth.substvars
new-upstream:
gbp import-orig --uscan --verbose --pristine-tar --no-filter-pristine-tar
version=3
opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/plinth-$1\.tar\.gz/,\
dversionmangle=s/\+ds$//,repacksuffix=+ds \
https://github.com/freedombox/Plinth/tags .*/v?(\d\S*)\.tar\.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment