Search
j0ke.net Open Build Service
>
Projects
>
hardware
:
raid
>
raider
> raider-install.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File raider-install.patch of Package raider
--- install.sh.orig 2012-07-01 13:33:41.252033337 +0200 +++ install.sh 2012-07-01 14:27:56.532034655 +0200 @@ -2,22 +2,23 @@ # install -if [ $UID -ne 0 ]; then - echo "You must be root to perform installation" - exit 1 -fi +#if [ $UID -ne 0 ]; then +# echo "You must be root to perform installation" +# exit 1 +#fi echo "Installing raider" PREFIX=${PREFIX:=/usr/bin} LIBDIR=${LIBDIR:=/usr/lib} # must also change in ${PREFIX}/raider CACHEDIR=${CACHEDIR:=/var/lib/raider} # must also change in ${PREFIX}/raider -install -d ${LIBDIR}/raider -install -t ${LIBDIR}/raider $(pwd)/src/lib/* -install -p -o 0 -g 0 -m 755 $(pwd)/src/bin/raider ${PREFIX} -install -p -o 0 -g 0 -m 755 $(pwd)/src/bin/raiderl ${PREFIX} -install -p -o 0 -g 0 -m 755 $(pwd)/src/bin/raiderld ${PREFIX} -install -p -o 0 -g 0 -m 755 $(pwd)/src/bin/lograider ${PREFIX} +install -v -d ${DESTDIR}${LIBDIR}/raider +install -v -t ${DESTDIR}${LIBDIR}/raider $(pwd)/src/lib/* +install -v -d ${DESTDIR}${PREFIX} +install -v -m 755 $(pwd)/src/bin/raider ${DESTDIR}${PREFIX} +install -v -m 755 $(pwd)/src/bin/raiderl ${DESTDIR}${PREFIX} +install -v -m 755 $(pwd)/src/bin/raiderld ${DESTDIR}${PREFIX} +install -v -m 755 $(pwd)/src/bin/lograider ${DESTDIR}${PREFIX} #install -p -o 0 -g 0 -m 755 $(pwd)/src/bin/raidererr ${PREFIX} -install -d ${CACHEDIR} -install -d /var/log/raider -m 777 +install -v -d ${DESTDIR}${CACHEDIR} +install -v -d ${DESTDIR}/var/log/raider -m 777 echo "Raider installed"