Skip to content

Commit

Permalink
Added Debian package build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
twojstaryzdomu authored and tridge committed Apr 7, 2024
1 parent 0540842 commit caf7770
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
16 changes: 16 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: rsync
Section: unknown
Priority: optional
Maintainer: unknown <pi@>
Build-Depends: debhelper (>= 11)
Standards-Version: 4.1.3
Homepage: https://github.com/twojstaryzdomu/rsync
Vcs-Git: https://github.com/twojstaryzdomu/rsync.git
Vcs-Browser: https://github.com/twojstaryzdomu/rsync


Package: rsync
Section: unknown
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: rsync description
38 changes: 38 additions & 0 deletions debian/patches/disable_reconfigure_req.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
diff --git a/Makefile.in b/Makefile.in
index 3cde955..ef71d7e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -210,15 +210,6 @@ configure.sh config.h.in: configure.ac aclocal.m4
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
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
disable_reconfigure_req.diff
3 changes: 3 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/make -f
%:
dh $@
3 changes: 3 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version=4
opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/rsync-$1\.tar\.gz/ \
https://github.com/twojstaryzdomu/rsync/releases .*/v?(\d\S+)\.tar\.gz
2 changes: 2 additions & 0 deletions options.c
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,8 @@ int parse_arguments(int *argc_p, const char ***argv_p)
* only special cases are returned and listed here. */

switch (opt) {
case 'L':
break;
case 'V':
version_opt_cnt++;
break;
Expand Down

0 comments on commit caf7770

Please sign in to comment.