-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
441 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ports/*/*/*.pkgfile linguist-language=shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
bonsai | ||
bonsai.db | ||
bonsai.rc | ||
|
||
a.out | ||
*~* | ||
*bkup* | ||
*.bk | ||
|
||
*rootfs.gz | ||
*isolinux.bin | ||
*isolinux.cfg | ||
|
||
old | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2020 Mitch Weaver | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
WIP | ||
# bonsai | ||
|
||
<img align="right" src="https://bonsai-linux.org/res/logo.png"> | ||
|
||
A tiny Linux distribution based on musl-libc focused on simplicity and correctness. | ||
|
||
Linux done differently. | ||
|
||
For the idealists, for the hobbyists. | ||
|
||
### Achtung! | ||
Bonsai is a hobby distro; a love affair. | ||
It is still in active, early development. | ||
There are bugs. There are snakes. | ||
|
||
### Thanks | ||
* CRUX | ||
* KISS Linux | ||
* Alpine Linux | ||
* Sabotage Linux | ||
* OpenBSD | ||
|
||
Inspirations and patches have been taken from these wonderful projects. | ||
|
||
----- | ||
|
||
Designed by [Mitch Weaver](https://github.com/mitchweaver) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
BONSAI_ROOT = ${HOME}/env/bonsai | ||
|
||
PREFIX = ${HOME}/.local | ||
|
||
# 1090: file sourcing - we know, pkgfiles | ||
# 2154: undeclared vars - vars inside pkgfiles | ||
# 2046: word splitting - this is done sparingly and intentionally | ||
SHELLCHECK = shellcheck -s sh -e 1090 -e 2154 -e 2046 | ||
|
||
all: | ||
mkdir -p ${BONSAI_ROOT}/src | ||
cp -rf ports ${BONSAI_ROOT}/src/ | ||
install -Dm 0755 bonsai ${PREFIX}/bin/ | ||
install -Dm 0755 tools/* ${PREFIX}/bin/ | ||
|
||
test: | ||
${SHELLCHECK} bonsai | ||
${SHELLCHECK} tools/mksum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
info='bonsai global configuration files' | ||
link=false | ||
build() { | ||
for file in cfg/*.cfg ; do | ||
if [ -f "$CONFIG"/${file#cfg/} ] ; then | ||
warn "$CONFIG/${file#cfg/} exists, refusing to overwrite" | ||
continue | ||
fi | ||
msg "installing ${file#cfg/} with mode 0644..." | ||
install -D -m 0644 $file "$CONFIG"/${file#cfg/} | ||
done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
5f5ee473e5309259a83288c9b1e2f488899ec10a07bb4f7f685d77e5183a2c94d28745bdb0031178049988fe1ab506c41330d5b18cbd2c1a4d6f24986d65f296 cfg/build.cfg | ||
e5c01980c72b3d032564395289ad6bcca05360fa366c316243d74f68c316aaf40524a8ae698eb71502c697b843ebc8f2a792c22b459f33e299179d5aba533c2e cfg/autotools.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
# -/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/- # | ||
# # | ||
# # # | ||
# # O # | ||
# ##, ,##,',##, ,## ,#, , # | ||
# # # # # #''# #,, # # # # | ||
# '#' '##' # # ,,# '##;, # # | ||
# # | ||
# # | ||
# global autotool configure flags # | ||
# # | ||
# -/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/- # | ||
|
||
# -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | ||
# Paths | ||
# -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | ||
SET prefix / | ||
SET bindir /bin | ||
SET sbindir /bin | ||
SET sysconfdir /etc | ||
SET includedir /include | ||
SET libexecdir /lib | ||
SET libdir /lib | ||
SET datadir /share | ||
SET localstatedir /var | ||
SET localedir /sucks | ||
SET infodir /sucks | ||
SET docdir /sucks | ||
SET htmldir /sucks | ||
SET pdfdir /sucks | ||
|
||
# -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | ||
# Enables | ||
# -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | ||
# Hardening | ||
YES pic | ||
YES malloc0returnsnull | ||
YES shared | ||
YES shared-libs | ||
YES host-shared | ||
YES dynamic | ||
|
||
# Performance | ||
YES fast-install | ||
YES optimize | ||
YES lto | ||
|
||
# Features / Plugins | ||
YES wide-chars | ||
YES xinerama | ||
|
||
# -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | ||
# Disables | ||
# -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | ||
# General | ||
NO imake | ||
NO warnings | ||
NO option-checking | ||
NO dependency-tracking | ||
NO largefile | ||
NO libtool-lock | ||
NO profiling | ||
NO gprof | ||
NO gprof-libc | ||
NO mime | ||
NO btrfs | ||
NO selinux | ||
|
||
# Hardening | ||
NO static | ||
NO static-link | ||
NO static-libs | ||
NO host-static | ||
NO gnu-ld | ||
NO rpath | ||
|
||
# Sucks | ||
NO nls | ||
NO gnutls | ||
NO pam | ||
NO libpam | ||
NO introspection | ||
NO launchd | ||
NO gnome | ||
NO gnome-libs | ||
NO kde | ||
NO desktop | ||
NO startup-notification | ||
NO bash-completion | ||
NO zsh-completion | ||
NO fish-completion | ||
NO valgrind | ||
NO guile | ||
NO ada | ||
|
||
# NO DOCS! | ||
NO documentation | ||
NO doc | ||
NO docs | ||
NO gtk-doc | ||
NO gtk-doc-html | ||
NO gtk-doc-pdf | ||
NO gtk-docs | ||
NO gtk-docs-html | ||
NO gtk-docs-pdf | ||
NO devel-docs | ||
NO build-docs | ||
NO install-doc | ||
NO install-docs | ||
NO asciidoc | ||
NO specs | ||
NO specifications | ||
NO doxygen | ||
NO doxygen-html | ||
NO doxygen-doc | ||
NO doxygen-dot | ||
NO doxygen-man | ||
NO doxygen-rtf | ||
NO doxygen-xml | ||
NO doxygen-chm | ||
NO doxygen-chi | ||
NO doxygen-pdf | ||
NO doxygen-ps | ||
NO xmlto | ||
NO fop | ||
NO xsltproc | ||
NO gettext | ||
NO help-builtin | ||
|
||
# NO TESTS! | ||
NO tests | ||
NO extratests | ||
NO unit-tests | ||
NO test-modules | ||
NO install-test-programs | ||
NO install-tests | ||
NO gtktest | ||
NO coverage | ||
NO samples | ||
NO examples | ||
NO lint | ||
NO lint-library | ||
NO linting | ||
NO debug | ||
NO debugger | ||
NO debug-mode | ||
NO verbose-debug | ||
|
||
# vim:ft=config |
Oops, something went wrong.