freebsd-ports/sysutils/mcweject/Makefile
Edwin Groothuis 1ac5c7f1ef 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>
2005-12-21 04:40:49 +00:00

43 lines
1 KiB
Makefile

# 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>