1 # Maintainer: Sébastien Luttringer
2 # Contributor: Tom Gundersen <teg@jklm.no>
7 pkgdesc='Base Artix Linux files'
10 url='https://www.artixlinux.org'
12 backup=('etc/crypttab' 'etc/fstab' 'etc/group' 'etc/gshadow' 'etc/host.conf'
13 'etc/hosts' 'etc/issue' 'etc/ld.so.conf' 'etc/nsswitch.conf'
14 'etc/passwd' 'etc/profile' 'etc/resolv.conf' 'etc/securetty'
15 'etc/shadow' 'etc/shells')
16 source=('crypttab' 'fstab' 'group' 'gshadow' 'host.conf' 'hosts'
17 'issue' 'ld.so.conf' 'locale.sh' 'nsswitch.conf' 'os-release'
18 'passwd' 'profile' 'resolv.conf' 'securetty' 'shadow' 'shells' 'sysctl'
19 'sysusers' 'tmpfiles' 'artixlinux.svg' 'artixlinux.png'
20 'artixlinux-logo.svg' 'artixlinux-logo.png')
21 sha256sums=('e03bede3d258d680548696623d5979c6edf03272e801a813c81ba5a5c64f4f82'
22 'e54626e74ed8fee4173b62a545ab1c3a3a069e4217a0ee8fc398d9933e9c1696'
23 '244f0718ee2a9d6862ae59d6c18c1dd1568651eada91a704574fa527fbac2b3a'
24 '90d879374f77bac47f132164c1e7fc4892e994ff1d1ac376efa0c1c26ea37273'
25 '4d7b647169063dfedbff5e1e22cee77bd1a4183dbcfd5e802e68939da4bbf733'
26 'd9cd8a77d9e0aa5e90d7f4ed74c8745c17b525e720e28e4c44364150003c35f9'
27 'fe86e5d282e55658fdc9c383eabbabb0ba2d791be04814082230ac8a9c056452'
28 'dad04a370e488aa85fb0a813a5c83cf6fd981ce01883fc59685447b092de84b5'
29 '8ca2d8eef6fb5143c9ef7e9174ccfef59ac7ad2deee243574cd10c763156cc10'
30 'aa4dc5b2374fb32863e3bc1ce20a2de2d34fe4eed1cd63c599bc82fab21463cc'
31 'fe9bb5b7ef357e38ef2efb5bee32a0ac495f55cb14d573e0e1b59a6ede43213d'
32 '5e06477834f51abf42ea4e8dc199632afc6afbfd8c44354685a271e9a48d2c0a'
33 'f86a0b98d5fee4aae0e11a61fa0a1a4061927d5ca80753329285f87376acf2b6'
34 '5557d8e601b17a80d1ea7de78a9869be69637cb6a02fbfe334e22fdf64e61d4c'
35 'd88be2b45b43605ff31dd83d6a138069b6c2e92bc8989b7b9ab9eba8da5f8c7b'
36 '6e13705ac4d6f69cdba118c6b70c722346fd3c45224133e6bbfe28aca719563c'
37 'c390b31fffc4a2b5d78ae8c89f5317aadef1f71baac09cfb467b675db1406d61'
38 '89e43a0b7028f52d5c8e7fb961d962c4b4f4e9595880a6157274ddb2c7c0b6b4'
39 'd6b0e95e3cdf663d3383f883301f5ed6cf900cccb7cba0c268ab8f6e78177d16'
40 'f17efd1c6480c5db1fdab4a0e3cfcd4baa44a3e1ae1210aebeb40f8d5c82f742'
41 '7b8fffc06755488931ce2aa4d3f9547be650d9e873323b7171515004d02e83c1'
42 'f52db4a98fbfdd6d957068ea0e631240c9a138df859fc43d902bf97b0759459d'
43 '02302481e97d88b2bd548bbfe54aadd1611fd3aa09911fd8b7eb1208cde4351d'
44 '1242caf07c6c3aa4ac600b5f2401a7422c85cbdc9ed9ef41357b068355c6a45b')
49 # setup root filesystem
50 for d in boot dev etc home mnt usr var opt srv/http run; do
55 install -d -m0750 root
57 # vsftpd won't run with write perms on /srv/ftp
59 install -d -m555 -g 11 srv/ftp
61 # setup /etc and /usr/share/factory/etc
62 install -d etc/{ld.so.conf.d,skel,profile.d} usr/share/factory/etc
63 for f in fstab group host.conf hosts issue ld.so.conf nsswitch.conf \
64 passwd resolv.conf securetty shells profile; do
65 install -m644 "$srcdir"/$f etc/
66 install -m644 "$srcdir"/$f usr/share/factory/etc/
68 ln -s ../proc/self/mounts etc/mtab
69 for f in gshadow shadow crypttab; do
70 install -m600 "$srcdir"/$f etc/
71 install -m600 "$srcdir"/$f usr/share/factory/etc/
73 touch etc/artix-release
74 install -m644 "$srcdir"/locale.sh etc/profile.d/locale.sh
75 install -Dm644 "$srcdir"/os-release usr/lib/os-release
78 for d in cache local opt log/old lib/misc empty; do
79 install -d -m755 var/$d
81 install -d -m1777 var/{tmp,spool/mail}
83 # allow setgid games (gid 50) to write scores
84 install -d -m775 -g 50 var/games
85 ln -s spool/mail var/mail
87 ln -s ../run/lock var/lock
89 # setup /usr hierarchy
90 for d in bin include lib share/{misc,pixmaps} src; do
91 install -d -m755 usr/$d
94 install -d -m755 usr/share/man/man$d
99 [[ $CARCH = 'x86_64' ]] && {
109 # setup /usr/local hierarchy
110 for d in bin etc games include lib man sbin share src; do
111 install -d -m755 usr/local/$d
113 ln -s ../man usr/local/share/man
116 install -D -m644 "$srcdir"/sysctl usr/lib/sysctl.d/10-artix.conf
119 install -D -m644 "$srcdir"/sysusers usr/lib/sysusers.d/artix.conf
122 install -D -m644 "$srcdir"/tmpfiles usr/lib/tmpfiles.d/artix.conf
125 install -D -m644 "$srcdir"/artixlinux{,-logo}.{svg,png} usr/share/pixmaps
128 # vim:set ts=2 sw=2 et: