1 # Maintainer : Yamada Hayao <hayao@fascode.net>
2 # Contributor: Sébastien Luttringer
3 # Contributor: Tom Gundersen <teg@jklm.no>
8 pkgdesc='Base Arch Linux files'
11 url='https://fascode.net/en/projects/linux/alter/'
13 provides=("alterlinux-filesystem=${pkgver}")
71 for i in ${source[*]}; do
78 echo -ne "$(date "+%Y.%m.%d")"
84 # setup root filesystem
85 for d in boot dev etc home mnt usr var opt srv/http run; do
90 install -d -m0750 root
92 # vsftpd won't run with write perms on /srv/ftp
94 install -d -m555 -g 11 srv/ftp
96 # setup /etc and /usr/share/factory/etc
97 install -d etc/{ld.so.conf.d,skel,profile.d} usr/share/factory/etc
98 for f in arch-release fstab group host.conf hosts issue letter-to-you ld.so.conf motd nsswitch.conf \
99 passwd resolv.conf securetty shells profile; do
100 install -m644 "$srcdir"/$f etc/
101 install -m644 "$srcdir"/$f usr/share/factory/etc/
103 ln -s ../proc/self/mounts etc/mtab
104 for f in gshadow shadow crypttab; do
105 install -m600 "$srcdir"/$f etc/
106 install -m600 "$srcdir"/$f usr/share/factory/etc/
108 install -m644 "$srcdir"/locale.sh etc/profile.d/locale.sh
109 install -Dm644 "$srcdir"/os-release usr/lib/os-release
112 for d in cache local opt log/old lib/misc empty; do
113 install -d -m755 var/$d
115 install -d -m1777 var/{tmp,spool/mail}
117 # allow setgid games (gid 50) to write scores
118 install -d -m775 -g 50 var/games
119 ln -s spool/mail var/mail
121 ln -s ../run/lock var/lock
123 # setup /usr hierarchy
124 for d in bin include lib share/{misc,pixmaps} src; do
125 install -d -m755 usr/$d
128 install -d -m755 usr/share/man/man$d
133 [[ $CARCH = 'x86_64' ]] && {
143 # setup /usr/local hierarchy
144 for d in bin etc games include lib man sbin share src; do
145 install -d -m755 usr/local/$d
147 ln -s ../man usr/local/share/man
149 # setup systemd-sysctl
150 install -D -m644 "$srcdir"/sysctl usr/lib/sysctl.d/10-arch.conf
152 # setup systemd-sysusers
153 install -D -m644 "$srcdir"/sysusers usr/lib/sysusers.d/arch.conf
155 # setup systemd-tmpfiles
156 install -D -m644 "$srcdir"/tmpfiles usr/lib/tmpfiles.d/arch.conf
158 # setup systemd.environment-generator
159 install -D -m755 "$srcdir"/env-generator usr/lib/systemd/system-environment-generators/10-arch
162 install -D -m644 "$srcdir"/archlinux{,-logo}.{svg,png} usr/share/pixmaps
165 # vim:set ts=2 sw=2 et: