aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2004-05-02 18:13:19 +0000
committerPete Fritchman <petef@FreeBSD.org>2004-05-02 18:13:19 +0000
commitfbac46ab2f81b90a3d3ca31cb62b0fc451fc1124 (patch)
tree9ae01d207c8cb9fc6670540ec5f209cf90d8d827
parent5a5e873d1879867e1636277401954ff79db1fca0 (diff)
downloadports-fbac46ab2f81b90a3d3ca31cb62b0fc451fc1124.tar.gz
ports-fbac46ab2f81b90a3d3ca31cb62b0fc451fc1124.zip
Notes
-rw-r--r--audio/mpio-driver/Makefile16
-rw-r--r--audio/mpio-driver/distinfo4
-rw-r--r--audio/mpio-driver/files/Makefile4
-rw-r--r--audio/mpio-driver/pkg-plist2
4 files changed, 16 insertions, 10 deletions
diff --git a/audio/mpio-driver/Makefile b/audio/mpio-driver/Makefile
index 63127465ab26..2c72c634d0e5 100644
--- a/audio/mpio-driver/Makefile
+++ b/audio/mpio-driver/Makefile
@@ -6,10 +6,10 @@
#
PORTNAME= mpio-driver
-PORTVERSION= 0.2
+PORTVERSION= 0.3
CATEGORIES= audio
MASTER_SITES= ftp://ftp.gascom.ru/pub/patches/
-DISTFILES= urio.c.diff_1
+DISTFILES= urio.c.diff_2
EXTRACT_ONLY=
MAINTAINER= asa@gascom.ru
@@ -17,12 +17,12 @@ COMMENT= Digit@lway MPIO MP3 player device driver KMOD
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
-BROKEN= Does not patch
-
.include <bsd.port.pre.mk>
-.if ${OSVERSION} > 500000
-IGNORE= This port only works for FreeBSD 4.x
+.if ${OSVERSION} >= 500000
+PLIST_SUB= MODDEST=/boot
+.else
+PLIST_SUB= MODDEST=
.endif
post-extract:
@@ -31,10 +31,12 @@ post-extract:
pre-patch:
@${CP} ${MASTERDIR}/files/Makefile ${WRKSRC}
- @cd ${WRKSRC} && ${PATCH} < ${DISTDIR}/urio.c.diff_1
+ @${PATCH} -d ${WRKSRC} < ${DISTDIR}/urio.c.diff_2
post-install:
${INSTALL_SCRIPT} ${MASTERDIR}/files/mpio-driver.sh.sample ${PREFIX}/etc/rc.d
+.if exists(/dev/MAKEDEV)
@cd /dev && sh MAKEDEV urio0
+.endif
.include <bsd.port.post.mk>
diff --git a/audio/mpio-driver/distinfo b/audio/mpio-driver/distinfo
index ac8e6bc8efaf..515c333e3a58 100644
--- a/audio/mpio-driver/distinfo
+++ b/audio/mpio-driver/distinfo
@@ -1,2 +1,2 @@
-MD5 (urio.c.diff_1) = df344d5bde81ba5b813ba98649ab0c8f
-SIZE (urio.c.diff_1) = 4717
+MD5 (urio.c.diff_2) = c28643eb5ae5ec40e66b24fdbe35a6d2
+SIZE (urio.c.diff_2) = 5537
diff --git a/audio/mpio-driver/files/Makefile b/audio/mpio-driver/files/Makefile
index bcd37caacfc2..d50397bbe9b1 100644
--- a/audio/mpio-driver/files/Makefile
+++ b/audio/mpio-driver/files/Makefile
@@ -7,4 +7,8 @@ KMOD= mpio
SRCS= urio.c usb_if.h device_if.h bus_if.h opt_usb.h vnode_if.h
CFLAGS= -DUSB_VENDOR_DIGITALWAY=0x2735 -DUSB_PRODUCT_DIGITALWAY_MPIO=0x0001
+.if ${OSVERSION} >= 500000
+KMODDIR= /boot/modules
+.endif
+
.include <bsd.kmod.mk>
diff --git a/audio/mpio-driver/pkg-plist b/audio/mpio-driver/pkg-plist
index 755c1328b92a..9db18fb6b6c5 100644
--- a/audio/mpio-driver/pkg-plist
+++ b/audio/mpio-driver/pkg-plist
@@ -1,2 +1,2 @@
etc/rc.d/mpio-driver.sh.sample
-@unexec rm -f /modules/mpio.ko 2> /dev/null || true
+@unexec rm -f %%MODDEST%%/modules/mpio.ko 2> /dev/null || true