Commit graph

56 commits

Author SHA1 Message Date
abraunegg
3b533894a2
Update release files for 2.3.3 (#471)
* Update release files for 2.3.3
2019-04-16 12:18:26 +10:00
Norbert Preining
df39646120 Add completion support (Issue: #454) (#460)
* add bash completion
* add zsh completion
* add completions installation support to Makefile and README
2019-04-11 10:07:18 +10:00
abraunegg
f93ed007bc
Update release files for 2.3.2 (#448)
* Update release files for 2.3.2
2019-04-02 05:44:38 +11:00
abraunegg
de0f36007e
Update release files for 2.3.1 (#440)
* Update release files for 2.3.1
2019-03-26 10:28:40 +11:00
abraunegg
62c5179653
Update Makefile (#439)
* Use make clean to clean up version, not .PHONY which causes rebuild during 'make install'
* Update build instructions to use 'make clean' before 'make'
2019-03-26 09:40:07 +11:00
abraunegg
7aad5903e2
Update release files for 2.3.0 (#434)
* Update release files for 2.3.0
2019-03-25 10:41:08 +11:00
abraunegg
79cc599057
Resolve high CPU usage when performing DB reads (#419)
* Disable automatic indexing as we specifically create the required indexes
* Tell SQLite to store temporary tables in memory. This will speed up many read operations that rely on temporary tables, indices, and views.
* Add links & reasoning behind other PRAGMA settings used
* Add new index specifically for driveId & parentId paring
* To force DB schema & index creation, bump DB schema version
* Update handling of skip_dir and skip_file parsing - should only check if the file is excluded if the parent directory is not
* Add another index for selectByPath database queries
* Add new build option to get more DEBUG symbolic information
* Use boolean values rather than on / off values
* Enable auto_vacuum for entry deletes / database cleanup
2019-03-24 11:12:40 +11:00
Norbert Preining
0dfc165534 Declare version as phony (always outdated) target to guarantee update (#429)
* Declare version as phony
2019-03-22 10:19:27 +11:00
abraunegg
58c2805237
Update Makefile (#417)
* Update makefile so if using 'release' archive to build, the 'version' file is created with the correct version string as .git/HEAD & index is not available.
2019-03-19 13:14:07 +11:00
Norbert Preining
8b8cf9c777
only use notifications/pkg-config if env var is defined and non-0 (#366) 2019-01-29 09:37:51 +09:00
abraunegg
c27ff936fb
Resolve build warning & support CentOS 6.x for installation (Issue #350) (#353)
* Support install on CentOS / RHEL 6.x
* Support uninstall on CentOS / RHEL 6.x
* Add /usr/local/bin/ to search path when starting init.d service
* Fix dmd-2.084.0 deprecation warning: loop index implicitly converted from size_t to int
* Update readme based on CentOS 6 / RHEL 6 additional dependencies
* Resolve warnings about "bashisms" in init.d script (Issue #349) - fixed here as we are updating the init file already, rather than have multiple PR's
2019-01-19 13:01:01 +11:00
Norbert Preining
d527b7ef26
Makefile: support building with ldc2 and usage of pkg-config for lib finding (#334)
* ldc2 support
the pragma versions passed to the compiler need an additional `-d`
prefix in case of ldc2. Add it if the compiler component looks like
ldc2.

* pkg-config support
By passing `PKGCONFIG=1` to the make call libraries are searched via
`pkg-config` instead of hard-coded values.
2019-01-07 11:03:47 +09:00
Norbert Preining
cc6cbf5ac7 Notification support via libnotify (#270)
* add external sources for (d)notify with README and license statements
* add new logAndNotify function, make building a compile time option
* use logAndNotify and main.d, make timeout message silent
* update documentation for notification support
* add command line switch --disable-notifications
* add build-deps for libnotify in README.md
2018-12-06 06:19:00 +11:00
adudek
026809d4d1 Docker buildfiles for onedrive service (#262)
* Separate install options for binary (make install.noservice) only and binary
* Docker build files and usage documentation
2018-12-04 11:59:03 +11:00
Norbert Preining
56b63acede Make DOCDIR and MANDIR in the same way configurable as PREFIX etc 2018-12-04 08:40:05 +09:00
abraunegg
33dc260fd2
Update Makefile (#269)
Update Makefile based on https://github.com/abraunegg/onedrive/pull/259/commits/3a14a21cae5408f8cbe28e7cb7f05dcfa500539b

**Credit:** Zamir SUN sztsian@gmail.com
2018-12-04 07:28:16 +11:00
abraunegg
cdb11326b9
Fix unreachable statements (#268)
* Add warning flag to compiler
* Fix unreachable statements

**Credit:** Zamir SUN <sztsian@gmail.com>
2018-12-04 06:29:18 +11:00
Norbert Preining
90df7e4c9c Installation of doc files, addition of man page (#255)
* install documentation files into $PREFIX/share/doc/onedrive/
* add man page and install it, ignore generated version
* remove installed doc/man on uninstall
* remove generated man page on make clean
2018-12-02 07:41:01 +11:00
abraunegg
79d86e0cb9
Update Makefile - replace 'cp -raf' with 'install -D -m 644' (#202)
* Update makefile - remove 'cp -raf' & chmod and replace with 'install -D -m 644' for service file installation
2018-10-17 18:18:33 +11:00
abraunegg
d1d3c8a150
Update Makefile to resolve incorrect systemd installation location(s) Issue #188 (#189)
* Update makefile to fix systemd install locations
* Update makefile to fix systemd uninstall locations
2018-10-07 13:10:41 +11:00
abraunegg
2648612acd
Update makefile & documentation (#172)
* Update makefile & documentation to provide details on how to run the onedrive service via systemd as a non-root user
2018-10-04 09:26:14 +10:00
abraunegg
a3f69d4a2e
Resolve systemd/user is not supported on CentOS / RHEL (Issue #131) (#132)
* Resolve systemd/user is not supported on CentOS / RHEL (Issue #131)
2018-08-27 10:35:58 +10:00
abraunegg
bed2b6c75f
Implement Feature Request: Add a progress bar for large uploads & downloads (Issue #12) (#99)
* Implement feature request to add a progress bar for large file uploads & downloads
2018-08-10 07:46:27 +10:00
Shady Squirrel
370ad9c6d2 Fix systemd service install for builds with DESTDIR defined (#68) 2018-07-15 06:23:50 +10:00
Chris Coutinho
cc62997ccf Update makefile and .gitignore (#56) 2018-07-10 09:16:59 +10:00
Shady Squirrel
56719619f6
Don't remove user configuration with uninstall
`make uninstall` is called by root user, which shouldn't be a primary user anyway,, so removing ~/.config/onedrive will not work for other, normal users.
2018-05-23 21:33:22 +02:00
Shady Squirrel
c9caaada9b
Add missing DESTDIR variables
Without it, building of distribution package fails.
2018-05-23 21:31:20 +02:00
abraunegg
d3f406459c Update Makefile
* Update wildcard
2018-04-22 08:30:24 +10:00
abraunegg
da9cc628cb Update Makefile and systemd files
* Change the ordering of 'make install' so that directories and
permissions are set first
* Use wildcard to copy service files to systemd directory as 'install'
was failing when there was @ in the script
* Update systemd units files based on
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ for
starting the onedrive service
2018-04-22 08:29:43 +10:00
abraunegg
076b180e63 Revert "Manually revert lastModifiedDateTime"
This reverts commit 4a8456fa96.
2018-04-21 07:32:18 +10:00
abraunegg
4a8456fa96 Manually revert lastModifiedDateTime
* Manually revert lastModifiedDateTime
2018-04-21 07:24:19 +10:00
abraunegg
961e7ada3d Cleanup database & config on install and remove
* Cleanup local database on installation
* Cleanup local configuration on removal
2018-04-16 14:17:16 +10:00
abraunegg
16ebc182fe Update makefile
* Add logrotate to makefile
2018-04-14 08:42:20 +10:00
abraunegg
cbdbcf860c Update makefile and sample spec
* Include the user onedrive service file in makefile & spec
* Ensure that when 'make install' is done, the logfile path is created
with correct permissions
* Ensure that when RPM package is installed, the logfile path is created
with correct permissions
2018-04-14 08:29:31 +10:00
abraunegg
8a51952aba Update Makefile
Update makefile with missing systemd.units path for sed command
2018-04-13 21:56:22 +10:00
skilion
300b07df3b added DC variable in Makefile 2018-01-02 16:50:54 +01:00
skilion
9765b27902 new parameter syncdir 2017-08-01 19:11:50 +02:00
skilion
7fae9c1bef versioning 2017-07-14 11:40:57 +02:00
Doug Newgard
ac6b43c28d Add service filename to Makefile
When the dir the file is being installed to doesn't exist (like when setting DESTDIR), "install" will take the last part as the filename. A file called "/usr/lib/systemd/user" doesn't work correctly.
2017-05-28 21:12:35 -05:00
skilion
83a958df59 added DESTDIR and PREFIX 2017-05-29 01:37:09 +02:00
skilion
f2209c0591 add qxor.d to Makefile 2017-05-28 19:53:39 +02:00
skilion
97a9d53914 refactored selective sync code
fixed bug in selective sync
2017-03-24 22:31:56 +01:00
skilion
9dd944286f new feature selective sync
removed system wide config file
hardcoded sane default config
updated README
2017-03-12 16:11:51 +01:00
skilion
738536736a Refactoring
- unified configs
- logging module
- new cmd line option to change the config dir
2016-08-04 23:43:10 +02:00
skilion
feb97d373d added separate target for unit tests 2016-06-28 14:22:26 +02:00
skilion
9a9137ea16 removed old curl patch fix 2016-03-07 14:04:08 +01:00
Giuseppe Luigi
05de30a408 Fix install in case no /usr/local/* exists
When installed the *onedrive.conf* file content was copied to the **file** /usr/local/etc, instead of creating the **missing** directory etc/ and then copying inside the file *onedrive.conf*.
2016-03-04 21:48:45 +01:00
skilion
ea970890a2 capability to run as service 2015-11-29 21:12:44 +01:00
skilion
9b80d99ad4 support for files bigger than 100 MB and resumable uploads 2015-09-28 13:25:25 +02:00
skilion
9b555d3370 updated makefile 2015-09-22 14:49:20 +02:00