Compare commits
3 Commits
v0.0alpha1
...
v0.0alpha1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a184e88bf | ||
|
|
15d00b75ee | ||
|
|
a57f57d229 |
@@ -1,4 +1,4 @@
|
|||||||
root:x:0:0:root:/root:/bin/bash
|
root:x:0:0:root:/root:/bin/sh
|
||||||
bin:x:1:1:bin:/dev/null:/bin/false
|
bin:x:1:1:bin:/dev/null:/bin/false
|
||||||
daemon:x:6:6:Daemon User:/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
|
messagebus:x:18:18:D-Bus Message Daemon User:/var/run/dbus:/bin/false
|
||||||
7
CONFIG/etc/snap.conf
Normal file
7
CONFIG/etc/snap.conf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[sources]
|
||||||
|
default = http://packages.snaplinux.org/ core dev main
|
||||||
|
|
||||||
|
[snapinstall]
|
||||||
|
templatedir = /etc/snap.d/templates
|
||||||
|
|
||||||
|
include /etc/snap.d
|
||||||
9
Makefile
9
Makefile
@@ -10,13 +10,15 @@
|
|||||||
|
|
||||||
DEPENDS =
|
DEPENDS =
|
||||||
ARCH = x86_64
|
ARCH = x86_64
|
||||||
URL =
|
URL = http://snaplinux.org/
|
||||||
|
REPO = core
|
||||||
|
BRIEF = Base system directories and files
|
||||||
DESC = Base system directories and files
|
DESC = Base system directories and files
|
||||||
|
|
||||||
ARCHIVE :=
|
ARCHIVE :=
|
||||||
SRCDIR := $(PWD)/SRC/snap-base
|
SRCDIR := $(PWD)/SRC/snap-base
|
||||||
PATCHDIR := $(PWD)/SRC/patches
|
PATCHDIR := $(PWD)/SRC/patches
|
||||||
VERSION := 0.0alpha1-5
|
VERSION := 0.0alpha1-8
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
@@ -33,4 +35,5 @@ clean:
|
|||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(SNAPINFO) \
|
$(SNAPINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES)
|
$(FILES) \
|
||||||
|
$(CONFIG)
|
||||||
|
|||||||
20
SNAP/usher
20
SNAP/usher
@@ -7,26 +7,6 @@ case $1 in
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
postinst)
|
postinst)
|
||||||
if [ ! -f ${TARGET}/etc/bashrc ]; then
|
|
||||||
install -m 0644 ${TARGET}/usr/share/snap-base/bashrc \
|
|
||||||
${TARGET}/etc/bashrc
|
|
||||||
fi
|
|
||||||
if [ ! -f ${TARGET}/etc/group ]; then
|
|
||||||
install -m 0644 ${TARGET}/usr/share/snap-base/group \
|
|
||||||
${TARGET}/etc/group
|
|
||||||
fi
|
|
||||||
if [ ! -f ${TARGET}/etc/passwd ]; then
|
|
||||||
install -m 0644 ${TARGET}/usr/share/snap-base/passwd \
|
|
||||||
${TARGET}/etc/passwd
|
|
||||||
fi
|
|
||||||
if [ ! -f ${TARGET}/etc/profile ]; then
|
|
||||||
install -m 0644 ${TARGET}/usr/share/snap-base/profile \
|
|
||||||
${TARGET}/etc/profile
|
|
||||||
fi
|
|
||||||
if [ ! -f ${TARGET}/etc/snap.conf ]; then
|
|
||||||
install -m 0644 ${TARGET}/usr/share/snap-base/snap.conf \
|
|
||||||
${TARGET}/etc/snap.conf
|
|
||||||
fi
|
|
||||||
if [ ! -f ${TARGET}/var/log/btmp ]; then
|
if [ ! -f ${TARGET}/var/log/btmp ]; then
|
||||||
install -v -m 600 /dev/null ${TARGET}/var/log/btmp
|
install -v -m 600 /dev/null ${TARGET}/var/log/btmp
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,47 +1,99 @@
|
|||||||
install: base usr etc var lib snap
|
install: base usr etc var lib
|
||||||
|
|
||||||
base:
|
base:
|
||||||
@install -v -d -m 0755 -o root -g root \
|
@install -v -d -m 0755 -o root -g root \
|
||||||
$(DESTDIR)/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc} && \
|
$(DESTDIR)/bin \
|
||||||
|
$(DESTDIR)/boot \
|
||||||
|
$(DESTDIR)/dev \
|
||||||
|
$(DESTDIR)/etc \
|
||||||
|
$(DESTDIR)/home \
|
||||||
|
$(DESTDIR)/lib \
|
||||||
|
$(DESTDIR)/media \
|
||||||
|
$(DESTDIR)/mnt \
|
||||||
|
$(DESTDIR)/opt \
|
||||||
|
$(DESTDIR)/proc && \
|
||||||
install -v -d -m 0755 -o root -g root \
|
install -v -d -m 0755 -o root -g root \
|
||||||
$(DESTDIR)/{run,sbin,srv,sys,usr,var} && \
|
$(DESTDIR)/run \
|
||||||
|
$(DESTDIR)/sbin \
|
||||||
|
$(DESTDIR)/srv \
|
||||||
|
$(DESTDIR)/sys \
|
||||||
|
$(DESTDIR)/usr \
|
||||||
|
$(DESTDIR)/var && \
|
||||||
install -v -d -m 0750 -o root -g root \
|
install -v -d -m 0750 -o root -g root \
|
||||||
$(DESTDIR)/root && \
|
$(DESTDIR)/root && \
|
||||||
install -v -d -m 1777 $(DESTDIR)/tmp $(DESTDIR)/var/tmp
|
install -v -d -m 1777 $(DESTDIR)/tmp $(DESTDIR)/var/tmp
|
||||||
|
|
||||||
etc: base
|
etc: base
|
||||||
@ install -v -d -m 0755 -o root -g root $(DESTDIR)/etc/default
|
@install -v -d -m 0755 -o root -g root $(DESTDIR)/etc/default && \
|
||||||
ln -sv ../proc/mounts $(DESTDIR)/etc/mtab
|
ln -sv ../proc/mounts $(DESTDIR)/etc/mtab
|
||||||
|
|
||||||
lib: usr
|
lib: usr
|
||||||
@ln -sv lib $(DESTDIR)/lib64 && \
|
@ln -sv lib $(DESTDIR)/lib64 && \
|
||||||
ln -sv lib $(DESTDIR)/usr/lib64
|
ln -sv lib $(DESTDIR)/usr/lib64
|
||||||
|
|
||||||
snap: usr
|
|
||||||
install -v -d -m 0755 $(DESTDIR)/usr/share/snap-base && \
|
|
||||||
install -v -m 0644 bashrc $(DESTDIR)/usr/share/snap-base/bashrc && \
|
|
||||||
install -v -m 0644 group $(DESTDIR)/usr/share/snap-base/group && \
|
|
||||||
install -v -m 0644 passwd $(DESTDIR)/usr/share/snap-base/passwd && \
|
|
||||||
install -v -m 0644 profile $(DESTDIR)/usr/share/snap-base/profile && \
|
|
||||||
install -v -m 0644 snap.conf \
|
|
||||||
$(DESTDIR)/usr/share/snap-base/snap.conf && \
|
|
||||||
install -v -m 0644 snap_version $(DESTDIR)/etc/snap_version
|
|
||||||
|
|
||||||
usr: base
|
usr: base
|
||||||
@install -v -d -m 0755 -o root -g root \
|
@install -v -d -m 0755 -o root -g root \
|
||||||
$(DESTDIR)/usr/{,local/}{bin,include,lib,sbin,src} && \
|
$(DESTDIR)/usr/bin \
|
||||||
|
$(DESTDIR)/usr/include \
|
||||||
|
$(DESTDIR)/usr/lib \
|
||||||
|
$(DESTDIR)/usr/sbin \
|
||||||
|
$(DESTDIR)/usr/src \
|
||||||
|
$(DESTDIR)/usr/local/bin \
|
||||||
|
$(DESTDIR)/usr/local/include \
|
||||||
|
$(DESTDIR)/usr/local/lib \
|
||||||
|
$(DESTDIR)/usr/local/sbin \
|
||||||
|
$(DESTDIR)/usr/local/src && \
|
||||||
install -v -d -m 0755 -o root -g root \
|
install -v -d -m 0755 -o root -g root \
|
||||||
$(DESTDIR)/usr/{,local/}share/{color,dict,doc,info,locale} && \
|
$(DESTDIR)/usr/share/color \
|
||||||
|
$(DESTDIR)/usr/share/dict \
|
||||||
|
$(DESTDIR)/usr/share/doc \
|
||||||
|
$(DESTDIR)/usr/share/info \
|
||||||
|
$(DESTDIR)/usr/share/locale \
|
||||||
|
$(DESTDIR)/usr/local/share/color \
|
||||||
|
$(DESTDIR)/usr/local/share/dict \
|
||||||
|
$(DESTDIR)/usr/local/share/doc \
|
||||||
|
$(DESTDIR)/usr/local/share/info \
|
||||||
|
$(DESTDIR)/usr/local/share/locale && \
|
||||||
install -v -d -m 0755 -o root -g root \
|
install -v -d -m 0755 -o root -g root \
|
||||||
$(DESTDIR)/usr/{,local/}share/{man,misc,terminfo,zoneinfo} && \
|
$(DESTDIR)/usr/share/man \
|
||||||
|
$(DESTDIR)/usr/share/misc \
|
||||||
|
$(DESTDIR)/usr/share/terminfo \
|
||||||
|
$(DESTDIR)/usr/share/zoneinfo \
|
||||||
|
$(DESTDIR)/usr/local/share/man \
|
||||||
|
$(DESTDIR)/usr/local/share/misc \
|
||||||
|
$(DESTDIR)/usr/local/share/terminfo \
|
||||||
|
$(DESTDIR)/usr/local/share/zoneinfo && \
|
||||||
install -v -d -m 0755 -o root -g root \
|
install -v -d -m 0755 -o root -g root \
|
||||||
$(DESTDIR)/usr/{libexec,{,local/}share/man/man{1..8}}
|
$(DESTDIR)/usr/libexec \
|
||||||
|
$(DESTDIR)/usr/share/man/man1 \
|
||||||
|
$(DESTDIR)/usr/share/man/man2 \
|
||||||
|
$(DESTDIR)/usr/share/man/man3 \
|
||||||
|
$(DESTDIR)/usr/share/man/man4 \
|
||||||
|
$(DESTDIR)/usr/share/man/man5 \
|
||||||
|
$(DESTDIR)/usr/share/man/man6 \
|
||||||
|
$(DESTDIR)/usr/share/man/man7 \
|
||||||
|
$(DESTDIR)/usr/share/man/man8 \
|
||||||
|
$(DESTDIR)/usr/local/share/man/man1 \
|
||||||
|
$(DESTDIR)/usr/local/share/man/man2 \
|
||||||
|
$(DESTDIR)/usr/local/share/man/man3 \
|
||||||
|
$(DESTDIR)/usr/local/share/man/man4 \
|
||||||
|
$(DESTDIR)/usr/local/share/man/man5 \
|
||||||
|
$(DESTDIR)/usr/local/share/man/man6 \
|
||||||
|
$(DESTDIR)/usr/local/share/man/man7 \
|
||||||
|
$(DESTDIR)/usr/local/share/man/man8
|
||||||
|
|
||||||
var: base
|
var: base
|
||||||
@install -v -d -m 0755 -o root -g root \
|
@install -v -d -m 0755 -o root -g root \
|
||||||
$(DESTDIR)/var/{log,mail,spool} && \
|
$(DESTDIR)/var/log \
|
||||||
|
$(DESTDIR)/var/mail \
|
||||||
|
$(DESTDIR)/var/spool && \
|
||||||
install -v -d -m 0755 -o root -g root \
|
install -v -d -m 0755 -o root -g root \
|
||||||
$(DESTDIR)/var/{opt,cache,lib/{color,misc,locate},local} && \
|
$(DESTDIR)/var/opt \
|
||||||
|
$(DESTDIR)/var/cache \
|
||||||
|
$(DESTDIR)/var/lib/color \
|
||||||
|
$(DESTDIR)/var/lib/misc \
|
||||||
|
$(DESTDIR)/var/lib/locate \
|
||||||
|
$(DESTDIR)/var/local && \
|
||||||
ln -sv ../run $(DESTDIR)/var/run && \
|
ln -sv ../run $(DESTDIR)/var/run && \
|
||||||
ln -sv ../run/lock $(DESTDIR)/var/lock
|
ln -sv ../run/lock $(DESTDIR)/var/lock
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
[sources]
|
|
||||||
default = http://packages.snaplinux.org/ core dev main
|
|
||||||
Reference in New Issue
Block a user