First check in
This commit is contained in:
2
SRC/patches/README
Normal file
2
SRC/patches/README
Normal file
@@ -0,0 +1,2 @@
|
||||
Place any patch files here and preface each with a number indicating
|
||||
the order of execution. Patch files are expected to use a .patch extension.
|
||||
37
SRC/snap-base/Makefile
Normal file
37
SRC/snap-base/Makefile
Normal file
@@ -0,0 +1,37 @@
|
||||
install: base usr var lib snap
|
||||
|
||||
base:
|
||||
@install -v -d -m 0755 -o root -g root \
|
||||
$(DESTDIR)/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc} && \
|
||||
install -v -d -m 0755 -o root -g root \
|
||||
$(DESTDIR)/{run,sbin,srv,usr,var} && \
|
||||
install -v -d -m 0750 -o root -g root \
|
||||
$(DESTDIR)/root && \
|
||||
install -v -d -m 1777 $(DESTDIR)/tmp $(DESTDIR)/var/tmp
|
||||
|
||||
usr: base
|
||||
@install -v -d -m 0755 -o root -g root \
|
||||
$(DESTDIR)/usr/{,local/}{bin,include,lib,sbin,src} && \
|
||||
install -v -d -m 0755 -o root -g root \
|
||||
$(DESTDIR)/usr/{,local/}share/{color,dict,doc,info,locale} && \
|
||||
install -v -d -m 0755 -o root -g root \
|
||||
$(DESTDIR)/usr/{,local/}share/{man,misc,terminfo,zoneinfo} && \
|
||||
install -v -d -m 0755 -o root -g root \
|
||||
$(DESTDIR)/usr/{libexec,{,local/}share/man/man{1..8}}
|
||||
|
||||
var: base
|
||||
@install -v -d -m 0755 -o root -g root \
|
||||
$(DESTDIR)/var/{log,mail,spool} && \
|
||||
install -v -d -m 0755 -o root -g root \
|
||||
$(DESTDIR)/var/{opt,cache,lib/{color,misc,locate},local} && \
|
||||
ln -sv /run $(DESTDIR)/var/run && \
|
||||
ln -sv /run/lock $(DESTDIR)/var/lock
|
||||
|
||||
lib: usr
|
||||
@ln -sv lib $(DESTDIR)/lib64 && \
|
||||
ln -sv lib $(DESTDIR)/usr/lib64
|
||||
|
||||
snap: usr
|
||||
install -v -d -m 0755 $(DESTDIR)/usr/share/snap-base && \
|
||||
install -v -m 0644 usr/share/snap-base/* $(DESTDIR)/usr/share/snap-base
|
||||
|
||||
18
SRC/snap-base/usr/share/snap-base/bashrc
Normal file
18
SRC/snap-base/usr/share/snap-base/bashrc
Normal file
@@ -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'
|
||||
22
SRC/snap-base/usr/share/snap-base/group
Normal file
22
SRC/snap-base/usr/share/snap-base/group
Normal file
@@ -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:
|
||||
5
SRC/snap-base/usr/share/snap-base/passwd
Normal file
5
SRC/snap-base/usr/share/snap-base/passwd
Normal file
@@ -0,0 +1,5 @@
|
||||
root:x:0:0:root:/root:/bin/bash
|
||||
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
|
||||
25
SRC/snap-base/usr/share/snap-base/profile
Normal file
25
SRC/snap-base/usr/share/snap-base/profile
Normal file
@@ -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
|
||||
2
SRC/snap-base/usr/share/snap-base/snap.conf
Normal file
2
SRC/snap-base/usr/share/snap-base/snap.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
[sources]
|
||||
default = http://packages.snaplinux.org/ core dev util
|
||||
1
SRC/snap-base/usr/share/snap-base/snap_version
Normal file
1
SRC/snap-base/usr/share/snap-base/snap_version
Normal file
@@ -0,0 +1 @@
|
||||
0.0alpha1
|
||||
Reference in New Issue
Block a user