--- gnome-games-2.30.2-r1.ebuild 2011-02-15 10:31:13.000000000 +0200 +++ gnome-games-2.30.2-r2.ebuild 2011-03-06 22:01:49.517890496 +0200 @@ -85,6 +85,9 @@ --disable-aisleriot-clutter --disable-card-themes-installer --enable-sound + --disable-setgid + --bindir=${GAMES_BINDIR} + --localstatedir=${GAMES_STATEDIR}/${PN}/ --with-scores-group=${GAMES_GROUP} --with-platform=gnome --with-card-theme-formats=all @@ -133,17 +136,20 @@ [ -s ${game}/${doc} ] && dodoc ${game}/${doc} done done + + chown root:games "${D}"/usr/games/bin/* + chmod 750 "${D}"/usr/games/bin/* } pkg_preinst() { gnome2_pkg_preinst # Avoid overwriting previous .scores files local basefile - for scorefile in "${D}"/var/lib/games/*.scores; do + for scorefile in "${D}"/${GAMES_STATEDIR}/${PN}/*.scores; do basefile=$(basename $scorefile) - if [ -s "${ROOT}/var/lib/games/${basefile}" ]; then - cp "${ROOT}/var/lib/games/${basefile}" \ - "${D}/var/lib/games/${basefile}" + if [ -s "${ROOT}/${GAMES_STATEDIR}/${PN}/${basefile}" ]; then + cp "${ROOT}/${GAMES_STATEDIR}/${PN}/${basefile}" \ + "${D}/${GAMES_STATEDIR}/${PN}/${basefile}" fi done }