PREUN
/bin/sh
test "$1" != 0 || rm -f /etc/vservers/.distributions/.common/pubkeys/fedora-*
## Temporary workaround to remove old v_* files; it will conflict
## somehow with the -legacy package but can be fixed by reinstalling
## this package.
## TODO: remove me in the final .spec file
POSTIN
/bin/sh
test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
f="/etc/vservers/.defaults/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
ln -s /vservers/.hash "$f"/00
/usr/sbin/setattr --barrier /vservers/.hash || :
Triggers
fedora-release
/bin/sh
function copy()
{
base=$1
shift
for i; do
test -r "$i" || continue
target=/etc/vservers/.distributions/.common/pubkeys/$base-$(basename "$i")
cp -a "$i" "$target"
done
}
copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
centos-release
/bin/sh
function copy()
{
base=$1
shift
for i; do
test -r "$i" || continue
target=/etc/vservers/.distributions/.common/pubkeys/$base-$(basename "$i")
cp -a "$i" "$target"
done
}
copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*