diff --git a/SRC/snap-base/bashrc b/CONFIG/etc/bashrc similarity index 100% rename from SRC/snap-base/bashrc rename to CONFIG/etc/bashrc diff --git a/SNAP/ids.default b/CONFIG/etc/default/ids similarity index 100% rename from SNAP/ids.default rename to CONFIG/etc/default/ids diff --git a/SRC/snap-base/group b/CONFIG/etc/group similarity index 100% rename from SRC/snap-base/group rename to CONFIG/etc/group diff --git a/SRC/snap-base/passwd b/CONFIG/etc/passwd similarity index 100% rename from SRC/snap-base/passwd rename to CONFIG/etc/passwd diff --git a/SRC/snap-base/profile b/CONFIG/etc/profile similarity index 100% rename from SRC/snap-base/profile rename to CONFIG/etc/profile diff --git a/SRC/snap-base/snap.conf b/CONFIG/etc/snap.conf similarity index 100% rename from SRC/snap-base/snap.conf rename to CONFIG/etc/snap.conf diff --git a/SRC/snap-base/snap_version b/CONFIG/etc/snap_version similarity index 100% rename from SRC/snap-base/snap_version rename to CONFIG/etc/snap_version diff --git a/Makefile b/Makefile index 67263a6..666ed44 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ DESC = Base system directories and files ARCHIVE := SRCDIR := $(PWD)/SRC/snap-base PATCHDIR := $(PWD)/SRC/patches -VERSION := 0.0alpha1-7 +VERSION := 0.0alpha1-8 include /usr/share/snap/Makefile.snaplinux @@ -35,4 +35,5 @@ clean: @rm -rvf $(ROOT) \ $(SNAPINFO) \ $(MANIFEST) \ - $(FILES) + $(FILES) \ + $(CONFIG) diff --git a/SNAP/usher b/SNAP/usher index a1703b3..2f2d5ca 100755 --- a/SNAP/usher +++ b/SNAP/usher @@ -7,26 +7,6 @@ case $1 in exit 0 ;; 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 install -v -m 600 /dev/null ${TARGET}/var/log/btmp fi diff --git a/SRC/snap-base/Makefile b/SRC/snap-base/Makefile index e6204ed..d4cb8a1 100644 --- a/SRC/snap-base/Makefile +++ b/SRC/snap-base/Makefile @@ -1,4 +1,4 @@ -install: base usr etc var lib snap +install: base usr etc var lib base: @install -v -d -m 0755 -o root -g root \ @@ -31,16 +31,6 @@ 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 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 @install -v -d -m 0755 -o root -g root \ $(DESTDIR)/usr/bin \