adns/adns-1.4-destdir.patch

55 lines
1.9 KiB
Diff
Raw Normal View History

Index: client/Makefile.in
===================================================================
--- client/Makefile.in.orig
+++ client/Makefile.in
@@ -58,9 +58,9 @@ ALL_OBJS= $(ADH_OBJS) $(TARG_OBJS)
all: $(TARGETS)
install: $(TARG_INSTALL)
- mkdir -p $(bindir)
+ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(bindir)
set -xe; for f in $(TARG_INSTALL); \
- do $(INSTALL_PROGRAM) $$f $(bindir)/$$f; done
+ do $(INSTALL_PROGRAM) $$f $(DESTDIR)/$(bindir)/$$f; done
uninstall:
for f in $(TARGETS); do rm -f $(bindir)/$$f; done
Index: dynamic/Makefile.in
===================================================================
--- dynamic/Makefile.in.orig
+++ dynamic/Makefile.in
@@ -30,10 +30,10 @@ include $(srcdir)/../src/adns.make
ALLOBJS= $(addsuffix _p.o, $(basename $(LIBOBJS)))
install:
- mkdir -p $(libdir)
- $(INSTALL_PROGRAM) $(SHLIBFILE) $(libdir)/$(SHLIBFILE)
- ln -sf $(SHLIBFILE) $(libdir)/$(SHLIBSONAME)
- ln -sf $(SHLIBSONAME) $(libdir)/$(SHLIBFORLINK)
+ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(libdir)
+ $(INSTALL_PROGRAM) $(SHLIBFILE) $(DESTDIR)/$(libdir)/$(SHLIBFILE)
+ ln -sf $(SHLIBFILE) $(DESTDIR)/$(libdir)/$(SHLIBSONAME)
+ ln -sf $(SHLIBSONAME) $(DESTDIR)/$(libdir)/$(SHLIBFORLINK)
uninstall:
rm -f $(libdir)/$(SHLIBFILE) $(libdir)/$(SHLIBSONAME)
Index: src/Makefile.in
===================================================================
--- src/Makefile.in.orig
+++ src/Makefile.in
@@ -30,10 +30,11 @@ include $(srcdir)/adns.make
DIRCFLAGS= -I. -I$(srcdir)
install:
- mkdir -p $(libdir) $(includedir)
+ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(libdir)
+ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(includedir)
set -xe; for f in $(TARGETS); \
- do $(INSTALL_DATA) $$f $(libdir)/$$f; done
- $(INSTALL_DATA) $(srcdir)/../src/adns.h $(includedir)/adns.h
+ do $(INSTALL_DATA) $$f $(DESTDIR)/$(libdir)/$$f; done
+ $(INSTALL_DATA) $(srcdir)/../src/adns.h $(DESTDIR)/$(includedir)/adns.h
uninstall:
for f in $(TARGETS); do rm -f $(libdir)/$$f; done