summaryrefslogtreecommitdiff
path: root/ubase
diff options
context:
space:
mode:
authorShokara Kou <kou@13f0.net>2022-05-13 11:47:58 -0400
committerShokara Kou <kou@13f0.net>2022-12-10 16:12:53 -0500
commite3ca4e1fda985e1ca0301faf44149f0f75770d21 (patch)
tree96c6ea1318a63ce8f53aa8a5337774ec80decd52 /ubase
parent26c8bf0033c808fca7675fe42babbf3a4d56e787 (diff)
add s/ubase
Replaces GNU coreutils and util-linux
Diffstat (limited to 'ubase')
-rw-r--r--ubase/.footprint109
-rw-r--r--ubase/.md5sum1
-rw-r--r--ubase/Pkgfile24
-rw-r--r--ubase/include-sysmacros_h.diff52
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 @@
1drwxr-xr-x root/root bin/
2lrwxrwxrwx root/root bin/blkdiscard -> ubase-box
3lrwxrwxrwx root/root bin/chvt -> ubase-box
4lrwxrwxrwx root/root bin/clear -> ubase-box
5lrwxrwxrwx root/root bin/ctrlaltdel -> ubase-box
6lrwxrwxrwx root/root bin/dd -> ubase-box
7lrwxrwxrwx root/root bin/df -> ubase-box
8lrwxrwxrwx root/root bin/dmesg -> ubase-box
9lrwxrwxrwx root/root bin/eject -> ubase-box
10lrwxrwxrwx root/root bin/fallocate -> ubase-box
11lrwxrwxrwx root/root bin/free -> ubase-box
12lrwxrwxrwx root/root bin/freeramdisk -> ubase-box
13lrwxrwxrwx root/root bin/fsfreeze -> ubase-box
14lrwxrwxrwx root/root bin/getty -> ubase-box
15lrwxrwxrwx root/root bin/halt -> ubase-box
16lrwxrwxrwx root/root bin/hwclock -> ubase-box
17lrwxrwxrwx root/root bin/id -> ubase-box
18lrwxrwxrwx root/root bin/insmod -> ubase-box
19lrwxrwxrwx root/root bin/killall5 -> ubase-box
20lrwxrwxrwx root/root bin/last -> ubase-box
21lrwxrwxrwx root/root bin/lastlog -> ubase-box
22lrwxrwxrwx root/root bin/login -> ubase-box
23lrwxrwxrwx root/root bin/lsmod -> ubase-box
24lrwxrwxrwx root/root bin/lsusb -> ubase-box
25lrwxrwxrwx root/root bin/mesg -> ubase-box
26lrwxrwxrwx root/root bin/mknod -> ubase-box
27lrwxrwxrwx root/root bin/mkswap -> ubase-box
28lrwxrwxrwx root/root bin/mount -> ubase-box
29lrwxrwxrwx root/root bin/mountpoint -> ubase-box
30lrwxrwxrwx root/root bin/nologin -> ubase-box
31lrwxrwxrwx root/root bin/pagesize -> ubase-box
32lrwxrwxrwx root/root bin/passwd -> ubase-box
33lrwxrwxrwx root/root bin/pidof -> ubase-box
34lrwxrwxrwx root/root bin/pivot_root -> ubase-box
35lrwxrwxrwx root/root bin/ps -> ubase-box
36lrwxrwxrwx root/root bin/pwdx -> ubase-box
37lrwxrwxrwx root/root bin/readahead -> ubase-box
38lrwxrwxrwx root/root bin/respawn -> ubase-box
39lrwxrwxrwx root/root bin/rmmod -> ubase-box
40lrwxrwxrwx root/root bin/stat -> ubase-box
41lrwxrwxrwx root/root bin/su -> ubase-box
42lrwxrwxrwx root/root bin/swaplabel -> ubase-box
43lrwxrwxrwx root/root bin/swapoff -> ubase-box
44lrwxrwxrwx root/root bin/swapon -> ubase-box
45lrwxrwxrwx root/root bin/switch_root -> ubase-box
46lrwxrwxrwx root/root bin/sysctl -> ubase-box
47lrwxrwxrwx root/root bin/truncate -> ubase-box
48-rwxr-xr-x root/root bin/ubase-box
49lrwxrwxrwx root/root bin/umount -> ubase-box
50lrwxrwxrwx root/root bin/unshare -> ubase-box
51lrwxrwxrwx root/root bin/uptime -> ubase-box
52lrwxrwxrwx root/root bin/vtallow -> ubase-box
53lrwxrwxrwx root/root bin/watch -> ubase-box
54lrwxrwxrwx root/root bin/who -> ubase-box
55drwxr-xr-x root/root usr/
56drwxr-xr-x root/root usr/share/
57drwxr-xr-x root/root usr/share/man/
58drwxr-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
86drwxr-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
6name=ubase
7commit=3c88778
8version=git-$commit
9release=1
10source=(include-sysmacros_h.diff)
11
12gitsource=git://git.suckless.org/ubase/
13
14build() {
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 @@
1diff --git a/libutil/tty.c b/libutil/tty.c
2index 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>
13diff --git a/mknod.c b/mknod.c
14index 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>
24diff --git a/mountpoint.c b/mountpoint.c
25index 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>
35diff --git a/stat.c b/stat.c
36index 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+}