Date: Sun, 2 May 2004 18:31:19 -0400 (EDT) From: michael johnson <ahze@ahze.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/66182: [MAINTAINER] multimedia/lsdvd: [Change DVD support] Message-ID: <20040502223119.0B6FA65D7@ahze.ahze.net> Resent-Message-ID: <200405022240.i42MeLQS008844@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 66182 >Category: ports >Synopsis: [MAINTAINER] multimedia/lsdvd: [Change DVD support] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun May 02 15:40:21 PDT 2004 >Closed-Date: >Last-Modified: >Originator: michael johnson >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD gentoo.ahze.net 5.2-CURRENT FreeBSD 5.2-CURRENT #43: Thu Apr 22 05:38:22 EDT 2004 >Description: - Use default dvd device I feel that using /dev/acd0[c] might be confusing to people with out a ATA drive. Generated with FreeBSD Port Tools 0.50 >How-To-Repeat: >Fix: --- lsdvd-0.10_1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/multimedia/lsdvd/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- Makefile 31 Mar 2004 14:17:52 -0000 1.1 +++ Makefile 2 May 2004 22:23:11 -0000 @@ -7,6 +7,7 @@ PORTNAME= lsdvd PORTVERSION= 0.10 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= acidrip @@ -28,11 +29,7 @@ .if defined(WITH_DVD_DEVICE) DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} .else -.if ${OSVERSION} < 500000 -DEFAULT_DVD_DEVICE=/dev/acd0c -.else -DEFAULT_DVD_DEVICE=/dev/acd0 -.endif +DEFAULT_DVD_DEVICE=/dev/dvd .endif pre-everything:: @@ -43,7 +40,24 @@ .endif post-patch: +.if ${DEFAULT_DVD_DEVICE} != "/dev/dvd" @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \ ${WRKSRC}/lsdvd.c +.endif + +post-install: +.if !exists(${DEFAULT_DVD_DEVICE}) + @${ECHO_MSG} "===>" + @${ECHO_MSG} "===> The default dvd device '${DEFAULT_DVD_DEVICE}' was not found" + @${ECHO_MSG} "===> For dvd support to work you need to" +.if ${OSVERSION} < 500000 + @${ECHO_MSG} " ln -s /dev/yourDVDdev ${DEFAULT_DVD_DEVICE}" + @${ECHO_MSG} "=> The default DVD device for ATA is /dev/acd0c" +.else + @${ECHO_MSG} "===> Edit and add the following line to /etc/devfs.conf" + @${ECHO_MSG} " link yourDVDdev dvd" + @${ECHO_MSG} "=> The default DVD device for ATA is acd0" +.endif +.endif .include <bsd.port.post.mk> --- lsdvd-0.10_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040502223119.0B6FA65D7>