appmenus: include standalone qvm-sync-appmenus and its manpage
This commit is contained in:
parent
5d78289bfe
commit
d06bbdc967
2
appmenus-scripts/qvm-sync-appmenus
Executable file
2
appmenus-scripts/qvm-sync-appmenus
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
exec /usr/libexec/qubes-appmenus/qubes-receive-appmenus $@
|
27
doc/Makefile
Normal file
27
doc/Makefile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
TOOLS_DIR=tools
|
||||||
|
PANDOC=pandoc -s -f rst -t man
|
||||||
|
|
||||||
|
TOOLS_DOCS=$(patsubst %.rst,%.1.gz,$(wildcard $(TOOLS_DIR)/*.rst))
|
||||||
|
|
||||||
|
help:
|
||||||
|
@echo "make rst=example.rst preview -- generate manpage preview from example.rst"
|
||||||
|
@echo "make manpages -- generate manpages"
|
||||||
|
@echo "make install -- generate manpages and copy them to /usr/share/man"
|
||||||
|
|
||||||
|
install: manpages
|
||||||
|
mkdir -p $(DESTDIR)/usr/share/man/man1
|
||||||
|
cp $(TOOLS_DOCS) $(DESTDIR)/usr/share/man/man1/
|
||||||
|
|
||||||
|
%.1: %.rst
|
||||||
|
$(PANDOC) $< > $@
|
||||||
|
|
||||||
|
%.1.gz: %.1
|
||||||
|
gzip -f $<
|
||||||
|
|
||||||
|
manpages: $(TOOLS_DOCS)
|
||||||
|
|
||||||
|
preview: $(rst)
|
||||||
|
pandoc -s -f rst -t man $(rst) | groff -mandoc -Tlatin1 | less -R
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(TOOLS_DOCS)
|
26
doc/tools/qvm-sync-appmenus.rst
Normal file
26
doc/tools/qvm-sync-appmenus.rst
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
=================
|
||||||
|
qvm-sync-appmenus
|
||||||
|
=================
|
||||||
|
|
||||||
|
NAME
|
||||||
|
====
|
||||||
|
qvm-sync-appmenus - updates desktop file templates for given StandaloneVM or TemplateVM
|
||||||
|
|
||||||
|
:Date: 2012-04-11
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
========
|
||||||
|
| qvm-sync-appmenus [options] <vm-name>
|
||||||
|
|
||||||
|
OPTIONS
|
||||||
|
=======
|
||||||
|
-h, --help
|
||||||
|
Show this help message and exit
|
||||||
|
-v, --verbose
|
||||||
|
Run in verbose mode
|
||||||
|
|
||||||
|
AUTHORS
|
||||||
|
=======
|
||||||
|
| Joanna Rutkowska <joanna at invisiblethingslab dot com>
|
||||||
|
| Rafal Wojtczuk <rafal at invisiblethingslab dot com>
|
||||||
|
| Marek Marczykowski <marmarek at invisiblethingslab dot com>
|
@ -42,6 +42,7 @@ License: GPL
|
|||||||
URL: http://www.qubes-os.org
|
URL: http://www.qubes-os.org
|
||||||
|
|
||||||
BuildRequires: ImageMagick
|
BuildRequires: ImageMagick
|
||||||
|
BuildRequires: pandoc
|
||||||
Requires: qubes-core-dom0
|
Requires: qubes-core-dom0
|
||||||
|
|
||||||
%define _builddir %(pwd)
|
%define _builddir %(pwd)
|
||||||
@ -61,6 +62,7 @@ ln -sf . %{name}-%{version}
|
|||||||
%build
|
%build
|
||||||
python -m compileall appmenus-scripts
|
python -m compileall appmenus-scripts
|
||||||
python -O -m compileall appmenus-scripts
|
python -O -m compileall appmenus-scripts
|
||||||
|
(cd doc; make manpages)
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT%{python_sitearch}/qubes/modules
|
mkdir -p $RPM_BUILD_ROOT%{python_sitearch}/qubes/modules
|
||||||
@ -72,6 +74,8 @@ mkdir -p $RPM_BUILD_ROOT/usr/libexec/qubes-appmenus
|
|||||||
cp appmenus-scripts/*.sh $RPM_BUILD_ROOT/usr/libexec/qubes-appmenus/
|
cp appmenus-scripts/*.sh $RPM_BUILD_ROOT/usr/libexec/qubes-appmenus/
|
||||||
cp appmenus-scripts/qubes-receive-appmenus $RPM_BUILD_ROOT/usr/libexec/qubes-appmenus/
|
cp appmenus-scripts/qubes-receive-appmenus $RPM_BUILD_ROOT/usr/libexec/qubes-appmenus/
|
||||||
|
|
||||||
|
install -D appmenus-scripts/qvm-sync-appmenus $RPM_BUILD_ROOT/usr/bin/qvm-sync-appmenus
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/qubes-rpc/policy
|
mkdir -p $RPM_BUILD_ROOT/etc/qubes-rpc/policy
|
||||||
cp appmenus-scripts/qubes.SyncAppMenus $RPM_BUILD_ROOT/etc/qubes-rpc/
|
cp appmenus-scripts/qubes.SyncAppMenus $RPM_BUILD_ROOT/etc/qubes-rpc/
|
||||||
cp appmenus-scripts/qubes.SyncAppMenus.policy $RPM_BUILD_ROOT/etc/qubes-rpc/policy/
|
cp appmenus-scripts/qubes.SyncAppMenus.policy $RPM_BUILD_ROOT/etc/qubes-rpc/policy/
|
||||||
@ -84,6 +88,8 @@ done
|
|||||||
mkdir -p $RPM_BUILD_ROOT/usr/share/qubes-appmenus/
|
mkdir -p $RPM_BUILD_ROOT/usr/share/qubes-appmenus/
|
||||||
cp appmenus-files/* $RPM_BUILD_ROOT/usr/share/qubes-appmenus/
|
cp appmenus-files/* $RPM_BUILD_ROOT/usr/share/qubes-appmenus/
|
||||||
|
|
||||||
|
(cd doc; make DESTDIR=$RPM_BUILD_ROOT install)
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
||||||
for i in /usr/share/qubes/icons/*.png ; do
|
for i in /usr/share/qubes/icons/*.png ; do
|
||||||
@ -123,6 +129,7 @@ fi
|
|||||||
/usr/share/qubes-appmenus/qubes-templatevm.directory.template
|
/usr/share/qubes-appmenus/qubes-templatevm.directory.template
|
||||||
/usr/share/qubes-appmenus/qubes-vm.directory.template
|
/usr/share/qubes-appmenus/qubes-vm.directory.template
|
||||||
/usr/share/qubes/icons/*.png
|
/usr/share/qubes/icons/*.png
|
||||||
|
/usr/bin/qvm-sync-appmenus
|
||||||
|
%{_mandir}/man1/qvm-*.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user