[Pkg-wmaker-commits] [wmitime] 88/127: debian/patches/make-install.patch: Use DESTDIR when running make install.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Aug 22 01:34:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmitime.

commit bbb81ce2df1723410dc21dc8634d970f83d26bfd
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Mon Aug 4 09:45:34 2014 -0500

    debian/patches/make-install.patch: Use DESTDIR when running make install.
---
 debian/patches/make-install.patch | 21 +++++++++++++++++++++
 debian/patches/series             |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/make-install.patch b/debian/patches/make-install.patch
new file mode 100644
index 0000000..efcbf55
--- /dev/null
+++ b/debian/patches/make-install.patch
@@ -0,0 +1,21 @@
+Description: Patch Makefile to use DESTDIR during make install.
+ The upstream Makefile would always install the wmitime binary in
+ /usr/local/bin, which causes an error while building the package.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2014-08-04
+
+--- a/wmitime/Makefile
++++ b/wmitime/Makefile
+@@ -24,9 +24,9 @@
+ 	rm -f *~
+ 
+ install:: wmitime
+-	cp -f wmitime /usr/local/bin/
+-	chmod 755 /usr/local/bin/wmitime
+-	chown root:root /usr/local/bin/wmitime
++	cp -f wmitime $(DESTDIR)/usr/bin
++	chmod 755 $(DESTDIR)/usr/bin/wmitime
++	chown root:root $(DESTDIR)/usr/bin/wmitime
+ #	cp wminetrc $(HOME)/.wminetrc
+ #	chmod 600 $(HOME)/.wminetrc
+ #	cp wminetrc /etc/wminetrc
diff --git a/debian/patches/series b/debian/patches/series
index 826efef..96eb9bf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 10-hungarian-date.patch
 20-makefile-CC.patch
+make-install.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmitime.git



More information about the Pkg-wmaker-commits mailing list