Skip to content

A port of the netbsd utilities for linux(and may be another unix like operating systems)

License

Notifications You must be signed in to change notification settings

littlefly365/Netbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

107 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetBase

Netbase is a port of the NetBSD's utilities to another unix like operating systems.

Important Note

  • im working to add new utilities and add some functions to libutil so if you see eny error on build time remove efun.c on lib/libutil/Makefile and sort from usr.bin/GNUmakefile

  • now are avaible ~50 commands ported from netbsd

Deps

  • gnu make
  • clang/llvm (or gcc and binutils)
  • zlib
  • libbz2
  • libacl
  • libfts ( for musl )
  • posix shell (link to /bin/sh )

How does it work?

in the compat/include folder there are some headers for compatibility. they add some macros like __COPYRIGHT and __RCSID, besides in compat/libcompat are two libraries, libnetbsd(libcompat) and libutil, with these the programs link statically against these librarues but dynamically with the rest of the system ,so no additional runtime dependencies are need(Note: This may change in the future).

Info

  • The compat libraries use only code from the netbsd source tree.
  • The goal of this project is port netbsd userland to another systems without any (or tiny) modifications to the original source.

important

if you see build or runtime errors tell me.(Note: The utils are tested on Arch and only with a basic use of them).

What commands are available?

the commands available are listed on details/

Compatibility Matrix

Platform Status
Linux glibc ☑️ Works
Linux musl ☑️ Works
GNU/Hurd ⚠️ May work

Building

if you run only g/make may fail so i recommend execute the build script instead: ./build.sh
use:

-b, --build

run make with configs and variables depending on the platform (default).

-c, --clean remove object files and clean the source tree.

TODO

Plataform/Goal Status
linux (glibc/musl) ☑️ yes
Full Userland (! GNU) 🧪 close (coreutils)

About

A port of the netbsd utilities for linux(and may be another unix like operating systems)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published