2016-12-10 14:02:49 +00:00
|
|
|
# Maintainer: Sébastien Luttringer
|
|
|
|
# Contributor: Tom Gundersen <teg@jklm.no>
|
2012-07-24 03:42:50 +00:00
|
|
|
|
2012-11-28 06:34:18 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - modifed os-release
|
|
|
|
|
2012-07-24 03:42:50 +00:00
|
|
|
pkgname=filesystem
|
2020-05-23 03:40:00 +00:00
|
|
|
pkgver=2020.05.20
|
2020-05-06 13:29:37 +00:00
|
|
|
pkgrel=1
|
2016-12-10 14:02:49 +00:00
|
|
|
pkgdesc='Base Arch Linux files'
|
2018-03-11 18:56:59 +00:00
|
|
|
arch=('x86_64')
|
2012-07-24 03:42:50 +00:00
|
|
|
license=('GPL')
|
2016-12-10 14:02:49 +00:00
|
|
|
url='https://www.archlinux.org'
|
2013-01-29 01:29:17 +00:00
|
|
|
depends=('iana-etc')
|
2017-12-10 14:03:56 +00:00
|
|
|
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' 'env-generator' 'fstab' 'group' 'gshadow' 'host.conf' 'hosts'
|
|
|
|
'issue' 'ld.so.conf' 'locale.sh' 'motd' 'nsswitch.conf' 'os-release'
|
2018-08-23 17:55:08 +00:00
|
|
|
'passwd' 'profile' 'resolv.conf' 'securetty' 'shadow' 'shells' 'sysctl'
|
2019-05-27 14:46:17 +00:00
|
|
|
'sysusers' 'tmpfiles' 'archlinux.svg' 'archlinux.png')
|
2017-12-10 14:03:56 +00:00
|
|
|
md5sums=('5fa6674df7645d7f5895f2d12b4ef4e9'
|
|
|
|
'2b0344e9639f35f3c0d5637a23556089'
|
|
|
|
'e33f6dfdd61978fcb3ddf1431286e05a'
|
|
|
|
'7fed1e1fb855e41a6d64d41f8521d69a'
|
|
|
|
'1c1e3b08acfa286f4b417c49de3e4366'
|
|
|
|
'7d119a9cce152aa182fb3392ddeecea7'
|
|
|
|
'a1315ea3e2b64d197b6efaf9c14ff778'
|
2014-06-04 12:28:01 +00:00
|
|
|
'7813c481156f6b280a3ba91fc6236368'
|
2017-12-10 14:03:56 +00:00
|
|
|
'5deb9f890a4d08a245e9752ede77271e'
|
2018-03-11 18:56:59 +00:00
|
|
|
'580cf8b59eebfaac4fad373ffadc9912'
|
2014-06-04 12:28:01 +00:00
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
2018-03-11 18:56:59 +00:00
|
|
|
'981ee4d7e506a9d6d9ed2d872e16004b'
|
2020-05-06 13:29:37 +00:00
|
|
|
'6d1a528e1e3d259c7c262eb9e37a0f5f'
|
2017-12-10 14:03:56 +00:00
|
|
|
'5182ac38a0de85da8ade93ef71975ca4'
|
2020-05-23 03:40:00 +00:00
|
|
|
'2a50e4755bc841ed2b63a56935176b47'
|
2017-12-10 14:03:56 +00:00
|
|
|
'0ee015fad07732676d9488ae498eed41'
|
|
|
|
'f04bcb2803afc4dcb95670fe87343b4d'
|
2020-05-12 13:34:23 +00:00
|
|
|
'815652599be54fd3607cf276e89a0a19'
|
2017-12-10 14:03:56 +00:00
|
|
|
'a78cd8d7f8240a8448edee82f503c34e'
|
2018-08-23 17:55:08 +00:00
|
|
|
'a51847c012555c843dbdf8df0da171d3'
|
2017-12-10 14:03:56 +00:00
|
|
|
'af7832eabaac9804c22f1f2b53816a49'
|
2019-05-27 14:46:17 +00:00
|
|
|
'0267a3a463f35eec8a31f40a720dfd86'
|
|
|
|
'd6404c81a82a0031764adbb288582eda'
|
|
|
|
'a0725970794112ac6fc1e29d702afd62')
|
2012-07-24 03:42:50 +00:00
|
|
|
|
|
|
|
package() {
|
2017-12-10 14:03:56 +00:00
|
|
|
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/arch-release
|
2018-12-26 14:51:38 +00:00
|
|
|
install -m644 "$srcdir"/locale.sh etc/profile.d/locale.sh
|
2017-12-10 14:03:56 +00:00
|
|
|
install -Dm644 "$srcdir"/os-release usr/lib/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
|
2019-05-27 14:46:17 +00:00
|
|
|
for d in bin include lib share/{misc,pixmaps} src; do
|
2017-12-10 14:03:56 +00:00
|
|
|
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
|
|
|
|
|
2018-08-23 17:55:08 +00:00
|
|
|
# setup systemd-sysctl
|
|
|
|
install -D -m644 "$srcdir"/sysctl usr/lib/sysctl.d/10-arch.conf
|
|
|
|
|
2017-12-10 14:03:56 +00:00
|
|
|
# setup systemd-sysusers
|
|
|
|
install -D -m644 "$srcdir"/sysusers usr/lib/sysusers.d/arch.conf
|
|
|
|
|
|
|
|
# setup systemd-tmpfiles
|
|
|
|
install -D -m644 "$srcdir"/tmpfiles usr/lib/tmpfiles.d/arch.conf
|
|
|
|
|
|
|
|
# setup systemd.environment-generator
|
|
|
|
install -D -m755 "$srcdir"/env-generator usr/lib/systemd/system-environment-generators/10-arch
|
2019-05-27 14:46:17 +00:00
|
|
|
|
|
|
|
# add logo
|
|
|
|
install -D -m644 "$srcdir"/archlinux.{svg,png} usr/share/pixmaps
|
2012-07-24 03:42:50 +00:00
|
|
|
}
|
2017-12-10 14:03:56 +00:00
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|