mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
New port for ejecting removable media
This is a completely new eject command, loosely modelled after the Linux eject, which is far more feature-rich than the existing FreeBSD eject. Like the Linux eject, it accepts either device names or mount points to specify the device, and supports tray-close where available. I originally contacted the author of the existing eject port, but he wasn't interested in making any such enhancements. Hence, a new eject command written entirely from scratch, with the eventual goal of supporting as many ioctls and hardware devices as possible. PR: ports/90396 Submitted by: Jason Bacon <bacon@smithers.neuro.mcw.edu>
This commit is contained in:
parent
a692a1c0b6
commit
1ac5c7f1ef
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=151705
@ -299,6 +299,7 @@
|
||||
SUBDIR += manck
|
||||
SUBDIR += mapchan
|
||||
SUBDIR += mcron
|
||||
SUBDIR += mcweject
|
||||
SUBDIR += mdf2iso
|
||||
SUBDIR += megarc
|
||||
SUBDIR += memdump
|
||||
|
43
sysutils/mcweject/Makefile
Normal file
43
sysutils/mcweject/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
# New ports collection Makefile for: mcweject
|
||||
# Date created: 11 Jan 2005
|
||||
# Whom: jbacon@mcw.edu
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mcweject
|
||||
PORTVERSION= 0.9
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.neuro.mcw.edu/~bacon/Ports/distfiles/
|
||||
|
||||
MAINTAINER= jbacon@mcw.edu
|
||||
COMMENT= Removable media eject
|
||||
|
||||
MAN1= eject.1
|
||||
MANCOMPRESSED= yes
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
CONFLICTS= eject-[0-9]*
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
PLIST_FILES= sbin/eject share/examples/mcweject/eject.allow
|
||||
PLIST_DIRS= share/examples/mcweject
|
||||
|
||||
post-extract:
|
||||
.for f in eject eject.o eject.1.gz
|
||||
${RM} ${WRKSRC}/${f}
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/share/examples/mcweject
|
||||
${INSTALL_DATA} ${WRKSRC}/eject.allow.sample \
|
||||
${PREFIX}/share/examples/mcweject/eject.allow
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/eject ${PREFIX}/sbin
|
||||
${CHMOD} 4511 ${PREFIX}/sbin/eject
|
||||
${INSTALL_DATA} ${WRKSRC}/eject.1 ${PREFIX}/man/man1
|
||||
${GZIP_CMD} -best ${PREFIX}/man/man1/eject.1
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
3
sysutils/mcweject/distinfo
Normal file
3
sysutils/mcweject/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (mcweject-0.9.tar.gz) = 65c8ab5d82dd852b956f5c96bdb8e93d
|
||||
SHA256 (mcweject-0.9.tar.gz) = 3405042896ed68c8317778a3e407a833ede313d40d3e7e928de3253109f339d5
|
||||
SIZE (mcweject-0.9.tar.gz) = 19254
|
6
sysutils/mcweject/files/pkg-message.in
Normal file
6
sysutils/mcweject/files/pkg-message.in
Normal file
@ -0,0 +1,6 @@
|
||||
===================================================================
|
||||
The file eject.allow has been installed in %%PREFIX%%/share/examples/.
|
||||
|
||||
Copy this file to %%PREFIX%%/etc/eject.allow, and edit to reflect
|
||||
the devices you wish to be ejectable.
|
||||
===================================================================
|
7
sysutils/mcweject/pkg-descr
Normal file
7
sysutils/mcweject/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
This is a port of eject, a command line utility for ejecting removable
|
||||
media.
|
||||
|
||||
WWW: http://www.neuro.mcw.edu/~bacon
|
||||
|
||||
- Jason
|
||||
jbacon@mcw.edu
|
Loading…
Reference in New Issue
Block a user