pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

containers (1563B)


      1 {% extends "scriptsetup" %}
      2 {%- block extra_deps %}
      3 #+{{pkg_install_name("execline")}}
      4 {%- endblock %}
      5 {%- block extra_script %}
      6 mkdir "$pkgdir/data"
      7 mv -v service_scripts container_template "$pkgdir/data/"
      8 printf '%s\n' >"$pkgdir/zsh/site-functions/confz_containers_pthbs_init" \
      9 	"typeset -g container_template_dir='$prefix/data/container_template'" \
     10 	"typeset -g container_service_script_dir='$prefix/data/service_scripts'" \
     11 	"typeset -g container_alpine_keys_dir='$prefix/deps/keys/alpine/x86_64'" \
     12 	"typeset -g container_apk_executable='$prefix/deps/command/apk.static'" \
     13 	"typeset -g container_void_keys_dir='$prefix/deps/keys/void'" \
     14 	"typeset -g container_xbps_install_executable='$prefix/deps/command/xbps-install.static'"
     15 
     16 mkdir -p "$pkgdir/deps/command"
     17 ln -sf '{{pkg_install_dir("apk-tools")}}/command/apk.static' "$pkgdir/deps/command/"
     18 ln -sf '{{pkg_install_dir("xbps")}}/command/xbps-install.static' "$pkgdir/deps/command/"
     19 
     20 for f in '{{pkg_install_dir("alpine-keys")}}'/keys/alpine/*/*; do
     21 	d=$(basename "${f%/*}")
     22 	mkdir -p "$pkgdir/deps/keys/alpine/$d"
     23 	ln -sf "$f" "$pkgdir/deps/keys/alpine/$d/"
     24 done
     25  
     26 mkdir -p "$pkgdir/deps/keys/void"
     27 for f in '{{pkg_install_dir("xbps")}}'/keys/void/*; do
     28 	ln -sf "$f" "$pkgdir/deps/keys/void/"
     29 done
     30  
     31 {%- endblock %}
     32 {% block genlinks_begin %}
     33 	x["./command/container_sysroot_run"]=1
     34 	x["./command/ns_run"]=1
     35 	x["./command/ns_umount_script.awk"]=1
     36 	x["./command/pidns_run.py"]=1
     37 	x["./zsh/site-functions/confz_containers_init"]=1
     38 	x["./zsh/site-functions/confz_site_containers_init"]=1
     39 {%- endblock %}