2011-04-12 11:30:41 +08:00
#
2014-07-10 04:05:43 +08:00
# Chakra Packages for Chakra, part of chakraos.org
2010-05-24 18:59:18 +08:00
#
2014-07-10 04:05:43 +08:00
# maintainer almack[at]chakraos[dog]org>
# contributor abveritas[at]chakra-project[dog]org>
# contributor Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2012-06-04 05:26:21 +08:00
2010-03-13 23:25:19 +08:00
pkgname = filesystem
2014-10-31 00:50:20 +08:00
pkgver = 2014.10
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' )
2014-05-12 04:38:03 +08:00
url = 'http://www.chakraos.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' )
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' )
2014-07-09 04:15:21 +08:00
md5sums = ( '541406d12775dc519b2bda830b8781c5'
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'
2012-09-09 12:17:16 +08:00
'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'
2014-07-09 04:15:21 +08:00
'55ace343af7a678b809f6d5b81d164d4'
2012-06-04 05:26:21 +08:00
'f3b6ae7db8adffaaa4bffc6099dcbd50'
2012-09-09 12:17:16 +08:00
'a8a962370cd0128465d514e6a1f74130'
'8aba0b33527e812211b9e5f9b87887ae'
2014-11-06 00:09:14 +08:00
'e80ef730fd740290a4edcf2dcaf72c7a'
2012-11-14 01:17:46 +08:00
'201bbb8b4734d2f46afe1e24d7cc6173'
'45100e8a4a6d8d4b3a7dcd34b0fa4281' )
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