mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
Compare commits
3 Commits
bd656386b9
...
32fd5048c1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32fd5048c1 | ||
|
|
370e3320b5 | ||
|
|
2200a83579 |
9
debian/rules
vendored
9
debian/rules
vendored
@ -1,5 +1,7 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
export DH_VERBOSE=1
|
||||
export PYBUILD_DESTDIR=debian/tmp
|
||||
export PYBUILD_SYSTEM=custom
|
||||
@ -9,6 +11,8 @@ export PYBUILD_INSTALL_ARGS=make PYTHON={interpreter} DESTDIR={destdir} install
|
||||
export PYBUILD_CLEAN_ARGS=make clean
|
||||
export PYBUILD_TEST_ARGS=make PYTHON={interpreter} check-tests
|
||||
|
||||
FBX_VERSION := $(shell ./run --develop --version | awk 'NF{ print $$NF }')
|
||||
|
||||
%:
|
||||
dh $@ --with python3 --buildsystem=pybuild
|
||||
|
||||
@ -19,6 +23,11 @@ override_dh_auto_install-indep:
|
||||
# Ensure the list of dependencies is not empty.
|
||||
test -s debian/freedombox.substvars || exit 1
|
||||
|
||||
# Check that FreedomBox version number is matching.
|
||||
ifneq ($(FBX_VERSION),$(DEB_VERSION))
|
||||
>&2 echo "WARNING: FreedomBox version $(FBX_VERSION) does not match package version $(DEB_VERSION)."
|
||||
endif
|
||||
|
||||
override_dh_installsystemd:
|
||||
# Do not enable or start any service other than FreedomBox service. Use
|
||||
# of --tmpdir is a hack to workaround an issue with dh_installsystemd
|
||||
|
||||
@ -152,6 +152,14 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>--version</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Show the version of FreedomBox and exit.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
|
||||
@ -39,6 +39,8 @@ def parse_arguments():
|
||||
help='list package dependencies for essential modules')
|
||||
parser.add_argument('--list-apps', default=False, nargs='*',
|
||||
help='list apps')
|
||||
parser.add_argument('--version', action='store_true', default=None,
|
||||
help='show version and exit')
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
@ -125,6 +127,10 @@ def main():
|
||||
|
||||
adapt_config(arguments)
|
||||
|
||||
if arguments.version:
|
||||
print(f'FreedomBox {__version__}')
|
||||
sys.exit(0)
|
||||
|
||||
if arguments.list_dependencies is not False:
|
||||
log.default_level = 'ERROR'
|
||||
module_loader.load_modules()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user