summaryrefslogtreecommitdiff
path: root/changedfiles/changedfiles-modules_1.0-rc1.oe
blob: dd3c3debb30b42e420a50adaca1e57ec28a35dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DESCRIPTION = "A framework for simple filesystem replication \
and/or security monitoring and/or automatic file transformations"
SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Michael Lauer <mickey@Vanille.de>"
LICENSE = "GPL"

SRC_URI = "http://www.bangstate.com/changedfiles-${PV}.tar.gz"
S = "${WORKDIR}/changedfiles-${PV}/module"

inherit module

do_compile() {
	changedfiles.o: changedfiles.c
        ${CC} -Wall -DMODULE -D__KERNEL__ -I${KERNEL_PATH} -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?

do_install() {
	install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/fs/changedfiles/
	install -m 0755 changedfiles.o ${D}/lib/modules/${KERNEL_VERSION}/kernel/fs/changedfiles/
}