Add apparmor config to data_files for Debian and Ubuntu
This commit is contained in:
parent
84b5f2982c
commit
93bf7ad62c
19
packages/apparmor/pybitmessage
Normal file
19
packages/apparmor/pybitmessage
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Last Modified: Wed Apr 29 21:04:08 2020
|
||||||
|
#include <tunables/global>
|
||||||
|
|
||||||
|
/usr/bin/pybitmessage {
|
||||||
|
#include <abstractions/base>
|
||||||
|
#include <abstractions/fonts>
|
||||||
|
#include <abstractions/lightdm>
|
||||||
|
#include <abstractions/python>
|
||||||
|
#include <abstractions/user-tmp>
|
||||||
|
|
||||||
|
owner /home/*/.ICEauthority r,
|
||||||
|
owner /home/*/.Xauthority r,
|
||||||
|
owner /home/*/.config/PyBitmessage/ rw,
|
||||||
|
owner /home/*/.config/PyBitmessage/* rwk,
|
||||||
|
owner /home/*/.config/Trolltech.conf rwk,
|
||||||
|
owner /home/*/.config/Trolltech.conf.* rw,
|
||||||
|
owner /proc/*/mounts r,
|
||||||
|
|
||||||
|
}
|
25
setup.py
25
setup.py
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python2.7
|
#!/usr/bin/env python2.7
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -84,6 +85,21 @@ if __name__ == "__main__":
|
||||||
except ImportError:
|
except ImportError:
|
||||||
packages += ['pybitmessage.fallback.umsgpack']
|
packages += ['pybitmessage.fallback.umsgpack']
|
||||||
|
|
||||||
|
data_files = [
|
||||||
|
('share/applications/',
|
||||||
|
['desktop/pybitmessage.desktop']),
|
||||||
|
('share/icons/hicolor/scalable/apps/',
|
||||||
|
['desktop/icons/scalable/pybitmessage.svg']),
|
||||||
|
('share/icons/hicolor/24x24/apps/',
|
||||||
|
['desktop/icons/24x24/pybitmessage.png'])
|
||||||
|
]
|
||||||
|
|
||||||
|
if platform.dist()[0] in ('Debian', 'Ubuntu'):
|
||||||
|
data_files += [
|
||||||
|
("etc/apparmor.d/",
|
||||||
|
['packages/apparmor/pybitmessage'])
|
||||||
|
]
|
||||||
|
|
||||||
dist = setup(
|
dist = setup(
|
||||||
name='pybitmessage',
|
name='pybitmessage',
|
||||||
version=softwareVersion,
|
version=softwareVersion,
|
||||||
|
@ -115,14 +131,7 @@ if __name__ == "__main__":
|
||||||
'translations/*.ts', 'translations/*.qm',
|
'translations/*.ts', 'translations/*.qm',
|
||||||
'images/*.png', 'images/*.ico', 'images/*.icns'
|
'images/*.png', 'images/*.ico', 'images/*.icns'
|
||||||
]},
|
]},
|
||||||
data_files=[
|
data_files=data_files,
|
||||||
('share/applications/',
|
|
||||||
['desktop/pybitmessage.desktop']),
|
|
||||||
('share/icons/hicolor/scalable/apps/',
|
|
||||||
['desktop/icons/scalable/pybitmessage.svg']),
|
|
||||||
('share/icons/hicolor/24x24/apps/',
|
|
||||||
['desktop/icons/24x24/pybitmessage.png'])
|
|
||||||
],
|
|
||||||
ext_modules=[bitmsghash],
|
ext_modules=[bitmsghash],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
entry_points={
|
entry_points={
|
||||||
|
|
Reference in New Issue
Block a user