aboutsummaryrefslogtreecommitdiff
path: root/security/dazuko
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2006-03-22 20:29:44 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2006-03-22 20:29:44 +0000
commitd24970436840f8efe466a3bd7ff32eea10c39b2b (patch)
tree3bf99f9c61565826164732f5c4925407a6bcd2d2 /security/dazuko
parentfcd16abf2924b8f102de8673162827ed8868d5e8 (diff)
downloadports-d24970436840f8efe466a3bd7ff32eea10c39b2b.tar.gz
ports-d24970436840f8efe466a3bd7ff32eea10c39b2b.zip
Notes
Diffstat (limited to 'security/dazuko')
-rw-r--r--security/dazuko/Makefile5
-rw-r--r--security/dazuko/files/pkg-message.in18
-rw-r--r--security/dazuko/pkg-install7
3 files changed, 23 insertions, 7 deletions
diff --git a/security/dazuko/Makefile b/security/dazuko/Makefile
index 8a1db221ec63..b1376b6dead0 100644
--- a/security/dazuko/Makefile
+++ b/security/dazuko/Makefile
@@ -6,6 +6,7 @@
PORTNAME= dazuko
PORTVERSION= 2.2.0
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://dazuko.org/files/
@@ -19,6 +20,10 @@ OPTIONS= EXAMPLEC "Install C example programs" on
.include <bsd.port.pre.mk>
+.if ${OSVERSION} >= 700000
+BROKEN= Currently does not support -CURRENT
+.endif
+
.if defined(WITH_EXAMPLEC)
PLIST_FILES= %%EXAMPLESDIR%%/example %%EXAMPLESDIR%%/example_mt
PLIST_DIRS= %%EXAMPLESDIR%%
diff --git a/security/dazuko/files/pkg-message.in b/security/dazuko/files/pkg-message.in
index 2137c33fec88..319bce6ee625 100644
--- a/security/dazuko/files/pkg-message.in
+++ b/security/dazuko/files/pkg-message.in
@@ -1,4 +1,4 @@
-#########################################################################################
+################################################################################
1) Create device /dev/dazuko
@@ -10,7 +10,17 @@
It's not neccesary on modern FreeBSD systems
-2) If you selected WITH_EXAMPLEC, you can test module using example and example_mt files
- from %%EXAMPLESDIR%% directory.
+2) If you selected WITH_EXAMPLEC, you can test the module using files from:
-#########################################################################################
+ %%EXAMPLESDIR%%/example
+ %%EXAMPLESDIR%%/example_mt
+
+3) Do not load the module using /boot/loader.conf. It generates a page fault due
+ to a possible dazuko bug.
+
+ You could use /etc/rc.local for loading the module. For example, add the
+ following line to /etc/rc.local:
+
+ /sbin/kldload dazuko
+
+################################################################################
diff --git a/security/dazuko/pkg-install b/security/dazuko/pkg-install
index 135a5842737d..df2c77614e16 100644
--- a/security/dazuko/pkg-install
+++ b/security/dazuko/pkg-install
@@ -21,11 +21,12 @@ read BOOTMOD
echo
if [ x"${BOOTMOD}" = x"y" ]; then
- cat /boot/loader.conf | grep ${MODULENAME} > /dev/null 2>&1; RESULT=$?
+ cat /etc/rc.local | grep ${MODULENAME} > /dev/null 2>&1; RESULT=$?
if [ ${RESULT} -eq 0 ]; then
- sed -i '' -e 's/^${MODULENAME}_load.*/${MODULENAME}_load="YES"/g' /boot/loader.conf
+ sed -i '' -e '/kldload ${MODULENAME}.*/d' /etc/rc.local
+ echo `which kldload` ${MODULENAME} >> /etc/rc.local
else
- echo "${MODULENAME}_load=\"YES\"" >> /boot/loader.conf
+ echo `which kldload` ${MODULENAME} >> /etc/rc.local
fi
fi
fi