Start work on reducing 9/u/sbase redundancy.

This commit is contained in:
Mid Favila 2021-05-09 23:46:22 +00:00
parent 264bf50528
commit 98d2f6c34a
8 changed files with 1665 additions and 0 deletions

7
ports/9base/build Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh -e
export CFLAGS="$CFLAGS -fcommon"
cp makefile.mid ./Makefile
make PREFIX=/usr
make PREFIX=/usr DESTDIR="$1" install

1
ports/9base/checksums Normal file
View File

@ -0,0 +1 @@
29a6f8d216d4038729af96f9da06070474cb09ea6996e39e480f3bbfcf47459f

View File

@ -0,0 +1,56 @@
# 9base - Plan 9 userland for Unix
include config.mk
SUBDIRS = lib9\
yacc\
ascii\
awk\
bc\
cleanname\
dc\
factor\
fortune\
fmt\
freq\
getflags\
listen1\
mk\
mtime\
pbd\
primes\
read\
troff\
unicode\
uniq\
unutf\
urlencode\
all:
@echo 9base build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
@chmod 755 yacc/9yacc
@for i in ${SUBDIRS}; do cd $$i; ${MAKE} || exit; cd ..; done;
clean:
@for i in ${SUBDIRS}; do cd $$i; ${MAKE} clean || exit; cd ..; done
@rm -f 9base-${VERSION}.tar.gz
@echo cleaned 9base
install: all
@for i in ${SUBDIRS}; do cd $$i; ${MAKE} install || exit; cd ..; done
@echo installed 9base to ${DESTDIR}${PREFIX}
uninstall:
@for i in ${SUBDIRS}; do cd $$i; ${MAKE} uninstall || exit; cd ..; done
@echo uninstalled 9base
dist: clean
@mkdir -p 9base-${VERSION}
@cp -R Makefile README LICENSE std.mk yacc.mk config.mk ${SUBDIRS} 9base-${VERSION}
@tar -cf 9base-${VERSION}.tar 9base-${VERSION}
@gzip 9base-${VERSION}.tar
@rm -rf 9base-${VERSION}
@echo created distribution 9base-${VERSION}.tar.gz

2
ports/9base/sources Normal file
View File

@ -0,0 +1,2 @@
files/makefile.mid
git+https://git.suckless.org/9base

1
ports/9base/version Normal file
View File

@ -0,0 +1 @@
git 1

361
ports/sbase/alts Normal file
View File

@ -0,0 +1,361 @@
9base /usr/bin/awk
9base /usr/bin/basename
9base /usr/bin/bc
9base /usr/bin/cal
9base /usr/bin/cat
9base /usr/bin/cmp
9base /usr/bin/date
9base /usr/bin/dc
9base /usr/bin/dd
9base /usr/bin/diff
9base /usr/bin/du
9base /usr/bin/echo
9base /usr/bin/ed
9base /usr/bin/grep
9base /usr/bin/join
9base /usr/bin/look
9base /usr/bin/ls
9base /usr/bin/md5sum
9base /usr/bin/mkdir
9base /usr/bin/rm
9base /usr/bin/sed
9base /usr/bin/seq
9base /usr/bin/sha1sum
9base /usr/bin/sleep
9base /usr/bin/sort
9base /usr/bin/split
9base /usr/bin/strings
9base /usr/bin/tail
9base /usr/bin/tee
9base /usr/bin/test
9base /usr/bin/touch
9base /usr/bin/tr
9base /usr/bin/uniq
9base /usr/bin/wc
9base /usr/bin/yacc
9base /usr/share/man/man1/awk.1
9base /usr/share/man/man1/basename.1
9base /usr/share/man/man1/bc.1
9base /usr/share/man/man1/cal.1
9base /usr/share/man/man1/cat.1
9base /usr/share/man/man1/cmp.1
9base /usr/share/man/man1/date.1
9base /usr/share/man/man1/dc.1
9base /usr/share/man/man1/dd.1
9base /usr/share/man/man1/diff.1
9base /usr/share/man/man1/du.1
9base /usr/share/man/man1/echo.1
9base /usr/share/man/man1/ed.1
9base /usr/share/man/man1/grep.1
9base /usr/share/man/man1/join.1
9base /usr/share/man/man1/look.1
9base /usr/share/man/man1/ls.1
9base /usr/share/man/man1/md5sum.1
9base /usr/share/man/man1/mkdir.1
9base /usr/share/man/man1/rm.1
9base /usr/share/man/man1/sed.1
9base /usr/share/man/man1/seq.1
9base /usr/share/man/man1/sha1sum.1
9base /usr/share/man/man1/sleep.1
9base /usr/share/man/man1/sort.1
9base /usr/share/man/man1/split.1
9base /usr/share/man/man1/strings.1
9base /usr/share/man/man1/tail.1
9base /usr/share/man/man1/tee.1
9base /usr/share/man/man1/test.1
9base /usr/share/man/man1/touch.1
9base /usr/share/man/man1/tr.1
9base /usr/share/man/man1/uniq.1
9base /usr/share/man/man1/wc.1
9base /usr/share/man/man1/yacc.1
bash /usr/bin/sh
binutils /usr/include/ansidecl.h
binutils /usr/include/bfd.h
binutils /usr/include/bfd_stdint.h
binutils /usr/include/bfdlink.h
binutils /usr/include/ctf-api.h
binutils /usr/include/ctf.h
binutils /usr/include/diagnostics.h
binutils /usr/include/dis-asm.h
binutils /usr/include/plugin-api.h
binutils /usr/include/symcat.h
binutils /usr/lib/libbfd.a
binutils /usr/lib/libctf-nobfd.a
binutils /usr/lib/libctf.a
binutils /usr/lib/libopcodes.a
coreutils /usr/bin/[
coreutils /usr/bin/basename
coreutils /usr/bin/cat
coreutils /usr/bin/chgrp
coreutils /usr/bin/chmod
coreutils /usr/bin/chown
coreutils /usr/bin/chroot
coreutils /usr/bin/cksum
coreutils /usr/bin/comm
coreutils /usr/bin/cp
coreutils /usr/bin/cut
coreutils /usr/bin/date
coreutils /usr/bin/dd
coreutils /usr/bin/df
coreutils /usr/bin/dirname
coreutils /usr/bin/du
coreutils /usr/bin/echo
coreutils /usr/bin/env
coreutils /usr/bin/expand
coreutils /usr/bin/expr
coreutils /usr/bin/factor
coreutils /usr/bin/false
coreutils /usr/bin/fmt
coreutils /usr/bin/fold
coreutils /usr/bin/groups
coreutils /usr/bin/head
coreutils /usr/bin/id
coreutils /usr/bin/install
coreutils /usr/bin/join
coreutils /usr/bin/kill
coreutils /usr/bin/link
coreutils /usr/bin/ln
coreutils /usr/bin/logname
coreutils /usr/bin/ls
coreutils /usr/bin/md5sum
coreutils /usr/bin/mkdir
coreutils /usr/bin/mkfifo
coreutils /usr/bin/mknod
coreutils /usr/bin/mktemp
coreutils /usr/bin/mv
coreutils /usr/bin/nice
coreutils /usr/bin/nl
coreutils /usr/bin/nohup
coreutils /usr/bin/od
coreutils /usr/bin/paste
coreutils /usr/bin/pathchk
coreutils /usr/bin/printenv
coreutils /usr/bin/printf
coreutils /usr/bin/pwd
coreutils /usr/bin/readlink
coreutils /usr/bin/rm
coreutils /usr/bin/rmdir
coreutils /usr/bin/seq
coreutils /usr/bin/sha1sum
coreutils /usr/bin/sha224sum
coreutils /usr/bin/sha256sum
coreutils /usr/bin/sha384sum
coreutils /usr/bin/sha512sum
coreutils /usr/bin/sleep
coreutils /usr/bin/sort
coreutils /usr/bin/split
coreutils /usr/bin/stat
coreutils /usr/bin/sync
coreutils /usr/bin/tail
coreutils /usr/bin/tee
coreutils /usr/bin/test
coreutils /usr/bin/touch
coreutils /usr/bin/tr
coreutils /usr/bin/true
coreutils /usr/bin/truncate
coreutils /usr/bin/tsort
coreutils /usr/bin/tty
coreutils /usr/bin/uname
coreutils /usr/bin/unexpand
coreutils /usr/bin/uniq
coreutils /usr/bin/unlink
coreutils /usr/bin/uptime
coreutils /usr/bin/wc
coreutils /usr/bin/who
coreutils /usr/bin/whoami
coreutils /usr/bin/yes
coreutils /usr/share/man/man1/basename.1
coreutils /usr/share/man/man1/cat.1
coreutils /usr/share/man/man1/chgrp.1
coreutils /usr/share/man/man1/chmod.1
coreutils /usr/share/man/man1/chown.1
coreutils /usr/share/man/man1/chroot.1
coreutils /usr/share/man/man1/cksum.1
coreutils /usr/share/man/man1/comm.1
coreutils /usr/share/man/man1/cp.1
coreutils /usr/share/man/man1/cut.1
coreutils /usr/share/man/man1/date.1
coreutils /usr/share/man/man1/dd.1
coreutils /usr/share/man/man1/df.1
coreutils /usr/share/man/man1/dirname.1
coreutils /usr/share/man/man1/du.1
coreutils /usr/share/man/man1/echo.1
coreutils /usr/share/man/man1/env.1
coreutils /usr/share/man/man1/expand.1
coreutils /usr/share/man/man1/expr.1
coreutils /usr/share/man/man1/factor.1
coreutils /usr/share/man/man1/false.1
coreutils /usr/share/man/man1/fmt.1
coreutils /usr/share/man/man1/fold.1
coreutils /usr/share/man/man1/groups.1
coreutils /usr/share/man/man1/head.1
coreutils /usr/share/man/man1/id.1
coreutils /usr/share/man/man1/install.1
coreutils /usr/share/man/man1/join.1
coreutils /usr/share/man/man1/kill.1
coreutils /usr/share/man/man1/link.1
coreutils /usr/share/man/man1/ln.1
coreutils /usr/share/man/man1/logname.1
coreutils /usr/share/man/man1/ls.1
coreutils /usr/share/man/man1/md5sum.1
coreutils /usr/share/man/man1/mkdir.1
coreutils /usr/share/man/man1/mkfifo.1
coreutils /usr/share/man/man1/mknod.1
coreutils /usr/share/man/man1/mktemp.1
coreutils /usr/share/man/man1/mv.1
coreutils /usr/share/man/man1/nice.1
coreutils /usr/share/man/man1/nl.1
coreutils /usr/share/man/man1/nohup.1
coreutils /usr/share/man/man1/od.1
coreutils /usr/share/man/man1/paste.1
coreutils /usr/share/man/man1/pathchk.1
coreutils /usr/share/man/man1/printenv.1
coreutils /usr/share/man/man1/printf.1
coreutils /usr/share/man/man1/pwd.1
coreutils /usr/share/man/man1/readlink.1
coreutils /usr/share/man/man1/rm.1
coreutils /usr/share/man/man1/rmdir.1
coreutils /usr/share/man/man1/seq.1
coreutils /usr/share/man/man1/sha1sum.1
coreutils /usr/share/man/man1/sha224sum.1
coreutils /usr/share/man/man1/sha256sum.1
coreutils /usr/share/man/man1/sha384sum.1
coreutils /usr/share/man/man1/sha512sum.1
coreutils /usr/share/man/man1/sleep.1
coreutils /usr/share/man/man1/sort.1
coreutils /usr/share/man/man1/split.1
coreutils /usr/share/man/man1/stat.1
coreutils /usr/share/man/man1/sync.1
coreutils /usr/share/man/man1/tail.1
coreutils /usr/share/man/man1/tee.1
coreutils /usr/share/man/man1/test.1
coreutils /usr/share/man/man1/touch.1
coreutils /usr/share/man/man1/tr.1
coreutils /usr/share/man/man1/true.1
coreutils /usr/share/man/man1/truncate.1
coreutils /usr/share/man/man1/tsort.1
coreutils /usr/share/man/man1/tty.1
coreutils /usr/share/man/man1/uname.1
coreutils /usr/share/man/man1/unexpand.1
coreutils /usr/share/man/man1/uniq.1
coreutils /usr/share/man/man1/unlink.1
coreutils /usr/share/man/man1/uptime.1
coreutils /usr/share/man/man1/wc.1
coreutils /usr/share/man/man1/who.1
coreutils /usr/share/man/man1/whoami.1
coreutils /usr/share/man/man1/yes.1
gettext-tiny /usr/include/libintl.h
gettext /usr/share/aclocal/gettext.m4
gettext /usr/share/aclocal/iconv.m4
gettext /usr/share/aclocal/intlmacosx.m4
gettext /usr/share/aclocal/lib-ld.m4
gettext /usr/share/aclocal/lib-link.m4
gettext /usr/share/aclocal/lib-prefix.m4
gettext /usr/share/aclocal/nls.m4
gettext /usr/share/aclocal/po.m4
gettext /usr/share/aclocal/progtest.m4
glibc /usr/bin/getconf
gnugrep /usr/bin/grep
gnugrep /usr/share/man/man1/grep.1
libarchive /usr/bin/cat
net-tools-git /usr/share/man/man1/dnsdomainname.1
net-tools-git /usr/share/man/man1/hostname.1
sbase /usr/bin/cmp
sbase /usr/bin/kill
sbase /usr/bin/logger
sbase /usr/bin/strings
sbase /usr/bin/tar
sbase /usr/bin/tftp
sbase /usr/share/man/man1/cmp.1
sbase /usr/share/man/man1/kill.1
sbase /usr/share/man/man1/logger.1
sbase /usr/share/man/man1/sed.1
sbase /usr/share/man/man1/strings.1
sbase /usr/share/man/man1/tftp.1
tzdata /usr/bin/zdump
tzdata /usr/bin/zic
ubase /usr/bin/clear
ubase /usr/bin/dd
ubase /usr/bin/free
ubase /usr/bin/lastlog
ubase /usr/bin/login
ubase /usr/bin/lsusb
ubase /usr/bin/mknod
ubase /usr/bin/mount
ubase /usr/bin/mountpoint
ubase /usr/bin/nologin
ubase /usr/bin/passwd
ubase /usr/bin/pidof
ubase /usr/bin/ps
ubase /usr/bin/pwdx
ubase /usr/bin/respawn
ubase /usr/bin/su
ubase /usr/bin/sysctl
ubase /usr/bin/umount
ubase /usr/bin/uptime
ubase /usr/bin/watch
ubase /usr/share/man/man1/clear.1
ubase /usr/share/man/man1/dd.1
ubase /usr/share/man/man1/free.1
ubase /usr/share/man/man1/login.1
ubase /usr/share/man/man1/mknod.1
ubase /usr/share/man/man1/mountpoint.1
ubase /usr/share/man/man1/passwd.1
ubase /usr/share/man/man1/pidof.1
ubase /usr/share/man/man1/ps.1
ubase /usr/share/man/man1/pwdx.1
ubase /usr/share/man/man1/su.1
ubase /usr/share/man/man1/uptime.1
ubase /usr/share/man/man1/watch.1
ubase /usr/share/man/man8/lastlog.8
ubase /usr/share/man/man8/lsusb.8
ubase /usr/share/man/man8/mount.8
ubase /usr/share/man/man8/nologin.8
ubase /usr/share/man/man8/sysctl.8
ubase /usr/share/man/man8/umount.8
util-linux /usr/bin/blkdiscard
util-linux /usr/bin/cal
util-linux /usr/bin/ctrlaltdel
util-linux /usr/bin/dmesg
util-linux /usr/bin/eject
util-linux /usr/bin/fallocate
util-linux /usr/bin/flock
util-linux /usr/bin/fsfreeze
util-linux /usr/bin/hwclock
util-linux /usr/bin/kill
util-linux /usr/bin/last
util-linux /usr/bin/logger
util-linux /usr/bin/mesg
util-linux /usr/bin/mkswap
util-linux /usr/bin/nologin
util-linux /usr/bin/pivot_root
util-linux /usr/bin/renice
util-linux /usr/bin/rev
util-linux /usr/bin/setsid
util-linux /usr/bin/swaplabel
util-linux /usr/bin/swapoff
util-linux /usr/bin/swapon
util-linux /usr/bin/switch_root
util-linux /usr/bin/unshare
util-linux /usr/share/man/man1/cal.1
util-linux /usr/share/man/man1/dmesg.1
util-linux /usr/share/man/man1/eject.1
util-linux /usr/share/man/man1/fallocate.1
util-linux /usr/share/man/man1/flock.1
util-linux /usr/share/man/man1/kill.1
util-linux /usr/share/man/man1/logger.1
util-linux /usr/share/man/man1/mesg.1
util-linux /usr/share/man/man1/renice.1
util-linux /usr/share/man/man1/rev.1
util-linux /usr/share/man/man1/setsid.1
util-linux /usr/share/man/man1/unshare.1
util-linux /usr/share/man/man8/ctrlaltdel.8
util-linux /usr/share/man/man8/fsfreeze.8
util-linux /usr/share/man/man8/hwclock.8
util-linux /usr/share/man/man8/mkswap.8
util-linux /usr/share/man/man8/nologin.8
util-linux /usr/share/man/man8/pivot_root.8
util-linux /usr/share/man/man8/swaplabel.8
util-linux /usr/share/man/man8/swapoff.8
util-linux /usr/share/man/man8/swapon.8
util-linux /usr/share/man/man8/switch_root.8

1236
ports/sbase/redundant.1 Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
36