]>
Commit | Line | Data |
---|---|---|
7460295f | 1 | AM_CPPFLAGS = |
c593cf68 | 2 | AM_CFLAGS = -g -std=gnu99 -Wall |
3bf14b3a | 3 | AM_LDFLAGS = -g -lm |
7460295f MG |
4 | |
5 | noinst_LTLIBRARIES = libhttp.la \ | |
6 | liblogging.la | |
c593cf68 | 7 | noinst_DATA = $(top_srcdir)/demo/demo.js |
7460295f MG |
8 | bin_PROGRAMS = shellinaboxd |
9 | man_MANS = shellinaboxd.1 | |
10 | noinst_HEADERS = libhttp/http.h | |
11 | dist_doc_DATA = AUTHORS \ | |
12 | COPYING \ | |
13 | GPL-2 \ | |
14 | ChangeLog \ | |
15 | INSTALL \ | |
16 | NEWS \ | |
17 | README \ | |
1f771613 | 18 | TODO \ |
08db8657 MG |
19 | shellinabox/white-on-black.css \ |
20 | shellinabox/black-on-white.css \ | |
21 | shellinabox/monochrome.css \ | |
22 | shellinabox/color.css | |
09c5d6e3 MG |
23 | EXTRA_DIST = INSTALL.Debian \ |
24 | README.Fedora \ | |
25 | demo/beep.wav \ | |
c593cf68 MG |
26 | demo/favicon.ico \ |
27 | demo/demo.html \ | |
28 | demo/demo.js \ | |
29 | demo/demo.jspp \ | |
c82a11e7 | 30 | demo/demo.xml \ |
08db8657 | 31 | demo/enabled.gif \ |
23b9f25a | 32 | demo/keyboard.html \ |
c73698b6 | 33 | demo/keyboard.png \ |
c593cf68 | 34 | demo/styles.css \ |
db50e572 | 35 | demo/print-styles.css \ |
c593cf68 | 36 | demo/vt100.js \ |
08db8657 MG |
37 | demo/usercss-0.css \ |
38 | demo/usercss-1.css \ | |
39 | demo/usercss-2.css \ | |
40 | demo/usercss-3.css \ | |
09c5d6e3 | 41 | etc-pam.d-shellinabox-example \ |
c593cf68 | 42 | shellinabox/shellinaboxd.man.in \ |
c27d0db9 MG |
43 | shellinabox/shell_in_a_box.js \ |
44 | shellinabox/vt100.js \ | |
fd239d93 | 45 | shellinabox/cgi-mode-example.sh \ |
7460295f | 46 | debian/README \ |
e7372536 MG |
47 | debian/README.available \ |
48 | debian/README.enabled \ | |
7460295f MG |
49 | debian/changelog \ |
50 | debian/compat \ | |
51 | debian/control \ | |
52 | debian/copyright \ | |
53 | debian/docs \ | |
54 | debian/rules \ | |
55 | debian/shellinabox.default \ | |
56 | debian/shellinabox.dirs \ | |
57 | debian/shellinabox.init \ | |
58 | debian/shellinabox.install \ | |
59 | debian/shellinabox.postinst \ | |
f77e8221 | 60 | debian/shellinabox.postrm \ |
dfde103c | 61 | debian/source/format \ |
f77e8221 | 62 | debian/watch |
bdd01e84 MG |
63 | LIBLOGGING_INCLUDES = logging/logging.h \ |
64 | config.h | |
7460295f MG |
65 | liblogging_la_SOURCES= logging/logging.c \ |
66 | $(LIBLOGGING_INCLUDES) | |
67 | liblogging_la_LDFLAGS= -version 1:0:0 | |
68 | ||
69 | LIBHTTP_INCLUDES = libhttp/hashmap.h \ | |
70 | libhttp/trie.h \ | |
71 | libhttp/httpconnection.h \ | |
72 | libhttp/server.h \ | |
73 | libhttp/ssl.h \ | |
bdd01e84 MG |
74 | libhttp/url.h \ |
75 | config.h | |
7460295f MG |
76 | libhttp_la_SOURCES = libhttp/hashmap.c \ |
77 | libhttp/trie.c \ | |
78 | libhttp/httpconnection.c \ | |
79 | libhttp/server.c \ | |
80 | libhttp/ssl.c \ | |
81 | libhttp/url.c \ | |
82 | $(LIBHTTP_INCLUDES) \ | |
83 | libhttp/libhttp.sym | |
84 | libhttp_la_LDFLAGS = -export-symbols $(top_srcdir)/libhttp/libhttp.sym \ | |
29135474 | 85 | -version 1:0:0 |
7460295f MG |
86 | |
87 | shellinaboxd_SOURCES = shellinabox/shellinaboxd.c \ | |
88 | shellinabox/externalfile.c \ | |
89 | shellinabox/externalfile.h \ | |
90 | shellinabox/launcher.c \ | |
91 | shellinabox/launcher.h \ | |
92 | shellinabox/privileges.c \ | |
93 | shellinabox/privileges.h \ | |
94 | shellinabox/service.c \ | |
95 | shellinabox/service.h \ | |
96 | shellinabox/session.c \ | |
97 | shellinabox/session.h \ | |
ecbff9b9 MG |
98 | shellinabox/usercss.c \ |
99 | shellinabox/usercss.h \ | |
d1edcc0e | 100 | shellinabox/cgi_root.html \ |
7460295f | 101 | shellinabox/root_page.html \ |
c27d0db9 MG |
102 | shellinabox/vt100.jspp \ |
103 | shellinabox/shell_in_a_box.jspp \ | |
7460295f | 104 | shellinabox/styles.css \ |
db50e572 | 105 | shellinabox/print-styles.css \ |
08db8657 | 106 | shellinabox/enabled.gif \ |
7460295f | 107 | shellinabox/favicon.ico \ |
c73698b6 MG |
108 | shellinabox/keyboard.png \ |
109 | shellinabox/keyboard-layout.html \ | |
bdd01e84 MG |
110 | shellinabox/beep.wav \ |
111 | config.h | |
f392ab39 MG |
112 | BUILT_SOURCES = shellinabox/beep.h \ |
113 | shellinabox/cgi_root.h \ | |
114 | shellinabox/enabled.h \ | |
115 | shellinabox/favicon.h \ | |
116 | shellinabox/keyboard.h \ | |
117 | shellinabox/keyboard-layout.h \ | |
118 | shellinabox/print-styles.h \ | |
119 | shellinabox/root_page.h \ | |
120 | shellinabox/shell_in_a_box.h \ | |
121 | shellinabox/shell_in_a_box.js \ | |
122 | shellinabox/styles.h \ | |
123 | shellinabox/vt100.h \ | |
124 | shellinabox/vt100.js | |
125 | ||
126 | ||
7460295f MG |
127 | shellinaboxd_LDADD = liblogging.la \ |
128 | libhttp.la | |
29135474 | 129 | shellinaboxd_LDFLAGS = -static |
7460295f | 130 | |
f392ab39 MG |
131 | symbolname = \ |
132 | sed -e 's/.*\/\([^.]*\)[.].*/\1/' \ | |
1a29881f | 133 | -e 't0' \ |
f392ab39 | 134 | -e 's/\([^.]*\)[.].*/\1/' \ |
1a29881f | 135 | -e ':0' \ |
f392ab39 | 136 | -e 's/$$/ aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ/' \ |
1a29881f | 137 | -e ':1' \ |
f392ab39 | 138 | -e 's/\([^-_]*\)[-_]\([a-z]\)\([^ ]* .*\2\)\(.\)/\1\4\3\4/' \ |
1a29881f MG |
139 | -e 't1' \ |
140 | -e 's/.\{53\}$$//' \ | |
f392ab39 | 141 | -e 's/[-/.]/_/g' |
1a29881f | 142 | |
7460295f MG |
143 | libtool: $(LIBTOOL_DEPS) |
144 | $(SHELL) ./config.status --recheck | |
145 | ||
5d21b406 MG |
146 | |
147 | ${top_srcdir}/demo/demo.js: ${top_srcdir}/demo/beep.wav \ | |
148 | ${top_srcdir}/demo/demo.jspp \ | |
c73698b6 | 149 | ${top_srcdir}/demo/enabled.gif \ |
5d21b406 | 150 | ${top_srcdir}/demo/favicon.ico \ |
23b9f25a | 151 | ${top_srcdir}/demo/keyboard.html \ |
c73698b6 | 152 | ${top_srcdir}/demo/keyboard.png \ |
5d21b406 | 153 | ${top_srcdir}/demo/styles.css \ |
db50e572 | 154 | ${top_srcdir}/demo/print-styles.css \ |
08db8657 MG |
155 | ${top_srcdir}/demo/vt100.js \ |
156 | ${top_srcdir}/demo/usercss-0.css \ | |
157 | ${top_srcdir}/demo/usercss-1.css \ | |
158 | ${top_srcdir}/demo/usercss-2.css \ | |
159 | ${top_srcdir}/demo/usercss-3.css | |
5d21b406 MG |
160 | |
161 | ${top_srcdir}/demo/beep.wav: ${top_srcdir}/shellinabox/beep.wav | |
162 | @rm -f "$@" | |
dac74dcd | 163 | ln "$?" "$@" |
5d21b406 | 164 | |
08db8657 MG |
165 | ${top_srcdir}/demo/enabled.gif: ${top_srcdir}/shellinabox/enabled.gif |
166 | @rm -f "$@" | |
dac74dcd | 167 | ln "$?" "$@" |
08db8657 | 168 | |
5d21b406 MG |
169 | ${top_srcdir}/demo/favicon.ico: ${top_srcdir}/shellinabox/favicon.ico |
170 | @rm -f "$@" | |
dac74dcd | 171 | ln "$?" "$@" |
5d21b406 | 172 | |
23b9f25a MG |
173 | ${top_srcdir}/demo/keyboard.html: ${top_srcdir}/shellinabox/keyboard-layout.html |
174 | @rm -f "$@" | |
175 | ln "$?" "$@" | |
176 | ||
c73698b6 MG |
177 | ${top_srcdir}/demo/keyboard.png: ${top_srcdir}/shellinabox/keyboard.png |
178 | @rm -f "$@" | |
179 | ln "$?" "$@" | |
180 | ||
5d21b406 MG |
181 | ${top_srcdir}/demo/styles.css: ${top_srcdir}/shellinabox/styles.css |
182 | @rm -f "$@" | |
dac74dcd | 183 | sed -e '/\[if DEFINES_COLORS\]/,/\[endif DEFINES_COLORS\]/d' "$?" >"$@" |
5d21b406 | 184 | |
db50e572 MG |
185 | ${top_srcdir}/demo/print-styles.css: ${top_srcdir}/shellinabox/print-styles.css |
186 | @rm -f "$@" | |
dac74dcd | 187 | ln "$?" "$@" |
db50e572 | 188 | |
08db8657 MG |
189 | ${top_srcdir}/demo/usercss-0.css: ${top_srcdir}/shellinabox/white-on-black.css |
190 | @rm -f "$@" | |
dac74dcd | 191 | ln "$?" "$@" |
08db8657 MG |
192 | |
193 | ${top_srcdir}/demo/usercss-1.css: ${top_srcdir}/shellinabox/black-on-white.css | |
194 | @rm -f "$@" | |
dac74dcd | 195 | ln "$?" "$@" |
08db8657 MG |
196 | |
197 | ${top_srcdir}/demo/usercss-2.css: ${top_srcdir}/shellinabox/monochrome.css | |
198 | @rm -f "$@" | |
dac74dcd | 199 | ln "$?" "$@" |
08db8657 MG |
200 | |
201 | ${top_srcdir}/demo/usercss-3.css: ${top_srcdir}/shellinabox/color.css | |
202 | @rm -f "$@" | |
dac74dcd | 203 | ln "$?" "$@" |
08db8657 | 204 | |
5d21b406 MG |
205 | ${top_srcdir}/demo/vt100.js: ${top_srcdir}/shellinabox/vt100.js |
206 | @rm -f "$@" | |
dac74dcd | 207 | ln "$?" "$@" |
5d21b406 | 208 | |
c73698b6 MG |
209 | shellinaboxd.1: ${top_srcdir}/shellinabox/shellinaboxd.man.in \ |
210 | ${top_srcdir}/config.h | |
29135474 MG |
211 | @src="${top_srcdir}/shellinabox/shellinaboxd.man.in"; \ |
212 | echo preprocess "$$src" '>'"$@"; \ | |
2eb60237 MG |
213 | if sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h | \ |
214 | grep 'HAVE_BIN_LOGIN' >/dev/null 2>&1; then \ | |
215 | sed -e '/^#ifndef *HAVE_BIN_LOGIN$$/,/^#endif$$/d' "$$src"; \ | |
216 | else \ | |
217 | sed -e '/^#ifdef *HAVE_BIN_LOGIN$$/,/^#endif$$/d' "$$src"; \ | |
218 | fi | \ | |
c27d0db9 | 219 | if [ `sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h | \ |
bf1ec4d2 MG |
220 | egrep 'HAVE_OPENSSL_BIO_H|HAVE_OPENSSL_ERR_H|HAVE_OPENSSL_SSL_H'|\ |
221 | wc -l` -eq 3 ]; then \ | |
2eb60237 | 222 | sed -e '/^#ifndef *HAVE_OPENSSL$$/,/^#endif$$/d'; \ |
29135474 | 223 | else \ |
2eb60237 | 224 | sed -e '/^#ifdef *HAVE_OPENSSL$$/,/^#endif$$/d'; \ |
2809cd15 | 225 | fi | \ |
c27d0db9 | 226 | if sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h | \ |
bf1ec4d2 | 227 | grep 'HAVE_SECURITY_PAM_APPL_H' >/dev/null 2>&1; then \ |
2809cd15 | 228 | sed -e '/^#ifndef *HAVE_PAM$$/,/^#endif$$/d'; \ |
bf1ec4d2 | 229 | else \ |
2809cd15 MG |
230 | sed -e '/^#ifdef *HAVE_PAM$$/,/^#endif$$/d'; \ |
231 | fi | \ | |
1f771613 MG |
232 | if [ -n "${DPKGBUILD}" ]; then \ |
233 | sed -e '/^#ifndef *DPKGBUILD$$/,/^#endif$$/d'; \ | |
234 | else \ | |
235 | sed -e '/^#ifdef *DPKGBUILD$$/,/^#endif$$/d'; \ | |
236 | fi | \ | |
2809cd15 | 237 | sed -e '/^#/d' >"$@" |
bf1ec4d2 MG |
238 | @out=`echo "$@" 2>/dev/null|sed -e 's/\.[^.]*$$/.ps/'`; \ |
239 | man -Tps "./$@" >"$${out}" 2>/dev/null || rm -f "$${out}" | |
7460295f MG |
240 | |
241 | clean-local: | |
242 | -rm -rf shellinaboxd.1 \ | |
2837d5e3 | 243 | shellinaboxd.ps |
7460295f | 244 | -rm -rf debian/shellinabox \ |
2837d5e3 | 245 | debian/shellinabox*.debhelper* \ |
7460295f | 246 | debian/shellinabox.substvars \ |
2837d5e3 | 247 | debian/tmp |
f392ab39 MG |
248 | -rm -rf shellinabox/beep.h \ |
249 | shellinabox/cgi_root.h \ | |
250 | shellinabox/enabled.h \ | |
251 | shellinabox/favicon.h \ | |
252 | shellinabox/keyboard.h \ | |
253 | shellinabox/keyboard-layout.h \ | |
254 | shellinabox/print-styles.h \ | |
255 | shellinabox/root_page.h \ | |
256 | shellinabox/shell_in_a_box.h \ | |
257 | shellinabox/styles.h \ | |
258 | shellinabox/vt100.h | |
259 | ||
260 | .css.h: | |
261 | @echo od "$<" '>'"$@" | |
262 | @mkdir -p "`dirname "$@"`" | |
263 | @{ sym="`echo "$<" | $(symbolname)`"; \ | |
4aec9144 MG |
264 | echo "static const char $${sym}Start[] ="; \ |
265 | od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/ */\\/g'; \ | |
f392ab39 | 266 | echo ';'; \ |
4aec9144 MG |
267 | echo "static const int $${sym}Size ATTR_UNUSED =" \ |
268 | "(int)sizeof($${sym}Start);"; \ | |
f392ab39 MG |
269 | } >"$@" |
270 | ||
271 | .gif.h: | |
272 | @echo od "$<" '>'"$@" | |
273 | @mkdir -p "`dirname "$@"`" | |
274 | @{ sym="`echo "$<" | $(symbolname)`"; \ | |
4aec9144 MG |
275 | echo "static const char $${sym}Start[] ="; \ |
276 | od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/ */\\/g'; \ | |
f392ab39 | 277 | echo ';'; \ |
4aec9144 MG |
278 | echo "static const int $${sym}Size ATTR_UNUSED =" \ |
279 | "(int)sizeof($${sym}Start);"; \ | |
f392ab39 MG |
280 | } >"$@" |
281 | ||
282 | .png.h: | |
283 | @echo od "$<" '>'"$@" | |
284 | @mkdir -p "`dirname "$@"`" | |
285 | @{ sym="`echo "$<" | $(symbolname)`"; \ | |
4aec9144 MG |
286 | echo "static const char $${sym}Start[] ="; \ |
287 | od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/ */\\/g'; \ | |
f392ab39 | 288 | echo ';'; \ |
4aec9144 MG |
289 | echo "static const int $${sym}Size ATTR_UNUSED =" \ |
290 | "(int)sizeof($${sym}Start);"; \ | |
f392ab39 MG |
291 | } >"$@" |
292 | ||
293 | .html.h: | |
294 | @echo od "$<" '>'"$@" | |
295 | @mkdir -p "`dirname "$@"`" | |
296 | @{ sym="`echo "$<" | $(symbolname)`"; \ | |
4aec9144 MG |
297 | echo "static const char $${sym}Start[] ="; \ |
298 | od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/ */\\/g'; \ | |
f392ab39 | 299 | echo ';'; \ |
4aec9144 MG |
300 | echo "static const int $${sym}Size ATTR_UNUSED =" \ |
301 | "(int)sizeof($${sym}Start);"; \ | |
f392ab39 MG |
302 | } >"$@" |
303 | ||
304 | ||
305 | .ico.h: | |
306 | @echo od "$<" '>'"$@" | |
307 | @mkdir -p "`dirname "$@"`" | |
308 | @{ sym="`echo "$<" | $(symbolname)`"; \ | |
4aec9144 MG |
309 | echo "static const char $${sym}Start[] ="; \ |
310 | od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/ */\\/g'; \ | |
f392ab39 | 311 | echo ';'; \ |
4aec9144 MG |
312 | echo "static const int $${sym}Size ATTR_UNUSED =" \ |
313 | "(int)sizeof($${sym}Start);"; \ | |
f392ab39 | 314 | } >"$@" |
3b5fc7f9 | 315 | |
c27d0db9 | 316 | .jspp.js: |
572ac014 | 317 | @echo preprocess "$<" "$@" |
f392ab39 | 318 | @mkdir -p "`dirname "$@"`" |
c73698b6 | 319 | sed -e "`sed -e 's/^#define *\([^ ]*\) *\(.*\)/\/^[^#]\/s\/\1\/\2 \\\\\/* \1 *\\\\\/\/g/' \ |
29135474 MG |
320 | -e t \ |
321 | -e d "$<"`" \ | |
322 | -e "s/^#/\/\/ #/" \ | |
fe338aa8 | 323 | -e "s/VERSION/\"@VERSION@ (revision @VCS_REVISION@)\"/g" \ |
1a29881f | 324 | "$<" >"$@" |
c27d0db9 | 325 | |
f392ab39 MG |
326 | .js.h: |
327 | @echo od "$<" '>'"$@" | |
328 | @mkdir -p "`dirname "$@"`" | |
329 | @{ sym="`echo "$<" | $(symbolname)`"; \ | |
4aec9144 MG |
330 | echo "static const char $${sym}Start[] ="; \ |
331 | od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/ */\\/g'; \ | |
f392ab39 | 332 | echo ';'; \ |
4aec9144 MG |
333 | echo "static const int $${sym}Size ATTR_UNUSED =" \ |
334 | "(int)sizeof($${sym}Start);"; \ | |
f392ab39 MG |
335 | } >"$@" |
336 | ||
337 | ||
338 | .wav.h: | |
339 | @echo od "$<" '>'"$@" | |
340 | @mkdir -p "`dirname "$@"`" | |
341 | @{ sym="`echo "$<" | $(symbolname)`"; \ | |
4aec9144 MG |
342 | echo "static const char $${sym}Start[] ="; \ |
343 | od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/ */\\/g'; \ | |
f392ab39 | 344 | echo ';'; \ |
4aec9144 MG |
345 | echo "static const int $${sym}Size ATTR_UNUSED =" \ |
346 | "(int)sizeof($${sym}Start);"; \ | |
f392ab39 | 347 | } >"$@" |
7460295f | 348 |