Move update-motd script from freedombox-setup

Significant re-indentation due to yapf.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2018-12-27 16:47:24 -08:00 committed by James Valleroy
parent dfd9a7a298
commit 2e8d28c7f8
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 62 additions and 42 deletions

View File

@ -0,0 +1,17 @@
#!/bin/sh
cat <<"EOF"
.--._ _.--.
( \ / )
\ /\ /
\_ \/ _/
/ \
( /\ )
`--' `--'
FreedomBox
FreedomBox is a pure blend of Debian GNU/Linux. FreedomBox manual is
available in /usr/share/doc/plinth.
EOF

View File

@ -227,7 +227,8 @@ setuptools.setup(
'locale/*/LC_MESSAGES/*.[pm]o' 'locale/*/LC_MESSAGES/*.[pm]o'
] ]
}, },
data_files=[('/usr/lib/firewalld/services/', data_files=[
('/usr/lib/firewalld/services/',
glob.glob('data/usr/lib/firewalld/services/*.xml')), glob.glob('data/usr/lib/firewalld/services/*.xml')),
('/etc/apache2/conf-available', ('/etc/apache2/conf-available',
glob.glob('data/etc/apache2/conf-available/*.conf')), glob.glob('data/etc/apache2/conf-available/*.conf')),
@ -246,14 +247,15 @@ setuptools.setup(
'data/etc/sudoers.d/plinth' 'data/etc/sudoers.d/plinth'
]), ('/lib/systemd/system', ]), ('/lib/systemd/system',
glob.glob('data/lib/systemd/system/*.service')), glob.glob('data/lib/systemd/system/*.service')),
('/etc/mediawiki', glob.glob('data/etc/mediawiki/*.php')), ('/etc/mediawiki',
('/usr/share/plinth/actions', glob.glob('data/etc/mediawiki/*.php')), ('/etc/update-motd.d/', [
'data/etc/update-motd.d/50-freedombox'
]), ('/usr/share/plinth/actions',
glob.glob(os.path.join( glob.glob(os.path.join(
'actions', '*'))), ('/usr/share/polkit-1/rules.d', [ 'actions', '*'))), ('/usr/share/polkit-1/rules.d', [
'data/usr/share/polkit-1/rules.d/50-plinth.rules' 'data/usr/share/polkit-1/rules.d/50-plinth.rules'
]), ('/usr/share/man/man1', [ ]), ('/usr/share/man/man1',
'doc/plinth.1' ['doc/plinth.1']), ('/etc/plinth', [
]), ('/etc/plinth', [
'data/etc/plinth/plinth.config', 'data/etc/plinth/plinth.config',
'data/etc/plinth/custom-shortcuts.json' 'data/etc/plinth/custom-shortcuts.json'
]), ('/usr/share/augeas/lenses', ]), ('/usr/share/augeas/lenses',
@ -263,12 +265,13 @@ setuptools.setup(
('/usr/share/pam-configs/', ('/usr/share/pam-configs/',
glob.glob('data/usr/share/pam-configs/*-freedombox')), glob.glob('data/usr/share/pam-configs/*-freedombox')),
('/etc/plinth/modules-enabled', ('/etc/plinth/modules-enabled',
glob.glob( glob.glob(os.path.join(
os.path.join('data/etc/plinth/modules-enabled', '*'))), 'data/etc/plinth/modules-enabled',
('/var/lib/polkit-1/localauthority/10-vendor.d', [ '*'))), ('/var/lib/polkit-1/localauthority/10-vendor.d', [
'data/var/lib/polkit-1/localauthority/10-vendor.d/' 'data/var/lib/polkit-1/localauthority/10-vendor.d/'
'org.freedombox.NetworkManager.pkla' 'org.freedombox.NetworkManager.pkla'
])], ])
],
cmdclass={ cmdclass={
'install': CustomInstall, 'install': CustomInstall,
'build': CustomBuild, 'build': CustomBuild,