File: //lib/apk/db/scripts.tar
alpine-baselayout-3.6.5-r0.Q1qKcZ+j23xssAXmgQhkOO8dHnbWw=.pre-install 0000755 0000000 0000000 000000000070014616104417023657 0 ustar root root #!/bin/sh
addgroup -S -g 42 shadow 2>/dev/null
exit 0
alpine-baselayout-3.6.5-r0.Q1qKcZ+j23xssAXmgQhkOO8dHnbWw=.post-install 0000755 0000000 0000000 000000000705014616104417024063 0 ustar root root #!/bin/sh
# update color_prompt.sh symlink (if exists) after we renamed color_prompt to
# color_prompt.sh.disabled.
case "$(readlink etc/profile.d/color_prompt.sh 2>/dev/null || true)" in
color_prompt) ln -sf color_prompt.sh.disabled etc/profile.d/color_prompt.sh;;
esac
# the /etc/group file is created after /etc/shadow. Needed to apply the group
# properly.
chown root:shadow etc/shadow
[ -e etc/shadow- ] && chown root:shadow etc/shadow-
exit 0
alpine-baselayout-3.6.5-r0.Q1qKcZ+j23xssAXmgQhkOO8dHnbWw=.pre-upgrade 0000755 0000000 0000000 000000001345014616104417023646 0 ustar root root #!/bin/sh
# we need to have our modprobe.d files with .conf suffix
for i in etc/modprobe.d/*; do
# ignore files that does not exist (i.e if modprobe.d is empty)
[ -r "$i" ] || continue
# ignore files that have an extension
case "$i" in
*.*) continue;;
esac
# append extension
mv "$i" "$i".conf
done
# migrate /var/run directory to /run
if [ -d var/run ] && [ ! -L var/run ]; then
cp -a var/run/* run 2>/dev/null
rm -rf var/run
ln -s ../run var/run
fi
# migrate /var/spool/mail directory to /var/mail
if [ -d var/spool/mail ] && [ ! -L var/spool/mail ]; then
mkdir -p var/mail
cp -a var/spool/mail/* var/mail/ 2>/dev/null
rm -rf var/spool/mail
ln -s ../mail var/spool/mail
fi
addgroup -S -g 42 shadow 2>/dev/null
exit 0
alpine-baselayout-3.6.5-r0.Q1qKcZ+j23xssAXmgQhkOO8dHnbWw=.post-upgrade 0000755 0000000 0000000 000000000705014616104417024044 0 ustar root root #!/bin/sh
# update color_prompt.sh symlink (if exists) after we renamed color_prompt to
# color_prompt.sh.disabled.
case "$(readlink etc/profile.d/color_prompt.sh 2>/dev/null || true)" in
color_prompt) ln -sf color_prompt.sh.disabled etc/profile.d/color_prompt.sh;;
esac
# the /etc/group file is created after /etc/shadow. Needed to apply the group
# properly.
chown root:shadow etc/shadow
[ -e etc/shadow- ] && chown root:shadow etc/shadow-
exit 0
busybox-1.36.1-r29.Q1yY8lhMF1VhgegJgkcXfqaNabDJw=.post-install 0000755 0000000 0000000 000000000517014631523463022402 0 ustar root root #!/bin/busybox sh
# We need the symlinks early
/bin/busybox mkdir -p "/bin" "/sbin" "/usr/bin" "/usr/sbin"
/bin/busybox --install -s || exit 1
# can't be in pre-install since adduser/group may not available then
addgroup -S klogd 2>/dev/null
adduser -S -D -H -h /dev/null -s /sbin/nologin -G klogd -g klogd klogd 2>/dev/null
exit 0
busybox-1.36.1-r29.Q1yY8lhMF1VhgegJgkcXfqaNabDJw=.post-upgrade 0000755 0000000 0000000 000000002626014631523463022366 0 ustar root root #!/bin/busybox sh
# remove links that has been relocated or removed
# - generate a list of all symlinks in bin dirs and a list with all busybox
# applets
# - sort the list and print all lines that are unique. This is the list of
# symlinks that does not exist in the busybox applets list.
# - use stat to find the target of those symlinks printed as:
# '/path/to/symlink' -> '/path/to/target'
# The "2>/dev/null" is used to stop "can't stat" warnings appearing on
# the console for each new command added by the new version of the
# busybox package.
# - use awk to print the symlinks that points to '/bin/busybox'
# - use sed to strip the leading and training ' chars
# - finally pass the list to rm for removing the symlinks that points to
# busybox but does not exist in the `busybox --list-all` list
( find bin sbin usr/bin usr/sbin -maxdepth 1 -type l; busybox --list-all) \
| sort | uniq -u \
| xargs -r stat -c "%N" 2>/dev/null \
| awk "\$3 == \"'/bin/busybox'\" {print \$1}" \
| sed "s/^'//; s/'$//" \
| xargs -r rm
for link in /bin/ping /bin/ping6; do
if [ -L "$link" ] && [ "$(readlink $link)" = "/bin/bbsuid" ]; then
rm "$link"
fi
done
# We need the symlinks early
/bin/busybox --install -s || exit 1
# can't be in pre-upgrade since adduser/group may not available then
addgroup -S klogd 2>/dev/null
adduser -S -D -H -h /dev/null -s /sbin/nologin -G klogd -g klogd klogd 2>/dev/null
exit 0
busybox-1.36.1-r29.Q1yY8lhMF1VhgegJgkcXfqaNabDJw=.trigger 0000755 0000000 0000000 000000001042014631523463021406 0 ustar root root #!/bin/sh
do_bb_install=
for i in "$@"; do
case "$i" in
/lib/modules/*)
# don't run busybox depmod if we have kmod installed
# we dont need to run it twice.
target=$(readlink -f "$(command -v depmod || true)")
if [ -d "$i" ] && [ "$target" = "/bin/busybox" ]; then
/bin/busybox depmod ${i#/lib/modules/}
fi
;;
*) do_bb_install=yes;;
esac
done
if [ -n "$do_bb_install" ]; then
[ -e /bin/bbsuid ] && /bin/bbsuid --install
[ -e /bin/busybox-extras ] && /bin/busybox-extras --install -s
/bin/busybox --install -s
fi
openrc-0.54-r1.Q10enypxz/L3TTlA9KFzcIzGwW8dI=.post-install 0000755 0000000 0000000 000000001312014604704724021553 0 ustar root root #!/bin/sh
rc_update() {
local svc="$1"
local level="$2"
mkdir -p etc/runlevels/$level
ln -sf /etc/init.d/$svc etc/runlevels/$level
}
if [ ! -d etc/rcS.d ] && [ ! -d etc/rcL.d ]; then
exit 0
fi
for i in etc/rc[SL].d/*; do
[ -L "$i" ] || continue
oldsvc=${i##*/S[0-9][0-9]}
# some services are renamed
case "$oldsvc" in
modutils) svc=modules;;
procps) svc=sysctl;;
bootmisc.sh) svc=bootmisc;;
keymap) svc=keymaps;;
rc.local) svc=local;;
*) svc=$oldsvc;;
esac
# add the service to correct "runlevel"
case "$svc" in
syslog|klogd)
rc_update $svc sysinit;;
hwclock|modules|sysctl|hostname|keymaps|bootmisc)
rc_update $svc boot;;
*) rc_update $svc default;;
esac
rm $i
done
openrc-0.54-r1.Q10enypxz/L3TTlA9KFzcIzGwW8dI=.post-upgrade 0000755 0000000 0000000 000000002366014604704724021546 0 ustar root root #!/bin/sh
ver_old=$2
# in 0.8.0-r1 the state dir moved from /libexec/rc/init.d to /lib/rc/init.d
# and with 0.10 it moved to /run/openrc
mkdir -p run/openrc
for dir in libexec lib; do
[ -d $dir/rc/init.d ] || continue
for i in $dir/rc/init.d/* ; do
[ -e "$i" ] || continue
if [ -e run/openrc/${i##*/} ]; then
rm -r $i
else
mv $i run/openrc/
fi
done
rmdir $dir/rc/init.d $dir/rc /libexec 2>/dev/null
done
# create rc.local compat
if [ -f etc/rc.local ]; then
cat >etc/local.d/rc.local-compat.start<<__EOF__
#!/bin/sh
# this is only here for compatibility reasons
if [ -f /etc/rc.local ]; then
. /etc/rc.local
fi
__EOF__
chmod +x etc/local.d/rc.local-compat.start
fi
rename_service() {
oldname="$1"
newname="$2"
ret=1
for link in run/openrc/*/${oldname} etc/runlevels/*/${oldname}; do
newlink="${link%/*}/${newname}"
if [ -L "$link" ] && ! [ -L "$newlink" ]; then
target="$(readlink $link)"
ln -s "${target%/*}/$newname" "$newlink"
rm "$link"
ret=0
continue
fi
if [ -d "$link" ] && ! [ -d "$newlink" ]; then
mv "$link" "$newlink"
ret=0
fi
done
return $ret
}
if [ "$(apk version -t "$ver_old" '0.45-r0')" = '<' ]; then
# in 0.45 urandom was renamed to seedrng
rename_service urandom seedrng
fi
exit 0
ca-certificates-20241121-r1.Q1WClHJoxb5CdISFa++OgNpPpB8ss=.post-deinstall 0000755 0000000 0000000 000000000211014737445732024004 0 ustar root root #!/bin/sh
# clean up broken symlinks store
find -L /etc/ssl/certs -maxdepth 1 -type l -delete
rmdir /etc/ssl/certs 2>/dev/null || true
ca-certificates-20241121-r1.Q1WClHJoxb5CdISFa++OgNpPpB8ss=.trigger 0000755 0000000 0000000 000000000077014737445732022517 0 ustar root root #!/bin/sh
/usr/sbin/update-ca-certificates &> /dev/null
exit 0
icu-data-en-74.2-r0.Q1RLn+wVQbHYMgqqXpVKrYQkrsvAc=.post-install 0000755 0000000 0000000 000000000221014574072726022613 0 ustar root root #!/bin/sh
cat >&2 <<EOF
*
* If you need ICU with non-English locales and legacy charset support, install
* package icu-data-full.
*
EOF
exit 0
fontconfig-2.15.0-r1.Q1DsfM38FUZzf8mBIlYTB85bXBqAY=.trigger 0000755 0000000 0000000 000000000057014606201110021320 0 ustar root root #!/bin/sh
fc-cache --system-only > /dev/null
imagemagick-7.1.1.32-r2.Q1Yj60UXos5srNXVNwjhE3CV+TnSk=.post-upgrade 0000755 0000000 0000000 000000000756014627240731022753 0 ustar root root #!/bin/sh
ver_old=$2
if [ "$(apk version -t "$ver_old" '7.1.1.11-r2')" = '<' ]; then
cat >&2 <<-EOF
*
* imagemagick support for various modules was split into subpackages.
* they autoinstall with the requisite library already installed.
* if not already present, install the module you want to use manually:
* (prefixed with imagemagick- )
* -heic -jpeg -pdf -raw
* -svg -tiff -webp -jxl
* if you want to exclude the support regardless, use e.g. 'apk add !imagemagick-pdf'
*
EOF
fi
glib-2.80.5-r0.Q13BUbysfQEdYLMfurwntXHMlabEM=.trigger 0000755 0000000 0000000 000000000317014672501556020557 0 ustar root root #!/bin/sh
for i in "$@"; do
if ! [ -e "$i" ]; then
continue
fi
case "$i" in
*/modules|*gtk-4.0)
/usr/bin/gio-querymodules "$i"
;;
*/schemas)
/usr/bin/glib-compile-schemas "$i"
;;
esac
done
pango-1.52.2-r0.Q1MCj84saSYxLXDm8Eaz6E9iySkH8=.pre-deinstall 0000755 0000000 0000000 000000000123014602561637021474 0 ustar root root #!/bin/sh
exec /bin/rm -f /etc/pango/pango.modules /usr/lib/pango/*/modules.cache
pango-1.52.2-r0.Q1MCj84saSYxLXDm8Eaz6E9iySkH8=.trigger 0000755 0000000 0000000 000000000076014602561637020403 0 ustar root root #!/bin/sh
umask 022
/usr/bin/pango-querymodules > ${1}.cache
shared-mime-info-2.4-r0.Q18cHoFj8/FXGn/nzVw1Py35g8grc=.post-deinstall 0000755 0000000 0000000 000000000415014524455500023465 0 ustar root root #!/bin/sh
cd /usr/share/mime
rm -rf globs globs2 icons treemagic generic-icons types magic XMLnamespaces \
subclasses aliases mime.cache \
application audio image inode message model multipart text video \
x-content x-epoc
rmdir /usr/share/mime 2>/dev/null
exit 0
shared-mime-info-2.4-r0.Q18cHoFj8/FXGn/nzVw1Py35g8grc=.trigger 0000755 0000000 0000000 000000000206014524455500022164 0 ustar root root #!/bin/sh
for i in "$@"; do
if [ -d "$i" ]; then
PKGSYSTEM_ENABLE_FSYNC=0 \
update-mime-database "$i" > /dev/null 2>&1
fi
done
gdk-pixbuf-2.42.12-r0.Q1q9qX6kCKSxaCMIGviWWxwHrYkjA=.pre-deinstall 0000755 0000000 0000000 000000000076014670522671023004 0 ustar root root #!/bin/sh
rm -f /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
gdk-pixbuf-2.42.12-r0.Q1q9qX6kCKSxaCMIGviWWxwHrYkjA=.trigger 0000755 0000000 0000000 000000000063014670522671021700 0 ustar root root #!/bin/sh
gdk-pixbuf-query-loaders --update-cache
librsvg-2.58.5-r0.Q1IRsD2RPvdN7XbtJhB/IYv1+GoDY=.post-upgrade 0000755 0000000 0000000 000000000402014710534130021603 0 ustar root root #!/bin/sh
ver_old=$2
if [ "$(apk version -t "$ver_old" '2.54.4-r2')" = '<' ]; then
cat >&2 <<-EOF
*
* rsvg-convert utility has been moved from librsvg to a subpackage of
* the same name. If you use it, run: apk add cmd:rsvg-convert.
*
EOF
fi
exit 0