summaryrefslogtreecommitdiffstats
path: root/debian/patches/disable_reconfigure_req.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/disable_reconfigure_req.diff')
-rw-r--r--debian/patches/disable_reconfigure_req.diff41
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/disable_reconfigure_req.diff b/debian/patches/disable_reconfigure_req.diff
new file mode 100644
index 0000000..412eb20
--- /dev/null
+++ b/debian/patches/disable_reconfigure_req.diff
@@ -0,0 +1,41 @@
+Description: Remove need to run reconfigure target
+Author: Samuel Henrique <samueloph@debian.org>
+Forwarded: not-needed
+Index: rsync/Makefile.in
+===================================================================
+--- rsync.orig/Makefile.in
++++ rsync/Makefile.in
+@@ -210,15 +210,6 @@ configure.sh config.h.in: configure.ac a
+ else \
+ echo "config.h.in has CHANGED."; \
+ fi
+- @if test -f configure.sh.old || test -f config.h.in.old; then \
+- if test "$(MAKECMDGOALS)" = reconfigure; then \
+- echo 'Continuing with "make reconfigure".'; \
+- else \
+- echo 'You may need to run:'; \
+- echo ' make reconfigure'; \
+- exit 1; \
+- fi \
+- fi
+
+ .PHONY: reconfigure
+ reconfigure: configure.sh
+@@ -232,17 +223,6 @@ restatus:
+ Makefile: Makefile.in config.status configure.sh config.h.in
+ @if test -f Makefile; then cp -p Makefile Makefile.old; else touch Makefile.old; fi
+ @./config.status
+- @if diff Makefile Makefile.old >/dev/null 2>&1; then \
+- echo "Makefile is unchanged."; \
+- rm Makefile.old; \
+- else \
+- if test "$(MAKECMDGOALS)" = reconfigure; then \
+- echo 'Continuing with "make reconfigure".'; \
+- else \
+- echo "Makefile updated -- rerun your make command."; \
+- exit 1; \
+- fi \
+- fi
+
+ stunnel-rsyncd.conf: $(srcdir)/stunnel-rsyncd.conf.in Makefile
+ sed 's;\@bindir\@;$(bindir);g' <$(srcdir)/stunnel-rsyncd.conf.in >stunnel-rsyncd.conf