summaryrefslogtreecommitdiff
path: root/package/hdparm/patches/patch-Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-02-11 07:44:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-02-11 07:44:41 +0100
commitdd8c258716dd3fddd4501cd644cbd65e83e9a1bc (patch)
treed88ea4ed00b911c177b8211b2221bf32f272e09d /package/hdparm/patches/patch-Makefile
parentfed3a4e88610344f64cb8e2a0ea9bc85e080cac7 (diff)
parentf3c6465f816ea646d546a0320e91d7e024866ee9 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/hdparm/patches/patch-Makefile')
-rw-r--r--package/hdparm/patches/patch-Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/hdparm/patches/patch-Makefile b/package/hdparm/patches/patch-Makefile
new file mode 100644
index 000000000..a354cfaa5
--- /dev/null
+++ b/package/hdparm/patches/patch-Makefile
@@ -0,0 +1,15 @@
+--- hdparm-9.43.orig/Makefile 2012-03-08 21:14:40.000000000 +0100
++++ hdparm-9.43/Makefile 2014-02-07 20:38:09.000000000 +0100
+@@ -48,9 +48,9 @@ install: all hdparm.8
+ if [ -f $(DESTDIR)$(sbindir)/hdparm ]; then rm -f $(DESTDIR)$(sbindir)/hdparm ; fi
+ if [ -f $(DESTDIR)$(mandir)/man8/hdparm.8 ]; then rm -f $(DESTDIR)$(mandir)/man8/hdparm.8 ;\
+ elif [ -f $(DESTDIR)$(oldmandir)/man8/hdparm.8 ]; then rm -f $(DESTDIR)$(oldmandir)/man8/hdparm.8 ; fi
+- $(INSTALL_PROGRAM) -D hdparm $(DESTDIR)$(sbindir)/hdparm
+- if [ -d $(DESTDIR)$(mandir) ]; then $(INSTALL_DATA) -D hdparm.8 $(DESTDIR)$(mandir)/man8/hdparm.8 ;\
+- elif [ -d $(DESTDIR)$(oldmandir) ]; then $(INSTALL_DATA) -D hdparm.8 $(DESTDIR)$(oldmandir)/man8/hdparm.8 ; fi
++ $(INSTALL_PROGRAM) hdparm $(DESTDIR)$(sbindir)/hdparm
++ if [ -d $(DESTDIR)$(mandir) ]; then $(INSTALL_DATA) hdparm.8 $(DESTDIR)$(mandir)/man8/hdparm.8 ;\
++ elif [ -d $(DESTDIR)$(oldmandir) ]; then $(INSTALL_DATA) hdparm.8 $(DESTDIR)$(oldmandir)/man8/hdparm.8 ; fi
+
+ clean:
+ -rm -f hdparm $(OBJS) core 2>/dev/null