-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
459 lines (388 loc) · 14.8 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
#
# This file is generated automatically. Do not edit.
# Your changes will be lost. See sys/unix/NewInstall.unx.
# Identify this file:
MAKEFILE_TOP=1
###
### Start hints/linux PRE
###
# (new segment at source line 6 )
# Linux hints file
# This hints file provides a single-user tty build for Linux, specifically
# for Ubuntu dapper.
#PREFIX=/usr
PREFIX=$(wildcard ~)/nh
GAMEDIR=$(wildcard ~)/nh
HACKDIR=$(PREFIX)/$(GAME)-data
SHELLDIR = $(PREFIX)/games
INSTDIR=$(HACKDIR)
VARDIR = $(HACKDIR)
POSTINSTALL=cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INSTDIR)/sysconf; $(CHGRP) $(GAMEGRP) $(INSTDIR)/sysconf; chmod $(VARFILEPERM) $(INSTDIR)/sysconf;
CFLAGS=-g -O -I../include -DNOTPARMDECL
CFLAGS+=-DDLB
CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
CFLAGS+=-DTIMED_DELAY
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
CFLAGS+=-DDUMPLOG
CFLAGS+=-DCONFIG_ERROR_SECURE=FALSE
CFLAGS+=-DCURSES_GRAPHICS
#CFLAGS+=-DEXTRA_SANITY_CHECKS
#CFLAGS+=-DEDIT_GETLIN
#CFLAGS+=-DSCORE_ON_BOTL
#CFLAGS+=-DMSGHANDLER
#CFLAGS+=-DTTY_TILES_ESCCODES
LINK=$(CC)
# Only needed for GLIBC stack trace:
LFLAGS=-rdynamic
WINSRC = $(WINTTYSRC) $(WINCURSESSRC)
WINOBJ = $(WINTTYOBJ) $(WINCURSESOBJ)
WINLIB = $(WINTTYLIB) $(WINCURSESLIB)
# if TTY_TILES_ESCCODES
#WINSRC += tile.c
#WINOBJ += tile.o
WINTTYLIB=-lncurses -ltinfo
CHOWN=true
CHGRP=true
VARDIRPERM = 0755
VARFILEPERM = 0600
GAMEPERM = 0755
### End hints/linux PRE
###
### Start Makefile.top
###
# NetHack Top-level Makefile.
# NetHack 3.6 Makefile.top $NHDT-Date: 1524689449 2018/04/25 20:50:49 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.36 $
# Copyright (c) 2015 by Kenneth Lorber, Kensington, Maryland
# NetHack may be freely redistributed. See license for details.
# Root of source tree:
NHSROOT=.
# newer makes predefine $(MAKE) to 'make' and do smarter processing of
# recursive make calls if $(MAKE) is used
# these makes allow $(MAKE) to be overridden by the environment if someone
# wants to (or has to) use something other than the standard make, so we do
# not want to unconditionally set $(MAKE) here
#
# unfortunately, some older makes do not predefine $(MAKE); if you have one of
# these, uncomment the following line
# (you will know that you have one if you get complaints about unable to
# execute things like 'data' and 'rumors')
# MAKE = make
# make NetHack
#PREFIX = /usr
GAME = vulture-nethack-3.6.7
# GAME = nethack.prg
#GAMEUID = games
#GAMEGRP = bin
# Permissions - some places use setgid instead of setuid, for instance
# See also the option "SECURE" in include/config.h
#GAMEPERM = 04755
FILEPERM = 0644
# VARFILEPERM = 0644
EXEPERM = 0755
DIRPERM = 0755
# VARDIRPERM = 0755
# VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else HACKDIR
#
# note that 'make install' believes in creating a nice tidy HACKDIR for
# installation, free of debris from previous NetHack versions --
# therefore there should not be anything in HACKDIR that you want to keep
# (if there is, you'll have to do the installation by hand or modify the
# instructions)
#HACKDIR = $(PREFIX)/games/lib/$(GAME)dir
#VARDIR = $(HACKDIR)
# Where nethack.sh in installed. If this is not defined, the wrapper is not used.
#SHELLDIR = $(PREFIX)/games
# per discussion in Install.X11 and Install.Qt
#VARDATND =
# VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xbm
# VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xbm rip.xpm
# for Atari/Gem
# VARDATND = nh16.img title.img GEM_RSC.RSC rip.img
# for BeOS
# VARDATND = beostiles
# for Gnome
# VARDATND = x11tiles pet_mark.xbm pilemark.xbm rip.xpm mapbg.xpm
VARDATD = bogusmon data engrave epitaph oracles options quest.dat rumors
VARDAT = $(VARDATD) $(VARDATND)
# Some versions of make use the SHELL environment variable as the shell
# for running commands. We need this to be a Bourne shell.
# SHELL = /bin/sh
# for Atari
# SHELL=E:/GEMINI2/MUPFEL.TTP
# Commands for setting the owner and group on files during installation.
# Some systems fail with one or the other when installing over NFS or for
# other permission-related reasons. If that happens, you may want to set the
# command to "true", which is a no-op. Note that disabling chown or chgrp
# will only work if setuid (or setgid) behavior is not desired or required.
#CHOWN = chown
#CHGRP = chgrp
# -----------------------------------------------
# Extra configuration for NetHack - Vulture's Eye
# -----------------------------------------------
# Vulture's Eye directories. These also appear in jtp_win.h as
# defines JTP_MAIN_DIRECTORY, JTP_DATA_DIRECTORY,
# JTP_GRAPHICS_DIRECTORY and JTP_SOUND_DIRECTORY and JTP_MUSIC_DIRECTORY
# and JTP_MOVIE_DIRECTORY.
# They are assumed to be subdirectories of the main game directory.
JTPMAINDIR = $(GAMEDIR)
JTPDATADIR = $(GAMEDIR)/config
JTPTILESDIR = $(GAMEDIR)/tiles
JTPGRAPHICSDIR = $(GAMEDIR)/graphics
JTPSOUNDDIR = $(GAMEDIR)/sound
JTPMUSICDIR = $(GAMEDIR)/music
JTPMOVIEDIR = $(GAMEDIR)/movie
JTPFONTSDIR = $(GAMEDIR)/fonts
JTPMAPDIR = $(GAMEDIR)/map
JTPMAPDIRS = $(JTPMAPDIR)/ascii $(JTPMAPDIR)/vulture
JTPMANUALDIR = $(GAMEDIR)/manual
JTPMANUALIMGDIR = $(GAMEDIR)/manual/img
#
# end of configuration
#
DATHELP = help hh cmdhelp keyhelp history opthelp wizhelp
SPEC_LEVS = asmodeus.lev baalz.lev bigrm-*.lev castle.lev fakewiz?.lev \
juiblex.lev knox.lev medusa-?.lev minend-?.lev minefill.lev \
minetn-?.lev oracle.lev orcus.lev sanctum.lev soko?-?.lev \
tower?.lev valley.lev wizard?.lev \
astral.lev air.lev earth.lev fire.lev water.lev
QUEST_LEVS = ???-goal.lev ???-fil?.lev ???-loca.lev ???-strt.lev
DATNODLB = $(VARDATND) license symbols
DATDLB = $(DATHELP) dungeon tribute $(SPEC_LEVS) $(QUEST_LEVS) $(VARDATD)
DAT = $(DATNODLB) $(DATDLB)
JTPMAINFILES = defaults.nh
JTPDATAFILES = vulture_intro.txt vulture.conf vulture_sounds.conf vulture_tiles.conf
JTPGRAPHICSFILES = *.png
JTPTILEFILES = *.png
JTPSOUNDFILES = *.ogg
JTPFONTFILES = *.ttf
JTPMUSICFILES = *.ogg *.xm
JTPMOVIEFILES = *.ogv
JTPMANUALFILES = *.html *.css
JTPMANUALIMGFILES = *.jpg *.png
$(GAME):
( cd src ; $(MAKE) )
all: $(GAME) recover Guidebook $(VARDAT) dungeon spec_levs check-dlb
true; $(MOREALL)
@echo "Done."
# Note: many of the dependencies below are here to allow parallel make
# to generate valid output
Guidebook:
( cd doc ; $(MAKE) Guidebook )
manpages:
( cd doc ; $(MAKE) manpages )
data: $(GAME)
( cd dat ; $(MAKE) data )
engrave: $(GAME)
( cd dat ; $(MAKE) engrave )
bogusmon: $(GAME)
( cd dat ; $(MAKE) bogusmon )
epitaph: $(GAME)
( cd dat ; $(MAKE) epitaph )
rumors: $(GAME)
( cd dat ; $(MAKE) rumors )
oracles: $(GAME)
( cd dat ; $(MAKE) oracles )
# Note: options should have already been made with make, but...
options: $(GAME)
( cd dat ; $(MAKE) options )
quest.dat: $(GAME)
( cd dat ; $(MAKE) quest.dat )
spec_levs: dungeon
( cd util ; $(MAKE) lev_comp )
( cd dat ; $(MAKE) spec_levs )
( cd dat ; $(MAKE) quest_levs )
dungeon: $(GAME)
( cd util ; $(MAKE) dgn_comp )
( cd dat ; $(MAKE) dungeon )
nhtiles.bmp: $(GAME)
( cd dat ; $(MAKE) nhtiles.bmp )
x11tiles: $(GAME)
( cd util ; $(MAKE) tile2x11 )
( cd dat ; $(MAKE) x11tiles )
beostiles: $(GAME)
( cd util ; $(MAKE) tile2beos )
( cd dat ; $(MAKE) beostiles )
NetHack.ad: $(GAME)
( cd dat ; $(MAKE) NetHack.ad )
pet_mark.xbm:
( cd dat ; $(MAKE) pet_mark.xbm )
pilemark.xbm:
( cd dat ; $(MAKE) pilemark.xbm )
rip.xpm:
( cd dat ; $(MAKE) rip.xpm )
mapbg.xpm:
(cd dat ; $(MAKE) mapbg.xpm )
nhsplash.xpm:
( cd dat ; $(MAKE) nhsplash.xpm )
nh16.img: $(GAME)
( cd util ; $(MAKE) tile2img.ttp )
( cd dat ; $(MAKE) nh16.img )
rip.img:
( cd util ; $(MAKE) xpm2img.ttp )
( cd dat ; $(MAKE) rip.img )
GEM_RSC.RSC:
( cd dat ; $(MAKE) GEM_RSC.RSC )
title.img:
( cd dat ; $(MAKE) title.img )
check-dlb: options
@if egrep -s librarian dat/options ; then $(MAKE) dlb ; else true ; fi
dlb:
( cd util ; $(MAKE) dlb )
( cd dat ; LC_ALL=C ; ../util/dlb cf nhdat $(DATDLB) )
# recover can be used when INSURANCE is defined in include/config.h
# and the checkpoint option is true
recover: $(GAME)
( cd util ; $(MAKE) recover )
dofiles:
target=`sed -n \
-e '/librarian/{' \
-e 's/.*/dlb/p' \
-e 'q' \
-e '}' \
-e '$$s/.*/nodlb/p' < dat/options` ; \
$(MAKE) dofiles-$${target-nodlb}
(cd dat ; cp symbols $(INSTDIR) )
$(MAKE) dofiles-jtp
cp src/$(GAME) $(INSTDIR)
cp util/recover $(INSTDIR)
-if test -n '$(SHELLDIR)'; then rm -f $(SHELLDIR)/$(GAME); fi
if test -n '$(SHELLDIR)'; then \
sed -e 's;/usr/games/lib/nethackdir;$(HACKDIR);' \
-e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \
< sys/unix/nethack.sh \
> $(SHELLDIR)/$(GAME) ; fi
# set up their permissions
-( cd $(INSTDIR) ; $(CHOWN) $(GAMEUID) $(GAME) recover ; \
$(CHGRP) $(GAMEGRP) $(GAME) recover )
chmod $(GAMEPERM) $(INSTDIR)/$(GAME)
chmod $(EXEPERM) $(INSTDIR)/recover
-if test -n '$(SHELLDIR)'; then \
$(CHOWN) $(GAMEUID) $(SHELLDIR)/$(GAME); fi
if test -n '$(SHELLDIR)'; then \
$(CHGRP) $(GAMEGRP) $(SHELLDIR)/$(GAME); \
chmod $(EXEPERM) $(SHELLDIR)/$(GAME); fi
dofiles-dlb: check-dlb
( cd dat ; cp nhdat $(DATNODLB) $(INSTDIR) )
# set up their permissions
-( cd $(INSTDIR) ; $(CHOWN) $(GAMEUID) nhdat $(DATNODLB) ; \
$(CHGRP) $(GAMEGRP) nhdat $(DATNODLB) ; \
chmod $(FILEPERM) nhdat $(DATNODLB) )
dofiles-nodlb:
# copy over the game files
( cd dat ; cp $(DAT) $(INSTDIR) )
# set up their permissions
-( cd $(INSTDIR) ; $(CHOWN) $(GAMEUID) $(DAT) ; \
$(CHGRP) $(GAMEGRP) $(DAT) ; \
chmod $(FILEPERM) $(DAT) )
dofiles-jtp:
# create the Vulture's Eye directories and set up their permissions
# not all mkdirs have -p; those that don't will create a -p directory
-mkdir -p $(JTPMAINDIR) $(JTPDATADIR) $(JTPGRAPHICSDIR) $(JTPSOUNDDIR) $(JTPMUSICDIR) $(JTPMOVIEDIR) $(JTPMAPDIRS) $(JTPFONTSDIR) $(JTPMANUALDIR) $(JTPMANUALIMGDIR) $(JTPTILESDIR)
-rmdir ./-p 2>/dev/null || true
-$(CHOWN) $(GAMEUID) $(JTPMAINDIR) $(JTPDATADIR) $(JTPGRAPHICSDIR) $(JTPSOUNDDIR) $(JTPMUSICDIR) $(JTPMOVIEDIR) $(JTPMAPDIRS) $(JTPFONTSDIR) $(JTPMANUALDIR) $(JTPMANUALIMGDIR $(JTPTILESDIR))
$(CHGRP) $(GAMEGRP) $(JTPMAINDIR) $(JTPDATADIR) $(JTPGRAPHICSDIR) $(JTPSOUNDDIR) $(JTPMUSICDIR) $(JTPMOVIEDIR) $(JTPMAPDIRS) $(JTPFONTSDIR) $(JTPMANUALDIR) $(JTPMANUALIMGDIR) $(JTPTILESDIR)
chmod $(DIRPERM) $(JTPMAINDIR) $(JTPDATADIR) $(JTPGRAPHICSDIR) $(JTPSOUNDDIR) $(JTPMUSICDIR) $(JTPMOVIEDIR) $(JTPMAPDIRS) $(JTPFONTSDIR) $(JTPMANUALDIR) $(JTPMANUALIMGDIR) $(JTPTILESDIR)
# copy over the Vulture's Eye files
( cd win/vulture/gamedata; cp $(JTPMAINFILES) $(JTPMAINDIR) ; \
cd config; cp $(JTPDATAFILES) $(JTPDATADIR) ; \
cd ../tiles; cp $(JTPTILEFILES) $(JTPTILESDIR) ; \
cd ../graphics; cp $(JTPGRAPHICSFILES) $(JTPGRAPHICSDIR) ; \
cd ../manual; cp $(JTPMANUALFILES) $(JTPMANUALDIR) ; \
cd img; cp $(JTPMANUALIMGFILES) $(JTPMANUALIMGDIR) ; cd .. ; \
cd ../fonts; cp $(JTPFONTFILES) $(JTPFONTSDIR) )
-(rm -f $(JTPMAINDIR)/se_*)
-(rm -f $(JTPGRAPHICSDIR)/se_*)
-( cd win/vulture/gamedata/sound; cp $(JTPSOUNDFILES) $(JTPSOUNDDIR) )
-( cd win/vulture/gamedata/music; cp $(JTPMUSICFILES) $(JTPMUSICDIR) )
-( cd win/vulture/gamedata/movie; cp $(JTPMOVIEFILES) $(JTPMOVIEDIR) )
-( cd win/vulture/gamedata/map; cp ascii/nethack_3_6_7.png $(JTPMAPDIR)/ascii )
-( cd win/vulture/gamedata/map; cp vulture/nethack_3_6_7.png $(JTPMAPDIR)/vulture )
# set up their permissions
-( cd $(JTPMAINDIR) ; $(CHOWN) $(GAMEUID) $(JTPMAINFILES) ; \
$(CHGRP) $(GAMEGRP) $(JTPMAINFILES) ; \
chmod $(FILEPERM) $(JTPMAINFILES) ; \
cd $(JTPDATADIR) ; $(CHOWN) $(GAMEUID) $(JTPDATAFILES) ; \
$(CHGRP) $(GAMEGRP) $(JTPDATAFILES) ; \
chmod $(FILEPERM) $(JTPDATAFILES) ; \
cd $(JTPTILESDIR) ; $(CHOWN) $(GAMEUID) $(JTPTILEFILES) ; \
$(CHGRP) $(GAMEGRP) $(JTPTILEFILES) ; \
chmod $(FILEPERM) $(JTPTILEFILES) ; \
cd $(JTPGRAPHICSDIR) ; $(CHOWN) $(GAMEUID) $(JTPGRAPHICSFILES) ; \
$(CHGRP) $(GAMEGRP) $(JTPGRAPHICSFILES) ; \
chmod $(FILEPERM) $(JTPGRAPHICSFILES) ; \
cd $(JTPSOUNDDIR) ; $(CHOWN) $(GAMEUID) $(JTPSOUNDFILES) ; \
cd $(JTPMUSICDIR) ; $(CHOWN) $(GAMEUID) $(JTPMUSICFILES) ; \
cd $(JTPMOVIEDIR) ; $(CHOWN) $(GAMEUID) $(JTPMOVIEFILES) ; \
cd $(JTPMAPIR) ; $(CHOWN) $(GAMEUID) $(JTPMAPFILES) ; \
cd $(JTPSOUNDDIR) ; $(CHGRP) $(GAMEGRP) $(JTPSOUNDFILES) ; \
chmod $(FILEPERM) $(JTPSOUNDFILES) ; \
cd $(JTPFONTSDIR) ; $(CHOWN) $(GAMEUID) $(JTPFONTFILES); \
$(CHGRP) $(GAMEGRP) $(JTPFONTFILES) ; \
chmod $(FILEPERM) $(JTPFONTFILES) ; \
cd $(JTPMANUALDIR) ; $(CHOWN) $(GAMEUID) $(JTPMANUALFILES) ; \
$(CHGRP) $(GAMEGRP) $(JTPMANUALFILES) ; \
chmod $(FILEPERM) $(JTPMANUALFILES) ; \
cd $(JTPMANUALIMGDIR) ; $(CHOWN) $(GAMEUID) $(JTPMANUALIMGFILES) ; \
$(CHGRP) $(GAMEGRP) $(JTPMANUALIMGFILES) ; \
chmod $(FILEPERM) $(JTPMANUALIMGFILES) )
update: $(GAME) recover $(VARDAT) dungeon spec_levs
# (don't yank the old version out from under people who're playing it)
-mv $(INSTDIR)/$(GAME) $(INSTDIR)/$(GAME).old
# quest.dat is also kept open and has the same problems over NFS
# (quest.dat may be inside nhdat if dlb is in use)
-mv $(INSTDIR)/quest.dat $(INSTDIR)/quest.dat.old
-mv $(INSTDIR)/nhdat $(INSTDIR)/nhdat.old
# set up new versions of the game files
( $(MAKE) dofiles )
# touch time-sensitive files
-touch -c $(VARDIR)/bones* $(VARDIR)/?lock* $(VARDIR)/wizard*
-touch -c $(VARDIR)/save/*
touch $(VARDIR)/perm $(VARDIR)/record
# and a reminder
@echo You may also want to install the man pages via the doc Makefile.
rootcheck:
@true; $(ROOTCHECK)
install: rootcheck $(GAME) recover $(VARDAT) dungeon spec_levs
true; $(PREINSTALL)
# set up the directories
# not all mkdirs have -p; those that don't will create a -p directory
-if test -n '$(SHELLDIR)'; then \
mkdir -p $(SHELLDIR); fi
rm -rf $(INSTDIR) $(VARDIR)
-mkdir -p $(INSTDIR) $(VARDIR) $(VARDIR)/save
if test -d ./-p; then rmdir ./-p; fi
-$(CHOWN) $(GAMEUID) $(INSTDIR) $(VARDIR) $(VARDIR)/save
$(CHGRP) $(GAMEGRP) $(INSTDIR) $(VARDIR) $(VARDIR)/save
# order counts here:
chmod $(DIRPERM) $(INSTDIR)
chmod $(VARDIRPERM) $(VARDIR) $(VARDIR)/save
# set up the game files
( $(MAKE) dofiles )
# set up some additional files
touch $(VARDIR)/perm $(VARDIR)/record $(VARDIR)/logfile $(VARDIR)/xlogfile
-( cd $(VARDIR) ; $(CHOWN) $(GAMEUID) perm record logfile xlogfile ; \
$(CHGRP) $(GAMEGRP) perm record logfile xlogfile ; \
chmod $(VARFILEPERM) perm record logfile xlogfile )
true; $(POSTINSTALL)
# and a reminder
@echo You may also want to reinstall the man pages via the doc Makefile.
# 'make clean' removes all the .o files, but leaves around all the executables
# and compiled data files
clean:
( cd src ; $(MAKE) clean )
( cd util ; $(MAKE) clean )
( cd dat ; $(MAKE) clean )
( cd doc ; $(MAKE) clean )
# 'make spotless' returns the source tree to near-distribution condition.
# it removes .o files, executables, and compiled data files
spotless::
( cd src ; $(MAKE) spotless )
( cd util ; $(MAKE) spotless )
( cd dat ; $(MAKE) spotless )
( cd doc ; $(MAKE) spotless )
### End Makefile.top
###
### Start hints/linux POST
###
### End hints/linux POST