ports/66184: [MAINTAINER] multimedia/acidrip: [Change DVD support]
michael johnson
ahze at ahze.net
Sun May 2 22:50:17 UTC 2004
>Number: 66184
>Category: ports
>Synopsis: [MAINTAINER] multimedia/acidrip: [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:50:16 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:
-Change DVD support
If you don't have a ATA dvd drive this can be confusing.
Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:
--- acidrip-0.12_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/acidrip/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile 2 Apr 2004 05:08:54 -0000 1.1
+++ Makefile 2 May 2004 22:34:45 -0000
@@ -7,6 +7,7 @@
PORTNAME= acidrip
PORTVERSION= 0.12
+PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -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,8 +40,25 @@
.endif
post-patch:
+.if ${DEFAULT_DVD_DEVICE} != "/dev/dvd"
@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
${WRKSRC}/AcidRip/acidrip.pm
@${RM} ${WRKSRC}/AcidRip/*.bak
+.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>
--- acidrip-0.12_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list