aboutsummaryrefslogtreecommitdiff
path: root/sysutils/mcweject
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-12-21 04:40:49 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-12-21 04:40:49 +0000
commit1ac5c7f1ef3b8416c628d3e44231e383ebbacb07 (patch)
tree1e606a8fbe8f846ea1d804c7527b3dd2b3b71ae9 /sysutils/mcweject
parenta692a1c0b6e7ee01c288d784f91a96ed52419364 (diff)
downloadports-1ac5c7f1ef3b8416c628d3e44231e383ebbacb07.tar.gz
ports-1ac5c7f1ef3b8416c628d3e44231e383ebbacb07.zip
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>
Notes
Notes: svn path=/head/; revision=151705
Diffstat (limited to 'sysutils/mcweject')
-rw-r--r--sysutils/mcweject/Makefile43
-rw-r--r--sysutils/mcweject/distinfo3
-rw-r--r--sysutils/mcweject/files/pkg-message.in6
-rw-r--r--sysutils/mcweject/pkg-descr7
4 files changed, 59 insertions, 0 deletions
diff --git a/sysutils/mcweject/Makefile b/sysutils/mcweject/Makefile
new file mode 100644
index 000000000000..6c543cffae3f
--- /dev/null
+++ b/sysutils/mcweject/Makefile
@@ -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>
diff --git a/sysutils/mcweject/distinfo b/sysutils/mcweject/distinfo
new file mode 100644
index 000000000000..b12218fcc7d9
--- /dev/null
+++ b/sysutils/mcweject/distinfo
@@ -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
diff --git a/sysutils/mcweject/files/pkg-message.in b/sysutils/mcweject/files/pkg-message.in
new file mode 100644
index 000000000000..fb1bc7628b07
--- /dev/null
+++ b/sysutils/mcweject/files/pkg-message.in
@@ -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.
+===================================================================
diff --git a/sysutils/mcweject/pkg-descr b/sysutils/mcweject/pkg-descr
new file mode 100644
index 000000000000..ae6c6b052fd4
--- /dev/null
+++ b/sysutils/mcweject/pkg-descr
@@ -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