2011-04-12 11:30:41 +08:00
#
2010-05-24 18:59:18 +08:00
# Chakra Packages for Chakra, part of chakra-project.org
#
2012-06-04 05:26:21 +08:00
# maintainer abveritas[at]chakra-project[dog]org>
# maintainer Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2010-03-13 23:25:19 +08:00
pkgname = filesystem
2012-09-09 12:17:16 +08:00
pkgver = 2012.8
pkgrel = 1
_codename = Claire
2012-06-04 05:26:21 +08:00
pkgdesc = 'Base filesystem'
2010-03-13 23:25:19 +08:00
arch = ( 'any' )
license = ( 'GPL' )
2012-06-04 05:26:21 +08:00
url = 'http://www.chakra-project.org'
2010-03-13 23:25:19 +08:00
groups = ( 'base' )
2012-06-04 05:26:21 +08:00
install = 'filesystem.install'
options = ( 'force' )
2011-05-06 03:58:21 +08:00
depends = ( 'iana-etc' 'bash' 'coreutils' )
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'
'vconsole.conf' )
md5sums = ( '45940618da782cc391c59f88ab3333c3'
2012-06-17 23:30:58 +08:00
'8266bc7566e99f2b5f5e0b5b1ac17241'
2012-06-04 05:26:21 +08:00
'13753e4e0964f3652b0cc60a28528bdf'
'4c4540eeb748bf1f71d631b8c1dcf0b3'
'f28150d4c0b22a017be51b9f7f9977ed'
'6e488ffecc8ba142c0cf7e2d7aeb832e'
'8a9042a2cedf6b6b47eb8973f14289cb'
'b8355d9d2782f424f4cedcf682651be0'
2012-09-09 12:17:16 +08:00
'ca716f853860199c1286e7939b2f2666'
'a367150bd0fe6b02114365121de64a53'
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'
2012-09-09 12:17:16 +08:00
'f95416882cef800edef08382a1176b7d'
2012-06-04 05:26:21 +08:00
'f3b6ae7db8adffaaa4bffc6099dcbd50'
2012-09-09 12:17:16 +08:00
'a8a962370cd0128465d514e6a1f74130'
'8aba0b33527e812211b9e5f9b87887ae'
'ad64ad33ec45e4f87c6bf225a91ff484'
'201bbb8b4734d2f46afe1e24d7cc6173' )
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
#
2012-09-09 12:17:16 +08:00
for d in boot dev etc home media 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
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
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