|
From: Serge L. <sma...@us...> - 2005-10-17 05:28:56
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10225/scripts Added Files: Tag: rel-1-2-patches p7zip Log Message: - clamav patch for rar3 & 7-zip support --- NEW FILE: p7zip --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/p7zip,v $ # $Revision: 1.1.2.1 $ # $Date: 2005/10/17 05:28:42 $ # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: p7zip # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} #MYNAME=p7zip # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_CLAMAV_PATCH" = "y" ]; then patch -p1 < $SRCDIR/p7zip_4.27-libun7zip.patch.bz2 || exit 1 pushd 7zip/Bundles/Un7Zip > /dev/null || exit 1 make $PMAKE || exit 1 # We should install libs immediately install -s -D -m 755 libun7zip.so /usr/lib/libun7zip.so || exit 1 install -D -m 644 u7zip.h /usr/include/u7zip.h || exit 1 popd > /dev/null || exit 1 fi ;; install ) if [ "$CONFIG_CLAMAV_PATCH" = "y" ]; then install -s -D -m 755 libun7zip.so $CDDIR/usr/lib/libun7zip.so || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |