2016-09-23 01:44:57 +08:00
# maintainer almack[at]chakralinux[dog]org>
2012-06-04 05:26:21 +08:00
2010-03-13 23:25:19 +08:00
pkgname = filesystem
2016-11-07 05:16:24 +08:00
pkgver = 2016.11
2015-10-12 05:29:01 +08:00
pkgrel = 1
2012-06-04 05:26:21 +08:00
pkgdesc = 'Base filesystem'
2012-11-14 01:17:46 +08:00
arch = ( 'x86_64' )
2010-03-13 23:25:19 +08:00
license = ( 'GPL' )
2016-09-23 01:30:01 +08:00
url = 'http://www.chakralinux.org'
2010-03-13 23:25:19 +08:00
groups = ( 'base' )
2012-06-04 05:26:21 +08:00
install = 'filesystem.install'
2014-10-07 10:10:18 +08:00
depends = ( 'iana-etc' )
2012-11-14 01:17:46 +08:00
makedepends = ( 'asciidoc' )
2015-05-14 06:21:03 +08:00
conflicts = ( 'filesystem-extra' )
2012-06-04 05:26:21 +08:00
backup = ( 'etc/fstab' 'etc/crypttab' 'etc/group' 'etc/hosts' 'etc/ld.so.conf' 'etc/passwd'
'etc/shadow' 'etc/gshadow' 'etc/resolv.conf' 'etc/motd' 'etc/nsswitch.conf'
2012-09-09 12:17:16 +08:00
'etc/shells' 'etc/host.conf' 'etc/securetty' 'etc/profile' 'etc/issue' 'etc/hostname'
'etc/machine-info' 'etc/vconsole.conf' )
2012-06-04 05:26:21 +08:00
source = ( 'group' 'issue' 'nsswitch.conf' 'securetty' 'host.conf' 'ld.so.conf'
2012-09-09 12:17:16 +08:00
'passwd' 'shadow' 'fstab' 'crypttab' 'hosts' 'hostname' 'motd' 'resolv.conf' 'shells'
'gshadow' 'profile' 'modprobe.d.usb-load-ehci-first' 'machine-info' 'os-release'
2012-11-14 01:17:46 +08:00
'vconsole.conf' 'locale.sh' )
2016-11-07 05:16:24 +08:00
md5sums = ( '5589e354505fa6d2b479314a0b266b14'
2014-05-12 04:38:03 +08:00
'ff89d20fecda61f9a2bd2361fe4d7cfc'
2012-06-04 05:26:21 +08:00
'13753e4e0964f3652b0cc60a28528bdf'
'4c4540eeb748bf1f71d631b8c1dcf0b3'
'f28150d4c0b22a017be51b9f7f9977ed'
'6e488ffecc8ba142c0cf7e2d7aeb832e'
2014-07-09 04:15:21 +08:00
'0c9ab77b54dc6e6ebb21ef78d29b8066'
'4f932d5a911b89f3aeeb3cb5473aca71'
2014-09-24 01:58:17 +08:00
'693c97f2c9a519bb97a17008e92c2b74'
2016-02-20 19:20:42 +08:00
'fbe6335d7abacfb85aa54e84b6a3b892'
2012-06-04 05:26:21 +08:00
'7bc65f234dfb6abf24e7c3b03e86f4ff'
2012-09-09 12:17:16 +08:00
'b7244a8455581eeb441edeec03495054'
2012-06-04 05:26:21 +08:00
'd41d8cd98f00b204e9800998ecf8427e'
'6f48288b6fcaf0065fcb7b0e525413e0'
'22518e922891f9359f971f4f5b4e793c'
2016-11-07 05:16:24 +08:00
'8605dab8a4084cb2a619822e24a62107'
2016-02-20 19:20:42 +08:00
'b217ea13514b74702f3aa909bafb61d5'
2012-09-09 12:17:16 +08:00
'a8a962370cd0128465d514e6a1f74130'
'8aba0b33527e812211b9e5f9b87887ae'
2016-11-07 05:16:24 +08:00
'58fc7b3547db3c151cb7a11a0873275c'
2012-11-14 01:17:46 +08:00
'201bbb8b4734d2f46afe1e24d7cc6173'
2016-02-20 19:20:42 +08:00
'71ed98c52e11ada1f936ac8cb14eecd9' )
2010-03-13 23:25:19 +08:00
2011-03-08 04:40:22 +08:00
package( ) {
2012-06-04 05:26:21 +08:00
cd ${ pkgdir }
2011-06-17 16:58:55 +08:00
#
# setup root filesystem
#
2014-09-27 12:12:32 +08:00
for d in boot dev etc home mnt usr var opt srv/http run; do
2012-06-04 05:26:21 +08:00
install -d -m755 ${ d }
2011-06-17 16:58:55 +08:00
done
2012-06-04 05:26:21 +08:00
install -d -m555 proc
2012-09-09 12:17:16 +08:00
install -d -m555 sys
2012-06-04 05:26:21 +08:00
install -d -m0750 root
install -d -m1777 tmp
2011-06-17 16:58:55 +08:00
# vsftpd won't run with write perms on /srv/ftp
2012-06-04 05:26:21 +08:00
install -d -m555 -g ftp srv/ftp
2011-06-17 16:58:55 +08:00
# setup /etc
2012-06-04 05:26:21 +08:00
install -d etc/{ ld.so.conf.d,skel,profile.d}
2012-09-09 12:17:16 +08:00
for f in fstab group host.conf hostname hosts issue ld.so.conf motd nsswitch.conf passwd resolv.conf securetty shells profile machine-info os-release vconsole.conf; do
2012-06-04 05:26:21 +08:00
install -m644 ${ srcdir } /${ f } etc/
2011-06-17 16:58:55 +08:00
done
2012-06-04 05:26:21 +08:00
ln -s /proc/self/mounts etc/mtab
2011-06-17 16:58:55 +08:00
for f in gshadow shadow crypttab; do
2012-06-04 05:26:21 +08:00
install -m600 ${ srcdir } /${ f } etc/
2011-06-17 16:58:55 +08:00
done
2012-06-04 05:26:21 +08:00
touch etc/chakra-release
2012-06-05 09:51:38 +08:00
install -D -m644 ${ srcdir } /modprobe.d.usb-load-ehci-first usr/lib/modprobe.d/usb-load-ehci-first.conf
2012-11-14 01:17:46 +08:00
install -m755 ${ srcdir } /locale.sh etc/profile.d/locale.sh
2014-09-27 12:12:32 +08:00
install -Dm644 " $srcdir " /os-release " $pkgdir " /usr/lib/os-release
2011-06-17 16:58:55 +08:00
# setup /var
2012-09-09 12:17:16 +08:00
for d in cache/man local opt log/old lib/misc empty; do
2012-06-04 05:26:21 +08:00
install -d -m755 var/${ d }
2011-06-17 16:58:55 +08:00
done
2012-09-09 12:17:16 +08:00
install -d -m1777 var/{ tmp,spool/mail}
2011-06-17 16:58:55 +08:00
# allow setgid games to write scores
2012-06-04 05:26:21 +08:00
install -d -m775 -g games var/games
ln -s spool/mail var/mail
2012-09-09 12:17:16 +08:00
ln -s ../run var/run
ln -s ../run/lock var/lock
2011-06-17 16:58:55 +08:00
#
# setup /usr hierarchy
#
for d in bin include lib sbin share/misc src; do
2012-06-04 05:26:21 +08:00
install -d -m755 usr/${ d }
2011-06-17 16:58:55 +08:00
done
for d in $( seq 8) ; do
2012-06-04 05:26:21 +08:00
install -d -m755 usr/share/man/man${ d }
2011-06-17 16:58:55 +08:00
done
2014-09-27 12:12:32 +08:00
#
# add bin symlinks
#
ln -s usr/bin ${ pkgdir } /bin
ln -s usr/sbin ${ pkgdir } /sbin
2012-06-04 05:26:21 +08:00
2011-06-17 16:58:55 +08:00
#
# setup /usr/local hierarchy
#
for d in bin etc games include lib man sbin share src; do
2012-06-04 05:26:21 +08:00
install -d -m755 usr/local/${ d }
2011-06-17 16:58:55 +08:00
done
2012-06-04 05:26:21 +08:00
ln -s ../man usr/local/share/man
}
2012-09-09 12:17:16 +08:00