* updated ksmtp (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / filesystem / lazyfs / install.patch
bloba2b4401f67306ff64959ee75b05bdd6765ca1dd5
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../lazyfs/install.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
16 --- ./Makefile.in.orig 2005-04-24 22:51:22.000000000 +0200
17 +++ ./Makefile.in 2005-04-24 22:54:40.000000000 +0200
18 @@ -13,7 +13,7 @@
19 VPATH = @srcdir@
20 ROOT_PREFIX = @ROOT_PREFIX@
21 KERNEL_VERSION = @KERNEL_VERSION@
22 -MODULEDIR = $(ROOT_PREFIX)/lib/modules/${KERNEL_VERSION}/kernel/fs/lazyfs
23 +MODULEDIR = $(DESTDIR)/lib/modules/${KERNEL_VERSION}/kernel/fs/lazyfs
25 ifeq ($(KERNEL_TYPE), Linux_2_6)
26 KOBJECT = ko
27 @@ -36,19 +36,9 @@
28 MODFLAGS := -DMODULE -D__KERNEL__
30 install: lazyfs@COMMA_VERSION@.$(KOBJECT)
31 + @echo Installing to ${MODULEDIR}
32 mkdir -p ${MODULEDIR}
33 - [ -n "${ROOT_PREFIX}" ] || ${MAKE} real-install
35 -real-install:
36 - @echo Installing to ${ROOT_PREFIX}/lib/modules/${KERNEL_VERSION}
37 - @echo "(current kernel uses $(ROOT_PREFIX)/lib/modules/`uname -r`)"
38 cp lazyfs@COMMA_VERSION@.$(KOBJECT) ${MODULEDIR}/
39 - /sbin/depmod -a
40 - @echo
41 - @echo '*** Testing kernel module ***'
42 - @echo
43 - @/sbin/modprobe lazyfs@COMMA_VERSION@ || echo "FAILED: Try 'dmesg' for help"
44 - @echo '(try "python tests/check.py" for more checking)'
46 uninstall:
47 rm -f ${MODULEDIR}/lazyfs@COMMA_VERSION@.${KOBJECT}