Add profile

This commit is contained in:
Manuel 2013-04-28 10:03:30 +00:00
parent 8b2d4ef2f1
commit 51322b99e0
4 changed files with 51 additions and 3 deletions

View File

@ -2,12 +2,15 @@
pkgname=filesystem-extra
pkgver=2013.04
pkgrel=1
pkgrel=2
arch=('any')
pkgdesc="Extra filesystem"
groups=('extra')
source=('extra.conf')
md5sums=('b0f054b6c5f809927817b345351ed7b6')
install=extra.install
source=('extra.conf' 'extra.profile' 'extra.tcsh')
md5sums=('b0f054b6c5f809927817b345351ed7b6'
'82035bfff814b360f0c91c47cc866a7d'
'e952737c61ed941f970b1341631b9a00')
package() {
cd ${pkgdir}
@ -23,6 +26,10 @@ package() {
for d in $(seq 8); do
install -d -m755 extra/usr/share/man/man${d}
done
# Add a profile for extra
install -D -m755 $startdir/src/extra.profile $startdir/pkg/etc/profile.d/extra.sh
install -D -m755 $startdir/src/extra.tcsh $startdir/pkg/etc/profile.d/extra.csh
# Add /extra/usr/lib to the default library search path
install -Dm644 "$srcdir/extra.conf" "$pkgdir/etc/ld.so.conf.d/extra.conf"

View File

@ -0,0 +1,11 @@
post_install() {
sbin/ldconfig -r .
}
post_upgrade() {
post_install $1
}
pre_remove() {
sbin/ldconfig -r .
}

View File

@ -0,0 +1,15 @@
export EXTRADIR=/extra
export EXTRADIRS=$EXTRADIR:/usr
export PATH=$PATH:$EXTRADIR/bin
export MANPATH=$MANPATH:$EXTRADIR/man
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$EXTRADIR/lib/pkgconfig
if [ ! -z $XDG_DATA_DIRS ]; then
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$EXTRADIR/share
else
export XDG_DATA_DIRS=$EXTRADIR/share
fi
if [ ! -z $XDG_CONFIG_DIRS ]; then
export XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:$EXTRADIR/etc/xdg
else
export XDG_CONFIG_DIRS=$EXTRADIR/etc/xdg
fi

View File

@ -0,0 +1,15 @@
setenv EXTRADIR /extra
setenv EXTRADIRS /usr:$EXTRADIR
setenv PATH $PATH:$EXTRADIR/bin
setenv MANPATH $MANPATH:$EXTRADIR/man
setenv PKG_CONFIG_PATH $PKG_CONFIG_PATH:$EXTRADIR/lib/pkgconfig
if ( ! $?XDG_DATA_DIRS ) then
setenv XDG_DATA_DIRS $EXTRADIR/share
else
setenv XDG_DATA_DIRS $XDG_DATA_DIRS:$EXTRADIR/share
endif
if ( ! $?XDG_CONFIG_DIRS ) then
setenv XDG_CONFIG_DIRS $EXTRADIR/etc/xdg
else
setenv XDG_CONFIG_DIRS $XDG_CONFIG_DIRS:$EXTRADIR/etc/xdg
endif