aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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