Utility for ejecting media from CD or optical disk drive.
This is a simple program that eject media from CD or optical disk
drive. This program work under FreeBSD 2.1.5-RELEASE or later
version.
===> The following configuration options are available for eject-1.5_5:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
NOTE: This port is no longer installed with SETUID, because it allows
non-privileged users to unmount a filesystem. To enable your users to
eject the CD-ROM, install security/sudo and enter the following line in
/usr/local/etc/sudoers:
%users ALL=/usr/local/sbin/eject /dev/acd0
Reset the 99 ports still listed under sylvio@
Sylvio's last commit was 17 months ago, a full 5 months after all of his
ports could have been reset per policy. Given the push to complete
staging (48 ports are still unstaged, something like 70+ have already
been staged by other committers) and given that PRs are automatically
assigned but never addressed, it's better just to reset all the ports and
PRs so that it's clear to others that these ports are free to maintain.
Approved by: portmgr (implicit)
For now mark FORBIDDEN since it's setuid root and has security issues.
This should probably be handled as mentioned in the PR, but I don't have
time to look more into this right now.
PR: ports/112754
Prodded by: Ighighi<ighighi@gmail.com>
- Fix eject when media is mounted (unmount it)
- Add eject by mount point
- Add -t flag for closing tray
- While here, portlint, DOCSDIR, PLIST_FILES
PR: ports/62201
Submitted by: Przemek Laczynski <torindel@wp.pl>
* Fix the intended functionality of the previous commit (i.e. /dev/<dev>c,
/dev/<dev>, and <dev> are all searched)
* Fix a potential buffer overflow introduced by the previous commit
* Fix a memory leak introduced in the previous commit
* Fix the case where <dev> is not a symlink
* Reset maintainer to ports@
Approved by: shige (previous maintainer)
making sysutils/eject understand cdrom argument
The sysutils/eject port is quite useful to eject those
cdroms and other removeable media. However, you need to
know the "real" name of the device in order to eject it.
Indeed, eject(1), given a "arg" argument tries to eject
from the "/dev/argc" device, which is good, but could be
better.
The attached patch makes it look around a bit more, first
in /dev/arg, then /dev/argc and just plain ./arg.
Also, if the file found is a symlink, the patch makes eject
unfold the link to find what device is behind it so it can
umount it correctly.
PR: ports/51008
Submitted by: The Anarcat <anarcat@anarcat.ath.cx>