diff options
author | rusty-snake <41237666+rusty-snake@users.noreply.github.com> | 2020-04-04 19:40:11 +0200 |
---|---|---|
committer | rusty-snake <41237666+rusty-snake@users.noreply.github.com> | 2020-04-04 19:40:11 +0200 |
commit | e8b60d782eccee13fae539732236e0b19111f706 (patch) | |
tree | 8698be4341cea7047a59889b7b50685a233946db /mketc.sh | |
parent | Harden signal-desktop.profile and add rules for Firefox (diff) | |
download | firejail-e8b60d782eccee13fae539732236e0b19111f706.tar.gz firejail-e8b60d782eccee13fae539732236e0b19111f706.tar.zst firejail-e8b60d782eccee13fae539732236e0b19111f706.zip |
Speedup the buildsystem
- replaing 'include /etc/firejail/foobar.inc' with
'include $(sysconfdir)/firejail/foobar.inc' is useless since 0.9.58
- onetime calling install with globbing is faster the a loop calling
install nearly 1000 times
Diffstat (limited to 'mketc.sh')
-rwxr-xr-x | mketc.sh | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -3,16 +3,6 @@ | |||
3 | # Copyright (C) 2014-2020 Firejail Authors | 3 | # Copyright (C) 2014-2020 Firejail Authors |
4 | # License GPL v2 | 4 | # License GPL v2 |
5 | 5 | ||
6 | rm -fr .etc | ||
7 | mkdir .etc | ||
8 | |||
9 | for file in etc/*.profile etc/*.inc etc/*.net; | ||
10 | do | ||
11 | sed "s;/etc/firejail;$1/firejail;g" $file > .$file | ||
12 | done | ||
13 | |||
14 | if [ "x$2" = "xyes" ] | ||
15 | then | ||
16 | sed -i -e ' | 6 | sed -i -e ' |
17 | 1i# Workaround for systems where common UNIX utilities are symlinks to busybox.\ | 7 | 1i# Workaround for systems where common UNIX utilities are symlinks to busybox.\ |
18 | # If this is not your case you can remove --enable-busybox-workaround from\ | 8 | # If this is not your case you can remove --enable-busybox-workaround from\ |
@@ -23,5 +13,4 @@ noblacklist \${PATH}/su\ | |||
23 | noblacklist \${PATH}/sudo\ | 13 | noblacklist \${PATH}/sudo\ |
24 | noblacklist \${PATH}/nc\ | 14 | noblacklist \${PATH}/nc\ |
25 | noblacklist \${PATH}/crontab\ | 15 | noblacklist \${PATH}/crontab\ |
26 | ' .etc/disable-common.inc | 16 | ' etc/disable-common.inc |
27 | fi | ||