summaryrefslogtreecommitdiff
path: root/media-gfx/imagescan/files/imagescan-3.65.0-sane-force-dll.d.patch
blob: 37a889b97ee5847bcd61058aa742940ab841ba31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- utsushi-0.65.0/sane/Makefile.am.orig	2022-07-28 09:19:26.418665383 +0200
+++ utsushi-0.65.0/sane/Makefile.am	2022-07-28 09:42:12.682519616 +0200
@@ -216,28 +216,12 @@
 	  echo " skipping component activation"; \
 	  exit 1; \
 	fi
-	if test -d "$(SANE_SYSCONFDIR)/dll.d"; then \
-	  dirname="$(DESTDIR)$(SANE_SYSCONFDIR)/dll.d"; \
-	  file=$$dirname/$(BACKEND_NAME); \
-	  test -d $$dirname || $(MKDIR_P) $$dirname; \
-	  echo "#  $(BACKEND_NAME) -- dll.conf snippet" > $$file; \
-	  echo "" >> $$file; \
-	  echo "$(BACKEND_NAME)" >> $$file; \
-	else \
-	  dirname="$(DESTDIR)$(SANE_SYSCONFDIR)"; \
-	  file=$$dirname/dll.conf; \
-	  if test -f $$file; then \
-	    if test -n "`$(GREP) '^[ \t]*#[ \t#]*$(BACKEND_NAME)' $$file`"; \
-	    then \
-	      sed -i 's,^[ \t]*#[ \t#]*\($(BACKEND_NAME)\),\1,' $$file; \
-	    elif test -z "`$(GREP) $(BACKEND_NAME) $$file`"; then\
-	      echo $(BACKEND_NAME) >> $$file; \
-	    fi; \
-	  else \
-	    echo $(ECHO_N) "WARNING: $$file not found,"; \
-	    echo " cannot activate SANE component"; \
-	  fi; \
-	fi
+	dirname="$(DESTDIR)$(SANE_SYSCONFDIR)/dll.d"; \
+	file=$$dirname/$(BACKEND_NAME).conf; \
+	test -d $$dirname || $(MKDIR_P) $$dirname; \
+	echo "#  $(BACKEND_NAME) -- dll.conf snippet" > $$file; \
+	echo "" >> $$file; \
+	echo "$(BACKEND_NAME)" >> $$file;
 
 uninstall-hook-data:
 	@$(NORMAL_UNINSTALL)