1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/sysutils/eject/Makefile
Edwin Groothuis c8900826ad 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>
2003-09-29 14:19:15 +00:00

34 lines
755 B
Makefile

# New ports collection makefile for: eject
# Date created: 03 January 2000
# Whom: shige
#
# $FreeBSD$
#
PORTNAME= eject
PORTVERSION= 1.4
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ports.jp.FreeBSD.org/pub/FreeBSD-jp/OD/ \
ftp://ftp4.jp.FreeBSD.org/pub/FreeBSD-jp/OD/ \
ftp://ftp.ics.es.osaka-u.ac.jp/pub/mirrors/FreeBSD-jp/OD/
MAINTAINER= shige@FreeBSD.org
COMMENT= Utility for ejecting media from CD or optical disk drive
DOCDIR= share/doc/eject
PLIST_SUB= DOCDIR=${DOCDIR}
MAN1= eject.1
MANCOMPRESSED= yes
post-install:
@if [ ! -d ${PREFIX}/${DOCDIR} ] ; then \
${MKDIR} ${PREFIX}/${DOCDIR} ; \
fi
@for i in README README-J ; do \
${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/${DOCDIR} ; \
done
.include <bsd.port.mk>