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,48 +227,51 @@ setuptools.setup(
'locale/*/LC_MESSAGES/*.[pm]o' 'locale/*/LC_MESSAGES/*.[pm]o'
] ]
}, },
data_files=[('/usr/lib/firewalld/services/', data_files=[
glob.glob('data/usr/lib/firewalld/services/*.xml')), ('/usr/lib/firewalld/services/',
('/etc/apache2/conf-available', glob.glob('data/usr/lib/firewalld/services/*.xml')),
glob.glob('data/etc/apache2/conf-available/*.conf')), ('/etc/apache2/conf-available',
('/etc/apache2/sites-available', glob.glob('data/etc/apache2/conf-available/*.conf')),
glob.glob('data/etc/apache2/sites-available/*.conf')), ('/etc/apache2/sites-available',
('/etc/apache2/includes', glob.glob('data/etc/apache2/sites-available/*.conf')),
glob.glob('data/etc/apache2/includes/*.conf')), ('/etc/apache2/includes',
('/etc/apt/apt.conf.d', glob.glob('data/etc/apache2/includes/*.conf')),
glob.glob('data/etc/apt/apt.conf.d/60unattended-upgrades')), ('/etc/apt/apt.conf.d',
('/etc/avahi/services/', glob.glob('data/etc/apt/apt.conf.d/60unattended-upgrades')),
glob.glob('data/etc/avahi/services/*.service')), ('/etc/avahi/services/',
('/etc/ikiwiki', glob.glob('data/etc/ikiwiki/*.setup')), glob.glob('data/etc/avahi/services/*.service')),
('/etc/NetworkManager/dispatcher.d/', [ ('/etc/ikiwiki', glob.glob('data/etc/ikiwiki/*.setup')),
'data/etc/NetworkManager/dispatcher.d/10-freedombox-batman' ('/etc/NetworkManager/dispatcher.d/', [
]), ('/etc/sudoers.d', [ 'data/etc/NetworkManager/dispatcher.d/10-freedombox-batman'
'data/etc/sudoers.d/plinth' ]), ('/etc/sudoers.d', [
]), ('/lib/systemd/system', 'data/etc/sudoers.d/plinth'
glob.glob('data/lib/systemd/system/*.service')), ]), ('/lib/systemd/system',
('/etc/mediawiki', glob.glob('data/etc/mediawiki/*.php')), glob.glob('data/lib/systemd/system/*.service')),
('/usr/share/plinth/actions', ('/etc/mediawiki',
glob.glob(os.path.join( glob.glob('data/etc/mediawiki/*.php')), ('/etc/update-motd.d/', [
'actions', '*'))), ('/usr/share/polkit-1/rules.d', [ 'data/etc/update-motd.d/50-freedombox'
'data/usr/share/polkit-1/rules.d/50-plinth.rules' ]), ('/usr/share/plinth/actions',
]), ('/usr/share/man/man1', [ glob.glob(os.path.join(
'doc/plinth.1' 'actions', '*'))), ('/usr/share/polkit-1/rules.d', [
]), ('/etc/plinth', [ 'data/usr/share/polkit-1/rules.d/50-plinth.rules'
'data/etc/plinth/plinth.config', ]), ('/usr/share/man/man1',
'data/etc/plinth/custom-shortcuts.json' ['doc/plinth.1']), ('/etc/plinth', [
]), ('/usr/share/augeas/lenses', 'data/etc/plinth/plinth.config',
glob.glob('data/usr/share/augeas/lenses/*.aug')), 'data/etc/plinth/custom-shortcuts.json'
('/usr/share/augeas/lenses/tests', ]), ('/usr/share/augeas/lenses',
glob.glob('data/usr/share/augeas/lenses/tests/test_*.aug')), glob.glob('data/usr/share/augeas/lenses/*.aug')),
('/usr/share/pam-configs/', ('/usr/share/augeas/lenses/tests',
glob.glob('data/usr/share/pam-configs/*-freedombox')), glob.glob('data/usr/share/augeas/lenses/tests/test_*.aug')),
('/etc/plinth/modules-enabled', ('/usr/share/pam-configs/',
glob.glob( glob.glob('data/usr/share/pam-configs/*-freedombox')),
os.path.join('data/etc/plinth/modules-enabled', '*'))), ('/etc/plinth/modules-enabled',
('/var/lib/polkit-1/localauthority/10-vendor.d', [ glob.glob(os.path.join(
'data/var/lib/polkit-1/localauthority/10-vendor.d/' 'data/etc/plinth/modules-enabled',
'org.freedombox.NetworkManager.pkla' '*'))), ('/var/lib/polkit-1/localauthority/10-vendor.d', [
])], 'data/var/lib/polkit-1/localauthority/10-vendor.d/'
'org.freedombox.NetworkManager.pkla'
])
],
cmdclass={ cmdclass={
'install': CustomInstall, 'install': CustomInstall,
'build': CustomBuild, 'build': CustomBuild,