From bb12964fdcdfce5cda0fb269f774eeec03121636 Mon Sep 17 00:00:00 2001 From: Jay Larson Date: Sat, 1 Aug 2020 12:49:39 -0500 Subject: [PATCH] First check in after renaming to sl-base --- CONFIG/etc/bashrc | 18 ++++++++ CONFIG/etc/default/ids | 49 ++++++++++++++++++++ CONFIG/etc/group | 22 +++++++++ CONFIG/etc/passwd | 5 +++ CONFIG/etc/profile | 25 +++++++++++ CONFIG/etc/sl.conf | 7 +++ CONFIG/etc/sl_version | 1 + Makefile | 39 ++++++++++++++++ SL/README | 3 ++ SL/files.tar.gz | Bin 0 -> 1136 bytes SL/manifest | 83 ++++++++++++++++++++++++++++++++++ SL/slinfo | 12 +++++ SL/usher | 26 +++++++++++ SRC/patches/README | 2 + SRC/sl-base/Makefile | 99 +++++++++++++++++++++++++++++++++++++++++ 15 files changed, 391 insertions(+) create mode 100644 CONFIG/etc/bashrc create mode 100644 CONFIG/etc/default/ids create mode 100644 CONFIG/etc/group create mode 100644 CONFIG/etc/passwd create mode 100644 CONFIG/etc/profile create mode 100644 CONFIG/etc/sl.conf create mode 100644 CONFIG/etc/sl_version create mode 100644 Makefile create mode 100644 SL/README create mode 100644 SL/files.tar.gz create mode 100644 SL/manifest create mode 100644 SL/slinfo create mode 100755 SL/usher create mode 100644 SRC/patches/README create mode 100644 SRC/sl-base/Makefile diff --git a/CONFIG/etc/bashrc b/CONFIG/etc/bashrc new file mode 100644 index 0000000..6ae6414 --- /dev/null +++ b/CONFIG/etc/bashrc @@ -0,0 +1,18 @@ +# Setup for /bin/ls and /bin/grep to support color +if [ -f "/etc/dircolors" ] ; then + eval $(dircolors -b /etc/dircolors) +fi + +if [ -f "$HOME/.dircolors" ] ; then + eval $(dircolors -b $HOME/.dircolors) +fi + +# Prompt +if [ "`id -u`" -eq 0 ]; then + export PS1='\u@\h:\w# ' +else + export PS1='\u@\h:\w$ ' +fi + +alias ls='ls --color=auto' +alias grep='grep --color=auto' diff --git a/CONFIG/etc/default/ids b/CONFIG/etc/default/ids new file mode 100644 index 0000000..fde7bbc --- /dev/null +++ b/CONFIG/etc/default/ids @@ -0,0 +1,49 @@ +bin 1 +lp 9 +adm 16 +atd 17 17 +messagebus 18 18 +lpadmin 19 +named 20 20 +gdm 21 21 +apache 25 25 +smmsp 26 26 +polkitd 27 27 +rpc 28 28 +exim 31 31 +postfix 32 32 +postdrop 33 +sendmail 34 +mail 34 +vmailman 35 35 +news 36 36 +kdm 37 37 +mysql 40 40 +postgres 41 41 +dovecot 42 42 +dovenull 43 43 +ftp 45 45 +proftpd 46 46 +vsftpd 47 47 +rsyncd 48 48 +sshd 50 50 +stunnel 51 51 +svn 56 56 +svntest 57 +games 60 60 +kvm 61 +wireshark 62 +lightdm 63 63 +sddm 64 64 +scanner 70 +colord 71 71 +ldap 83 83 +avahi 84 84 +avahi-autoipd 85 85 +netdev 86 +ntp 87 87 +unbound 88 88 +plugdev 90 +anonymous 98 +nobody 65534 +nogroup 65534 diff --git a/CONFIG/etc/group b/CONFIG/etc/group new file mode 100644 index 0000000..eb6372e --- /dev/null +++ b/CONFIG/etc/group @@ -0,0 +1,22 @@ +root:x:0: +bin:x:1:daemon +sys:x:2: +kmem:x:3: +tape:x:4: +tty:x:5: +daemon:x:6: +floppy:x:7: +disk:x:8: +lp:x:9: +dialout:x:10: +audio:x:11: +video:x:12: +utmp:x:13: +usb:x:14: +cdrom:x:15: +adm:x:16: +messagebus:x:18: +input:x:24: +mail:x:34: +nogroup:x:99: +users:x:100: diff --git a/CONFIG/etc/passwd b/CONFIG/etc/passwd new file mode 100644 index 0000000..717ea8d --- /dev/null +++ b/CONFIG/etc/passwd @@ -0,0 +1,5 @@ +root:x:0:0:root:/root:/bin/sh +bin:x:1:1:bin:/dev/null:/bin/false +daemon:x:6:6:Daemon User:/dev/null:/bin/false +messagebus:x:18:18:D-Bus Message Daemon User:/var/run/dbus:/bin/false +nobody:x:99:99:Unprivileged User:/dev/null:/bin/false diff --git a/CONFIG/etc/profile b/CONFIG/etc/profile new file mode 100644 index 0000000..711295f --- /dev/null +++ b/CONFIG/etc/profile @@ -0,0 +1,25 @@ +# /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) +# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). + +alias reset='echo -e "\033c"' + +if [ "`id -u`" -eq 0 ]; then + PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" +else + PATH="/usr/local/bin:/usr/bin:/bin" +fi +export PATH + +if [ "$PS1" ]; then + if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then + if [ -f /etc/bashrc ]; then + . /etc/bashrc + fi + else + if [ "`id -u`" -eq 0 ]; then + PS1='# ' + else + PS1='$ ' + fi + fi +fi diff --git a/CONFIG/etc/sl.conf b/CONFIG/etc/sl.conf new file mode 100644 index 0000000..011d9ff --- /dev/null +++ b/CONFIG/etc/sl.conf @@ -0,0 +1,7 @@ +[sources] +default = http://packages.snaplinux.org/ core dev main + +[slinstall] +templatedir = /etc/sl.d/templates + +include /etc/sl.d diff --git a/CONFIG/etc/sl_version b/CONFIG/etc/sl_version new file mode 100644 index 0000000..60826bd --- /dev/null +++ b/CONFIG/etc/sl_version @@ -0,0 +1 @@ +0.0alpha1 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..33f0462 --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation here: +# (http://www.gnu.org/licenses/gpl-2.0.html) +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +DEPENDS = +ARCH = x86_64 +URL = http://snaplinux.org/ +REPO = core +BRIEF = Base system directories and files +DESC = Base system directories and files + +ARCHIVE := +SRCDIR := $(PWD)/SRC/sl-base +PATCHDIR := $(PWD)/SRC/patches +VERSION := 0.0alpha1-8 + +include /usr/share/sl/Makefile.snaplinux + +$(ROOT): $(SRCDIR)/Makefile + @if [ -d $(ROOT) ]; then \ + touch $(ROOT); \ + else \ + mkdir -v $(ROOT); \ + fi + + @cd $(SRCDIR) && make install DESTDIR=$(ROOT) + +clean: + @rm -rvf $(ROOT) \ + $(SLINFO) \ + $(MANIFEST) \ + $(FILES) \ + $(CONFIG) diff --git a/SL/README b/SL/README new file mode 100644 index 0000000..19a3ff1 --- /dev/null +++ b/SL/README @@ -0,0 +1,3 @@ +This is the directory where the manifest, snapinfo, and files.tar.gz +files will be created. It is also where the usher file should be +placed if it is required by the package. diff --git a/SL/files.tar.gz b/SL/files.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..46248aeb60dc12b7f356042d1482f63fe3a3806d GIT binary patch literal 1136 zcmZ8fdrVVz7_Cr7ow!!!qw11dP}$fR;6M}~y9%2jf%G5kb#edfpD$ld&iQiA$w!mjyHWfrZ^@|R*K)+q9b0B%Xgjgt`}=oD1&yNrROW6a9^rb$w1hUVy~ z)rVUTK~%(h5Ri}6#^zO5{Jg!O;V~Ar*{Rj*R;(^K)q?I~pXWbV5>W}Ajlv3VZ&vY z;sTQfzRF@moJA%OeS^nWvE!~VzX*tW2WF0t9;80bgAg8#)H+JLi8E%Phqf6Cpx$%f zMh#T26a3Ln>4STb=nU3vajCDu`;Xlozf#?-1QC>Sl(-VFxY@!VM<$LqQ-f5Ybx(2k z?N4Bq?3pyxSCWV1p6+=a3^JG)Lb{Bpc{>lJf*$zmud+mN{iEak(b`?ZbVloj#8zC#q>k?yg zAy2*17oOjxr>Rq7F1djEzE0= zpJQ_or6Wktit=exbq`_%SWlnYG+zsQ^V2}6>}6n)g{3({IUs%ImvI*Lpyhmc*swoP z1M9|-I0vS(wl*0CkeQViWZ>&3zS}~rbQ3*biPZhxPemB;lr9@hz?Tay4vmH_gpX-t z5V4MP+~ET@a*S2@wKIea7jaVYBW|Pw2S0~FH__IJnz}7}CrO$WDiu)nRz}h;z9&XA Y6o_I30m}c4^R&xnMr2kWuY