2010-02-10 12:40:01 +00:00
|
|
|
# Maintainer: Mike Staszel <mikestaszel@plugapps.com>
|
2009-10-08 03:40:19 +00:00
|
|
|
|
|
|
|
pkgname=filesystem
|
2010-11-27 18:35:54 +00:00
|
|
|
pkgver=2010.12
|
2010-09-15 15:08:01 +00:00
|
|
|
pkgrel=1
|
2009-10-08 03:40:19 +00:00
|
|
|
pkgdesc="Base filesystem"
|
2009-10-10 03:25:07 +00:00
|
|
|
arch=('arm')
|
2009-10-08 03:40:19 +00:00
|
|
|
license=('GPL')
|
2010-02-27 16:03:24 +00:00
|
|
|
url="http://plugboxlinux.org"
|
2009-10-08 03:40:19 +00:00
|
|
|
groups=('base')
|
|
|
|
install=filesystem.install
|
2010-11-27 18:35:54 +00:00
|
|
|
depends=('coreutils' 'plugapps-scripts')
|
2009-10-08 03:40:19 +00: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
|
|
|
|
etc/shells etc/host.conf etc/securetty etc/profile etc/issue)
|
2010-02-27 16:03:24 +00:00
|
|
|
source=(group issue nsswitch.conf securetty host.conf ld.so.conf
|
|
|
|
passwd shadow fstab crypttab hosts motd resolv.conf shells
|
|
|
|
gshadow services protocols profile modprobe.d.usb-load-ehci-first)
|
2010-09-15 15:08:01 +00:00
|
|
|
md5sums=('78a40317b8ea1d6810835fb12501fec7'
|
2010-02-27 16:03:24 +00:00
|
|
|
'336bdaeeff0ccc84a6b84f1d8c4e2127'
|
|
|
|
'13753e4e0964f3652b0cc60a28528bdf'
|
|
|
|
'2f890aefb8eee68b5b9d91f4777d0cd9'
|
2009-10-08 03:40:19 +00:00
|
|
|
'f28150d4c0b22a017be51b9f7f9977ed'
|
2010-02-27 16:03:24 +00:00
|
|
|
'6e488ffecc8ba142c0cf7e2d7aeb832e'
|
2009-10-08 03:40:19 +00:00
|
|
|
'8a9042a2cedf6b6b47eb8973f14289cb'
|
|
|
|
'46bc1c4b941f19c1505102bb5bbddb8c'
|
2010-04-27 01:52:11 +00:00
|
|
|
'ef40305da5803ca69d22e428ffc2ab9b'
|
2009-10-08 03:40:19 +00:00
|
|
|
'e5d8323a4dbee7a6d0d2a19cbf4b819f'
|
|
|
|
'81b3cb42a6ddabc2ed2310511ee9c859'
|
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
2010-02-27 16:03:24 +00:00
|
|
|
'6f48288b6fcaf0065fcb7b0e525413e0'
|
2009-10-08 03:40:19 +00:00
|
|
|
'40dac0de4c6b99c8ca97effbd7527c84'
|
2010-04-27 01:52:11 +00:00
|
|
|
'5340b9287b71ffe9d4d99510bffe933f'
|
2009-10-08 03:40:19 +00:00
|
|
|
'f436d2e0ed02b7b73bd10c6693e95ac3'
|
|
|
|
'65d78e621ed69eed69f854c3ee2e5942'
|
2010-02-27 16:03:24 +00:00
|
|
|
'f7ba22b78c5d2b53f86227aa2447e7ea'
|
2009-10-08 03:40:19 +00:00
|
|
|
'8098ffd9fbf890468d3198277596b85a')
|
|
|
|
|
|
|
|
build()
|
|
|
|
{
|
2010-02-27 16:03:24 +00:00
|
|
|
cd $pkgdir
|
2009-10-08 03:40:19 +00:00
|
|
|
mkdir -p bin boot dev etc home lib mnt proc root sbin tmp usr var opt srv sys
|
|
|
|
chmod 555 proc
|
2010-02-27 16:03:24 +00:00
|
|
|
mkdir -p usr/{bin,include,lib,sbin,share/misc,src}
|
2010-07-30 06:41:52 +00:00
|
|
|
mkdir -p media
|
|
|
|
touch media/.empty
|
2010-02-27 16:03:24 +00:00
|
|
|
|
|
|
|
mkdir -p usr/share/man/man{1,2,3,4,5,6,7,8}
|
|
|
|
ln -s man3 $pkgdir/usr/share/man/man3x
|
|
|
|
|
|
|
|
# fhs compliance
|
2009-10-08 03:40:19 +00:00
|
|
|
mkdir -p usr/local/{bin,games,include,lib,man,sbin,share,src}
|
|
|
|
ln -s ../man $startdir/pkg/usr/local/share/man
|
|
|
|
mkdir -p var/{cache/man,local,lock,opt,run,spool/mail,tmp,games}
|
|
|
|
chmod 1777 var/lock
|
|
|
|
mkdir -p var/log/old
|
|
|
|
mkdir -p etc/{skel,profile.d}
|
|
|
|
mkdir -p lib/modules
|
2010-02-27 16:03:24 +00:00
|
|
|
mkdir -p var/lib/misc
|
2009-10-08 03:40:19 +00:00
|
|
|
(cd $startdir/pkg/var; ln -s spool/mail mail)
|
2010-02-27 16:03:24 +00:00
|
|
|
|
|
|
|
# vsftpd won't run with write perms on /srv/ftp
|
2009-10-08 03:40:19 +00:00
|
|
|
mkdir -p srv/ftp
|
|
|
|
chown root.ftp srv/ftp
|
|
|
|
chmod 555 srv/ftp
|
|
|
|
|
|
|
|
install -d -o root -g root -m 755 srv/http
|
|
|
|
|
|
|
|
chmod 1777 var/spool/mail tmp var/tmp
|
|
|
|
chmod 0750 root
|
2010-02-27 16:03:24 +00:00
|
|
|
|
|
|
|
# Allow setgid games to write scores:
|
2009-10-08 03:40:19 +00:00
|
|
|
chmod 775 ${startdir}/pkg/var/games
|
|
|
|
chown root:50 ${startdir}/pkg/var/games
|
|
|
|
|
2010-02-27 16:03:24 +00:00
|
|
|
cd $srcdir
|
2009-10-08 03:40:19 +00:00
|
|
|
cp fstab crypttab group host.conf hosts issue ld.so.conf motd nsswitch.conf \
|
|
|
|
passwd protocols resolv.conf securetty services shadow shells profile \
|
2010-02-27 16:03:24 +00:00
|
|
|
$pkgdir/etc/
|
|
|
|
install -m 600 $startdir/src/gshadow $pkgdir/etc/gshadow
|
2009-10-08 03:40:19 +00:00
|
|
|
chmod 600 $startdir/pkg/etc/shadow
|
|
|
|
chmod 600 $startdir/pkg/etc/crypttab
|
2010-02-27 16:03:24 +00:00
|
|
|
|
|
|
|
# re-add /etc/arch-release, some software uses it
|
|
|
|
# to check whether arch is running
|
|
|
|
touch $pkgdir/etc/arch-release
|
|
|
|
|
|
|
|
# Add /etc/modprobe.d/
|
|
|
|
install -D -m644 ${srcdir}/modprobe.d.usb-load-ehci-first \
|
|
|
|
${pkgdir}/etc/modprobe.d/usb-load-ehci-first.conf
|
|
|
|
|
|
|
|
# Add ld.so.conf.d
|
|
|
|
mkdir -p $pkgdir/etc/ld.so.conf.d
|
2010-04-27 01:52:11 +00:00
|
|
|
|
|
|
|
# Prevent pacman from removing directory (FS#16886)
|
|
|
|
mkdir ${pkgdir}/var/empty
|
|
|
|
touch ${pkgdir}/var/empty/.keep
|
2009-10-08 03:40:19 +00:00
|
|
|
}
|