This repository has been archived by the owner on Jun 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
README
276 lines (232 loc) · 3.78 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
lobase
======
lobase is a port of the OpenBSD userland to Linux.
Caution
-------
There are subtle differences in GNU coreutils and the OpenBSD userland,
replacing coreutils on Linux system without caution will result in
issues with varying impact.
If you build your own linux system from the ground up and you know that
your scripts are all portable you can use lobase as main coreutils.
Otherwise I suggest to use a prefixed installation and adding lobase to
your users shell `PATH`.
Installation
------------
$ autoreconf -fi
$ ./configure
$ make
# make install
To speed up the compilation use multiple make jobs:
$ MAKE_JOBS=$(cat /proc/cpuinfo|grep processor|wc -l)
$ make -j"$MAKE_JOBS"
# make -j"$MAKE_JOBS" install
Prefix Installation
-------------------
You can install lobase into its own prefix and then use the `PATH`
environment variable to prefer lobases binaries over the default
coreutils for your users shell.
$ ./configure --prefix=/usr/local/lobase
Build and install lobase and then add lobases bin and sbin directories
to your path.
To make this permanent, set `PATH` in your shell profile.
$ PATH=/usr/local/lobase/bin:/usr/local/lobase/sbin:$PATH
Simple test to verify that lobase is used:
$ which which
/usr/local/lobase/bin/which
Dependencies
------------
- autoconf
- make (GNU Make)
- cc (gcc, clang)
- yacc (byacc, bison)
- lex (flex)
- libedit (bc)
- libevent (cu)
- libressl
- libcrypto (bc,dc)
- ncurses (bc,ul)
- zlib (grep)
Debian:
# apt-get install libedit-dev libevent-dev libssl-dev libz-dev
Void Linux:
# xbps-install libedit-devel libevent-devel libressl-devel zlib-dev
Not included
------------
Some projects already have portable versions and are not included in lobase.
- acme-client https://github.com/kristapsdz/acme-client-portable
- cwm https://github.com/chneukirchen/cwm
- file https://github.com/brynet/file
- libressl https://www.libressl.org/
- nc
- mandoc http://mandoc.bsd.lv/
- man
- apropos
- sndio http://www.sndio.org/
- aucat
- aucatctl
- smtpd https://www.opensmtpd.org/
- ssh https://www.openssh.com/
Broken
------
- cu should be simple to fix
- ftp
TODO
----
- mk/bsd.prog.mk
- add DPADD support
- mk/bsd.lib.mk
- install headers
- build shared libraries?
- libtool?
lib
---
liboutil Parts of OpenBSDs libutil
libopenbsd Parts of OpenBSDs libc
bin
---
cat
chmod Some small differences because OpenBSD support permissions for symlinks
cp
date
dd No SIGINFO support, use SIGUSR1 instead
df No support for raw devices on linux
domainname
echo
ed
expr
hostname
kill
ksh
ln
ls No support for file flags (-o)
md5
mkdir
mv
pax
pwd
rm
rmdir
sleep
stty
sync
test
sbin
----
mknod
nologin
usr.bin
-------
apply
awk
banner
basename
bc
biff
cal
calendar
cap_mkdb
cmp
col
colrm
column
comm
compress
csplit
ctags
cu
cut
dc
deroff
diff
diff3
dirname
du
encrypt
env
expand
false
file
find
fmt
fold
from
ftp
getconf
getent
getopt
grep
head
hexdump
htpasswd
id Does not support -R to show the current processes routing table
indent
join
jot
lam
leave
lndir
logger
logname
look
lorder
mail
mkdep
mktemp
newsyslog
nice
nl
nohup
paste
patch
pkg-config
pr
printenv
printf
readlink
renice
rev
rs
sdiff
sed
shar
signify
sort
spell
split
stat Does not support file flags, generations and birthtime on linux
tail There are small differences in how -f handles file truncations,
kqueue provides events for file truncations, inotify just notifies
about a file modification.
tee
telnet
tftp
time
touch
tr
true
tsort
tty
ul
uname
unexpand
unifdef
uniq
units
unvis
uudecode
uuencode
vacation
vis
wc
what
which
whois
xargs
xinstall Does not support file flags (-f)
yes
usr.sbin
--------
chroot
dev_mkdb
mtree No file flags support
rdate