summaryrefslogtreecommitdiff
path: root/nonsystemd/filesystem
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2018-05-11 16:23:48 -0300
committerDavid P <megver83@parabola.nu>2018-05-11 16:23:48 -0300
commitce3823eb663c173540da08bf4b2097942935e559 (patch)
tree33820e1770e5bb942aa57fe5d6aee4a71f1dbca2 /nonsystemd/filesystem
parentb64af43366d391e9a960763ebab37dbbd70ded10 (diff)
downloadabslibre-ce3823eb663c173540da08bf4b2097942935e559.tar.gz
abslibre-ce3823eb663c173540da08bf4b2097942935e559.tar.bz2
abslibre-ce3823eb663c173540da08bf4b2097942935e559.zip
nonsystemd/filesystem: add package
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd/filesystem')
-rw-r--r--nonsystemd/filesystem/PKGBUILD127
-rw-r--r--nonsystemd/filesystem/crypttab12
-rw-r--r--nonsystemd/filesystem/fstab4
-rw-r--r--nonsystemd/filesystem/group1
-rw-r--r--nonsystemd/filesystem/gshadow1
-rw-r--r--nonsystemd/filesystem/host.conf4
-rw-r--r--nonsystemd/filesystem/hosts2
-rw-r--r--nonsystemd/filesystem/issue2
-rw-r--r--nonsystemd/filesystem/ld.so.conf4
-rw-r--r--nonsystemd/filesystem/locale.sh22
-rw-r--r--nonsystemd/filesystem/motd0
-rw-r--r--nonsystemd/filesystem/nsswitch.conf18
-rw-r--r--nonsystemd/filesystem/os-release8
-rw-r--r--nonsystemd/filesystem/passwd1
-rw-r--r--nonsystemd/filesystem/profile40
-rw-r--r--nonsystemd/filesystem/resolv.conf2
-rw-r--r--nonsystemd/filesystem/securetty12
-rw-r--r--nonsystemd/filesystem/shadow1
-rw-r--r--nonsystemd/filesystem/shells5
-rw-r--r--nonsystemd/filesystem/sysusers37
-rw-r--r--nonsystemd/filesystem/tmpfiles17
21 files changed, 320 insertions, 0 deletions
diff --git a/nonsystemd/filesystem/PKGBUILD b/nonsystemd/filesystem/PKGBUILD
new file mode 100644
index 000000000..58dbb8f1a
--- /dev/null
+++ b/nonsystemd/filesystem/PKGBUILD
@@ -0,0 +1,127 @@
+# $Id: PKGBUILD 291699 2017-03-26 22:06:04Z seblu $
+# Maintainer (Arch): Sébastien Luttringer
+# Contributor (Arch): Tom Gundersen <teg@jklm.no>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+# Contributor: Nicolás Reynolds <fauno@kiwwwi.com.ar>
+
+pkgname=filesystem
+pkgver=2018.1
+pkgrel=2.parabola2
+pkgrel+=.nonsystemd2
+pkgdesc='Base Parabola GNU/Linux-libre files'
+arch=('i686' 'x86_64' 'armv7h')
+license=('GPL')
+url='https://www.parabola.nu'
+groups=('base-openrc')
+depends=('iana-etc')
+provides=("filesystem=$pkgver" filesystem-nosystemd)
+replaces=(filesystem-parabola filesystem-nosystemd)
+conflicts=(${conflicts[@]})
+backup=('etc/crypttab' 'etc/fstab' 'etc/group' 'etc/gshadow' 'etc/host.conf'
+ 'etc/hosts' 'etc/issue' 'etc/ld.so.conf' 'etc/motd' 'etc/nsswitch.conf'
+ 'etc/passwd' 'etc/profile' 'etc/resolv.conf' 'etc/securetty'
+ 'etc/shadow' 'etc/shells')
+source=('crypttab' 'fstab' 'group' 'gshadow' 'host.conf' 'hosts'
+ 'issue' 'ld.so.conf' 'locale.sh' 'motd' 'nsswitch.conf' 'os-release'
+ 'passwd' 'profile' 'resolv.conf' 'securetty' 'shadow' 'shells'
+ 'sysusers' 'tmpfiles')
+sha256sums=('e03bede3d258d680548696623d5979c6edf03272e801a813c81ba5a5c64f4f82'
+ 'e54626e74ed8fee4173b62a545ab1c3a3a069e4217a0ee8fc398d9933e9c1696'
+ '244f0718ee2a9d6862ae59d6c18c1dd1568651eada91a704574fa527fbac2b3a'
+ '90d879374f77bac47f132164c1e7fc4892e994ff1d1ac376efa0c1c26ea37273'
+ '4d7b647169063dfedbff5e1e22cee77bd1a4183dbcfd5e802e68939da4bbf733'
+ 'd9cd8a77d9e0aa5e90d7f4ed74c8745c17b525e720e28e4c44364150003c35f9'
+ '3ad448c78cab733759ae3365620504b1444e854effd066f1c7174652f046ebe1'
+ 'dad04a370e488aa85fb0a813a5c83cf6fd981ce01883fc59685447b092de84b5'
+ '8ca2d8eef6fb5143c9ef7e9174ccfef59ac7ad2deee243574cd10c763156cc10'
+ 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
+ 'aa4dc5b2374fb32863e3bc1ce20a2de2d34fe4eed1cd63c599bc82fab21463cc'
+ '463dbccba0275ee80c532755c7048cb9ded83658a33a82f344aaf1520704f2ac'
+ '5e06477834f51abf42ea4e8dc199632afc6afbfd8c44354685a271e9a48d2c0a'
+ '5da078777cda24e4df697e2928451723f2303bfdbb2ce9551c822188c7945d25'
+ '5557d8e601b17a80d1ea7de78a9869be69637cb6a02fbfe334e22fdf64e61d4c'
+ 'd88be2b45b43605ff31dd83d6a138069b6c2e92bc8989b7b9ab9eba8da5f8c7b'
+ '8ce994663d7588143ad7ed4441b07f468f4f7d3590164dd73ddfa3ea307ece8e'
+ 'c390b31fffc4a2b5d78ae8c89f5317aadef1f71baac09cfb467b675db1406d61'
+ 'ed5c607898391b2aab83a0f45e58c53ed9853b56c5f8892bb2ca24b771603b52'
+ '618ac097441c1f2daffc9967e5c3cd18ea8866f776db62d04bf401c53907b1c9')
+
+package() {
+ cd "$pkgdir"
+
+ # setup root filesystem
+ for d in boot dev etc home mnt usr var opt srv/http run; do
+ install -d -m755 $d
+ done
+ install -d -m555 proc
+ install -d -m555 sys
+ install -d -m0750 root
+ install -d -m1777 tmp
+ # vsftpd won't run with write perms on /srv/ftp
+ # ftp (uid 14/gid 11)
+ install -d -m555 -g 11 srv/ftp
+
+ # setup /etc and /usr/share/factory/etc
+ install -d etc/{ld.so.conf.d,skel,profile.d} usr/share/factory/etc
+ for f in fstab group host.conf hosts issue ld.so.conf motd nsswitch.conf \
+ passwd resolv.conf securetty shells profile; do
+ install -m644 "$srcdir"/$f etc/
+ install -m644 "$srcdir"/$f usr/share/factory/etc/
+ done
+ ln -s ../proc/self/mounts etc/mtab
+ for f in gshadow shadow crypttab; do
+ install -m600 "$srcdir"/$f etc/
+ install -m600 "$srcdir"/$f usr/share/factory/etc/
+ done
+ touch etc/parabola-release
+ ln -sv parabola-release etc/arch-release
+ install -m755 "$srcdir"/locale.sh etc/profile.d/locale.sh
+ install -Dm644 "$srcdir"/os-release usr/lib/os-release
+ ln -s ../usr/lib/os-release etc/os-release
+
+ # setup /var
+ for d in cache local opt log/old lib/misc empty; do
+ install -d -m755 var/$d
+ done
+ install -d -m1777 var/{tmp,spool/mail}
+
+ # allow setgid games (gid 50) to write scores
+ install -d -m775 -g 50 var/games
+ ln -s spool/mail var/mail
+ ln -s ../run var/run
+ ln -s ../run/lock var/lock
+
+ # setup /usr hierarchy
+ for d in bin include lib share/misc src; do
+ install -d -m755 usr/$d
+ done
+ for d in {1..8}; do
+ install -d -m755 usr/share/man/man$d
+ done
+
+ # add lib symlinks
+ ln -s usr/lib lib
+ [[ $CARCH = 'x86_64' ]] && {
+ ln -s usr/lib lib64
+ ln -s lib usr/lib64
+ }
+
+ # add bin symlinks
+ ln -s usr/bin bin
+ ln -s usr/bin sbin
+ ln -s bin usr/sbin
+
+ # setup /usr/local hierarchy
+ for d in bin etc games include lib man sbin share src; do
+ install -d -m755 usr/local/$d
+ done
+ ln -s ../man usr/local/share/man
+
+ # setup sysusers
+ install -D -m644 "$srcdir"/sysusers usr/lib/sysusers.d/parabola.conf
+ ln -sv parabola.conf usr/lib/sysusers.d/arch.conf
+
+ # setup tmpfiles
+ install -D -m644 "$srcdir"/tmpfiles usr/lib/tmpfiles.d/parabola.conf
+ ln -sv parabola.conf usr/lib/tmpfiles.d/arch.conf
+}
diff --git a/nonsystemd/filesystem/crypttab b/nonsystemd/filesystem/crypttab
new file mode 100644
index 000000000..3dbc8a46c
--- /dev/null
+++ b/nonsystemd/filesystem/crypttab
@@ -0,0 +1,12 @@
+# Configuration for encrypted block devices.
+# See crypttab(5) for details.
+
+# NOTE: Do not list your root (/) partition here, it must be set up
+# beforehand by the initramfs (/etc/mkinitcpio.conf).
+
+# <name> <device> <password> <options>
+# home UUID=b8ad5c18-f445-495d-9095-c9ec4f9d2f37 /etc/mypassword1
+# data1 /dev/sda3 /etc/mypassword2
+# data2 /dev/sda5 /etc/cryptfs.key
+# swap /dev/sdx4 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256
+# vol /dev/sdb7 none
diff --git a/nonsystemd/filesystem/fstab b/nonsystemd/filesystem/fstab
new file mode 100644
index 000000000..903906d27
--- /dev/null
+++ b/nonsystemd/filesystem/fstab
@@ -0,0 +1,4 @@
+# Static information about the filesystems.
+# See fstab(5) for details.
+
+# <file system> <dir> <type> <options> <dump> <pass>
diff --git a/nonsystemd/filesystem/group b/nonsystemd/filesystem/group
new file mode 100644
index 000000000..18acc30a0
--- /dev/null
+++ b/nonsystemd/filesystem/group
@@ -0,0 +1 @@
+root:x:0:root
diff --git a/nonsystemd/filesystem/gshadow b/nonsystemd/filesystem/gshadow
new file mode 100644
index 000000000..3d5d11168
--- /dev/null
+++ b/nonsystemd/filesystem/gshadow
@@ -0,0 +1 @@
+root:::root
diff --git a/nonsystemd/filesystem/host.conf b/nonsystemd/filesystem/host.conf
new file mode 100644
index 000000000..f6df15f6b
--- /dev/null
+++ b/nonsystemd/filesystem/host.conf
@@ -0,0 +1,4 @@
+# Resolver configuration file.
+# See host.conf(5) for details.
+
+multi on
diff --git a/nonsystemd/filesystem/hosts b/nonsystemd/filesystem/hosts
new file mode 100644
index 000000000..37a930617
--- /dev/null
+++ b/nonsystemd/filesystem/hosts
@@ -0,0 +1,2 @@
+# Static table lookup for hostnames.
+# See hosts(5) for details.
diff --git a/nonsystemd/filesystem/issue b/nonsystemd/filesystem/issue
new file mode 100644
index 000000000..b001c55dd
--- /dev/null
+++ b/nonsystemd/filesystem/issue
@@ -0,0 +1,2 @@
+Parabola GNU/Linux-libre \r (\n) (\l)
+
diff --git a/nonsystemd/filesystem/ld.so.conf b/nonsystemd/filesystem/ld.so.conf
new file mode 100644
index 000000000..1f620fa67
--- /dev/null
+++ b/nonsystemd/filesystem/ld.so.conf
@@ -0,0 +1,4 @@
+# Dynamic linker/loader configuration.
+# See ld.so(8) and ldconfig(8) for details.
+
+include /etc/ld.so.conf.d/*.conf
diff --git a/nonsystemd/filesystem/locale.sh b/nonsystemd/filesystem/locale.sh
new file mode 100644
index 000000000..48dd748da
--- /dev/null
+++ b/nonsystemd/filesystem/locale.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# load locale.conf in XDG paths.
+# /etc/locale.conf loads and overrides by kernel command line is done by systemd
+# But we override it here, see FS#56688
+if [ -z "$LANG" ]; then
+ if [ -n "$XDG_CONFIG_HOME" ] && [ -r "$XDG_CONFIG_HOME/locale.conf" ]; then
+ . "$XDG_CONFIG_HOME/locale.conf"
+ elif [ -n "$HOME" ] && [ -r "$HOME/.config/locale.conf" ]; then
+ . "$HOME/.config/locale.conf"
+ elif [ -r /etc/locale.conf ]; then
+ . /etc/locale.conf
+ fi
+fi
+
+# define default LANG to C if not already defined
+LANG=${LANG:-C}
+
+# export all locale (7) variables when they exist
+export LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
+ LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT \
+ LC_IDENTIFICATION
diff --git a/nonsystemd/filesystem/motd b/nonsystemd/filesystem/motd
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/nonsystemd/filesystem/motd
diff --git a/nonsystemd/filesystem/nsswitch.conf b/nonsystemd/filesystem/nsswitch.conf
new file mode 100644
index 000000000..9f97491ec
--- /dev/null
+++ b/nonsystemd/filesystem/nsswitch.conf
@@ -0,0 +1,18 @@
+# Name Service Switch configuration file.
+# See nsswitch.conf(5) for details.
+
+passwd: files
+group: files
+shadow: files
+
+publickey: files
+
+hosts: files resolve [!UNAVAIL=return] dns
+networks: files
+
+protocols: files
+services: files
+ethers: files
+rpc: files
+
+netgroup: files
diff --git a/nonsystemd/filesystem/os-release b/nonsystemd/filesystem/os-release
new file mode 100644
index 000000000..9dfb39d50
--- /dev/null
+++ b/nonsystemd/filesystem/os-release
@@ -0,0 +1,8 @@
+NAME="Parabola"
+PRETTY_NAME="Parabola GNU/Linux-libre"
+ID=parabola
+ID_LIKE="arch archlinux"
+ANSI_COLOR="1;35"
+HOME_URL="https://www.parabola.nu/"
+SUPPORT_URL="irc://chat.freenode.net#parabola"
+BUG_REPORT_URL="https://labs.parabola.nu/"
diff --git a/nonsystemd/filesystem/passwd b/nonsystemd/filesystem/passwd
new file mode 100644
index 000000000..909d89bca
--- /dev/null
+++ b/nonsystemd/filesystem/passwd
@@ -0,0 +1 @@
+root:x:0:0::/root:/bin/bash
diff --git a/nonsystemd/filesystem/profile b/nonsystemd/filesystem/profile
new file mode 100644
index 000000000..a4f717734
--- /dev/null
+++ b/nonsystemd/filesystem/profile
@@ -0,0 +1,40 @@
+# /etc/profile
+
+# Set our umask
+umask 022
+
+# Append our default paths
+appendpath () {
+ case ":$PATH:" in
+ *:"$1":*)
+ ;;
+ *)
+ PATH="${PATH:+$PATH:}$1"
+ esac
+}
+
+appendpath '/usr/local/sbin'
+appendpath '/usr/local/bin'
+appendpath '/usr/bin'
+unset appendpath
+
+export PATH
+
+# Load profiles from /etc/profile.d
+if test -d /etc/profile.d/; then
+ for profile in /etc/profile.d/*.sh; do
+ test -r "$profile" && . "$profile"
+ done
+ unset profile
+fi
+
+# Source global bash config
+if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && test -r /etc/bash.bashrc; then
+ . /etc/bash.bashrc
+fi
+
+# Termcap is outdated, old, and crusty, kill it.
+unset TERMCAP
+
+# Man is much better than us at figuring this out
+unset MANPATH
diff --git a/nonsystemd/filesystem/resolv.conf b/nonsystemd/filesystem/resolv.conf
new file mode 100644
index 000000000..7a7d4293c
--- /dev/null
+++ b/nonsystemd/filesystem/resolv.conf
@@ -0,0 +1,2 @@
+# Resolver configuration file.
+# See resolv.conf(5) for details.
diff --git a/nonsystemd/filesystem/securetty b/nonsystemd/filesystem/securetty
new file mode 100644
index 000000000..67fb10cff
--- /dev/null
+++ b/nonsystemd/filesystem/securetty
@@ -0,0 +1,12 @@
+# File which lists terminals from which root can log in.
+# See securetty(5) for details.
+
+console
+tty1
+tty2
+tty3
+tty4
+tty5
+tty6
+ttyS0
+hvc0
diff --git a/nonsystemd/filesystem/shadow b/nonsystemd/filesystem/shadow
new file mode 100644
index 000000000..7edfd69be
--- /dev/null
+++ b/nonsystemd/filesystem/shadow
@@ -0,0 +1 @@
+root::14871::::::
diff --git a/nonsystemd/filesystem/shells b/nonsystemd/filesystem/shells
new file mode 100644
index 000000000..19324ea83
--- /dev/null
+++ b/nonsystemd/filesystem/shells
@@ -0,0 +1,5 @@
+# Pathnames of valid login shells.
+# See shells(5) for details.
+
+/bin/sh
+/bin/bash
diff --git a/nonsystemd/filesystem/sysusers b/nonsystemd/filesystem/sysusers
new file mode 100644
index 000000000..a8d5619a8
--- /dev/null
+++ b/nonsystemd/filesystem/sysusers
@@ -0,0 +1,37 @@
+g sys 3 - -
+g adm 4 - -
+g tty 5 - -
+g disk 6 - -
+g lp 7 - -
+g mem 8 - -
+g kmem 9 - -
+g wheel 10 - -
+g ftp 11 - -
+g mail 12 - -
+g uucp 14 - -
+g log 19 - -
+g utmp 20 - -
+g smmsp 25 - -
+g proc 26 - -
+g games 50 - -
+g lock 54 - -
+g network 90 - -
+g video 91 - -
+g audio 92 - -
+g optical 93 - -
+g floppy 94 - -
+g storage 95 - -
+g scanner 96 - -
+g input 97 - -
+g power 98 - -
+g nobody 99 - -
+g users 100 - -
+u bin 1 - -
+u daemon 2 - -
+u mail 8 - /var/spool/mail
+u ftp 14 - /srv/ftp
+u http 33 - /srv/http
+m bin daemon
+m bin sys
+m daemon adm
+m daemon bin
diff --git a/nonsystemd/filesystem/tmpfiles b/nonsystemd/filesystem/tmpfiles
new file mode 100644
index 000000000..8fc77b57f
--- /dev/null
+++ b/nonsystemd/filesystem/tmpfiles
@@ -0,0 +1,17 @@
+# copy from factory when missing
+
+C /etc/crypttab
+C /etc/fstab
+C /etc/group
+C /etc/gshadow
+C /etc/host.conf
+C /etc/hosts
+C /etc/issue
+C /etc/ld.so.conf
+C /etc/motd
+C /etc/nsswitch.conf
+C /etc/passwd
+C /etc/profile
+C /etc/securetty
+C /etc/shadow
+C /etc/shells