first
This commit is contained in:
commit
b50fd16591
197 changed files with 41663 additions and 0 deletions
15
overlay/Devuan/usr/local/bin/de_bootstrap_gateway.bash
Executable file
15
overlay/Devuan/usr/local/bin/de_bootstrap_gateway.bash
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
# -*-mode: sh; tab-width: 8; coding: utf-8-unix -*-
|
||||
|
||||
PREFIX=/usr/local
|
||||
|
||||
ROLE=base
|
||||
|
||||
local_guest_fstab_mnt
|
||||
|
||||
. /usr/local/etc/local.d/local.bash || exit 1
|
||||
|
||||
local_guest || exit 3$?
|
||||
|
||||
#? local_guest_add_xorg_conf
|
||||
|
26
overlay/Devuan/usr/local/bin/devuan_curl_urls.sh
Normal file
26
overlay/Devuan/usr/local/bin/devuan_curl_urls.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
# filter - arguments are to wget - quoted?
|
||||
|
||||
ROOTDIR=/mnt/i
|
||||
ROLE=base
|
||||
|
||||
LARGS="-X -P /o/Cache/Apt/Devuan/4"
|
||||
RARGS="--retry 1"
|
||||
|
||||
grep ^http | \
|
||||
sed -e 's@http://@https://@g' \
|
||||
| \
|
||||
sed -e 's@ftp://[^ ]*@@' \
|
||||
-e 's@^https://distfiles.gentoo.org/distfiles/[^ ]* https://pypi.python.org/@https://pypi.python.org/@' \
|
||||
-e 's@https*://distfiles.gentoo.org@https://gentoo.osuosl.org@g' \
|
||||
-e 's@https*://gentoo.osuosl.org@https://mirror.leaseweb.com/gentoo@g' \
|
||||
-e 's@https*://download.sourceforge.net@https://download.sourceforge.net@g' | \
|
||||
while read urls ; do
|
||||
url=`echo $urls|sed -e 's@ .*@@'`
|
||||
base=`basename "$url"`
|
||||
[ -e /usr/portage/distfiles/$base ] && echo distfiles/$base && continue
|
||||
for url in $urls ; do
|
||||
/usr/local/bin/scurl.bash $LARGS -- $RARGS $url || continue
|
||||
break
|
||||
done
|
||||
done
|
42
overlay/Devuan/usr/local/bin/devuan_uris_to_urls.bash
Executable file
42
overlay/Devuan/usr/local/bin/devuan_uris_to_urls.bash
Executable file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/sh
|
||||
# -*- mode: sh; fill-column: 75; tab-width: 8; coding: utf-8-unix -*-
|
||||
|
||||
ROLE=base
|
||||
|
||||
. /usr/local/bin/usr_local_tput.bash || exit 2
|
||||
|
||||
[ $# -eq 0 ] && USAGE $0 url-files...
|
||||
|
||||
cnt=beowulf-e22532c6f83a
|
||||
|
||||
cd /mnt/o/Cache/Apt || exit 3
|
||||
|
||||
cat "$@" | debian_uris_to_urls.bash \
|
||||
| grep deb$ \
|
||||
| while read url ; do
|
||||
root=`echo $url | sed -e 's@.*DEBIAN@@'`
|
||||
dir=`dirname $root`
|
||||
[ -f Debian/10.6/deb.debian.org/debian/pool/$root ] || {
|
||||
new=`echo $url | sed -e 's@deb.devuan.org/@mirrors.dotsrc.org/devuan/@'`
|
||||
newf=`echo $new | sed -e 's@^http*:/@Devuan/3@'`
|
||||
[ -f $newf ] || echo $new
|
||||
continue
|
||||
}
|
||||
[ -h Devuan/3/deb.devuan.org/merged/pool/DEBIAN/$dir ] && \
|
||||
rm Devuan/3/deb.devuan.org/merged/pool/DEBIAN/$dir
|
||||
[ -d Devuan/3/deb.devuan.org/merged/pool/DEBIAN/$dir ] || \
|
||||
mkdir -p Devuan/3/deb.devuan.org/merged/pool/DEBIAN/$dir
|
||||
[ -f Devuan/3/deb.devuan.org/merged/pool/DEBIAN/$root ] && \
|
||||
rm Devuan/3/deb.devuan.org/merged/pool/DEBIAN/$root
|
||||
[ -h Devuan/3/deb.devuan.org/merged/pool/DEBIAN/$root ] && continue
|
||||
ln -s $PWD/Debian/10.6/deb.debian.org/debian/pool/$root \
|
||||
Devuan/3/deb.devuan.org/merged/pool/DEBIAN/$root
|
||||
done
|
||||
|
||||
TODIR=/var/lib/lxd/storage-pools/default/containers/$cnt/rootfs
|
||||
TODIR=$TODIR/var/cache/apt/archives/
|
||||
find Devuan/ -name \*.deb -type l|while read file ; do \
|
||||
base=`basename $file`
|
||||
[ -e $TODIR/$base ] && continue
|
||||
ln -s $PWD/$file $TODIR
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue