freebsd-ports/x11/kdebase2/files/patch-kdeeject
Will Andrews 26121d15ae Lo and behold, welcome KDE 2.1 to our ports tree. As a direct result of
the KDE team's excellent work, I am initiating burn sequence for KDE
1.x.  All base KDE1 ports are hereby nuked.  I am also reluctantly
reassuming maintainership of the KDE2 ports.  Official KDE 2.1 packages
built for FreeBSD 4.2-STABLE w/ XFree86 4.0.2 are available on KDE's
official ftp mirrors now.  Enjoy!

Note:  It seems that the KDE people rerolled their kdelibs and kdebase
packages, and a quick examination of diffs reveal minor changes, but the
port should still work.  I'll fix the packaging problems that bento runs
into.

Approved by:	kevlo
2001-02-26 19:24:49 +00:00

12 lines
493 B
Text

--- kdesktop/kdeeject Wed Dec 13 13:25:02 2000
+++ kdesktop/kdeeject.new Fri Feb 23 02:59:54 2001
@@ -11,7 +11,8 @@
# TODO: On bsd, it should be 'cdcontrol -f $1 eject'
# Checking for stuff in the PATH is ugly with sh though.
# I guess this is the reason for making this a kde app...
- if eject $1; then
+ dev=`echo $1 | sed -E -e 's#/dev/##' -e 's/([0-9])./\1/'`
+ if cdcontrol -f $dev eject; then
# Success -> update icon
dcop kdesktop default refreshIcons
exit 0