core/filesystem to 2015.09-1

This commit is contained in:
Kevin Mihelich 2015-10-05 18:58:03 +00:00
parent ad7c5b1b5d
commit 0c586db938
2 changed files with 23 additions and 22 deletions

View file

@ -5,7 +5,7 @@
# - modifed os-release
pkgname=filesystem
pkgver=2015.02
pkgver=2015.09
pkgrel=1
pkgdesc='Base filesystem'
arch=('i686' 'x86_64')
@ -38,7 +38,7 @@ md5sums=('4d7417d2bf8872665c0907f09ae37c34'
'6f48288b6fcaf0065fcb7b0e525413e0'
'22518e922891f9359f971f4f5b4e793c'
'69e460404f45bdb7288d1de662e56dd9'
'0b6f835598c7640184e476057b3c7722'
'cfa3345c485c59e681ab39a44dc7ece1'
'a8a962370cd0128465d514e6a1f74130'
'2e193c4a37245f2323ebe87f1a673563'
'71ed98c52e11ada1f936ac8cb14eecd9')
@ -69,7 +69,7 @@ lint() {
}
build() {
cd ${srcdir}
cd "$srcdir"
lint
@ -77,13 +77,13 @@ build() {
}
package() {
cd ${pkgdir}
cd "$pkgdir"
#
# setup root filesystem
#
for d in boot dev etc home mnt usr var opt srv/http run; do
install -d -m755 ${d}
install -d -m755 $d
done
install -d -m555 proc
install -d -m555 sys
@ -95,22 +95,23 @@ package() {
# setup /etc
install -d etc/{ld.so.conf.d,skel,profile.d}
for f in fstab group host.conf hosts issue ld.so.conf motd nsswitch.conf passwd resolv.conf securetty shells profile; do
install -m644 ${srcdir}/${f} etc/
install -m644 "$srcdir"/$f etc/
done
ln -s /proc/self/mounts etc/mtab
for f in gshadow shadow crypttab; do
install -m600 ${srcdir}/${f} etc/
install -m600 "$srcdir"/$f etc/
done
touch etc/arch-release
install -D -m644 ${srcdir}/modprobe.d.usb-load-ehci-first usr/lib/modprobe.d/usb-load-ehci-first.conf
install -m755 ${srcdir}/locale.sh etc/profile.d/locale.sh
install -D -m644 "$srcdir"/modprobe.d.usb-load-ehci-first usr/lib/modprobe.d/usb-load-ehci-first.conf
install -m755 "$srcdir"/locale.sh etc/profile.d/locale.sh
install -Dm644 "$srcdir"/os-release "$pkgdir"/usr/lib/os-release
# setup /var
for d in cache local opt log/old lib/misc empty; do
install -d -m755 var/${d}
install -d -m755 var/$d
done
install -d -m1777 var/{tmp,spool/mail}
# allow setgid games to write scores
install -d -m775 -g games var/games
ln -s spool/mail var/mail
@ -121,38 +122,38 @@ package() {
# setup /usr hierarchy
#
for d in bin include lib share/misc src; do
install -d -m755 usr/${d}
install -d -m755 usr/$d
done
for d in $(seq 8); do
install -d -m755 usr/share/man/man${d}
install -d -m755 usr/share/man/man$d
done
#
# add lib symlinks
#
ln -s usr/lib ${pkgdir}/lib
[[ ${CARCH} = "x86_64" ]] && (
ln -s usr/lib ${pkgdir}/lib64
ln -s lib ${pkgdir}/usr/lib64
ln -s usr/lib "$pkgdir"/lib
[[ $CARCH = 'x86_64' ]] && (
ln -s usr/lib "$pkgdir"/lib64
ln -s lib "$pkgdir"/usr/lib64
)
#
# add bin symlinks
#
ln -s usr/bin ${pkgdir}/bin
ln -s usr/bin ${pkgdir}/sbin
ln -s bin ${pkgdir}/usr/sbin
ln -s usr/bin "$pkgdir"/bin
ln -s usr/bin "$pkgdir"/sbin
ln -s bin "$pkgdir"/usr/sbin
#
# install archlinux(7) manpage
#
install -D -m644 ${srcdir}/archlinux.7 usr/share/man/man7/archlinux.7
install -D -m644 "$srcdir"/archlinux.7 usr/share/man/man7/archlinux.7
#
# setup /usr/local hierarchy
#
for d in bin etc games include lib man sbin share src; do
install -d -m755 usr/local/${d}
install -d -m755 usr/local/$d
done
ln -s ../man usr/local/share/man
}

View file

@ -16,7 +16,7 @@ if test -d /etc/profile.d/; then
fi
# Source global bash config
if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then
if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && test -r /etc/bash.bashrc; then
. /etc/bash.bashrc
fi