summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/a/mkinitrd/mkinitrd.8.orig287
-rw-r--r--source/k/kernel-configs/config-generic-5.10.4 (renamed from source/k/kernel-configs/config-generic-5.10.3)3
-rw-r--r--source/k/kernel-configs/config-generic-5.10.4.x64 (renamed from source/k/kernel-configs/config-generic-5.10.3.x64)3
-rw-r--r--source/k/kernel-configs/config-generic-smp-5.10.4-smp (renamed from source/k/kernel-configs/config-generic-smp-5.10.3-smp)3
-rw-r--r--source/k/kernel-configs/config-huge-5.10.4 (renamed from source/k/kernel-configs/config-huge-5.10.3)3
-rw-r--r--source/k/kernel-configs/config-huge-5.10.4.x64 (renamed from source/k/kernel-configs/config-huge-5.10.3.x64)3
-rw-r--r--source/k/kernel-configs/config-huge-smp-5.10.4-smp (renamed from source/k/kernel-configs/config-huge-smp-5.10.3-smp)3
-rw-r--r--source/xfce/thunar/thunar.url2
-rwxr-xr-xsource/y/nethack/nethack.SlackBuild155
-rw-r--r--source/y/nethack/nethack.url1
-rw-r--r--source/y/nethack/slack-desc19
11 files changed, 182 insertions, 300 deletions
diff --git a/source/a/mkinitrd/mkinitrd.8.orig b/source/a/mkinitrd/mkinitrd.8.orig
deleted file mode 100644
index 7e0247a0..00000000
--- a/source/a/mkinitrd/mkinitrd.8.orig
+++ /dev/null
@@ -1,287 +0,0 @@
-.\" -*- nroff -*-
-.ds g \" empty
-.ds G \" empty
-.\" Like TP, but if specified indent is more than half
-.\" the current line-length - indent, use the default indent.
-.de Tp
-.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
-.el .TP "\\$1"
-..
-.TH MKINITRD 8 "27 March 2010" "Slackware Version 13.1"
-.SH NAME
-mkinitrd \- create or rebuilt an initrd (initial ramdisk) using initramfs (simple cpio+gzip).
-.SH SYNOPSIS
-.B mkinitrd
-[
-.B \-F
-]
-[
-.B \-c
-]
-[
-.B \-f filesystem
-]
-[
-.B \-h hibernate_partition
-]
-[
-.B \-k kernel_version
-]
-[
-.B \-m module1:module2:module3...
-]
-[
-.B \-o output_file
-]
-[
-.B \-r root_device
-]
-[
-.B \-s source_tree
-]
-[
-.B \-u
-]
-[
-.B \-w wait_time
-]
-[
-.B \-C device1:device2:device3...
-]
-[
-.B \-K luks_keyfile
-]
-[
-.B \-P microcode_archive
-]
-[
-.B \-B
-]
-[
-.B \-L
-]
-[
-.B \-R
-]
-[
-.B \-V
-]
-.SH DESCRIPTION
-.B mkinitrd
-is used to build an initial ramdisk. An initial ramdisk is a very small
-set of files that are loaded into RAM and "mounted" (as initramfs doesn't
-actually use a filesystem) as the kernel boots (before the main root
-filesystem is mounted). The usual reason to use an initrd is to load kernel
-kernel modules in order to access the root partition. An initrd might also
-be required to unlock an encrypted device. Usually these modules are
-required to support the filesystem used by the root partition (e.g., ext4,
-jfs, xfs), or perhaps the controller that the hard drive is attached to
-(SCSI, RAID, etc). Essentially, there are so many different options
-available in modern Linux kernels that it isn't practical to try to ship
-many different kernels to try to cover everyone's needs. It's a lot more
-flexible to ship a generic kernel and a set of kernel modules for it.
-.SH OPTIONS
-.TP
-.B \-F
-Use the contents of /etc/mkinitrd.conf as options to mkinitrd (optional).
-If this is used in conjunction with any other options passed on the command
-line, the command-line options will override the config file options.
-.br
-See mkinitrd.conf(5) for details.
-.TP
-.B \-c
-Clear the existing initrd tree (by default in /boot/initrd-tree/) first.
-If this is not done, running mkinitrd will add additional modules to the
-existing initrd.
-.TP
-.B \-f filesystem
-Specify the filesystem to use for the root partition. If this isn't given,
-mount will usually figure it out. This option must be used together with the
-\-r option in order to be beneficial.
-.TP
-.B \--help
-Display a help summary.
-.TP
-.B \-h hibernate_partition
-Specify the swap partition holding the hibernation image.
-.TP
-.B \-k kernel version
-Use kernel modules from the specified kernel version. mkinitrd will look
-for them in /lib/modules/(kernel version).
-.TP
-.B \-l keymap
-Load an alternative keyboard mapping. All supported keyboard mappings
-can be found in /usr/share/mkinitrd/keymaps.tar.gz
-Leave the '.bmap' out when you supply this parameter. E.g. '-l nl' will
-add support for dutch keyboard mapping to the initrd.
-.TP
-.B \-m module list
-This is a list of colon-delimited modules to build into the initrd.
-Any dependencies of requested modules will also be added to the initrd.
-Additional options may be added to use when loading the kernel modules
-(but in this case the entire list must be wrapped with double quotes).
-.TP
-.B \-o output image
-The file to write the initrd to. (default: /boot/initrd.gz)
-.TP
-.BI \-r \ root_device
-Specify the device to be used as the root partition. If this isn't given, the
-kernel default will be used (which is usually fine). This option must be used
-together with the \-f option in order to be beneficial.
-.I root_device
-can be a device node path, UUID, or LABEL. See examples for \fB\-C\fR below.
-.TP
-.B \-s source tree
-The directory to use as the source for the initrd. (default: /boot/initrd-tree/)
-.TP
-.B \-u
-Include udev in the initrd.
-.TP
-.B \-w
-The -w option specifies how long to wait in seconds before assuming that all the
-drives are spun up and ready to go.
-.TP
-.BI \-C \ device_list
-A colon (:) delimited list of luks encrypted block devices to be unlocked by
-the initrd using cryptsetup.
-.I device_list
-may include any of: device node path, UUID, or LABEL. All devices that must be
-unlocked in order to access the root filesystem must be specified. For example:
-
- -C /dev/sda2:/dev/sda3
-.br
- -C UUID=ec6dea40-c8d8-4590-850a-a757be60e45a
-.br
- -C LABEL=darkstar
-
-Each unlocked device will be assigned an automatically generated luks device
-name of the form luks<device> where '<device>' will be the basename of the
-encrypted device node path. For example:
-
- /dev/mapper/lukssda2
-
-As a convenience to users, where -r specifies one of the device names listed
-on the -C option it will be automatically adjusted to use the correct luks
-device name. i.e.
-
- "-C /dev/sda2 -r /dev/sda2" and
- "-C /dev/sda2 -r /dev/mapper/lukssda2"
-
-are equivalent.
-.br
-(Use with '-r' option).
-.TP
-.B \-K luks_keyfile
-When using cryptsetup to encrypt your partition, you can use a keyfile instead
-of a passphrase to unlock the LUKS volume. The LUKSKEY variable holds the
-filename of a keyfile, as well as the label (or uuid) of the partition this
-file is on. This way, you can unlock your computer automatically if you have a
-USB stick with your LUKS key inserted at boot. A passphrase will still be asked
-if the LUKS key can not be found.
-.br
-For example, if your USB thumb drive has a FAT partition with label
-"TRAVELSTICK" and the actual keyfile is called "/keys/alien.luks", then
-you need to set:
-
- -K LABEL=TRAVELSTICK:/keys/alien.luks
-.TP
-.B \-T device list
-A colon (:) delimited list of luks encrypted block devices to be passed the
-"--allow-discards" option when unlocked by the initrd using cryptsetup, e.g.
-
- -T /dev/sda2:/dev/sda4
-
-This has the effect of allowing TRIM on SSD drives. Be sure your SSD supports
-this feature (correctly) before enabling it. See fstrim(8) for more information.
-.TP
-.B \-P microcode_archive
-This option specifies a cpio archive containing updated microcode for your CPU.
-CPU manufacturers occasionally release such updates to fix bugs in the microcode
-currently embedded in the CPU. The microcode archive will be prepended to the
-output initrd, where the kernel will find it for early patching:
-
- -P /boot/intel-ucode.cpio
-
-.TP
-.B \-B
-This option adds the btrfs utility to the initrd so that multi-device filesystems
-will be picked up by a scan (/sbin/btrfs device scan). This is needed if the
-root filesystem is a Btrfs multi-device filesystem.
-.TP
-.B \-L
-This option adds LVM support to the initrd, if the tools are
-available on the system.
-.TP
-.B \-R
-This option adds RAID support to the initrd, if a static mdadm binary is
-available on the system.
-.TP
-.B \-V
-Display version information and exit.
-.SH EXAMPLES
-A simple example: Build an initrd for a reiserfs root partition:
-
- mkinitrd -c -m reiserfs
-
-Another example: Build an initrd image using Linux 2.6.33.1 kernel
-modules for a system with an ext3 root partition on /dev/sdb3:
-
- mkinitrd -c -k 2.6.33.1 -m ext3 -f ext3 -r /dev/sdb3
-
-An example of a single encrypted partition setup:
-.br
-As a user convenience, the value for the "-r" option may also be specified as
-"/dev/sda2" in this example:
-
- mkinitrd -c -k 2.6.33.1 \\
- -m ext4:ehci-hcd:uhci-hcd:usbhid \\
- -f ext4 -r /dev/mapper/lukssda2 \\
- -C /dev/sda2 \\
- -l uk
-
-Finally, A more complex example:
-.br
-This one is for a LVM Volume Group (rootvg) comprising of two LVM Physical
-Volumes, each of which is on a LUKS encrypted partition that will need to be
-unlocked before the root filesystem (/dev/rootvg/lvroot) can be accessed.
-
- mkinitrd -c -k 2.6.29.6 \\
- -m ext4:ehci-hcd:uhci-hcd:usbhid \\
- -f ext4 -r /dev/rootvg/lvroot \\
- -L -C /dev/sda2:/dev/sdb2 \\
- -l uk
-
-If run without options, mkinitrd will rebuild an initrd image using
-the contents of the $SOURCE_TREE directory, or, if that directory
-does not exist it will be created and populated, and then mkinitrd
-will exit. These options are handy for building an initrd mostly
-by hand. After creating /boot/initrd-tree/, you can add modules and
-edit files by hand, and then rerun mkinitrd to create the initrd.
-
-Once the initrd is created, you'll need to tell your boot loader
-to load it. If you boot with LILO, you will need to add an initrd
-line to /etc/lilo.conf. Here's a section of lilo.conf that shows
-how to set this up:
-
- # Linux bootable partition config begins
- image = /boot/vmlinuz-generic-2.6.33.1
- initrd = /boot/initrd.gz
- root = /dev/sda3
- label = Linux26331
- read-only
- # Linux bootable partition config ends
-
-Note that the line "root = /dev/sda3" is not needed if the root device
-has been configured in the initrd image.
-
-Once you've created the initrd and editing /etc/lilo.conf, you will
-need to run 'lilo' to write out the changed boot block. The next
-time you reboot the initrd should be loaded along with the kernel.
-
-Have fun!
-
-.SH SEE ALSO
-mkinitrd.conf (5)
-
-.SH AUTHOR
-Patrick J. Volkerding <volkerdi@slackware.com>
diff --git a/source/k/kernel-configs/config-generic-5.10.3 b/source/k/kernel-configs/config-generic-5.10.4
index 8a364425..af448b43 100644
--- a/source/k/kernel-configs/config-generic-5.10.3
+++ b/source/k/kernel-configs/config-generic-5.10.4
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.10.3 Kernel Configuration
+# Linux/x86 5.10.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.0"
CONFIG_CC_IS_GCC=y
@@ -5029,7 +5029,6 @@ CONFIG_UCB1400_CORE=m
CONFIG_MFD_RDC321X=m
# CONFIG_MFD_RT5033 is not set
CONFIG_MFD_SI476X_CORE=m
-# CONFIG_MFD_SL28CPLD is not set
CONFIG_MFD_SM501=m
# CONFIG_MFD_SM501_GPIO is not set
CONFIG_MFD_SKY81452=m
diff --git a/source/k/kernel-configs/config-generic-5.10.3.x64 b/source/k/kernel-configs/config-generic-5.10.4.x64
index 6efaf467..e2727b8b 100644
--- a/source/k/kernel-configs/config-generic-5.10.3.x64
+++ b/source/k/kernel-configs/config-generic-5.10.4.x64
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.10.3 Kernel Configuration
+# Linux/x86 5.10.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.0"
CONFIG_CC_IS_GCC=y
@@ -5030,7 +5030,6 @@ CONFIG_UCB1400_CORE=m
CONFIG_MFD_RDC321X=m
# CONFIG_MFD_RT5033 is not set
CONFIG_MFD_SI476X_CORE=m
-# CONFIG_MFD_SL28CPLD is not set
CONFIG_MFD_SM501=m
# CONFIG_MFD_SM501_GPIO is not set
CONFIG_MFD_SKY81452=m
diff --git a/source/k/kernel-configs/config-generic-smp-5.10.3-smp b/source/k/kernel-configs/config-generic-smp-5.10.4-smp
index d806da32..398affd3 100644
--- a/source/k/kernel-configs/config-generic-smp-5.10.3-smp
+++ b/source/k/kernel-configs/config-generic-smp-5.10.4-smp
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.10.3 Kernel Configuration
+# Linux/x86 5.10.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.0"
CONFIG_CC_IS_GCC=y
@@ -5075,7 +5075,6 @@ CONFIG_UCB1400_CORE=m
CONFIG_MFD_RDC321X=m
# CONFIG_MFD_RT5033 is not set
CONFIG_MFD_SI476X_CORE=m
-# CONFIG_MFD_SL28CPLD is not set
CONFIG_MFD_SM501=m
# CONFIG_MFD_SM501_GPIO is not set
CONFIG_MFD_SKY81452=m
diff --git a/source/k/kernel-configs/config-huge-5.10.3 b/source/k/kernel-configs/config-huge-5.10.4
index e5ab2253..9a7ba92b 100644
--- a/source/k/kernel-configs/config-huge-5.10.3
+++ b/source/k/kernel-configs/config-huge-5.10.4
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.10.3 Kernel Configuration
+# Linux/x86 5.10.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.0"
CONFIG_CC_IS_GCC=y
@@ -5029,7 +5029,6 @@ CONFIG_UCB1400_CORE=m
CONFIG_MFD_RDC321X=m
# CONFIG_MFD_RT5033 is not set
CONFIG_MFD_SI476X_CORE=m
-# CONFIG_MFD_SL28CPLD is not set
CONFIG_MFD_SM501=m
# CONFIG_MFD_SM501_GPIO is not set
CONFIG_MFD_SKY81452=m
diff --git a/source/k/kernel-configs/config-huge-5.10.3.x64 b/source/k/kernel-configs/config-huge-5.10.4.x64
index 3044ead0..3de78cbc 100644
--- a/source/k/kernel-configs/config-huge-5.10.3.x64
+++ b/source/k/kernel-configs/config-huge-5.10.4.x64
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.10.3 Kernel Configuration
+# Linux/x86 5.10.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.0"
CONFIG_CC_IS_GCC=y
@@ -5030,7 +5030,6 @@ CONFIG_UCB1400_CORE=m
CONFIG_MFD_RDC321X=m
# CONFIG_MFD_RT5033 is not set
CONFIG_MFD_SI476X_CORE=m
-# CONFIG_MFD_SL28CPLD is not set
CONFIG_MFD_SM501=m
# CONFIG_MFD_SM501_GPIO is not set
CONFIG_MFD_SKY81452=m
diff --git a/source/k/kernel-configs/config-huge-smp-5.10.3-smp b/source/k/kernel-configs/config-huge-smp-5.10.4-smp
index 92421fee..e525c467 100644
--- a/source/k/kernel-configs/config-huge-smp-5.10.3-smp
+++ b/source/k/kernel-configs/config-huge-smp-5.10.4-smp
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.10.3 Kernel Configuration
+# Linux/x86 5.10.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.0"
CONFIG_CC_IS_GCC=y
@@ -5075,7 +5075,6 @@ CONFIG_UCB1400_CORE=m
CONFIG_MFD_RDC321X=m
# CONFIG_MFD_RT5033 is not set
CONFIG_MFD_SI476X_CORE=m
-# CONFIG_MFD_SL28CPLD is not set
CONFIG_MFD_SM501=m
# CONFIG_MFD_SM501_GPIO is not set
CONFIG_MFD_SKY81452=m
diff --git a/source/xfce/thunar/thunar.url b/source/xfce/thunar/thunar.url
index 4cc136db..beb3e136 100644
--- a/source/xfce/thunar/thunar.url
+++ b/source/xfce/thunar/thunar.url
@@ -1 +1 @@
-https://archive.xfce.org/src/xfce/thunar/1.8/thunar-1.8.13.tar.bz2
+https://archive.xfce.org/src/xfce/thunar/4.16/thunar-4.16.1.tar.bz2
diff --git a/source/y/nethack/nethack.SlackBuild b/source/y/nethack/nethack.SlackBuild
new file mode 100755
index 00000000..7171170d
--- /dev/null
+++ b/source/y/nethack/nethack.SlackBuild
@@ -0,0 +1,155 @@
+#!/bin/bash
+
+# Copyright 2020 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PKGNAM=nethack
+VERSION=3.6.6
+SRCVER=366
+BUILD=${BUILD:-1}
+
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$(uname -m)" in
+ i?86) ARCH=i586 ;;
+ arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$(uname -m) ;;
+ esac
+ export ARCH
+fi
+
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
+ exit 0
+fi
+
+# Multi threaded builds do not work.
+#NUMJOBS=${NUMJOBS:-" -j $(expr $(nproc) + 1) "}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "armv7hl" ]; then
+ SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"
+ LIBDIRSUFFIX=""
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+TMP=${TMP:-/tmp}
+PKG=$TMP/package-$PKGNAM
+
+rm -rf $PKG
+mkdir -p $TMP $PKG
+
+cd $TMP
+rm -rf NetHack-NetHack-${VERSION}_Released
+tar xvf $CWD/nethack-${SRCVER}-src.tar.?z || exit 1
+cd NetHack-NetHack-${VERSION}_Released || exit 1
+
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \+ -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \+
+
+# Prepare sources:
+sed -e 's|^/\* \(#define LINUX\) \*/|\1|' \
+ -e 's|^/\* \(#define TIMED_DELAY\) \*/|\1|' -i include/unixconf.h
+
+# Set default directories and install to use setgid games:
+sed -e '/^HACKDIR/ s|/games/lib/\$(GAME)dir|/var/lib/nethack/|' \
+ -e '/^SHELLDIR/ s|/games|/usr/games|' \
+ -e '/^VARDIRPERM/ s|0755|0775|' \
+ -e '/^VARFILEPERM/ s|0600|0664|' \
+ -e '/^GAMEPERM/ s|0755|02755|' \
+ -e 's|\(DSYSCF_FILE=\)\\"[^"]*\\"|\1\\"/var/lib/nethack/sysconf\\"|' \
+ -e 's|\(DHACKDIR=\)\\"[^"]*\\"|\1\\"/var/lib/nethack/\\"|' -i sys/unix/hints/linux
+
+sed -e 's|^#GAMEUID.*|GAMEUID = root|' \
+ -e 's|^#GAMEGRP.*|GAMEGRP = games|' \
+ -e '/^FILEPERM\s*=/ s|0644|0664|' \
+ -e '/^DIRPERM\s*=/ s|0755|0775|' -i sys/unix/Makefile.top
+
+sed -e "/^MANDIR\s*=/s|/usr/man/man6|$PKG/usr/man/man6|" -i sys/unix/Makefile.doc
+
+# Create a few directories:
+mkdir -p $PKG/usr/man/man6
+mkdir -p $PKG/usr/doc/nethack-$VERSION
+mkdir -p $PKG/var/lib
+
+# Prepare to build:
+( cd sys/unix ; sh setup.sh hints/linux )
+
+# Build and install:
+make -j1 install manpages PREFIX=$PKG
+
+# Fix some paths:
+sed -e "s|HACKDIR=$PKG/|HACKDIR=/|" \
+ -e 's|HACK=$HACKDIR|HACK=/usr/share/games/nethack|' \
+ -i $PKG/usr/games/nethack
+mkdir -p $PKG/usr/share/games/nethack
+mv $PKG/var/lib/nethack/{nethack,recover} $PKG/usr/share/games/nethack
+
+# Fix perms:
+chown -R root:games $PKG/var/lib/nethack
+chown root:games $PKG/usr/share/games/nethack/{nethack,recover}
+chmod 2755 $PKG/usr/share/games/nethack/{nethack,recover}
+
+# Add some documentation:
+mkdir -p $PKG/usr/doc/nethack-$VERSION
+cp -a \
+ Porting README* \
+ dat/license \
+ doc/Guidebook.txt \
+$PKG/usr/doc/nethack-$VERSION
+
+# Strip binaries:
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+
+# Compress manual pages:
+find $PKG/usr/man -type f -exec gzip -9 {} \+
+for i in $( find $PKG/usr/man -type l ) ; do
+ ln -s $( readlink $i ).gz $i.gz
+ rm $i
+done
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
diff --git a/source/y/nethack/nethack.url b/source/y/nethack/nethack.url
new file mode 100644
index 00000000..01ddbf40
--- /dev/null
+++ b/source/y/nethack/nethack.url
@@ -0,0 +1 @@
+https://www.nethack.org/download/3.6.6/nethack-366-src.tgz
diff --git a/source/y/nethack/slack-desc b/source/y/nethack/slack-desc
new file mode 100644
index 00000000..b26b9e37
--- /dev/null
+++ b/source/y/nethack/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+nethack: nethack (Rogue-like game)
+nethack:
+nethack: NetHack is a single-player dungeon exploration game. The emphasis is
+nethack: on discovering the detail of the dungeon. Each game presents a
+nethack: different landscape - the random number generator provides an
+nethack: essentially unlimited number of variations of the dungeon and its
+nethack: denizens to be discovered by the player in one of a number of
+nethack: characters: you can pick your race, your role, and your gender.
+nethack:
+nethack: Homepage: http://www.nethack.org
+nethack: