first
This commit is contained in:
commit
b50fd16591
197 changed files with 41663 additions and 0 deletions
11
overlay/Devuan/usr/local/sbin/de_unmarkauto.bash
Executable file
11
overlay/Devuan/usr/local/sbin/de_unmarkauto.bash
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
ROLE=base
|
||||
|
||||
[ $# -eq 0 ] && exit 1
|
||||
|
||||
apt-get remove $* </dev/null | \
|
||||
sed -e '1,/The following packages will be REMOVED:/d' \
|
||||
-e '/^WARNING:/,' -e 's/ /\n/g' | while read foo; do\
|
||||
aptitude unmarkauto $foo ;
|
||||
done
|
25
overlay/Devuan/usr/local/sbin/devuan_cache_to_archives.bash
Executable file
25
overlay/Devuan/usr/local/sbin/devuan_cache_to_archives.bash
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
# -*-mode: sh; tab-width: 8; coding: utf-8-unix -*-
|
||||
# filter
|
||||
|
||||
[ -z "$CACHE" ] && CACHE=/mnt/o/Cache/Apt/Devuan/4
|
||||
[ -d "$CACHE" ] || exit 1$?
|
||||
|
||||
[ -d /etc/apt ] || exit 0
|
||||
|
||||
cd $CACHE || exit 2
|
||||
|
||||
[ -d var/cache/apt/archives ] || mkdir -p var/cache/apt/archives
|
||||
|
||||
find *.* -type f -name \*.deb | while read file; do
|
||||
base=$( basename $file )
|
||||
[ ! -d /var/cache/apt/archives/ ] || \
|
||||
[ -e /var/cache/apt/archives/$base ] || ln -s $PWD/$file /var/cache/apt/archives/$base
|
||||
[ -f var/cache/apt/archives/$base -a ! -h var/cache/apt/archives/$base ] && rm var/cache/apt/archives/$base
|
||||
[ -e var/cache/apt/archives/$base ] || ln -s $PWD/$file var/cache/apt/archives/$base
|
||||
done
|
||||
|
||||
cd /var/cache/apt/archives||exit 4
|
||||
|
||||
exit 0
|
||||
|
29
overlay/Devuan/usr/local/sbin/devuan_uris_to_urls.bash
Executable file
29
overlay/Devuan/usr/local/sbin/devuan_uris_to_urls.bash
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
# -*-mode: sh; tab-width: 8; coding: utf-8-unix -*-
|
||||
# filter or .uris
|
||||
[ -z "$CACHE" ] && CACHE=/mnt/o/Cache/Apt/Devuan/4
|
||||
[ -d "$CACHE" ] || mkdir $CACHE # || exit 1$?
|
||||
|
||||
# debian --print-uris
|
||||
if [ $? -eq 0 ] ; then
|
||||
# filter
|
||||
grep 'https*://' | \
|
||||
sed -e 's@ftp://[^ ]*@@g' -e 's@.*https*://@https://@g' -e "s@'.*@@g" | \
|
||||
while read line ; do
|
||||
for url in $line ; do
|
||||
base=`basename "$url"`
|
||||
pre=`echo $url|sed -e "s@https*://@${CACHE}@"`
|
||||
[ -e $pre ] && break
|
||||
echo $line
|
||||
break
|
||||
done
|
||||
done
|
||||
fi
|
||||
for elt in "$@" ; do
|
||||
base=$( basename $elt .elts )
|
||||
[ -s $base.urls ] && continue
|
||||
sh $0 < $elt > $base.urls
|
||||
[ -s $base.urls ] || rm $base.urls
|
||||
done
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue