diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 297 |
1 files changed, 151 insertions, 146 deletions
diff --git a/Makefile.in b/Makefile.in index 16f8e8717..86fd4f4b7 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -1,6 +1,7 @@ | |||
1 | all: apps firejail.1 firemon.1 firecfg.1 firejail-profile.5 firejail-login.5 firejail-config.5 | 1 | all: apps man |
2 | MYLIBS = src/lib | 2 | MYLIBS = src/lib |
3 | APPS = src/firejail src/firemon src/firecfg src/libtrace src/libtracelog src/ftee | 3 | APPS = src/firejail src/firemon src/firecfg src/libtrace src/libtracelog src/ftee src/faudit src/libconnect src/fnet src/fseccomp |
4 | MANPAGES = firejail.1 firemon.1 firecfg.1 firejail-profile.5 firejail-login.5 | ||
4 | 5 | ||
5 | prefix=@prefix@ | 6 | prefix=@prefix@ |
6 | exec_prefix=@exec_prefix@ | 7 | exec_prefix=@exec_prefix@ |
@@ -14,47 +15,48 @@ VERSION=@PACKAGE_VERSION@ | |||
14 | NAME=@PACKAGE_NAME@ | 15 | NAME=@PACKAGE_NAME@ |
15 | PACKAGE_TARNAME=@PACKAGE_TARNAME@ | 16 | PACKAGE_TARNAME=@PACKAGE_TARNAME@ |
16 | DOCDIR=@docdir@ | 17 | DOCDIR=@docdir@ |
18 | HAVE_APPARMOR=@HAVE_APPARMOR@ | ||
19 | BUSYBOX_WORKAROUND=@BUSYBOX_WORKAROUND@ | ||
20 | |||
21 | uids.h:; ./mkuid.sh | ||
17 | 22 | ||
18 | .PHONY: mylibs $(MYLIBS) | 23 | .PHONY: mylibs $(MYLIBS) |
19 | mylibs: $(MYLIBS) | 24 | mylibs: $(MYLIBS) uids.h |
20 | $(MYLIBS): | 25 | $(MYLIBS): |
21 | $(MAKE) -C $@ | 26 | $(MAKE) -C $@ |
22 | 27 | ||
23 | .PHONY: apps $(APPS) | 28 | .PHONY: apps $(APPS) |
24 | apps: $(APPS) | 29 | apps: $(APPS) |
25 | $(APPS): $(MYLIBS) | 30 | $(APPS): $(MYLIBS) uids.h |
26 | $(MAKE) -C $@ | 31 | $(MAKE) -C $@ |
27 | 32 | ||
28 | firemon.1: src/man/firemon.txt | 33 | $(MANPAGES): $(wildcard src/man/*.txt) |
29 | ./mkman.sh $(VERSION) src/man/firemon.txt firemon.1 | 34 | ./mkman.sh $(VERSION) src/man/$(basename $@).txt $@ |
30 | firejail.1: src/man/firejail.txt | 35 | |
31 | ./mkman.sh $(VERSION) src/man/firejail.txt firejail.1 | 36 | man: $(MANPAGES) |
32 | firecfg.1: src/man/firecfg.txt | ||
33 | ./mkman.sh $(VERSION) src/man/firecfg.txt firecfg.1 | ||
34 | firejail-profile.5: src/man/firejail-profile.txt | ||
35 | ./mkman.sh $(VERSION) src/man/firejail-profile.txt firejail-profile.5 | ||
36 | firejail-login.5: src/man/firejail-login.txt | ||
37 | ./mkman.sh $(VERSION) src/man/firejail-login.txt firejail-login.5 | ||
38 | firejail-config.5: src/man/firejail-config.txt | ||
39 | ./mkman.sh $(VERSION) src/man/firejail-config.txt firejail-config.5 | ||
40 | 37 | ||
41 | clean: | 38 | clean: |
42 | for dir in $(APPS); do \ | 39 | for dir in $(APPS) $(MYLIBS); do \ |
43 | $(MAKE) -C $$dir clean; \ | 40 | $(MAKE) -C $$dir clean; \ |
44 | done | 41 | done |
45 | for dir in $(MYLIBS); do \ | 42 | rm -f $(MANPAGES) $(MANPAGES:%=%.gz) firejail*.rpm |
46 | $(MAKE) -C $$dir clean; \ | 43 | rm -f test/utils/index.html* |
47 | done | 44 | rm -f test/utils/wget-log |
48 | rm -f firejail.1 firejail.1.gz firemon.1 firemon.1.gz firecfg.1 firecfg.gz firejail-profile.5 firejail-profile.5.gz firejail-login.5 firejail-login.5.gz firejail-config.5 firejail-config.5.gz firejail*.rpm | 45 | rm -f test/utils/lstesting |
46 | rm -f test/environment/index.html* | ||
47 | rm -f test/environment/wget-log* | ||
48 | rm -fr test/environment/-testdir | ||
49 | rm -f test/environment/logfile* | ||
50 | rm -f test/environment/index.html | ||
51 | rm -f test/environment/wget-log | ||
52 | rm -f test/sysutils/firejail_t* | ||
53 | cd test/compile; ./compile.sh --clean; cd ../.. | ||
49 | 54 | ||
50 | distclean: clean | 55 | distclean: clean |
51 | for dir in $(APPS); do \ | 56 | for dir in $(APPS) $(MYLIBS); do \ |
52 | $(MAKE) -C $$dir distclean; \ | ||
53 | done | ||
54 | for dir in $(MYLIBS); do \ | ||
55 | $(MAKE) -C $$dir distclean; \ | 57 | $(MAKE) -C $$dir distclean; \ |
56 | done | 58 | done |
57 | rm -fr Makefile autom4te.cache config.log config.status config.h | 59 | rm -fr Makefile autom4te.cache config.log config.status config.h uids.h |
58 | 60 | ||
59 | realinstall: | 61 | realinstall: |
60 | # firejail executable | 62 | # firejail executable |
@@ -69,133 +71,49 @@ realinstall: | |||
69 | install -m 0755 -d $(DESTDIR)/$(libdir)/firejail | 71 | install -m 0755 -d $(DESTDIR)/$(libdir)/firejail |
70 | install -c -m 0644 src/libtrace/libtrace.so $(DESTDIR)/$(libdir)/firejail/. | 72 | install -c -m 0644 src/libtrace/libtrace.so $(DESTDIR)/$(libdir)/firejail/. |
71 | install -c -m 0644 src/libtracelog/libtracelog.so $(DESTDIR)/$(libdir)/firejail/. | 73 | install -c -m 0644 src/libtracelog/libtracelog.so $(DESTDIR)/$(libdir)/firejail/. |
74 | install -c -m 0644 src/libconnect/libconnect.so $(DESTDIR)/$(libdir)/firejail/. | ||
72 | install -c -m 0755 src/ftee/ftee $(DESTDIR)/$(libdir)/firejail/. | 75 | install -c -m 0755 src/ftee/ftee $(DESTDIR)/$(libdir)/firejail/. |
73 | install -c -m 0755 src/fshaper/fshaper.sh $(DESTDIR)/$(libdir)/firejail/. | 76 | install -c -m 0755 src/fshaper/fshaper.sh $(DESTDIR)/$(libdir)/firejail/. |
74 | install -c -m 0644 src/firecfg/firecfg.config $(DESTDIR)/$(libdir)/firejail/. | 77 | install -c -m 0644 src/firecfg/firecfg.config $(DESTDIR)/$(libdir)/firejail/. |
78 | install -c -m 0755 src/faudit/faudit $(DESTDIR)/$(libdir)/firejail/. | ||
79 | install -c -m 0755 src/fnet/fnet $(DESTDIR)/$(libdir)/firejail/. | ||
80 | install -c -m 0755 src/fseccomp/fseccomp $(DESTDIR)/$(libdir)/firejail/. | ||
75 | # documents | 81 | # documents |
76 | install -m 0755 -d $(DESTDIR)/$(DOCDIR) | 82 | install -m 0755 -d $(DESTDIR)/$(DOCDIR) |
77 | install -c -m 0644 COPYING $(DESTDIR)/$(DOCDIR)/. | 83 | install -c -m 0644 COPYING $(DESTDIR)/$(DOCDIR)/. |
78 | install -c -m 0644 README $(DESTDIR)/$(DOCDIR)/. | 84 | install -c -m 0644 README $(DESTDIR)/$(DOCDIR)/. |
79 | install -c -m 0644 RELNOTES $(DESTDIR)/$(DOCDIR)/. | 85 | install -c -m 0644 RELNOTES $(DESTDIR)/$(DOCDIR)/. |
80 | # etc files | 86 | # etc files |
81 | ./mketc.sh $(sysconfdir) | 87 | ./mketc.sh $(sysconfdir) $(BUSYBOX_WORKAROUND) |
82 | install -m 0755 -d $(DESTDIR)/$(sysconfdir)/firejail | 88 | install -m 0755 -d $(DESTDIR)/$(sysconfdir)/firejail |
83 | install -c -m 0644 .etc/audacious.profile $(DESTDIR)/$(sysconfdir)/firejail/. | 89 | for file in .etc/* etc/firejail.config; do \ |
84 | install -c -m 0644 .etc/clementine.profile $(DESTDIR)/$(sysconfdir)/firejail/. | 90 | install -c -m 0644 $$file $(DESTDIR)/$(sysconfdir)/firejail; \ |
85 | install -c -m 0644 .etc/epiphany.profile $(DESTDIR)/$(sysconfdir)/firejail/. | 91 | done |
86 | install -c -m 0644 .etc/qtox.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
87 | install -c -m 0644 .etc/polari.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
88 | install -c -m 0644 .etc/gnome-mplayer.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
89 | install -c -m 0644 .etc/rhythmbox.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
90 | install -c -m 0644 .etc/totem.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
91 | install -c -m 0644 .etc/firefox.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
92 | install -c -m 0644 .etc/icedove.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
93 | install -c -m 0644 .etc/iceweasel.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
94 | install -c -m 0644 .etc/midori.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
95 | install -c -m 0644 .etc/evince.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
96 | install -c -m 0644 .etc/chromium-browser.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
97 | install -c -m 0644 .etc/chromium.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
98 | install -c -m 0644 .etc/google-chrome.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
99 | install -c -m 0644 .etc/google-chrome-stable.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
100 | install -c -m 0644 .etc/google-chrome-beta.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
101 | install -c -m 0644 .etc/google-chrome-unstable.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
102 | install -c -m 0644 .etc/disable-common.inc $(DESTDIR)/$(sysconfdir)/firejail/. | ||
103 | install -c -m 0644 .etc/dropbox.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
104 | install -c -m 0644 .etc/opera.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
105 | install -c -m 0644 .etc/opera-beta.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
106 | install -c -m 0644 .etc/thunderbird.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
107 | install -c -m 0644 .etc/transmission-gtk.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
108 | install -c -m 0644 .etc/transmission-qt.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
109 | install -c -m 0644 .etc/vlc.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
110 | install -c -m 0644 .etc/deluge.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
111 | install -c -m 0644 .etc/qbittorrent.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
112 | install -c -m 0644 .etc/generic.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
113 | install -c -m 0644 .etc/pidgin.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
114 | install -c -m 0644 .etc/xchat.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
115 | install -c -m 0644 .etc/empathy.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
116 | install -c -m 0644 .etc/server.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
117 | install -c -m 0644 .etc/icecat.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
118 | install -c -m 0644 .etc/quassel.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
119 | install -c -m 0644 .etc/deadbeef.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
120 | install -c -m 0644 .etc/filezilla.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
121 | install -c -m 0644 .etc/fbreader.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
122 | install -c -m 0644 .etc/spotify.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
123 | install -c -m 0644 .etc/steam.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
124 | install -c -m 0644 .etc/skype.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
125 | install -c -m 0644 .etc/wine.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
126 | install -c -m 0644 .etc/disable-devel.inc $(DESTDIR)/$(sysconfdir)/firejail/. | ||
127 | install -c -m 0644 .etc/conkeror.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
128 | install -c -m 0644 .etc/unbound.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
129 | install -c -m 0644 .etc/dnscrypt-proxy.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
130 | install -c -m 0644 .etc/whitelist-common.inc $(DESTDIR)/$(sysconfdir)/firejail/. | ||
131 | install -c -m 0644 .etc/nolocal.net $(DESTDIR)/$(sysconfdir)/firejail/. | ||
132 | install -c -m 0644 .etc/webserver.net $(DESTDIR)/$(sysconfdir)/firejail/. | ||
133 | install -c -m 0644 .etc/bitlbee.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
134 | install -c -m 0644 .etc/weechat.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
135 | install -c -m 0644 .etc/weechat-curses.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
136 | install -c -m 0644 .etc/hexchat.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
137 | install -c -m 0644 .etc/rtorrent.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
138 | install -c -m 0644 .etc/parole.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
139 | install -c -m 0644 .etc/kmail.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
140 | install -c -m 0644 .etc/seamonkey.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
141 | install -c -m 0644 .etc/seamonkey-bin.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
142 | install -c -m 0644 .etc/telegram.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
143 | install -c -m 0644 .etc/mathematica.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
144 | install -c -m 0644 .etc/Mathematica.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
145 | install -c -m 0644 .etc/uget-gtk.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
146 | install -c -m 0644 .etc/mupen64plus.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
147 | install -c -m 0644 .etc/disable-programs.inc $(DESTDIR)/$(sysconfdir)/firejail/. | ||
148 | install -c -m 0644 .etc/disable-passwdmgr.inc $(DESTDIR)/$(sysconfdir)/firejail/. | ||
149 | install -c -m 0644 .etc/lxterminal.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
150 | install -c -m 0644 .etc/cherrytree.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
151 | install -c -m 0644 .etc/wesnoth.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
152 | install -c -m 0644 .etc/hedgewars.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
153 | install -c -m 0644 .etc/vivaldi.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
154 | install -c -m 0644 .etc/vivaldi-beta.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
155 | install -c -m 0644 .etc/atril.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
156 | install -c -m 0644 .etc/qutebrowser.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
157 | install -c -m 0644 .etc/flashpeak-slimjet.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
158 | install -c -m 0644 .etc/ssh.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
159 | install -c -m 0644 .etc/openbox.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
160 | install -c -m 0644 .etc/dillo.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
161 | install -c -m 0644 .etc/cmus.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
162 | install -c -m 0644 .etc/dnsmasq.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
163 | install -c -m 0644 .etc/palemoon.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
164 | install -c -m 0644 .etc/icedove.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
165 | install -c -m 0644 .etc/abrowser.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
166 | install -c -m 0644 .etc/0ad.profile $(DESTDIR)/$(sysconfdir)/firejail/. | ||
167 | sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/login.users ]; then install -c -m 0644 etc/login.users $(DESTDIR)/$(sysconfdir)/firejail/.; fi;" | 92 | sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/login.users ]; then install -c -m 0644 etc/login.users $(DESTDIR)/$(sysconfdir)/firejail/.; fi;" |
168 | sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/firejail.config ]; then install -c -m 0644 etc/firejail.config $(DESTDIR)/$(sysconfdir)/firejail/.; fi;" | ||
169 | rm -fr .etc | 93 | rm -fr .etc |
94 | ifeq ($(HAVE_APPARMOR),-DHAVE_APPARMOR) | ||
95 | # install apparmor profile | ||
96 | sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d ]; then install -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d; fi;" | ||
97 | install -c -m 0644 etc/firejail-default $(DESTDIR)/$(sysconfdir)/apparmor.d/. | ||
98 | endif | ||
170 | # man pages | 99 | # man pages |
171 | rm -f firejail.1.gz | ||
172 | gzip -9n firejail.1 | ||
173 | rm -f firemon.1.gz | ||
174 | gzip -9n firemon.1 | ||
175 | rm -f firecfg.1.gz | ||
176 | gzip -9n firecfg.1 | ||
177 | rm -f firejail-profile.5.gz | ||
178 | gzip -9n firejail-profile.5 | ||
179 | rm -f firejail-login.5.gz | ||
180 | gzip -9n firejail-login.5 | ||
181 | rm -f firejail-config.5.gz | ||
182 | gzip -9n firejail-config.5 | ||
183 | install -m 0755 -d $(DESTDIR)/$(mandir)/man1 | 100 | install -m 0755 -d $(DESTDIR)/$(mandir)/man1 |
184 | install -c -m 0644 firejail.1.gz $(DESTDIR)/$(mandir)/man1/. | ||
185 | install -c -m 0644 firemon.1.gz $(DESTDIR)/$(mandir)/man1/. | ||
186 | install -c -m 0644 firecfg.1.gz $(DESTDIR)/$(mandir)/man1/. | ||
187 | install -m 0755 -d $(DESTDIR)/$(mandir)/man5 | 101 | install -m 0755 -d $(DESTDIR)/$(mandir)/man5 |
188 | install -c -m 0644 firejail-profile.5.gz $(DESTDIR)/$(mandir)/man5/. | 102 | for man in $(MANPAGES); do \ |
189 | install -c -m 0644 firejail-login.5.gz $(DESTDIR)/$(mandir)/man5/. | 103 | rm -f $$man.gz; \ |
190 | install -c -m 0644 firejail-config.5.gz $(DESTDIR)/$(mandir)/man5/. | 104 | gzip -9n $$man; \ |
191 | rm -f firejail.1.gz firemon.1.gz firecfg.1.gz firejail-profile.5.gz firejail-login.5.gz firejail-config.5.gz | 105 | case "$$man" in \ |
106 | *.1) install -c -m 0644 $$man.gz $(DESTDIR)/$(mandir)/man1/; ;; \ | ||
107 | *.5) install -c -m 0644 $$man.gz $(DESTDIR)/$(mandir)/man5/; ;; \ | ||
108 | esac; \ | ||
109 | done | ||
110 | rm -f $(MANPAGES) $(MANPAGES:%=%.gz) | ||
192 | # bash completion | 111 | # bash completion |
193 | install -m 0755 -d $(DESTDIR)/$(datarootdir)/bash-completion/completions | 112 | install -m 0755 -d $(DESTDIR)/$(datarootdir)/bash-completion/completions |
194 | install -c -m 0644 src/bash_completion/firejail.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firejail | 113 | install -c -m 0644 src/bash_completion/firejail.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firejail |
195 | install -c -m 0644 src/bash_completion/firemon.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firemon | 114 | install -c -m 0644 src/bash_completion/firemon.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firemon |
196 | install -c -m 0644 src/bash_completion/firecfg.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firecfg | 115 | install -c -m 0644 src/bash_completion/firecfg.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firecfg |
197 | 116 | ||
198 | |||
199 | install: all | 117 | install: all |
200 | $(MAKE) realinstall | 118 | $(MAKE) realinstall |
201 | 119 | ||
@@ -205,7 +123,11 @@ install-strip: all | |||
205 | strip src/firecfg/firecfg | 123 | strip src/firecfg/firecfg |
206 | strip src/libtrace/libtrace.so | 124 | strip src/libtrace/libtrace.so |
207 | strip src/libtracelog/libtracelog.so | 125 | strip src/libtracelog/libtracelog.so |
126 | strip src/libconnect/libconnect.so | ||
208 | strip src/ftee/ftee | 127 | strip src/ftee/ftee |
128 | strip src/faudit/faudit | ||
129 | strip src/fnet/fnet | ||
130 | strip src/fseccomp/fseccomp | ||
209 | $(MAKE) realinstall | 131 | $(MAKE) realinstall |
210 | 132 | ||
211 | uninstall: | 133 | uninstall: |
@@ -214,30 +136,44 @@ uninstall: | |||
214 | rm -f $(DESTDIR)/$(bindir)/firecfg | 136 | rm -f $(DESTDIR)/$(bindir)/firecfg |
215 | rm -fr $(DESTDIR)/$(libdir)/firejail | 137 | rm -fr $(DESTDIR)/$(libdir)/firejail |
216 | rm -fr $(DESTDIR)/$(datarootdir)/doc/firejail | 138 | rm -fr $(DESTDIR)/$(datarootdir)/doc/firejail |
217 | rm -f $(DESTDIR)/$(mandir)/man1/firejail.1* | 139 | for man in $(MANPAGES); do \ |
218 | rm -f $(DESTDIR)/$(mandir)/man1/firemon.1* | 140 | rm -f $(DESTDIR)/$(mandir)/man5/$$man*; \ |
219 | rm -f $(DESTDIR)/$(mandir)/man1/firecfg.1* | 141 | rm -f $(DESTDIR)/$(mandir)/man1/$$man*; \ |
220 | rm -f $(DESTDIR)/$(mandir)/man5/firejail-profile.5* | 142 | done |
221 | rm -f $(DESTDIR)/$(mandir)/man5/firejail-login.5* | ||
222 | rm -f $(DESTDIR)/$(mandir)/man5/firejail-config.5* | ||
223 | rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firejail | 143 | rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firejail |
224 | rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firemon | 144 | rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firemon |
225 | rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firecfg | 145 | rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firecfg |
226 | 146 | ||
147 | DISTFILES = "src etc platform configure configure.ac Makefile.in install.sh mkman.sh mketc.sh mkdeb.sh mkuid.sh COPYING README RELNOTES" | ||
148 | DISTFILES_TEST = "test/rlimit test/apps test/apps-x11 test/apps-x11-xorg test/root test/environment test/profiles test/utils test/compile test/filters test/network test/arguments test/fs test/sysutils" | ||
149 | |||
227 | dist: | 150 | dist: |
151 | mv config.status config.status.old | ||
228 | make distclean | 152 | make distclean |
229 | rm -fr $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.bz2 | 153 | mv config.status.old config.status |
230 | mkdir $(NAME)-$(VERSION) | 154 | rm -fr $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.xz |
231 | cd $(NAME)-$(VERSION); cp -a ../src .; cp -a ../etc .; cp -a ../platform .; rm -fr src/tools; cd .. | 155 | mkdir -p $(NAME)-$(VERSION)/test |
232 | cd $(NAME)-$(VERSION); cp -a ../configure .; cp -a ../configure.ac .; cp -a ../Makefile.in .; cp -a ../install.sh .; cp -a ../mkman.sh .; cp -a ../mketc.sh .; cp -a ../mkdeb.sh .;cd .. | 156 | cp -a "$(DISTFILES)" $(NAME)-$(VERSION) |
233 | cd $(NAME)-$(VERSION); cp -a ../COPYING .; cp -a ../README .; cp -a ../RELNOTES .; cd .. | 157 | cp -a "$(DISTFILES_TEST)" $(NAME)-$(VERSION)/test |
234 | cd $(NAME)-$(VERSION); rm -fr `find . -name .svn`; rm -fr $(NAME)-$(VERSION); cd .. | 158 | rm -rf $(NAME)-$(VERSION)/src/tools |
235 | tar -cjvf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION) | 159 | find $(NAME)-$(VERSION) -name .svn -delete |
160 | tar -cJvf $(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION) | ||
236 | rm -fr $(NAME)-$(VERSION) | 161 | rm -fr $(NAME)-$(VERSION) |
237 | 162 | ||
163 | asc:; ./mkasc.sh $(VERSION) | ||
164 | |||
238 | deb: dist | 165 | deb: dist |
239 | ./mkdeb.sh $(NAME) $(VERSION) | 166 | ./mkdeb.sh $(NAME) $(VERSION) |
240 | 167 | ||
168 | snap: all | ||
169 | cd platform/snap; ./snap.sh | ||
170 | |||
171 | install-snap: snap | ||
172 | sudo snap remove faudit; sudo snap install faudit*.snap | ||
173 | |||
174 | test-compile: dist | ||
175 | cd test/compile; ./compile.sh $(NAME)-$(VERSION) | ||
176 | |||
241 | .PHONY: rpms | 177 | .PHONY: rpms |
242 | rpms: | 178 | rpms: |
243 | ./platform/rpm/mkrpm.sh $(NAME) $(VERSION) | 179 | ./platform/rpm/mkrpm.sh $(NAME) $(VERSION) |
@@ -250,5 +186,74 @@ cppcheck: clean | |||
250 | 186 | ||
251 | scan-build: clean | 187 | scan-build: clean |
252 | scan-build make | 188 | scan-build make |
253 | asc:; ./mkasc.sh $(VERSION) | ||
254 | 189 | ||
190 | |||
191 | # | ||
192 | # make test | ||
193 | # | ||
194 | |||
195 | |||
196 | test-profiles: | ||
197 | cd test/profiles; ./profiles.sh | grep TESTING | ||
198 | |||
199 | test-apps: | ||
200 | cd test/apps; ./apps.sh | grep TESTING | ||
201 | |||
202 | test-apps-x11: | ||
203 | cd test/apps-x11; ./apps-x11.sh | grep TESTING | ||
204 | |||
205 | test-apps-x11-xorg: | ||
206 | cd test/apps-x11-xorg; ./apps-x11-xorg.sh | grep TESTING | ||
207 | |||
208 | test-sysutils: | ||
209 | cd test/sysutils; ./sysutils.sh | grep TESTING | ||
210 | |||
211 | test-utils: | ||
212 | cd test/utils; ./utils.sh | grep TESTING | ||
213 | |||
214 | test-environment: | ||
215 | cd test/environment; ./environment.sh | grep TESTING | ||
216 | |||
217 | test-filters: | ||
218 | cd test/filters; ./filters.sh | grep TESTING | ||
219 | |||
220 | test-arguments: | ||
221 | cd test/arguments; ./arguments.sh | grep TESTING | ||
222 | |||
223 | test-fs: | ||
224 | cd test/fs; ./fs.sh | grep TESTING | ||
225 | |||
226 | test-rlimit: | ||
227 | cd test/rlimit; ./rlimit.sh | grep TESTING | ||
228 | |||
229 | test: test-profiles test-fs test-utils test-environment test-apps test-apps-x11 test-apps-x11-xorg test-filters test-arguments test-rlimit | ||
230 | echo "TEST COMPLETE" | ||
231 | |||
232 | ########################################## | ||
233 | # Individual tests, some of them require root access | ||
234 | # The tests are very intrussive, by the time you are done | ||
235 | # with them you will need to restart your computer. | ||
236 | ########################################## | ||
237 | |||
238 | # Huge appimage files, not included in "make dist" archive | ||
239 | test-appimage: | ||
240 | cd test/appimage; ./appimage.sh | grep TESTING | ||
241 | |||
242 | # Root access, network devices are created before the test | ||
243 | # restart your computer to get rid of these devices | ||
244 | test-network: | ||
245 | cd test/network; ./network.sh | grep TESTING | ||
246 | |||
247 | # Tesets running a root user | ||
248 | test-root: | ||
249 | cd test/root; su -c ./root.sh | grep TESTING | ||
250 | |||
251 | # OverlayFS is not available on all platforms | ||
252 | test-overlay: | ||
253 | cd test/overlay; ./overlay.sh | grep TESTING | ||
254 | |||
255 | # For testing hidepid system, the command to set it up is "mount -o remount,rw,hidepid=2 /proc" | ||
256 | |||
257 | test-all: test-root test-network test-appimage test-overlay test | ||
258 | echo "TEST COMPLETE" | ||
259 | \ No newline at end of file | ||