summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-roguelike')
-rw-r--r--games-roguelike/nethack/nethack-3.6.0-r2.ebuild21
1 files changed, 0 insertions, 21 deletions
diff --git a/games-roguelike/nethack/nethack-3.6.0-r2.ebuild b/games-roguelike/nethack/nethack-3.6.0-r2.ebuild
index c87adad7bfe4..7f8d2befda1f 100644
--- a/games-roguelike/nethack/nethack-3.6.0-r2.ebuild
+++ b/games-roguelike/nethack/nethack-3.6.0-r2.ebuild
@@ -119,30 +119,9 @@ src_install() {
fperms g+s "${HACKDIR}/nethack"
}
-pkg_preinst() {
- if has_version "<${CATEGORY}/${PN}-3.4.3-r3" ; then
- migration=true
-
- # preserve STATEDIR/{logfile,record}
- # (previous ebuild rev mistakenly removes it)
- for f in "${ROOT}/${STATEDIR}/"{logfile,record} ; do
- if [[ -e "$f" ]] ; then
- cp "$f" "$T" || die "Failed to preserve ${ROOT}/${STATEDIR} files"
- else
- touch "$T/$f" || die "Failed to preserve ${ROOT}/${STATEDIR} files"
- fi
- done
- fi
-}
-
pkg_postinst() {
cd "${ROOT}/${STATEDIR}" || die "Failed to enter ${STATEDIR} directory"
- if [[ -v migration ]] ; then
- cp "$T/"{logfile,record} . ||
- die "Failed to preserve ${ROOT}/${STATEDIR} files"
- fi
-
touch logfile perm record xlogfile || die "Failed to create log files"
chown -R root:"${NETHACK_GROUP}" . &&