4 Commits

Author SHA1 Message Date
Jay Larson
a57f57d229 The following changes were made:
* Added URL, REPO, and BRIEF to Makefile
  * Modified passwd with default shell of /bin/sh for root
2018-03-30 09:47:26 -05:00
Jay Larson
f473fde4ef The following changes were made:
* Now uses relative rather than absolute paths for symlinks
  * usher now uses /bin/sh
  * Added ids.default as start of tracking base system uids/gids
2017-12-10 15:17:47 -06:00
Jay Larson
ab041cd8ef Corrected incorrect DESTDIR variables in usher (should be TARGET) 2017-05-18 19:23:19 -05:00
Jay Larson
4cec71bfbb Added missing /sys to SRC Makefile 2017-05-18 18:46:40 -05:00
5 changed files with 63 additions and 11 deletions

View File

@@ -10,13 +10,15 @@
DEPENDS =
ARCH = x86_64
URL =
URL = http://snaplinux.org/
REPO = core
BRIEF = Base system directories and files
DESC = Base system directories and files
ARCHIVE :=
SRCDIR := $(PWD)/SRC/snap-base
PATCHDIR := $(PWD)/SRC/patches
VERSION := 0.0alpha1-1
VERSION := 0.0alpha1-6
include /usr/share/snap/Makefile.snaplinux

49
SNAP/ids.default Normal file
View File

@@ -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

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
set -e
@@ -28,13 +28,13 @@ case $1 in
${TARGET}/etc/snap.conf
fi
if [ ! -f ${TARGET}/var/log/btmp ]; then
install -v -m 600 /dev/null $(DESTDIR)/var/log/btmp
install -v -m 600 /dev/null ${TARGET}/var/log/btmp
fi
if [ ! -f ${TARGET}/var/log/lastlog ]; then
install -v -m 664 /dev/null $(DESTDIR)/var/log/lastlog
install -v -m 664 /dev/null ${TARGET}/var/log/lastlog
fi
if [ ! -f ${TARGET}/var/log/wtmp ]; then
install -v -m 664 /dev/null $(DESTDIR)/var/log/wtmp
install -v -m 664 /dev/null ${TARGET}/var/log/wtmp
fi
;;
prerm)

View File

@@ -4,13 +4,14 @@ 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} && \
$(DESTDIR)/{run,sbin,srv,sys,usr,var} && \
install -v -d -m 0750 -o root -g root \
$(DESTDIR)/root && \
install -v -d -m 1777 $(DESTDIR)/tmp $(DESTDIR)/var/tmp
etc: base
@ln -sv /proc/mounts $(DESTDIR)/etc/mtab
@ install -v -d -m 0755 -o root -g root $(DESTDIR)/etc/default
ln -sv ../proc/mounts $(DESTDIR)/etc/mtab
lib: usr
@ln -sv lib $(DESTDIR)/lib64 && \
@@ -41,6 +42,6 @@ var: base
$(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
ln -sv ../run $(DESTDIR)/var/run && \
ln -sv ../run/lock $(DESTDIR)/var/lock

View File

@@ -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
daemon:x:6:6:Daemon User:/dev/null:/bin/false
messagebus:x:18:18:D-Bus Message Daemon User:/var/run/dbus:/bin/false