diff options
Diffstat (limited to 'net/onedrive/files/patch-Makefile.in')
-rw-r--r-- | net/onedrive/files/patch-Makefile.in | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/net/onedrive/files/patch-Makefile.in b/net/onedrive/files/patch-Makefile.in new file mode 100644 index 000000000000..5f1612d59c24 --- /dev/null +++ b/net/onedrive/files/patch-Makefile.in @@ -0,0 +1,61 @@ +--- Makefile.in.orig 2020-07-13 17:07:56 UTC ++++ Makefile.in +@@ -25,6 +25,7 @@ systemdsystemunitdir = @systemdsystemunitdir@ + curl_LIBS = @curl_LIBS@ + sqlite_LIBS = @sqlite_LIBS@ + notify_LIBS = @notify_LIBS@ ++inotify_LIBS = @inotify_LIBS@ + COMPLETIONS = @COMPLETIONS@ + BASH_COMPLETION_DIR = @BASH_COMPLETION_DIR@ + ZSH_COMPLETION_DIR = @ZSH_COMPLETION_DIR@ +@@ -54,7 +55,7 @@ endif + system_unit_files = contrib/systemd/onedrive@.service + user_unit_files = contrib/systemd/onedrive.service + +-DOCFILES = README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/Office365.md docs/USAGE.md docs/BusinessSharedFolders.md ++DOCFILES = README.md config CHANGELOG.md docs/Office365.md docs/USAGE.md docs/BusinessSharedFolders.md + + ifneq ("$(wildcard /etc/redhat-release)","") + RHEL = $(shell cat /etc/redhat-release | grep -E "(Red Hat Enterprise Linux Server|CentOS)" | wc -l) +@@ -66,6 +67,7 @@ endif + + SOURCES = \ + src/config.d \ ++ src/freebsd_inotify.d \ + src/itemdb.d \ + src/log.d \ + src/main.d \ +@@ -101,14 +103,15 @@ onedrive: $(SOURCES) + else \ + echo $(version) > version ; \ + fi +- $(DC) $(DCFLAGS) $(addprefix -L,$(curl_LIBS)) $(addprefix -L,$(sqlite_LIBS)) $(addprefix -L,$(notify_LIBS)) -L-ldl $(SOURCES) -of$@ ++ $(DC) $(DCFLAGS) $(addprefix -L,$(curl_LIBS)) $(addprefix -L,$(sqlite_LIBS)) $(addprefix -L,$(notify_LIBS)) $(addprefix -L,$(inotify_LIBS)) -L-ldl $(SOURCES) -of$@ + + install: all +- $(INSTALL) -D onedrive $(DESTDIR)$(bindir)/onedrive +- $(INSTALL) -D onedrive.1 $(DESTDIR)$(mandir)/man1/onedrive.1 +- $(INSTALL) -D -m 644 contrib/logrotate/onedrive.logrotate $(DESTDIR)$(sysconfdir)/logrotate.d/onedrive ++ $(INSTALL) -s onedrive $(DESTDIR)$(bindir)/onedrive ++ $(INSTALL) onedrive.1 $(DESTDIR)$(mandir)/man1/onedrive.1 ++ mkdir -p $(DESTDIR)$(sysconfdir)/logrotate.d ++ $(INSTALL) -m 644 contrib/logrotate/onedrive.logrotate $(DESTDIR)$(sysconfdir)/logrotate.d/onedrive + mkdir -p $(DESTDIR)$(docdir) +- $(INSTALL) -D -m 644 $(DOCFILES) $(DESTDIR)$(docdir) ++ $(INSTALL) -m 644 $(DOCFILES) $(DESTDIR)$(docdir) + ifeq ($(HAVE_SYSTEMD),yes) + $(INSTALL) -d -m 0755 $(DESTDIR)$(systemduserunitdir) $(DESTDIR)$(systemdsystemunitdir) + ifeq ($(RHEL),1) +@@ -125,8 +128,10 @@ ifeq ($(RHEL_VERSION),6) + endif + endif + ifeq ($(COMPLETIONS),yes) +- $(INSTALL) -D -m 644 contrib/completions/complete.zsh $(DESTDIR)$(ZSH_COMPLETION_DIR)/_onedrive +- $(INSTALL) -D -m 644 contrib/completions/complete.bash $(DESTDIR)$(BASH_COMPLETION_DIR)/onedrive ++ mkdir -p $(DESTDIR)$(ZSH_COMPLETION_DIR) ++ $(INSTALL) -m 644 contrib/completions/complete.zsh $(DESTDIR)$(ZSH_COMPLETION_DIR)/_onedrive ++ mkdir -p $(DESTDIR)$(BASH_COMPLETION_DIR) ++ $(INSTALL) -m 644 contrib/completions/complete.bash $(DESTDIR)$(BASH_COMPLETION_DIR)/onedrive + endif + + |