Here is the debian/postinst from the old version of the Debian mock
package:
#!/bin/sh
# postinst script for mock
set -e
case "$1" in
configure)
groupadd --system mock || {
# groupadd failed. Why?
if ! getent group mock >/dev/null ; then
echo "Could not create system group mock." >&2
exit 1
fi
# well, the group is there, so just ignore the error
}
if ! dpkg-statoverride --list /var/cache/mock >/dev/null; then
dpkg-statoverride --update --add root mock 02775
/var/cache/mock
fi
if ! dpkg-statoverride --list /var/lib/mock >/dev/null; then
dpkg-statoverride --update --add root mock 02775
/var/lib/mock
fi
;;
esac
#DEBHELPER#
exit 0
--
Tyler Trafford
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]