commit
bf6ff9d75f
14 changed files with 173 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||
Package: * |
|||
Pin: release n=* |
|||
Pin-Priority: -1 |
@ -0,0 +1,18 @@ |
|||
# Used for: acroread and mplayer |
|||
#deb http://www.deb-multimedia.org stretch main non-free |
|||
|
|||
# Used for google-drive-ocamlfuse |
|||
#deb http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu bionic main |
|||
#deb-src http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu bionic main |
|||
|
|||
# Checking |
|||
deb [arch=amd64,i386,arm64] http://download.virtualbox.org/virtualbox/debian/ stretch contrib |
|||
deb [arch=amd64,i386,arm64] http://dl.winehq.org/wine-builds/debian/ stretch main |
|||
|
|||
# For background information |
|||
deb [arch=amd64,i386,arm64] http://deb.debian.org/debian buster main contrib non-free |
|||
deb [arch=amd64,i386,arm64] http://deb.debian.org/debian sid main contrib non-free |
|||
deb [arch=amd64,i386,arm64] http://deb.debian.org/debian buster-backports main |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.debian.org/debian buster main/debian-installer |
|||
deb [arch=amd64,i386,arm64] http://deb.debian.org/debian buster-backports main/debian-installer |
@ -0,0 +1,14 @@ |
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged ascii main contrib non-free |
|||
deb-src http://deb.devuan.org/merged ascii main contrib non-free |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged ascii-proposed-updates main contrib non-free |
|||
deb-src http://deb.devuan.org/merged ascii-proposed-updates main contrib non-free |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged ascii-security main contrib non-free |
|||
deb-src http://deb.devuan.org/merged ascii-security main contrib non-free |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged ascii-updates main contrib non-free |
|||
deb-src http://deb.devuan.org/merged ascii-updates main contrib non-free |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged ascii-backports main |
|||
deb-src http://deb.devuan.org/merged ascii-backports main |
@ -0,0 +1,14 @@ |
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged beowulf main contrib non-free |
|||
deb-src http://deb.devuan.org/merged beowulf main contrib non-free |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged beowulf-proposed-updates main contrib non-free |
|||
deb-src http://deb.devuan.org/merged beowulf-proposed-updates main contrib non-free |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged beowulf-security main contrib non-free |
|||
deb-src http://deb.devuan.org/merged beowulf-security main contrib non-free |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged beowulf-updates main contrib non-free |
|||
deb-src http://deb.devuan.org/merged beowulf-updates main contrib non-free |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged beowulf-backports main |
|||
deb-src http://deb.devuan.org/merged beowulf-backports main |
@ -0,0 +1,8 @@ |
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged chimaera main contrib non-free |
|||
deb-src http://deb.devuan.org/merged chimaera main contrib non-free |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged chimaera-proposed-updates main contrib non-free |
|||
deb-src http://deb.devuan.org/merged chimaera-proposed-updates main contrib non-free |
|||
|
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged chimaera-updates main contrib non-free |
|||
deb-src http://deb.devuan.org/merged chimaera-updates main contrib non-free |
@ -0,0 +1,2 @@ |
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/devuan experimental main |
|||
deb-src http://deb.devuan.org/devuan experimental main |
@ -0,0 +1,2 @@ |
|||
deb [arch=amd64,i386,arm64] http://archive.devuan.org/merged jessie main contrib non-free |
|||
deb-src http://archive.devuan.org/merged jessie main contrib non-free |
@ -0,0 +1,2 @@ |
|||
deb [arch=amd64,i386,arm64] http://deb.devuan.org/merged unstable main contrib non-free |
|||
deb-src http://deb.devuan.org/merged unstable main contrib non-free |
@ -0,0 +1,97 @@ |
|||
#!/bin/zsh |
|||
# |
|||
# Run "apt-cache policy" for a given query line, and wrap the result |
|||
# into XML |
|||
|
|||
Q="${${(M@)${(s[&])QUERY_STRING}:#q=*}#q=}" |
|||
|
|||
export APT_CONFIG=whatsit.conf |
|||
|
|||
DATA=( ${(f)"$(apt-cache -c whatsit.conf policy "$Q")"} ) |
|||
|
|||
# host section arch |
|||
function mksource() { |
|||
echo "$1 $2 $3" |
|||
} |
|||
|
|||
# package code source... |
|||
function end_version() { |
|||
local C P |
|||
P=$1 |
|||
C="$2" |
|||
shift 2 |
|||
cat <<EOF |
|||
<div class="version"> |
|||
<div class="code"><a href="$P=$C">$C</a></div> |
|||
EOF |
|||
for S in $* ; do |
|||
SX=( $(echo $S) ) |
|||
cat <<EOF |
|||
<div class="source"> |
|||
<div class="host">$SX[1]</div> |
|||
<div class="section">$SX[2]</div> |
|||
<div class="arch">$SX[3]</div> |
|||
</div> |
|||
EOF |
|||
done |
|||
echo "</div><!-- end version $C -->" |
|||
} |
|||
|
|||
# name |
|||
function end_package() { |
|||
echo "</div><!-- end package $1 -->" |
|||
} |
|||
|
|||
PACKAGES=( ) |
|||
PACKAGE= |
|||
VERSION= |
|||
|
|||
cat <<EOF |
|||
<html> |
|||
<head><title>Devuan Package Information</title> |
|||
<body> |
|||
EOF |
|||
|
|||
for D in "${DATA[@]}" ; do |
|||
if [ "${D[1]}" != " " ] ; then |
|||
# New package |
|||
if [ -n "$VERSION" ] ; then |
|||
end_version $PACKAGE "$VERSION" "${SOURCES[@]}" |
|||
fi |
|||
if [ -n "$PACKAGE" ] ; then |
|||
end_package $PACKAGE |
|||
fi |
|||
PACKAGE="${D[1,-2]}" |
|||
cat <<EOF |
|||
<div class="package"><div class="name">$PACKAGE</div> |
|||
EOF |
|||
continue |
|||
fi |
|||
W=( $(echo $D) ) |
|||
case ${W[1]} in |
|||
Installed:|Candidate:|Version) # ignore |
|||
: ;; |
|||
-1) # add source point |
|||
SOURCES+=( "$(mksource $W[2] $W[3] $W[4])" ) |
|||
;; |
|||
*) # Start another version block |
|||
if [ -n "$VERSION" ] ;then |
|||
end_version $PACKAGE "$VERSION" "${SOURCES[@]}" |
|||
fi |
|||
VERSION="$W[1]" |
|||
SOURCES=( ) |
|||
;; |
|||
esac |
|||
done |
|||
|
|||
if [ -n "$VERSION" ] ; then |
|||
end_version $PACKAGE "$VERSION" "${SOURCES[@]}" |
|||
fi |
|||
if [ -n "$PACKAGE" ] ; then |
|||
end_package $PACKAGE |
|||
fi |
|||
|
|||
cat <<EOF |
|||
</body> |
|||
</html> |
|||
EOF |
@ -0,0 +1 @@ |
|||
/usr/lib/apt |
@ -0,0 +1 @@ |
|||
/usr/share/dpkg |
@ -0,0 +1,11 @@ |
|||
# Configuration for whatsit |
|||
Debug::NoLocking "yes"; |
|||
RootDir "/home/ralph/src/gitea/whatsit"; |
|||
#Dir::Etc::SourceList "/home/ralph/src/gitea/whatsit/sources.list"; |
|||
#Dir::Etc::SourceListParts "/home/ralph/src/gitea/whatsit/sources"; |
|||
#Dir::State::Lists "/home/ralph/src/gitea/whatsit/lists"; |
|||
#Dir::Cache::pkgcache "/home/ralph/src/gitea/whatsit/pcache"; |
|||
#Dir::Cache::srcpkgcache "/home/ralph/src/gitea/whatsit/scache"; |
|||
APT::Cache::Installed "no"; |
|||
#Dir::Etc::Preferences "/home/ralph/src/gitea/whatsit/preferences"; |
|||
#Dir::Etc::PreferencesParts ""; |
Loading…
Reference in new issue