updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / mhvtl / mhvtl_destdir.patch
blobb04d9d2e9ce2b23273ec3a44eeb113ecc709b8af
1 --- etc/Makefile.orig 2011-03-17 02:56:21.000000000 +0300
2 +++ etc/Makefile 2011-04-29 21:32:07.000000000 +0400
3 @@ -22,8 +22,8 @@
5 .PHONY: install
6 install:
7 - install -d -m 755 /etc
8 - install -d -m 755 /etc/init.d
9 - install -m 700 $(RCFILE) /etc/init.d/
10 + install -d -m 755 $(DESTDIR)/etc
11 + install -d -m 755 $(DESTDIR)/etc/rc.d
12 + install -m 700 $(RCFILE) $(DESTDIR)/etc/rc.d/
13 test ! -x /sbin/insserv || /sbin/insserv $(RCFILE)
15 --- kernel/Makefile.orig 2011-04-29 22:33:44.000000000 +0400
16 +++ kernel/Makefile 2011-04-29 22:34:18.000000000 +0400
17 @@ -51,8 +51,7 @@
18 rm -rf .tmp_versions
20 install:
21 - install -o root -g root -m 644 mhvtl.ko /lib/modules/`uname -r`/kernel/drivers/scsi/; \
22 - depmod -ae; \
23 + install -D -o root -g root -m 644 mhvtl.ko $(DESTDIR)/lib/modules/`uname -r`/kernel/drivers/scsi/mhvtl.ko; \
24 if [ -f "/etc/modprobe.d/unsupported-modules" ]; then \
25 sed -e 's/^allow_unsupported_modules 0/allow_unsupported_modules 1/' /etc/modprobe.d/unsupported-modules > /etc/new; \
26 /bin/mv /etc/new /etc/modprobe.d/unsupported-modules; \