{"id":2719,"date":"2016-02-15T11:35:36","date_gmt":"2016-02-15T09:35:36","guid":{"rendered":"https:\/\/adrhc.go.ro\/wordpress\/?p=2719"},"modified":"2017-10-07T17:26:44","modified_gmt":"2017-10-07T15:26:44","slug":"compiling-anything-sync-daemon","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compiling-anything-sync-daemon\/","title":{"rendered":"Compiling anything sync daemon"},"content":{"rendered":"<pre>\r\n<strong>Environment variables<\/strong>\r\nNEW_BUILD_NAME=anything-sync-daemon\r\nNEW_BUILD_VER=5.76\r\nNEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER\r\nls -l \/tmp\/$NEW_BUILD_NAME-*\r\nls -l ~\/ubuntu_packages\/*\/$NEW_BUILD_NAME-*\r\nNEW_BUILD_NR=0\r\n# rm -r $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\n\r\n<strong>Download and unpack<\/strong>\r\ncd $HOME\/compile\r\nwget http:\/\/repo-ck.com\/source\/anything-sync-daemon\/anything-sync-daemon-5.76.tar.xz\r\ntar xpvf anything-sync-daemon-5.76.tar.xz\r\n\r\n<strong>Compilation<\/strong>\r\ncd $HOME\/compile\/anything-sync-daemon-5.76\r\nwith systemd use\r\nexport DESTDIR=$HOME\/temp\/$NEW_BUILD_NAME_AND_VER;make V=1 install-systemd-all\r\nwith upstart use\r\nexport DESTDIR=$HOME\/temp\/$NEW_BUILD_NAME_AND_VER;make V=1 install-upstart-all\r\n\r\n<strong>Packaging<\/strong>\r\ncd $HOME\/temp\r\ntar czf $NEW_BUILD_NAME_AND_VER.tgz $NEW_BUILD_NAME_AND_VER\r\nwill yield e.g. anything-sync-daemon-5.76.tgz\r\n\r\n<strong>Configuration<\/strong>\r\ncheck for overlay:\r\nsudo modprobe -c | grep overlay\r\nedit in \/etc\/asd.conf:\r\nUSE_OVERLAYFS=\"yes\"\r\ncheck defined target directories:\r\ngrep -nr WHATTOSYNC \/etc\/asd.conf\r\npreview mode (parse) command:\r\nasd p\r\nservice management commands:\r\nsudo systemctl status asd\r\nsudo systemctl enable asd\r\nsudo systemctl start asd\r\n\r\n<strong>systemd service customization<\/strong>\r\nuse \/etc\/systemd\/system\/asd-resync.timer.d\/frequency.conf\r\n<code>[Unit]\r\nDescription=Timer for Arofile-sync-daemon - 10min\r\n[Timer]\r\n# Empty value resets the list of timers\r\nOnUnitActiveSec=\r\nOnUnitActiveSec=10min<\/code>\r\n\r\nSee also <a href=\"https:\/\/wiki.archlinux.org\/index.php\/Anything-sync-daemon\" target=\"_blank\">https:\/\/wiki.archlinux.org\/index.php\/Anything-sync-daemon<\/a>.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Environment variables NEW_BUILD_NAME=anything-sync-daemon NEW_BUILD_VER=5.76 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l \/tmp\/$NEW_BUILD_NAME-* ls -l ~\/ubuntu_packages\/*\/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 # rm -r $HOME\/temp\/$NEW_BUILD_NAME_AND_VER Download and unpack cd $HOME\/compile wget http:\/\/repo-ck.com\/source\/anything-sync-daemon\/anything-sync-daemon-5.76.tar.xz tar xpvf anything-sync-daemon-5.76.tar.xz Compilation cd $HOME\/compile\/anything-sync-daemon-5.76 with systemd use export DESTDIR=$HOME\/temp\/$NEW_BUILD_NAME_AND_VER;make V=1 install-systemd-all with upstart use export [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compiling-anything-sync-daemon\/#more-2719\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compiling anything sync daemon<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,8,11,33],"tags":[],"class_list":["post-2719","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-howto","category-linux","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=2719"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2719\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=2719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=2719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=2719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}