summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasissounds@gmail.com>2014-11-20 20:39:01 -0500
committerKylie McClain <somasissounds@gmail.com>2014-11-20 20:39:01 -0500
commit81eeeaec560e918b78f444ef18432af2b89271e0 (patch)
tree8162798b1880169cccf58303c75a81cfabc0ac9a
downloadpkgbuilds-81eeeaec560e918b78f444ef18432af2b89271e0.tar.gz
pkgbuilds-81eeeaec560e918b78f444ef18432af2b89271e0.tar.xz
pkgbuilds-81eeeaec560e918b78f444ef18432af2b89271e0.zip
inital commit
-rw-r--r--.gitignore4
-rw-r--r--coreutils-toybox/PKGBUILD49
-rw-r--r--getopt/PKGBUILD20
-rw-r--r--mawk/PKGBUILD33
-rwxr-xr-xtoybox/PKGBUILD57
-rw-r--r--toybox/config273
-rw-r--r--util-linux-toybox/PKGBUILD124
-rw-r--r--util-linux-toybox/pam-common6
-rw-r--r--util-linux-toybox/pam-login7
-rw-r--r--util-linux-toybox/pam-su9
-rw-r--r--util-linux-toybox/util-linux.install21
-rw-r--r--util-linux-toybox/uuidd.tmpfiles1
12 files changed, 604 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..321479c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*src/*
+*pkg/*
+*.tar.xz
+
diff --git a/coreutils-toybox/PKGBUILD b/coreutils-toybox/PKGBUILD
new file mode 100644
index 0000000..4dffb56
--- /dev/null
+++ b/coreutils-toybox/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 217740 2014-07-22 22:49:21Z seblu $
+# Maintainer: Sébastien "Seblu" Luttringer
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# Contributor: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=coreutils-toybox
+pkgver=8.23
+pkgrel=1
+pkgdesc='The basic file, shell and text manipulation utilities of the GNU operating system - only includes what toybox does not'
+arch=('i686' 'x86_64')
+license=('GPL3')
+url='http://www.gnu.org/software/coreutils'
+groups=('base')
+depends=('glibc' 'pam' 'acl' 'gmp' 'libcap' 'openssl')
+source=("ftp://ftp.gnu.org/gnu/coreutils/coreutils-$pkgver.tar.xz")
+md5sums=('abed135279f87ad6762ce57ff6d89c41')
+
+build() {
+ cd coreutils-$pkgver
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib
+ make
+}
+
+package() {
+ cd coreutils-$pkgver
+ make DESTDIR="$pkgdir" install
+ IFS=$'\n'
+ for file in $(find "$pkgdir" -type f);do
+ case "$file" in
+ */tr)
+ true
+ ;;
+ *expr*)
+ true
+ ;;
+ */users)
+ true
+ ;;
+ *)
+ rm "$file"
+ ;;
+ esac
+ done
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/getopt/PKGBUILD b/getopt/PKGBUILD
new file mode 100644
index 0000000..65bcfd6
--- /dev/null
+++ b/getopt/PKGBUILD
@@ -0,0 +1,20 @@
+pkgname=getopt
+pkgver=1.1.5
+pkgrel=1
+pkgdesc="Improved, drop-in replacement for getopt"
+arch=('i686' 'x86_64')
+license=('GPL-2')
+depends=('glibc')
+url="http://frodo.looijaard.name/project/getopt "
+source=("http://frodo.looijaard.name/system/files/software/$pkgname/$pkgname-$pkgver.tar.gz")
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ make
+}
+
+package () {
+ cp "$srcdir/$pkgname-$pkgver/$pkgname.1" "$pkgdir/$pkgname.1"
+ cp "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/$pkgname"
+}
+md5sums=('546acfdb67ba16b8658a45ade9a64d5d')
diff --git a/mawk/PKGBUILD b/mawk/PKGBUILD
new file mode 100644
index 0000000..06cfb16
--- /dev/null
+++ b/mawk/PKGBUILD
@@ -0,0 +1,33 @@
+# Contributor: judd <jvinet@zeroflux.org>
+# Committer: Judd Vinet <jvinet@zeroflux.org>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+
+pkgname=mawk
+pkgver=1.3.4_20141027
+pkgrel=1
+pkgdesc="An interpreter for the AWK Programming Language"
+arch=('i686' 'x86_64')
+license=('GPL')
+provides=('awk' 'gawk')
+conflicts=('awk' 'gawk')
+depends=('glibc')
+url="http://invisible-island.net/mawk/"
+source=("$pkgname-$pkgver.tar.gz::http://invisible-island.net/datafiles/release/$pkgname.tar.gz")
+md5sums=('4aa2b58c05efd604e493061d64c41845')
+
+build() {
+ cd $srcdir/$pkgname-${pkgver/_/-}
+ sed -ie 's|log()|log(1.0)|g' configure
+ sed -ie "s|trap *0|trap 'exit 0' 0|g" test/*
+ ./configure
+ make -j1
+}
+
+package () {
+ cd $srcdir/$pkgname-${pkgver/_/-}
+ install -d $pkgdir/usr/bin
+ install -d $pkgdir/usr/share/man/man1
+ make BINDIR=$pkgdir/usr/bin \
+ MANDIR=$pkgdir/usr/share/man/man1 install
+ ln -s "/usr/bin/mawk" "$pkgdir/usr/bin/awk"
+}
diff --git a/toybox/PKGBUILD b/toybox/PKGBUILD
new file mode 100755
index 0000000..2031bc5
--- /dev/null
+++ b/toybox/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Kylie McClain <somasissounds@gmail.com>
+
+pkgname=toybox
+pkgver=0.5.0
+pkgrel=1
+pkgdesc="A BSD-licensed alternative to busybox"
+arch=('i686' 'x86_64' 'armv5' 'armv6' 'armv7')
+license=('BSD')\
+url="http://landley.net/toybox/"
+#makedepends=('')
+source=('toybox.tar.bz2::http://landley.net/toybox/downloads/$pkgname-$pkgver.tar.bz2' 'config')
+provides=('acpi' 'coreutils' 'diffutils' 'findutils' 'util-linux=2.23' 'procps-ng' 'inetutils' 'usbutils' 'grep' 'patch' 'which' 'systemd-sysvcompat' 'tar' 'rfkill' 'cpio')
+replaces=('acpi' 'coreutils' 'diffutils' 'findutils' 'util-linux>=2.23' 'procps-ng' 'inetutils' 'usbutils' 'grep' 'patch' 'which' 'systemd-sysvcompat' 'tar' 'rfkill' 'cpio')
+conflicts=('acpi' 'coreutils' 'diffutils' 'findutils' 'util-linux>=2.23' 'procps-ng' 'inetutils' 'usbutils' 'grep' 'patch' 'which' 'systemd-sysvcompat' 'tar' 'rfkill' 'cpio')
+shim_utils=('vdir')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ cp "$startdir/config" "$srcdir/$pkgname-$pkgver/.config"
+ # make menuconfig
+ make
+}
+
+package() {
+ msg "Making directories"
+ mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+ mkdir -p "$pkgdir/usr/bin"
+
+ msg "Making shim utils..."
+ for shim_util in ${shim_utils[@]};do
+ msg "\`$shim_util\`..."
+ make_$shim_util > "$pkgdir/usr/bin/$shim_util"
+ chmod 755 "$pkgdir/usr/bin/$shim_util"
+ done
+
+ cd "$srcdir/$pkgname-$pkgver"
+ #make install
+ install -m755 "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/"
+ cp "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/toybox/"
+ for i in $($pkgdir/usr/bin/toybox); do
+ ln -s "/usr/bin/toybox" "$pkgdir/usr/bin/$i"
+ done
+}
+
+make_vdir() {
+ cat <<EOF
+#!/bin/sh
+ls -lb "$@"
+EOF
+}
+
+md5sums=('2cb6e8b34134038d86048e117f77765f'
+ 'bb236dc600d2a9210a6912bd137a9d59')
+md5sums=('2cb6e8b34134038d86048e117f77765f'
+ '1f21fb36e1f87accfb807015bc8b9220')
+md5sums=('2cb6e8b34134038d86048e117f77765f'
+ 'bd6e3ffe15ce045b5ccc4348fb40b5f0')
diff --git a/toybox/config b/toybox/config
new file mode 100644
index 0000000..8163b45
--- /dev/null
+++ b/toybox/config
@@ -0,0 +1,273 @@
+#
+# Automatically generated make config: don't edit
+# ToyBox version: KCONFIG_VERSION
+# Tue Oct 28 22:15:37 2014
+#
+CONFIG_TOYBOX_CONTAINER=y
+CONFIG_TOYBOX_FIFREEZE=y
+CONFIG_TOYBOX_ICONV=y
+CONFIG_TOYBOX_FALLOCATE=y
+
+#
+# Posix commands
+#
+CONFIG_BASENAME=y
+CONFIG_CAL=y
+CONFIG_CAT=y
+CONFIG_CHGRP=y
+CONFIG_CHMOD=y
+CONFIG_CKSUM=y
+CONFIG_CMP=y
+CONFIG_COMM=y
+CONFIG_CP=y
+CONFIG_CP_MORE=y
+CONFIG_CP_MV=y
+CONFIG_CP_MV_MORE=y
+CONFIG_INSTALL=y
+CONFIG_CPIO=y
+CONFIG_CUT=y
+CONFIG_DATE=y
+CONFIG_DF=y
+CONFIG_DF_PEDANTIC=y
+CONFIG_DIRNAME=y
+CONFIG_DU=y
+CONFIG_ECHO=y
+CONFIG_ENV=y
+CONFIG_EXPAND=y
+CONFIG_FALSE=y
+CONFIG_FIND=y
+CONFIG_GREP=y
+CONFIG_HEAD=y
+CONFIG_ID=y
+# CONFIG_GROUPS is not set
+CONFIG_LOGNAME=y
+CONFIG_WHOAMI=y
+CONFIG_KILL=y
+CONFIG_KILLALL5=y
+CONFIG_LINK=y
+CONFIG_LN=y
+CONFIG_LS=y
+CONFIG_LS_COLOR=y
+CONFIG_MKDIR=y
+CONFIG_MKFIFO=y
+CONFIG_NICE=y
+CONFIG_NL=y
+CONFIG_NOHUP=y
+CONFIG_OD=y
+CONFIG_PASTE=y
+CONFIG_PATCH=y
+CONFIG_PWD=y
+CONFIG_RENICE=y
+CONFIG_RM=y
+CONFIG_RMDIR=y
+CONFIG_SLEEP=y
+CONFIG_SLEEP_FLOAT=y
+CONFIG_SORT=y
+CONFIG_SORT_BIG=y
+CONFIG_SORT_FLOAT=y
+CONFIG_SPLIT=y
+# CONFIG_STRINGS is not set
+CONFIG_TAIL=y
+CONFIG_TAIL_SEEK=y
+CONFIG_TEE=y
+CONFIG_TIME=y
+CONFIG_TOUCH=y
+CONFIG_TRUE=y
+CONFIG_TTY=y
+CONFIG_UNAME=y
+CONFIG_UNIQ=y
+CONFIG_UNLINK=y
+# CONFIG_UUDECODE is not set
+# CONFIG_UUENCODE is not set
+CONFIG_WC=y
+CONFIG_WHO=y
+CONFIG_XARGS=y
+# CONFIG_XARGS_PEDANTIC is not set
+
+#
+# pending
+#
+# CONFIG_ARP is not set
+# CONFIG_ARPING is not set
+# CONFIG_BOOTCHARTD is not set
+# CONFIG_BRCTL is not set
+# CONFIG_COMPRESS is not set
+# CONFIG_ZCAT is not set
+# CONFIG_CROND is not set
+CONFIG_DD=y
+# CONFIG_DHCP is not set
+# CONFIG_DHCPD is not set
+# CONFIG_DEBUG_DHCP is not set
+CONFIG_DIFF=y
+# CONFIG_DUMPLEASES is not set
+# CONFIG_EXPR is not set
+CONFIG_FDISK=y
+CONFIG_FOLD=y
+CONFIG_FSCK=y
+# CONFIG_FTPGET is not set
+# CONFIG_GETTY is not set
+# CONFIG_GROUPADD is not set
+# CONFIG_GROUPDEL is not set
+CONFIG_HOST=y
+# CONFIG_ICONV is not set
+# CONFIG_INIT is not set
+# CONFIG_IP is not set
+CONFIG_IPCS=y
+# CONFIG_KLOGD is not set
+# CONFIG_KLOGD_SOURCE_RING_BUFFER is not set
+CONFIG_LAST=y
+# CONFIG_LOGGER is not set
+# CONFIG_MDEV is not set
+# CONFIG_MDEV_CONF is not set
+# CONFIG_MIX is not set
+# CONFIG_MKE2FS is not set
+# CONFIG_MKE2FS_JOURNAL is not set
+# CONFIG_MKE2FS_GEN is not set
+# CONFIG_MKE2FS_LABEL is not set
+# CONFIG_MKE2FS_EXTENDED is not set
+# CONFIG_MODPROBE is not set
+CONFIG_MORE=y
+# CONFIG_NETSTAT is not set
+# CONFIG_OPENVT is not set
+# CONFIG_DEALLOCVT is not set
+CONFIG_PGREP=y
+# CONFIG_PING is not set
+CONFIG_PRINTF=y
+CONFIG_PS=y
+# CONFIG_RESET is not set
+# CONFIG_ROUTE is not set
+# CONFIG_SED is not set
+# CONFIG_SH is not set
+# CONFIG_SH_INTERACTIVE is not set
+# CONFIG_EXIT is not set
+# CONFIG_CD is not set
+# CONFIG_SULOGIN is not set
+# CONFIG_SYSLOGD is not set
+CONFIG_TAR=y
+# CONFIG_TCPSVD is not set
+CONFIG_TELNET=y
+CONFIG_TELNETD=y
+CONFIG_TEST=y
+# CONFIG_TFTPD is not set
+CONFIG_TOP=y
+CONFIG_TRACEROUTE=y
+# CONFIG_USERADD is not set
+# CONFIG_USERDEL is not set
+CONFIG_WATCH=y
+# CONFIG_XZCAT is not set
+
+#
+# Other commands
+#
+CONFIG_ACPI=y
+CONFIG_BLKID=y
+CONFIG_BLOCKDEV=y
+# CONFIG_BZCAT is not set
+CONFIG_CATV=y
+CONFIG_CHROOT=y
+# CONFIG_CHVT is not set
+# CONFIG_CLEAR is not set
+CONFIG_COUNT=y
+CONFIG_DOS2UNIX=y
+CONFIG_EJECT=y
+CONFIG_FACTOR=y
+CONFIG_FALLOCATE=y
+CONFIG_FREE=y
+CONFIG_FREERAMDISK=y
+CONFIG_FSFREEZE=y
+CONFIG_HELP=y
+# CONFIG_HELP_EXTRAS is not set
+# CONFIG_IFCONFIG is not set
+CONFIG_INOTIFYD=y
+# CONFIG_INSMOD is not set
+# CONFIG_LOGIN is not set
+CONFIG_LOSETUP=y
+# CONFIG_LSATTR is not set
+# CONFIG_CHATTR is not set
+# CONFIG_LSMOD is not set
+# CONFIG_LSPCI is not set
+# CONFIG_LSPCI_TEXT is not set
+CONFIG_LSUSB=y
+CONFIG_MAKEDEVS=y
+CONFIG_MKPASSWD=y
+CONFIG_MKSWAP=y
+# CONFIG_MODINFO is not set
+CONFIG_MOUNTPOINT=y
+CONFIG_NBD_CLIENT=y
+CONFIG_NETCAT=y
+CONFIG_NETCAT_LISTEN=y
+CONFIG_ONEIT=y
+# CONFIG_PARTPROBE is not set
+CONFIG_PIVOT_ROOT=y
+CONFIG_PMAP=y
+CONFIG_PRINTENV=y
+CONFIG_PWDX=y
+CONFIG_READAHEAD=y
+CONFIG_READLINK=y
+CONFIG_REALPATH=y
+CONFIG_REBOOT=y
+CONFIG_REV=y
+CONFIG_RFKILL=y
+# CONFIG_RMMOD is not set
+CONFIG_SETSID=y
+CONFIG_STAT=y
+CONFIG_SWAPOFF=y
+CONFIG_SWAPON=y
+CONFIG_SWITCH_ROOT=y
+CONFIG_SYSCTL=y
+CONFIG_TAC=y
+# CONFIG_TASKSET is not set
+CONFIG_TIMEOUT=y
+CONFIG_TRUNCATE=y
+CONFIG_UNSHARE=y
+CONFIG_UPTIME=y
+CONFIG_USLEEP=y
+CONFIG_VCONFIG=y
+CONFIG_VMSTAT=y
+CONFIG_W=y
+CONFIG_WHICH=y
+CONFIG_YES=y
+
+#
+# Linux Standard Base commands
+#
+CONFIG_DMESG=y
+CONFIG_HOSTNAME=y
+# CONFIG_KILLALL is not set
+CONFIG_MD5SUM=y
+CONFIG_SHA1SUM=y
+CONFIG_MKNOD=y
+CONFIG_MKTEMP=y
+CONFIG_MOUNT=y
+# CONFIG_NFSMOUNT is not set
+# CONFIG_PASSWD is not set
+CONFIG_PIDOF=y
+CONFIG_SEQ=y
+# CONFIG_SU is not set
+CONFIG_SYNC=y
+CONFIG_UMOUNT=y
+
+#
+# Example commands
+#
+# CONFIG_HELLO is not set
+# CONFIG_SKELETON is not set
+# CONFIG_SKELETON_ALIAS is not set
+
+#
+#
+#
+
+#
+# Toybox global settings
+#
+CONFIG_TOYBOX=y
+CONFIG_TOYBOX_SUID=y
+CONFIG_TOYBOX_FLOAT=y
+CONFIG_TOYBOX_HELP=y
+CONFIG_TOYBOX_HELP_DASHDASH=y
+CONFIG_TOYBOX_I18N=y
+# CONFIG_TOYBOX_FREE is not set
+# CONFIG_TOYBOX_DEBUG is not set
+CONFIG_TOYBOX_UID_SYS=100
+CONFIG_TOYBOX_UID_USR=500
diff --git a/util-linux-toybox/PKGBUILD b/util-linux-toybox/PKGBUILD
new file mode 100644
index 0000000..8c45548
--- /dev/null
+++ b/util-linux-toybox/PKGBUILD
@@ -0,0 +1,124 @@
+# $Id: PKGBUILD 221785 2014-09-15 20:51:32Z dreisner $
+# Maintainer: Tom Gundersen <teg@jklm.no>
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgbase=util-linux-toybox
+pkgname=(util-linux-toybox libutil-linux)
+pkgver=2.25.2
+pkgrel=1
+pkgdesc="Miscellaneous system utilities for Linux"
+url="http://www.kernel.org/pub/linux/utils/util-linux/"
+arch=('i686' 'x86_64')
+makedepends=('systemd' 'python')
+license=('GPL2')
+options=('strip' 'debug')
+source=("ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25/util-linux-$pkgver.tar.xz"
+ uuidd.tmpfiles
+ pam-{login,common,su})
+md5sums=('2ff36a8f8ede70f66c5ad0fb09e40e79'
+ 'a39554bfd65cccfd8254bb46922f4a67'
+ '4368b3f98abd8a32662e094c54e7f9b1'
+ 'a31374fef2cba0ca34dfc7078e2969e4'
+ 'fa85e5cce5d723275b14365ba71a8aad')
+
+build() {
+ cd "util-linux-$pkgver"
+
+ ./configure --disable-all-programs \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ --bindir=/usr/bin \
+ --localstatedir=/run \
+ --enable-fs-paths-extra=/usr/bin \
+ --enable-libblkid \
+ --enable-libmount \
+ --enable-libsmartcols \
+ --enable-libuuid \
+ --enable-partx \
+ --enable-uuidd \
+ --enable-nsenter \
+ --enable-agetty \
+ --enable-cramfs \
+ --enable-bfs \
+ --enable-minix \
+ --enable-fdformat \
+ --enable-hwclock \
+ --enable-wdctl \
+ --enable-utmpdump \
+ --enable-mesg \
+ --enable-rename \
+ --enable-vipw \
+ --enable-newgrp \
+ --enable-chfn-chsh \
+ --enable-login \
+ --enable-nologin \
+ --enable-sulogin \
+ --enable-su \
+ --enable-runuser \
+ --enable-ul \
+ --enable-pg \
+ --enable-setterm \
+ --enable-schedutils \
+ --enable-wall \
+ --enable-write \
+ --enable-socket-activation \
+ --enable-getopt \
+ --with-python=3
+ make
+}
+
+package_util-linux-toybox() {
+ conflicts=('util-linux-ng' 'eject')
+ provides=("util-linux-ng=$pkgver" 'eject')
+ depends=('pam' 'shadow' 'coreutils' 'libsystemd' 'libutil-linux')
+ optdepends=('python: python bindings to libmount')
+ install=util-linux.install
+ groups=('base' 'base-devel')
+ backup=(etc/pam.d/chfn
+ etc/pam.d/chsh
+ etc/pam.d/login
+ etc/pam.d/su
+ etc/pam.d/su-l)
+
+ cd "util-linux-$pkgver"
+
+ make DESTDIR="${pkgdir}" install
+
+ # setuid chfn and chsh
+ chmod 4755 "$pkgdir"/usr/bin/{newgrp,ch{sh,fn}}
+
+ # install PAM files for login-utils
+ install -Dm644 "$srcdir/pam-common" "$pkgdir/etc/pam.d/chfn"
+ install -m644 "$srcdir/pam-common" "$pkgdir/etc/pam.d/chsh"
+ install -m644 "$srcdir/pam-login" "$pkgdir/etc/pam.d/login"
+ install -m644 "$srcdir/pam-su" "${pkgdir}/etc/pam.d/su"
+ install -m644 "$srcdir/pam-su" "${pkgdir}/etc/pam.d/su-l"
+
+ # include tmpfiles fragment for uuidd
+ # TODO(dreisner): offer this upstream?
+ install -Dm644 "$srcdir/uuidd.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/uuidd.conf"
+
+ # usrmove
+ cd "$pkgdir"
+ mv {,usr/}sbin/* usr/bin
+ rmdir sbin usr/sbin
+
+ ### create libutil-linux split
+ rm -rf "$srcdir/_libutil-linux"
+ install -dm755 "$srcdir"/_libutil-linux/usr/lib
+ cd "$srcdir"/_libutil-linux
+ mv "$pkgdir"/usr/lib/lib*.{a,so}* usr/lib
+}
+
+package_libutil-linux() {
+ pkgdesc="util-linux runtime libraries"
+ provides=('libblkid.so' 'libmount.so' 'libsmartcols.so' 'libuuid.so')
+
+ mv "$srcdir/_libutil-linux"/* "$pkgdir"
+}
+md5sums=('cab3d7be354000f629bc601238b629b3'
+ 'a39554bfd65cccfd8254bb46922f4a67'
+ '4368b3f98abd8a32662e094c54e7f9b1'
+ 'a31374fef2cba0ca34dfc7078e2969e4'
+ 'fa85e5cce5d723275b14365ba71a8aad')
diff --git a/util-linux-toybox/pam-common b/util-linux-toybox/pam-common
new file mode 100644
index 0000000..a7bf8a4
--- /dev/null
+++ b/util-linux-toybox/pam-common
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth sufficient pam_rootok.so
+auth required pam_unix.so
+account required pam_unix.so
+session required pam_unix.so
+password required pam_permit.so
diff --git a/util-linux-toybox/pam-login b/util-linux-toybox/pam-login
new file mode 100644
index 0000000..1960d94
--- /dev/null
+++ b/util-linux-toybox/pam-login
@@ -0,0 +1,7 @@
+#%PAM-1.0
+
+auth required pam_securetty.so
+auth requisite pam_nologin.so
+auth include system-local-login
+account include system-local-login
+session include system-local-login
diff --git a/util-linux-toybox/pam-su b/util-linux-toybox/pam-su
new file mode 100644
index 0000000..cf15f40
--- /dev/null
+++ b/util-linux-toybox/pam-su
@@ -0,0 +1,9 @@
+#%PAM-1.0
+auth sufficient pam_rootok.so
+# Uncomment the following line to implicitly trust users in the "wheel" group.
+#auth sufficient pam_wheel.so trust use_uid
+# Uncomment the following line to require a user to be in the "wheel" group.
+#auth required pam_wheel.so use_uid
+auth required pam_unix.so
+account required pam_unix.so
+session required pam_unix.so
diff --git a/util-linux-toybox/util-linux.install b/util-linux-toybox/util-linux.install
new file mode 100644
index 0000000..4c0bb10
--- /dev/null
+++ b/util-linux-toybox/util-linux.install
@@ -0,0 +1,21 @@
+post_install() {
+ # we don't want use systemd-tmpfiles here because
+ # the package dependency would create a circular dep.
+ if [ ! -d run/uuidd ]; then
+ # refer to uid/gid by number to avoid dependency on filesystem
+ install -o 68 -g 68 -dm755 run/uuidd
+ fi
+}
+
+post_upgrade() {
+ if [ "$(vercmp $2 2.21.2-4)" -lt 0 ]; then
+ if [ -f /var/lib/hwclock/adjtime ]; then
+ mv /var/lib/hwclock/adjtime /etc/adjtime
+ fi
+ if [ -d /var/lib/hwclock ]; then
+ rmdir /var/lib/hwclock
+ fi
+ fi
+
+ post_install
+}
diff --git a/util-linux-toybox/uuidd.tmpfiles b/util-linux-toybox/uuidd.tmpfiles
new file mode 100644
index 0000000..b059cfe
--- /dev/null
+++ b/util-linux-toybox/uuidd.tmpfiles
@@ -0,0 +1 @@
+d /run/uuidd 0755 uuidd uuidd