diff options
| author | Shokara Kou <kou@13f0.net> | 2022-05-13 11:47:58 -0400 |
|---|---|---|
| committer | Shokara Kou <kou@13f0.net> | 2022-12-10 16:12:53 -0500 |
| commit | e3ca4e1fda985e1ca0301faf44149f0f75770d21 (patch) | |
| tree | 96c6ea1318a63ce8f53aa8a5337774ec80decd52 /ubase | |
| parent | 26c8bf0033c808fca7675fe42babbf3a4d56e787 (diff) | |
add s/ubase
Replaces GNU coreutils and util-linux
Diffstat (limited to 'ubase')
| -rw-r--r-- | ubase/.footprint | 109 | ||||
| -rw-r--r-- | ubase/.md5sum | 1 | ||||
| -rw-r--r-- | ubase/Pkgfile | 24 | ||||
| -rw-r--r-- | ubase/include-sysmacros_h.diff | 52 |
4 files changed, 186 insertions, 0 deletions
diff --git a/ubase/.footprint b/ubase/.footprint new file mode 100644 index 0000000..80e6998 --- /dev/null +++ b/ubase/.footprint | |||
| @@ -0,0 +1,109 @@ | |||
| 1 | drwxr-xr-x root/root bin/ | ||
| 2 | lrwxrwxrwx root/root bin/blkdiscard -> ubase-box | ||
| 3 | lrwxrwxrwx root/root bin/chvt -> ubase-box | ||
| 4 | lrwxrwxrwx root/root bin/clear -> ubase-box | ||
| 5 | lrwxrwxrwx root/root bin/ctrlaltdel -> ubase-box | ||
| 6 | lrwxrwxrwx root/root bin/dd -> ubase-box | ||
| 7 | lrwxrwxrwx root/root bin/df -> ubase-box | ||
| 8 | lrwxrwxrwx root/root bin/dmesg -> ubase-box | ||
| 9 | lrwxrwxrwx root/root bin/eject -> ubase-box | ||
| 10 | lrwxrwxrwx root/root bin/fallocate -> ubase-box | ||
| 11 | lrwxrwxrwx root/root bin/free -> ubase-box | ||
| 12 | lrwxrwxrwx root/root bin/freeramdisk -> ubase-box | ||
| 13 | lrwxrwxrwx root/root bin/fsfreeze -> ubase-box | ||
| 14 | lrwxrwxrwx root/root bin/getty -> ubase-box | ||
| 15 | lrwxrwxrwx root/root bin/halt -> ubase-box | ||
| 16 | lrwxrwxrwx root/root bin/hwclock -> ubase-box | ||
| 17 | lrwxrwxrwx root/root bin/id -> ubase-box | ||
| 18 | lrwxrwxrwx root/root bin/insmod -> ubase-box | ||
| 19 | lrwxrwxrwx root/root bin/killall5 -> ubase-box | ||
| 20 | lrwxrwxrwx root/root bin/last -> ubase-box | ||
| 21 | lrwxrwxrwx root/root bin/lastlog -> ubase-box | ||
| 22 | lrwxrwxrwx root/root bin/login -> ubase-box | ||
| 23 | lrwxrwxrwx root/root bin/lsmod -> ubase-box | ||
| 24 | lrwxrwxrwx root/root bin/lsusb -> ubase-box | ||
| 25 | lrwxrwxrwx root/root bin/mesg -> ubase-box | ||
| 26 | lrwxrwxrwx root/root bin/mknod -> ubase-box | ||
| 27 | lrwxrwxrwx root/root bin/mkswap -> ubase-box | ||
| 28 | lrwxrwxrwx root/root bin/mount -> ubase-box | ||
| 29 | lrwxrwxrwx root/root bin/mountpoint -> ubase-box | ||
| 30 | lrwxrwxrwx root/root bin/nologin -> ubase-box | ||
| 31 | lrwxrwxrwx root/root bin/pagesize -> ubase-box | ||
| 32 | lrwxrwxrwx root/root bin/passwd -> ubase-box | ||
| 33 | lrwxrwxrwx root/root bin/pidof -> ubase-box | ||
| 34 | lrwxrwxrwx root/root bin/pivot_root -> ubase-box | ||
| 35 | lrwxrwxrwx root/root bin/ps -> ubase-box | ||
| 36 | lrwxrwxrwx root/root bin/pwdx -> ubase-box | ||
| 37 | lrwxrwxrwx root/root bin/readahead -> ubase-box | ||
| 38 | lrwxrwxrwx root/root bin/respawn -> ubase-box | ||
| 39 | lrwxrwxrwx root/root bin/rmmod -> ubase-box | ||
| 40 | lrwxrwxrwx root/root bin/stat -> ubase-box | ||
| 41 | lrwxrwxrwx root/root bin/su -> ubase-box | ||
| 42 | lrwxrwxrwx root/root bin/swaplabel -> ubase-box | ||
| 43 | lrwxrwxrwx root/root bin/swapoff -> ubase-box | ||
| 44 | lrwxrwxrwx root/root bin/swapon -> ubase-box | ||
| 45 | lrwxrwxrwx root/root bin/switch_root -> ubase-box | ||
| 46 | lrwxrwxrwx root/root bin/sysctl -> ubase-box | ||
| 47 | lrwxrwxrwx root/root bin/truncate -> ubase-box | ||
| 48 | -rwxr-xr-x root/root bin/ubase-box | ||
| 49 | lrwxrwxrwx root/root bin/umount -> ubase-box | ||
| 50 | lrwxrwxrwx root/root bin/unshare -> ubase-box | ||
| 51 | lrwxrwxrwx root/root bin/uptime -> ubase-box | ||
| 52 | lrwxrwxrwx root/root bin/vtallow -> ubase-box | ||
| 53 | lrwxrwxrwx root/root bin/watch -> ubase-box | ||
| 54 | lrwxrwxrwx root/root bin/who -> ubase-box | ||
| 55 | drwxr-xr-x root/root usr/ | ||
| 56 | drwxr-xr-x root/root usr/share/ | ||
| 57 | drwxr-xr-x root/root usr/share/man/ | ||
| 58 | drwxr-xr-x root/root usr/share/man/man1/ | ||
| 59 | -rw-r--r-- root/root usr/share/man/man1/chvt.1.gz | ||
| 60 | -rw-r--r-- root/root usr/share/man/man1/clear.1.gz | ||
| 61 | -rw-r--r-- root/root usr/share/man/man1/dd.1.gz | ||
| 62 | -rw-r--r-- root/root usr/share/man/man1/df.1.gz | ||
| 63 | -rw-r--r-- root/root usr/share/man/man1/dmesg.1.gz | ||
| 64 | -rw-r--r-- root/root usr/share/man/man1/eject.1.gz | ||
| 65 | -rw-r--r-- root/root usr/share/man/man1/fallocate.1.gz | ||
| 66 | -rw-r--r-- root/root usr/share/man/man1/free.1.gz | ||
| 67 | -rw-r--r-- root/root usr/share/man/man1/id.1.gz | ||
| 68 | -rw-r--r-- root/root usr/share/man/man1/login.1.gz | ||
| 69 | -rw-r--r-- root/root usr/share/man/man1/mesg.1.gz | ||
| 70 | -rw-r--r-- root/root usr/share/man/man1/mknod.1.gz | ||
| 71 | -rw-r--r-- root/root usr/share/man/man1/mountpoint.1.gz | ||
| 72 | -rw-r--r-- root/root usr/share/man/man1/pagesize.1.gz | ||
| 73 | -rw-r--r-- root/root usr/share/man/man1/passwd.1.gz | ||
| 74 | -rw-r--r-- root/root usr/share/man/man1/pidof.1.gz | ||
| 75 | -rw-r--r-- root/root usr/share/man/man1/ps.1.gz | ||
| 76 | -rw-r--r-- root/root usr/share/man/man1/pwdx.1.gz | ||
| 77 | -rw-r--r-- root/root usr/share/man/man1/respawn.1.gz | ||
| 78 | -rw-r--r-- root/root usr/share/man/man1/stat.1.gz | ||
| 79 | -rw-r--r-- root/root usr/share/man/man1/su.1.gz | ||
| 80 | -rw-r--r-- root/root usr/share/man/man1/truncate.1.gz | ||
| 81 | -rw-r--r-- root/root usr/share/man/man1/unshare.1.gz | ||
| 82 | -rw-r--r-- root/root usr/share/man/man1/uptime.1.gz | ||
| 83 | -rw-r--r-- root/root usr/share/man/man1/vtallow.1.gz | ||
| 84 | -rw-r--r-- root/root usr/share/man/man1/watch.1.gz | ||
| 85 | -rw-r--r-- root/root usr/share/man/man1/who.1.gz | ||
| 86 | drwxr-xr-x root/root usr/share/man/man8/ | ||
| 87 | -rw-r--r-- root/root usr/share/man/man8/ctrlaltdel.8.gz | ||
| 88 | -rw-r--r-- root/root usr/share/man/man8/freeramdisk.8.gz | ||
| 89 | -rw-r--r-- root/root usr/share/man/man8/fsfreeze.8.gz | ||
| 90 | -rw-r--r-- root/root usr/share/man/man8/getty.8.gz | ||
| 91 | -rw-r--r-- root/root usr/share/man/man8/halt.8.gz | ||
| 92 | -rw-r--r-- root/root usr/share/man/man8/hwclock.8.gz | ||
| 93 | -rw-r--r-- root/root usr/share/man/man8/insmod.8.gz | ||
| 94 | -rw-r--r-- root/root usr/share/man/man8/killall5.8.gz | ||
| 95 | -rw-r--r-- root/root usr/share/man/man8/lastlog.8.gz | ||
| 96 | -rw-r--r-- root/root usr/share/man/man8/lsmod.8.gz | ||
| 97 | -rw-r--r-- root/root usr/share/man/man8/lsusb.8.gz | ||
| 98 | -rw-r--r-- root/root usr/share/man/man8/mkswap.8.gz | ||
| 99 | -rw-r--r-- root/root usr/share/man/man8/mount.8.gz | ||
| 100 | -rw-r--r-- root/root usr/share/man/man8/nologin.8.gz | ||
| 101 | -rw-r--r-- root/root usr/share/man/man8/pivot_root.8.gz | ||
| 102 | -rw-r--r-- root/root usr/share/man/man8/readahead.8.gz | ||
| 103 | -rw-r--r-- root/root usr/share/man/man8/rmmod.8.gz | ||
| 104 | -rw-r--r-- root/root usr/share/man/man8/swaplabel.8.gz | ||
| 105 | -rw-r--r-- root/root usr/share/man/man8/swapoff.8.gz | ||
| 106 | -rw-r--r-- root/root usr/share/man/man8/swapon.8.gz | ||
| 107 | -rw-r--r-- root/root usr/share/man/man8/switch_root.8.gz | ||
| 108 | -rw-r--r-- root/root usr/share/man/man8/sysctl.8.gz | ||
| 109 | -rw-r--r-- root/root usr/share/man/man8/umount.8.gz | ||
diff --git a/ubase/.md5sum b/ubase/.md5sum new file mode 100644 index 0000000..421dc5c --- /dev/null +++ b/ubase/.md5sum | |||
| @@ -0,0 +1 @@ | |||
| 664f7258f610aec87b804f3bc1dc1a43 include-sysmacros_h.diff | |||
diff --git a/ubase/Pkgfile b/ubase/Pkgfile new file mode 100644 index 0000000..fce9a0c --- /dev/null +++ b/ubase/Pkgfile | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # Description: suckless linux base utils | ||
| 2 | # URL: https://git.suckless.org/ubase/file/README.html | ||
| 3 | # Maintainer: Shokara Kou, kou at 13f0 dot net | ||
| 4 | # Depends on: | ||
| 5 | |||
| 6 | name=ubase | ||
| 7 | commit=3c88778 | ||
| 8 | version=git-$commit | ||
| 9 | release=1 | ||
| 10 | source=(include-sysmacros_h.diff) | ||
| 11 | |||
| 12 | gitsource=git://git.suckless.org/ubase/ | ||
| 13 | |||
| 14 | build() { | ||
| 15 | git clone $gitsource | ||
| 16 | cd $name | ||
| 17 | git checkout $commit | ||
| 18 | |||
| 19 | # fix link error for undefined reference to major/minor/makedev() | ||
| 20 | git apply $SRC/include-sysmacros_h.diff | ||
| 21 | |||
| 22 | make ubase-box | ||
| 23 | make PREFIX=/ MANPREFIX=/usr/share/man DESTDIR=$PKG ubase-box-install | ||
| 24 | } | ||
diff --git a/ubase/include-sysmacros_h.diff b/ubase/include-sysmacros_h.diff new file mode 100644 index 0000000..21ee71e --- /dev/null +++ b/ubase/include-sysmacros_h.diff | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | diff --git a/libutil/tty.c b/libutil/tty.c | ||
| 2 | index bceb01e..8a2cd73 100644 | ||
| 3 | --- a/libutil/tty.c | ||
| 4 | +++ b/libutil/tty.c | ||
| 5 | @@ -1,6 +1,7 @@ | ||
| 6 | /* See LICENSE file for copyright and license details. */ | ||
| 7 | #include <sys/types.h> | ||
| 8 | #include <sys/stat.h> | ||
| 9 | +#include <sys/sysmacros.h> | ||
| 10 | |||
| 11 | #include <fcntl.h> | ||
| 12 | #include <dirent.h> | ||
| 13 | diff --git a/mknod.c b/mknod.c | ||
| 14 | index 8de35c7..518ecb0 100644 | ||
| 15 | --- a/mknod.c | ||
| 16 | +++ b/mknod.c | ||
| 17 | @@ -1,5 +1,6 @@ | ||
| 18 | /* See LICENSE file for copyright and license details. */ | ||
| 19 | #include <sys/stat.h> | ||
| 20 | +#include <sys/sysmacros.h> | ||
| 21 | #include <sys/types.h> | ||
| 22 | |||
| 23 | #include <fcntl.h> | ||
| 24 | diff --git a/mountpoint.c b/mountpoint.c | ||
| 25 | index 8f205a2..9a31bbe 100644 | ||
| 26 | --- a/mountpoint.c | ||
| 27 | +++ b/mountpoint.c | ||
| 28 | @@ -1,5 +1,6 @@ | ||
| 29 | /* See LICENSE file for copyright and license details. */ | ||
| 30 | #include <sys/stat.h> | ||
| 31 | +#include <sys/sysmacros.h> | ||
| 32 | #include <sys/types.h> | ||
| 33 | |||
| 34 | #include <mntent.h> | ||
| 35 | diff --git a/stat.c b/stat.c | ||
| 36 | index 220a659..7e7fa5e 100644 | ||
| 37 | --- a/stat.c | ||
| 38 | +++ b/stat.c | ||
| 39 | @@ -1,5 +1,6 @@ | ||
| 40 | /* See LICENSE file for copyright and license details. */ | ||
| 41 | #include <sys/stat.h> | ||
| 42 | +#include <sys/sysmacros.h> | ||
| 43 | #include <sys/types.h> | ||
| 44 | |||
| 45 | #include <inttypes.h> | ||
| 46 | @@ -86,4 +87,4 @@ main(int argc, char *argv[]) | ||
| 47 | } | ||
| 48 | |||
| 49 | return ret; | ||
| 50 | -} | ||
| 51 | \ No newline at end of file | ||
| 52 | +} | ||
