Last change
on this file since 2538 was 2538, checked in by Bruno Cornec, 14 years ago |
r3572@localhost: bruno | 2010-01-07 23:38:36 +0100
Reorg of files begining to start working on LVM low level fundtions and scripts
|
-
Property svn:keywords
set to
Id
|
File size:
1.3 KB
|
Rev | Line | |
---|
[179] | 1 | #!/bin/bash
|
---|
[916] | 2 | #
|
---|
| 3 | # $Id: post-install.sh 2538 2010-01-09 15:40:44Z bruno $
|
---|
| 4 | #
|
---|
[1] | 5 |
|
---|
[184] | 6 | if [ "_$PREFIX" != "_" ]; then
|
---|
[936] | 7 | local=${HEAD}$PREFIX
|
---|
| 8 | sublocal=$PREFIX
|
---|
| 9 | if [ "_$CONFDIR" != "_" ]; then
|
---|
[2538] | 10 | conf=${HEAD}$CONFDIR/PBPKG
|
---|
| 11 | subconf=$CONFDIR/PBPKG
|
---|
[936] | 12 | else
|
---|
| 13 | echo "CONFDIR should be defined if PREFIX is defined"
|
---|
| 14 | exit -1
|
---|
| 15 | fi
|
---|
[179] | 16 | else
|
---|
| 17 | local=/usr/local
|
---|
[936] | 18 | sublocal=$local
|
---|
[2538] | 19 | conf=$local/etc/PBPKG
|
---|
[936] | 20 | subconf=$conf
|
---|
[179] | 21 | fi
|
---|
| 22 |
|
---|
[2149] | 23 | if [ _"$CACHEDIR" = _"" ]; then
|
---|
[2538] | 24 | CACHEDIR=$local/var/cache/PBPKG
|
---|
[2149] | 25 | else
|
---|
| 26 | CACHEDIR=${HEAD}$CACHEDIR
|
---|
| 27 | fi
|
---|
[2538] | 28 | sublocalshare="$local/share/PBPKG"
|
---|
| 29 | sublocallib="$local/lib/PBPKG"
|
---|
[2149] | 30 |
|
---|
[1620] | 31 | MINDIVER=PBVER
|
---|
| 32 | MINDIREV=PBREV
|
---|
[1565] | 33 | ARCH=`/bin/uname -m`
|
---|
[243] | 34 | echo "mindi ${MINDIVER}-r${MINDIREV} will be installed under $local"
|
---|
[179] | 35 |
|
---|
| 36 | echo "Creating target directories ..."
|
---|
[2538] | 37 | install -m 755 -d $conf $sublocallib $sublocalshare $CACHEDIR
|
---|
[1] | 38 |
|
---|
[2538] | 39 | #echo "Copying files ..."
|
---|
| 40 | #cp -af rootfs $sublocallib/mindi
|
---|
| 41 | #chmod 755 $sublocallib/mindi/rootfs/sbin/*
|
---|
| 42 | #install -m 644 msg-txt dev.tgz $sublocallib/mindi
|
---|
| 43 | #install -m 644 deplist.txt udev.files proliant.files $conf
|
---|
[1] | 44 |
|
---|
[934] | 45 | # Substitute variables for mindi
|
---|
[2149] | 46 | sed -i -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$sublocal~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^MINDI_LIB=LLL~MINDI_LIB=$sublocallib~" $local/bin/mindi
|
---|
[2538] | 47 | #sed -i -e "s~= "YYY"~= "$subconf"~" $local/bin/mindi-bkphw
|
---|
[179] | 48 |
|
---|
[1510] | 49 | if [ "$PKGBUILDMINDI" != "true" ]; then
|
---|
[2149] | 50 | chown -R root:root $sublocallib/mindi $conf
|
---|
[237] | 51 | fi
|
---|
| 52 |
|
---|
[1] | 53 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.