ports/87541: Port audio/emu10kx: change location of snd_emu10kx.ko
Björn König
bkoenig at cs.tu-berlin.de
Sun Oct 16 20:00:24 UTC 2005
>Number: 87541
>Category: ports
>Synopsis: Port audio/emu10kx: change location of snd_emu10kx.ko
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 16 20:00:23 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Björn König
>Release: FreeBSD 6.0-RC1 i386
>Organization:
>Environment:
>Description:
The port 'audio/emu10kx' installs a kernel module in /boot/kernel. This
location might be problematic insofar as the installation of a new kernel
moves the file snd_emu10kx.ko to /boot/kernel.old. This requires the
interaction of the user to ensure that sound will work after installing a
new kernel or make a clean deinstallation of the module possible.
>How-To-Repeat:
>Fix:
The patch below effects that the kernel module of this port will be installed
in the more designated location /boot/modules.
--- emu10kx.diff begins here ---
--- Makefile.orig Thu Oct 13 12:55:46 2005
+++ Makefile Thu Oct 13 12:57:22 2005
@@ -22,6 +22,9 @@
PLIST_FILES= sbin/emuctrl
WRKSRC= ${WRKDIR}/${DISTNAME}a
+do-install:
+ @${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC} -DMODULES_WITH_WORLD install
+
post-install:
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
@${PKGINSTALL} ${PKGNAME} POST-INSTALL
--- pkg-deinstall.orig Thu Oct 13 12:53:46 2005
+++ pkg-deinstall Thu Oct 13 12:55:00 2005
@@ -19,7 +19,7 @@
fi
# Remove the driver
-rm /boot/kernel/$DRIVERNAME.ko
+rm /boot/modules/$DRIVERNAME.ko
# Remove the driver from loader.conf
grep ${DRIVERNAME}_load /boot/loader.conf > /dev/null 2>&1; RESULT=$?
--- emu10kx.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list