linux-qubasis

linux oasis port as a qubes template

git clone https://9o.is/git/linux-qubasis.git

gen.sh

(1836B)


      1 curl http://b0llix.net/perp/distfiles/perp-2.07.tar.gz \
      2 	1222fe31c16014d8b2a78416f93ba9f8c31eddbc381adc9021fa5d9764475815
      3 
      4 cflags "
      5 	-std=c99
      6 	-D_GNU_SOURCE
      7 	-DTINYLOG_ZIP=\\\"/bin/gzip\\\"
      8 	-DZIP_EXT=\\\".gz\\\"
      9 	-I$srcdir/lasagna
     10 	-I$outdir
     11 	-Wno-implicit-fallthrough
     12 	-Wno-implicit-function-declaration
     13 	-Wno-pointer-arith
     14 	-Wno-array-parameter
     15 	-Wno-unused-but-set-variable
     16 	-Wno-enum-conversion
     17 	-Wno-misleading-indentation
     18 "
     19 
     20 dep "
     21 	$outdir/outvec_STDOUT.h
     22 	$outdir/rlimit_defs.c.in
     23 	$outdir/sysstr_errno.c.in
     24 	$outdir/sysstr_signo.c.in
     25 "
     26 
     27 rule outvec '$hostdir/mk_outvec >$out'
     28 bind description 'OUTVEC $out'
     29 
     30 rule rlimit '$hostdir/mk_rlimit >$out'
     31 bind description 'RLIMIT $out'
     32 
     33 rule sysstr '$hostdir/mksysstr $type >$out'
     34 bind description 'MKSYSSTR $out'
     35 
     36 outvec outvec_STDOUT.h
     37 rlimit rlimit_defs.c.in
     38 
     39 sysstr sysstr_errno.c.in
     40 bind type errno
     41 
     42 sysstr sysstr_signo.c.in
     43 bind type signo
     44 
     45 lib libasagna.a "$(command cat $DIR/lasagna)"
     46 
     47 perp() {
     48 	for src in $*; do
     49 		case $src in
     50 		perpd)
     51 			bin perpd "
     52 				perp/perpd.c
     53 				perp/perpd_conn.c
     54 				perp/perpd_svdef.c
     55 				$libdir/libasagna.a
     56 			"
     57 			;;
     58 		*)
     59 			bin $src perp/$src.c $libdir/libasagna.a
     60 			;;
     61 		esac
     62 		man perp/man/$src.8
     63 	done
     64 }
     65 
     66 runtools() {
     67 	for src in $*; do
     68 		bin $src runtools/$src.c $libdir/libasagna.a
     69 
     70 		case $src in
     71 		[!cat]*) man runtools/man/$src.8;;
     72 		esac
     73 	done
     74 }
     75 
     76 perp "
     77 	perpboot
     78 	perpctl
     79 	perpd
     80 	perphup
     81 	perpls
     82 	perpok
     83 	perpstat
     84 	tinylog
     85 "
     86 
     87 runtools "
     88 	catargs
     89 	catenv
     90 	catlimits
     91 	catuid
     92 	runargs
     93 	runargv0
     94 	runchoom
     95 	rundetach
     96 	rundeux
     97 	runenv
     98 	runfile
     99 	runlimit
    100 	runlock
    101 	runpause
    102 	runsession
    103 	runtool
    104 	runtrap
    105 	runuid
    106 "
    107 
    108 man perp/man/perpetrate.8
    109 man perp/man/perp_intro.8
    110 man runtools/man/runtools_intro.8
    111 
    112 host() {
    113 	exe mk_outvec lasagna/outvec/mk_outvec.c
    114 	exe mk_rlimit lasagna/rlimit/mk_rlimit.c
    115 	exe mksysstr lasagna/sysstr/mksysstr.c
    116 }