How difficult is it to remove a single character in such an important
package? Especially when the changelog says it is done ....
[root@fulgore:/home/ftp/pub/linux/mandrake-devel/cooker/Mandrake/RPMS]#
rpm -qp --changelog anonftp-3.0-4mdk.i586.rpm |head
* Fri May 12 2000 Chmouel Boudjnah <[EMAIL PROTECTED]> 3.0-4mdk
- Fix post scripts again.
- Add libtermcap.so.2 for ls :\
* Mon May 08 2000 Jean-Michel Dault <[EMAIL PROTECTED]> 3.0-3mdk
- removed reference to $RPM_BUILD_ROOT in post scripts (DOH!)
* Sat Apr 22 2000 Chmouel Boudjnah <[EMAIL PROTECTED]> 3.0-2mdk
[root@fulgore:/home/ftp/pub/linux/mandrake-devel/cooker/Mandrake/RPMS]#
[root@fulgore:/home/ftp/pub/linux/mandrake-devel/cooker/Mandrake/RPMS]#
rpm -Uvh anonftp-3.0-4mdk.i586.rpm
anonftp
##################################################
mv: missing file argument
Try `mv --help' for more information.
execution of script failed
[root@fulgore:/home/ftp/pub/linux/mandrake-devel/cooker/Mandrake/RPMS]#
[root@fulgore:/home/ftp/pub/linux/mandrake-devel/cooker/Mandrake/RPMS]#
rpm -qp --scripts anonftp-3.0-4mdk.i586.rpm
postinstall script (through /bin/sh):
if [ -f /etc/ftpaccess ];then
if ! grep -q "class.*anonymous.*" /etc/ftpaccess;then
cat /etc/ftpaccess | grep -v class > /etc/ftpaccess.mdk
echo "class all real,guest,anonymous *" > /etc/ftpaccess
cat /etc/ftpaccess.mdk >> /etc/ftpaccess
rm -f /etc/ftpaccess.mdk
fi
fi
exit 0
preuninstall script (through /bin/sh):
if [ -f /etc/ftpaccess ];then
grep -q class /etfc/ftpaccess && grep -v class /etc/ftpaccess >
/etc/ftpaccess.mdk
if [ "$?" = "0" ];then
mv -f /etc/ftpaccess.mdk > /etc/ftpaccess
>>>> H E R E >>>>>>>>>>>>>>> ^ <<<<<<<<<<<<<<<<<<<<
fi
fi
exit 0
[root@fulgore:/home/ftp/pub/linux/mandrake-devel/cooker/Mandrake/RPMS]#
--
Eugenio Diaz, BSEE/BSCE
Linux Engineer
[EMAIL PROTECTED]