mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
Added filesystem
This commit is contained in:
parent
e7d9b45884
commit
a5ec230dca
9 changed files with 84 additions and 80 deletions
|
@ -1,64 +1,53 @@
|
||||||
# Maintainer: Mike Staszel <mikestaszel@plugapps.com>
|
# Maintainer: Mike Staszel <mikestaszel@plugapps.com>
|
||||||
|
|
||||||
pkgname=filesystem
|
pkgname=filesystem
|
||||||
pkgver=2009.12
|
pkgver=2010.02
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Base filesystem"
|
pkgdesc="Base filesystem"
|
||||||
arch=('arm')
|
arch=('arm')
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
url="http://www.archlinux.org"
|
url="http://plugboxlinux.org"
|
||||||
groups=('base')
|
groups=('base')
|
||||||
install=filesystem.install
|
install=filesystem.install
|
||||||
depends=('coreutils')
|
depends=('coreutils')
|
||||||
backup=(etc/fstab etc/crypttab etc/group etc/hosts etc/ld.so.conf etc/passwd
|
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/shadow etc/gshadow etc/resolv.conf etc/motd etc/nsswitch.conf
|
||||||
etc/shells etc/host.conf etc/securetty etc/profile etc/issue)
|
etc/shells etc/host.conf etc/securetty etc/profile etc/issue)
|
||||||
source=(group
|
source=(group issue nsswitch.conf securetty host.conf ld.so.conf
|
||||||
issue
|
passwd shadow fstab crypttab hosts motd resolv.conf shells
|
||||||
nsswitch.conf
|
gshadow services protocols profile modprobe.d.usb-load-ehci-first)
|
||||||
securetty
|
md5sums=('75c7e1770305e1f3b75c52785c137611'
|
||||||
host.conf
|
'336bdaeeff0ccc84a6b84f1d8c4e2127'
|
||||||
ld.so.conf
|
'13753e4e0964f3652b0cc60a28528bdf'
|
||||||
passwd
|
'2f890aefb8eee68b5b9d91f4777d0cd9'
|
||||||
shadow
|
|
||||||
fstab
|
|
||||||
crypttab
|
|
||||||
hosts
|
|
||||||
motd
|
|
||||||
resolv.conf
|
|
||||||
shells
|
|
||||||
gshadow
|
|
||||||
services
|
|
||||||
protocols
|
|
||||||
profile
|
|
||||||
modprobe.d.usb-load-ehci-first)
|
|
||||||
md5sums=('f4cf8d0a2de2658165148d5f64d81675'
|
|
||||||
'1bdc5dba66947d74866a5df8ce9ef3b1'
|
|
||||||
'775464ba7588b4976e0c2a02b83123f4'
|
|
||||||
'57f4a419d2add37355518373b4d88e1f'
|
|
||||||
'f28150d4c0b22a017be51b9f7f9977ed'
|
'f28150d4c0b22a017be51b9f7f9977ed'
|
||||||
'2c24792d97ef3cf0d73b60d4c429730b'
|
'6e488ffecc8ba142c0cf7e2d7aeb832e'
|
||||||
'8a9042a2cedf6b6b47eb8973f14289cb'
|
'8a9042a2cedf6b6b47eb8973f14289cb'
|
||||||
'46bc1c4b941f19c1505102bb5bbddb8c'
|
'46bc1c4b941f19c1505102bb5bbddb8c'
|
||||||
'9af6f8ff49738b15de40e7aee8ee6fed'
|
'b8e469965028271eeb533d723b028cf0'
|
||||||
'e5d8323a4dbee7a6d0d2a19cbf4b819f'
|
'e5d8323a4dbee7a6d0d2a19cbf4b819f'
|
||||||
'81b3cb42a6ddabc2ed2310511ee9c859'
|
'81b3cb42a6ddabc2ed2310511ee9c859'
|
||||||
'd41d8cd98f00b204e9800998ecf8427e'
|
'd41d8cd98f00b204e9800998ecf8427e'
|
||||||
'934962f05e8d50af883901ea076f4660'
|
'6f48288b6fcaf0065fcb7b0e525413e0'
|
||||||
'40dac0de4c6b99c8ca97effbd7527c84'
|
'40dac0de4c6b99c8ca97effbd7527c84'
|
||||||
'ab9c2a40eba287b2918589ab8e0b2fbf'
|
'ab9c2a40eba287b2918589ab8e0b2fbf'
|
||||||
'f436d2e0ed02b7b73bd10c6693e95ac3'
|
'f436d2e0ed02b7b73bd10c6693e95ac3'
|
||||||
'65d78e621ed69eed69f854c3ee2e5942'
|
'65d78e621ed69eed69f854c3ee2e5942'
|
||||||
'288a2e8d63c5ea2c2d852c7147e59d28'
|
'f7ba22b78c5d2b53f86227aa2447e7ea'
|
||||||
'8098ffd9fbf890468d3198277596b85a')
|
'8098ffd9fbf890468d3198277596b85a')
|
||||||
|
|
||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
cd $startdir/pkg
|
cd $pkgdir
|
||||||
mkdir -p bin boot dev etc home lib mnt proc root sbin tmp usr var opt srv sys
|
mkdir -p bin boot dev etc home lib mnt proc root sbin tmp usr var opt srv sys
|
||||||
chmod 555 proc
|
chmod 555 proc
|
||||||
mkdir -p media/{fl,cd,dvd}
|
mkdir -p media/{usb0,usb1,mmc0}
|
||||||
mkdir -p usr/{bin,include,lib,sbin,share/misc,src,man}
|
mkdir -p usr/{bin,include,lib,sbin,share/misc,src}
|
||||||
|
|
||||||
|
mkdir -p usr/share/man/man{1,2,3,4,5,6,7,8}
|
||||||
|
ln -s man3 $pkgdir/usr/share/man/man3x
|
||||||
|
|
||||||
|
# fhs compliance
|
||||||
mkdir -p usr/local/{bin,games,include,lib,man,sbin,share,src}
|
mkdir -p usr/local/{bin,games,include,lib,man,sbin,share,src}
|
||||||
ln -s ../man $startdir/pkg/usr/local/share/man
|
ln -s ../man $startdir/pkg/usr/local/share/man
|
||||||
mkdir -p var/{cache/man,local,lock,opt,run,spool/mail,tmp,games}
|
mkdir -p var/{cache/man,local,lock,opt,run,spool/mail,tmp,games}
|
||||||
|
@ -66,8 +55,10 @@ build()
|
||||||
mkdir -p var/log/old
|
mkdir -p var/log/old
|
||||||
mkdir -p etc/{skel,profile.d}
|
mkdir -p etc/{skel,profile.d}
|
||||||
mkdir -p lib/modules
|
mkdir -p lib/modules
|
||||||
(cd $startdir/pkg/usr; ln -s ../var var)
|
mkdir -p var/lib/misc
|
||||||
(cd $startdir/pkg/var; ln -s spool/mail mail)
|
(cd $startdir/pkg/var; ln -s spool/mail mail)
|
||||||
|
|
||||||
|
# vsftpd won't run with write perms on /srv/ftp
|
||||||
mkdir -p srv/ftp
|
mkdir -p srv/ftp
|
||||||
chown root.ftp srv/ftp
|
chown root.ftp srv/ftp
|
||||||
chmod 555 srv/ftp
|
chmod 555 srv/ftp
|
||||||
|
@ -76,16 +67,27 @@ build()
|
||||||
|
|
||||||
chmod 1777 var/spool/mail tmp var/tmp
|
chmod 1777 var/spool/mail tmp var/tmp
|
||||||
chmod 0750 root
|
chmod 0750 root
|
||||||
|
|
||||||
|
# Allow setgid games to write scores:
|
||||||
chmod 775 ${startdir}/pkg/var/games
|
chmod 775 ${startdir}/pkg/var/games
|
||||||
chown root:50 ${startdir}/pkg/var/games
|
chown root:50 ${startdir}/pkg/var/games
|
||||||
|
|
||||||
cd $startdir/src
|
cd $srcdir
|
||||||
cp fstab crypttab group host.conf hosts issue ld.so.conf motd nsswitch.conf \
|
cp fstab crypttab group host.conf hosts issue ld.so.conf motd nsswitch.conf \
|
||||||
passwd protocols resolv.conf securetty services shadow shells profile \
|
passwd protocols resolv.conf securetty services shadow shells profile \
|
||||||
$startdir/pkg/etc/
|
$pkgdir/etc/
|
||||||
install -m 600 $startdir/src/gshadow $startdir/pkg/etc/gshadow
|
install -m 600 $startdir/src/gshadow $pkgdir/etc/gshadow
|
||||||
chmod 600 $startdir/pkg/etc/shadow
|
chmod 600 $startdir/pkg/etc/shadow
|
||||||
chmod 600 $startdir/pkg/etc/crypttab
|
chmod 600 $startdir/pkg/etc/crypttab
|
||||||
touch $startdir/pkg/etc/arch-release
|
|
||||||
install -D -m644 ${srcdir}/modprobe.d.usb-load-ehci-first ${pkgdir}/etc/modprobe.d/usb-load-ehci-first
|
# 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
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,4 @@
|
||||||
#
|
#
|
||||||
# <file system> <dir> <type> <options> <dump> <pass>
|
# <file system> <dir> <type> <options> <dump> <pass>
|
||||||
none /dev/pts devpts defaults 0 0
|
none /dev/pts devpts defaults 0 0
|
||||||
none /dev/shm tmpfs defaults 0 0
|
none /dev/shm tmpfs nodev,nosuid 0 0
|
||||||
|
|
||||||
|
|
|
@ -1,29 +1,30 @@
|
||||||
root::0:root
|
root:x:0:root
|
||||||
bin::1:root,bin,daemon
|
bin:x:1:root,bin,daemon
|
||||||
daemon::2:root,bin,daemon
|
daemon:x:2:root,bin,daemon
|
||||||
sys::3:root,bin
|
sys:x:3:root,bin
|
||||||
adm::4:root,daemon
|
adm:x:4:root,daemon
|
||||||
tty::5:
|
tty:x:5:
|
||||||
disk::6:root
|
disk:x:6:root
|
||||||
lp::7:daemon
|
lp:x:7:daemon
|
||||||
mem::8:
|
mem:x:8:
|
||||||
kmem::9:
|
kmem:x:9:
|
||||||
wheel::10:root
|
wheel:x:10:root
|
||||||
ftp::11:
|
ftp:x:11:
|
||||||
mail::12:
|
mail:x:12:
|
||||||
uucp::14:
|
uucp:x:14:
|
||||||
log::19:root
|
log:x:19:root
|
||||||
locate::21:
|
locate:x:21:
|
||||||
smmsp::25:
|
rfkill:x:24:
|
||||||
http::33:
|
smmsp:x:25:
|
||||||
games::50:
|
http:x:33:
|
||||||
|
games:x:50:
|
||||||
network:x:90:
|
network:x:90:
|
||||||
video:x:91:
|
video:x:91:
|
||||||
audio::92:
|
audio:x:92:
|
||||||
optical::93:
|
optical:x:93:
|
||||||
floppy:x:94:
|
floppy:x:94:
|
||||||
storage:x:95:
|
storage:x:95:
|
||||||
scanner:x:96:
|
scanner:x:96:
|
||||||
power:x:98:
|
power:x:98:
|
||||||
nobody::99:
|
nobody:x:99:
|
||||||
users::100:
|
users:x:100:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[H[2J
|
[H[2J
|
||||||
Arch Linux \r (\n) (\l)
|
Plugbox Linux \r (\n) (\l)
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,6 @@
|
||||||
# /etc/ld.so.conf
|
# /etc/ld.so.conf
|
||||||
#
|
#
|
||||||
|
|
||||||
|
include /etc/ld.so.conf.d/*.conf
|
||||||
|
|
||||||
# End of file
|
# End of file
|
||||||
|
|
|
@ -9,11 +9,11 @@ publickey: files
|
||||||
hosts: files dns
|
hosts: files dns
|
||||||
networks: files
|
networks: files
|
||||||
|
|
||||||
protocols: db files
|
protocols: files
|
||||||
services: db files
|
services: files
|
||||||
ethers: db files
|
ethers: files
|
||||||
rpc: db files
|
rpc: files
|
||||||
|
|
||||||
netgroup: db files
|
netgroup: files
|
||||||
|
|
||||||
# End /etc/nsswitch.conf
|
# End /etc/nsswitch.conf
|
||||||
|
|
|
@ -42,9 +42,8 @@ HISTCONTROL="erasedups"
|
||||||
|
|
||||||
INPUTRC="/etc/inputrc"
|
INPUTRC="/etc/inputrc"
|
||||||
LESS="-R"
|
LESS="-R"
|
||||||
LC_COLLATE="C"
|
|
||||||
|
|
||||||
export HISTSIZE HISTCONTROL INPUTRC LESS LC_COLLATE
|
export HISTSIZE HISTCONTROL INPUTRC LESS
|
||||||
|
|
||||||
# Load profiles from /etc/profile.d
|
# Load profiles from /etc/profile.d
|
||||||
if test -d /etc/profile.d/; then
|
if test -d /etc/profile.d/; then
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# /etc/resolv.conf
|
# /etc/resolv.conf
|
||||||
#
|
#
|
||||||
|
|
||||||
nameserver 208.67.222.222
|
#search <yourdomain.tld>
|
||||||
nameserver 208.67.220.220
|
#nameserver <ip>
|
||||||
|
|
||||||
# End of file
|
# End of file
|
||||||
|
|
|
@ -4,11 +4,12 @@
|
||||||
|
|
||||||
ttyS0
|
ttyS0
|
||||||
console
|
console
|
||||||
vc/1
|
tty1
|
||||||
vc/2
|
tty2
|
||||||
vc/3
|
tty3
|
||||||
vc/4
|
tty4
|
||||||
vc/5
|
tty5
|
||||||
vc/6
|
tty6
|
||||||
|
hvc0
|
||||||
|
|
||||||
# End of file
|
# End of file
|
||||||
|
|
Loading…
Reference in a new issue