fix compilation of changedfiles-modules
authorMichael Lauer <mickey@vanille-media.de>
Sun, 16 May 2004 12:13:11 +0000 (12:13 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Sun, 16 May 2004 12:13:11 +0000 (12:13 +0000)
BKrev: 40a75ad7lQdUIdVYzMUGxHT7l6RvaA

changedfiles/changedfiles-modules_1.0-rc1.oe

index dd3c3de..346b20f 100644 (file)
@@ -11,14 +11,21 @@ S = "${WORKDIR}/changedfiles-${PV}/module"
 inherit module
 
 do_compile() {
-       changedfiles.o: changedfiles.c
-        ${CC} -Wall -DMODULE -D__KERNEL__ -I${KERNEL_PATH} -c changedfiles.c
+        ${CC} -Wall -DMODULE -D__KERNEL__ -I${KERNEL_PATH}/include -c changedfiles.c
 }
 
-#install-exec-hook:
-#        (/bin/mknod /dev/changedfiles c 40 0; exit 0 )
-#        chmod 0600 /dev/changedfiles
-#FIXME perhaps package also readtest in an init script?
+pkg_postinst() {
+#!/bin/sh
+if [ -n $D ]; then exit 1; fi
+/bin/mknod /dev/changedfiles c 40 0; exit 0
+chmod 0600 /dev/changedfiles
+}
+
+pkg_postrm() {
+#!/bin/sh
+if [ -n $D ]; then exit 1; fi
+rm -f /dev/changedfiles
+}
 
 do_install() {
        install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/fs/changedfiles/