summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2014-03-26 15:40:58 +0000
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2014-03-26 15:40:58 +0000
commitd2666777502531b822623fc3a7a094e1fc1e30b7 (patch)
tree11965beef085191bb2787156ec7cff51475ccbcf
parentdb62153ea0beedbc6941e1d438c0b6e7189e78d9 (diff)
parent7f3b215d4e848afa74aea20a4c64f0cc1ef30eb4 (diff)
downloadkmod-d2666777502531b822623fc3a7a094e1fc1e30b7.tar.gz
Merge Baserock morphology into current masterbaserock/danielsilverstone/update-to-v15-plus
-rw-r--r--kmod.morph23
1 files changed, 23 insertions, 0 deletions
diff --git a/kmod.morph b/kmod.morph
new file mode 100644
index 0000000..6a4be49
--- /dev/null
+++ b/kmod.morph
@@ -0,0 +1,23 @@
+{
+ "name": "kmod",
+ "kind": "chunk",
+ "configure-commands": [
+ "rm -rf libkmod/docs",
+ "sed -i -e'/SUBDIRS/{s/\\S*doc\\S*//;s/\\S*man\\S*//}' Makefile.am",
+ "sed -i -e'/AC_CONFIG_FILES(\\[/,/])/{/docs/d}' configure.ac",
+ "autoreconf -fiv",
+ "./configure --prefix=/usr --bindir=/bin --libdir=/lib --sysconfdir=/etc --without-xz --with-zlib --disable-manpages"
+ ],
+ "build-commands": [
+ "make"
+ ],
+ "install-commands": [
+ "make DESTDIR=\"$DESTDIR\" pkgconfigdir=/usr/lib/pkgconfig install",
+ "ln -s kmod \"$DESTDIR\"/bin/modprobe",
+ "ln -s kmod \"$DESTDIR\"/bin/lsmod",
+ "ln -s kmod \"$DESTDIR\"/bin/rmmod",
+ "ln -s kmod \"$DESTDIR\"/bin/insmod",
+ "ln -s kmod \"$DESTDIR\"/bin/modinfo",
+ "ln -s kmod \"$DESTDIR\"/bin/depmod"
+ ]
+}