mrrl

Minimal Reliable Reproducible Linux
git clone https://ccx.te2000.cz/git/mrrl
Log | Files | Refs | Submodules | README

s6-networking (5140B)


      1 #!/usr/bin/env pthbs-build
      2 #+busybox-bzip2.4788e6edf9eeb73c7c665238a23aeed4703f8e25ab101509aee01440865ccdb1
      3 #+busybox-gzip.4fc908cacf4533192819578a079617c0cbe879b8ebd3e2140d896b067d3a574c
      4 #+busybox-lzop.e6e42a1a8451a4b845355899c9cd49efea2e395a0ef0c6ae7099103213a7bf4f
      5 #+busybox-unzip.93b5e83122059c87a2ddf489cdc7381bb80288630c508c218c2cfbadff524784
      6 #+busybox-xz.34137cc6ac8d23bf1bf5979b7fd047d4f50b34be07cd6ab636368952a199368d
      7 #+busybox-cpio.de88944ccff44a1f3abe06c42f83492a7e080de89fba27aadf5fe1a40e830cae
      8 #+busybox-dpkg.17e445a8089bc61db749a44c665597ecac3f21c4088daaa024f574412eb4d704
      9 #+busybox-rpm.669ed61ee218bc72206e069c896f392a025c88772ceb92ecb37b01ab0765baf8
     10 #+busybox-tar.15f67670238651149114006ae79359f24e1fa3c62be2e229a48f1334747ba413
     11 #+busybox-ed.78c51627a372c5b2ad3d046d0e77f341ae7c79917c4a16ca8abba284e7472cb7
     12 #+busybox-sed.8782396ae5c7b6e7d6bc8a93a7cff9912e6427e3d919dd5e5b00d1813ae88caf
     13 #+busybox-vi.e661d8eb052fbeebdd3be36ff6bd27651a7e59c857dad05c8633589790caa38c
     14 #+busybox-xxd.d2dc96e92cfdafae2c91d6fe897f42fdccae2dbc8b2d79f31eccc49d4e3a2d68
     15 #+busybox-process-extra.993cfd65eae2892ecb3fdfbece44b11e7ff6caa78f73e9f22bc2c97e7cd8a267
     16 #+busybox-procps.51ea8cb23d5eb1498f9167cc80b97c1a873758a8c1a7293079f50a2365466a71
     17 #+busybox-psmisc.ff1f9cf00f4c448946acb65d52b3b598e0495822af70b1504720cadf559e2090
     18 #+busybox-ash.7d10753f118afb2568e9f950c9cffa559b053a9b3ea516d6b46c3c73ebb6f8d8
     19 #+busybox-bc.c595636f103108c81f0ae55d2bf10d7cbc06ef1455a8353fcf04e42e765780a8
     20 #+busybox-coreutils.6b8071260ab4297f0e71013e42ac2a1a83fa99d92378d181ba49003fd349134a
     21 #+busybox-coreutils-extra.fc1b0766c881ee461d36c386833909553fcb0c31a547bfb563a7c6a50206bdcd
     22 #+busybox-daemontools.97aad28bbe5f38cff29db16c0f0d21e2fdc931825f683137df9bb57ef3a9b628
     23 #+busybox-grep.261a809c35cb58acc896143c2a81406a097f5870e02ce9906953181ef6b4c72b
     24 #+busybox-misc.5c2c025f1b74b9243a0128cd3f10dd1577b5ae123f53244d8e6895d4bdbd161d
     25 #+busybox-sh.25a9438d8449ade9c98af61b14af5711990dd002462a046b13b61969634c4d94
     26 #+busybox-util-linux-unpriv.4ea1c8c8746d7e80d36dea8924c576bc9666905b461dd543ceb5595394406c97
     27 #+busybox-findutils.052256c5bf9c3e7fef2e69d22f3d402d004f22113ce10b4d2c54ff417bf42622
     28 #+busybox-awk.f44da758ab8e737f05fb82ca4342acdf29ec44a9c2a9670cded75b04e8208058
     29 #+musl-cross-make.74cd95cd7bd1db21d28d9a8579d924d588b9cbfd0f9744c0fb890188d71646aa
     30 #+gnu-make.31d90a55d6506852f9784f6f6febf0d843f8051f63bc18795fd5275baa369f50
     31 #+skalibs.ebd0a1da21779abebd0aa424ddfe643c70538dcb41c49f3b336448085b0222a7
     32 #+execline.8e0cfd256010e27b02db370a270283eb5db150534197750ea9ebf655a1eaa2a8
     33 #+s6.d1d04f234dca78ca1cf408af81667ab792e811d5fc06ce22151d4c1a690b3ec6
     34 #+s6-dns.322b8620358bea86a1e5800b5f6f73f50c634c2ad737098e23ed3f000014d9c5
     35 #+libressl.01f44dda68eedc15a502683f008eb77f73b2c6fb08b1741a7e88225f709e7862
     36 #@git:12b40106ed1727274cd6af379c4ba0ca7161700b:s6-networking
     37 
     38 
     39 # - build script start -
     40 
     41 prefix=/home/ccx/versions/$pthbs_package
     42 dest=${pthbs_destdir%/}${prefix}
     43 cd 's6-networking'
     44 
     45 
     46 ./configure --enable-ssl=libtls \
     47 	--prefix="$prefix" \
     48 	--dynlibdir="${prefix}/library.so" \
     49 	--bindir="${prefix}/command" \
     50 	--libdir="${prefix}/library" \
     51 	--shebangdir="${prefix}/command" \
     52 	--with-sysdeps='/home/ccx/versions/skalibs.ebd0a1da21779abebd0aa424ddfe643c70538dcb41c49f3b336448085b0222a7/sysdeps' \
     53 	--with-include="$pthbs_build_environment/include" \
     54 	--with-lib="$pthbs_build_environment/library" \
     55 	--with-dynlib="$pthbs_build_environment/library.so" \
     56 	--disable-shared --enable-static --enable-allstatic --enable-static-libc --absolute-paths
     57 
     58 
     59 make -j${JOBS:-1} -l$((1+${JOBS:-1}))
     60 
     61 make DESTDIR="$pthbs_destdir" install
     62 
     63 
     64 
     65 
     66 
     67 cd "$pthbs_destdir/home/ccx/versions/$pthbs_package"
     68 find -type d -o -print | awk -F/ '
     69 BEGIN {
     70 	x["./command/s6-tcpclient"]=1
     71 	x["./command/s6-tcpserver"]=1
     72 	x["./command/s6-tlsclient"]=1
     73 	x["./command/s6-tlsserver"]=1
     74 }
     75 
     76 function r1(s) {
     77 	sub("^[.]/[^/]*", ".", s)
     78 	return s
     79 }
     80 function s1(repl, s) {
     81 	sub("^[.]/[^/]*", "./"repl, s)
     82 	return s
     83 }
     84 function link(src) {
     85 	x[$0]=0
     86 	printf "%s\t%s\n", $0, src
     87 	printf "genlinks >>%s\t%s<<\n", $0, src >>"/dev/stderr"
     88 }
     89 $1!="."{exit 1}
     90 
     91 
     92 $2 == "config" { link($0); next }
     93 $2 == "keys" { link($0); next }
     94 $2 == "zsh" { link($0); next }
     95 $2 == "env" { link($0); next }
     96 $2 == "command" { link($0); next }
     97 $2 == "bin" { link(s1("command", $0)); next }
     98 
     99 $2 == "library.so" { link($0); next }
    100 $2 == "library" { link($0); next }
    101 $2 == "lib" && $NF ~ /\.l?a$/ { link(s1("library", $0)); next }
    102 $2 == "lib" && $NF ~ /\.so(\..*)?$/ { link(s1("library.so", $0)); next }
    103 
    104 $2 == "share" && $3 ~ /^(info|man|doc|icons|terminfo)$/ { link(r1($0)); next }
    105 
    106 $2 == "man" { link($0); next }
    107 $2 == "info" { link($0); next }
    108 $2 == "doc" { link($0); next }
    109 $2 == "icons" { link($0); next }
    110 $2 == "terminfo" { link($0); next }
    111 $2 == "data" { link($0); next }
    112 $2 == "include" { link($0); next }
    113 
    114 { printf "genlinks ##%s## skipped\n", $0 >>"/dev/stderr" }
    115 
    116 END {
    117 	for(fname in x) { printf "DEBUG: x[\"%s\"]=\"%s\"\n", fname, x[fname] >"/dev/stderr" }
    118 	for(fname in x) {
    119 		if(x[fname]) {
    120 			printf "ERROR: missing expected file \"%s\"\n", fname >"/dev/stderr"
    121 			exit 3
    122 		}
    123 	}
    124 }' >.install-links.new
    125 mv .install-links.new .install-links
    126