adns/adns-1.4-destdir.patch
Stanislav Brabec 894e583cd6 Accepting request 288563 from home:pluskalm:branches:devel:libraries:c_c++
- Remove obsolete patches
  * adns-ocloexec.patch
  * adns-1.4-ipv6.patch 
- Add gpg signature
- Cleanup spec-file with spec-cleaner
- Remove already disabled %check section, tests require working 
  network setup
- Update to 1.5.0

OBS-URL: https://build.opensuse.org/request/show/288563
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adns?expand=0&rev=21
2015-03-04 17:15:56 +00:00

55 lines
1.9 KiB
Diff

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