From 4c66f3d5c1fcad75d13e2dbdd7b04a352e3029e9 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 5 Dec 2011 09:50:16 +0100 Subject: forgot to add file (015_nxproxy-makefile-uninstall.patch) --- .../patches/015_nxproxy-makefile-uninstall.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 debian/patches/015_nxproxy-makefile-uninstall.patch diff --git a/debian/patches/015_nxproxy-makefile-uninstall.patch b/debian/patches/015_nxproxy-makefile-uninstall.patch new file mode 100644 index 000000000..4c349fb7e --- /dev/null +++ b/debian/patches/015_nxproxy-makefile-uninstall.patch @@ -0,0 +1,35 @@ +--- a/nxproxy/Makefile.in ++++ b/nxproxy/Makefile.in +@@ -41,6 +41,8 @@ + INSTALL = @INSTALL@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ + INSTALL_DATA = @INSTALL_DATA@ ++DESTDIR = ++RM_FILE = rm -f + + # + # This should be autodetected. +@@ -87,11 +89,20 @@ + install: install.bin install.man + + install.bin: $(PROGRAM) +- $(srcdir)/mkinstalldirs $(bindir) +- $(INSTALL) $(PROGRAM) $(bindir)/$(PROGRAM) ++ $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) ++ $(INSTALL_PROGRAM) $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM) + + install.man: +- $(srcdir)/mkinstalldirs $(man1dir) ++ $(srcdir)/mkinstalldirs $(DESTDIR)$(man1dir) ++ $(INSTALL_DATA) man/$(PROGRAM).1 $(DESTDIR)$(man1dir)/$(PROGRAM).1 ++ ++uninstall: uninstall.bin uninstall.man ++ ++uninstall.bin: ++ $(RM_FILE) $(DESTDIR)$(bindir)/$(PROGRAM) ++ ++uninstall.man: ++ $(RM_FILE) $(DESTDIR)$(man1dir)/nxproxy.1 + + clean: + -rm -f *~ *.o *.bak st?????? core core.* *.out.* \ -- cgit v1.2.3