From: <rap...@us...> - 2003-12-29 18:53:52
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv18178/scripts Added Files: smartmontools Log Message: smartmontools initial checkin --- NEW FILE: smartmontools --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/smartmontools,v $ # $Revision: 1.1 $ # $Date: 2003/12/29 18:53:48 $ # # http://www.devil-linux.org # # SMARTMONTOOLS added by Diego Torres <rap...@an...> # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: smartmontools # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: Suite that performs S.M.A.R.T. tasks such as disk self-checks and disk self-checks ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions MYNAME=SMARTMONTOOLS case $1 in build ) if [ "$CONFIG_SMARTMONTOOLS" = "y" ]; then ./configure --prefix=/usr --with-initscriptdir=/etc/init.d --mandir=/usr/share/man || exit 1 #--sysconfdir=/etc --localstatedir=/var || exit 1 ##--disable-lzo make $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_SMARTMONTOOLS" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 make install-strip DESTDIR=$WORKDIR/tmp || exit 1 copy_files $WORKDIR/tmp/usr/sbin $CDDIR/usr/ || exit 1 cp $WORKDIR/tmp/usr/etc/smartd.conf $ETCDIR/etc || exit 1 cp $WORKDIR/tmp/etc/init.d/smartd $ETCDIR/etc/init.d || exit 1 copy_docs $WORKDIR/tmp rm -rf $WORKDIR/tmp || exit 1 echo "HELP_$MYNAME=\"$MYNAME is a suite that performs S.M.A.R.T. tasks\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |