Commit 51322b99 authored by Manuel's avatar Manuel

Add profile

parent 8b2d4ef2
......@@ -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"
......
post_install() {
sbin/ldconfig -r .
}
post_upgrade() {
post_install $1
}
pre_remove() {
sbin/ldconfig -r .
}
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
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
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment