{"action":"created","comment":{"url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/comments/59673699","id":59673699,"diff_hunk":"@@ -0,0 +1,48 @@\n+SPK_NAME = nzbhydra\n+SPK_VERS = 0.0.1a78\n+SPK_REV = 1\n+SPK_ICON = src/nzbhydra.png\n+DSM_UI_DIR = app\n+\n+DEPENDS  = \n+SPK_DEPENDS = \"python>2.7.9:git\"\n+\n+MAINTAINER = SynoCommunity\n+DESCRIPTION = NZBHydra is a meta search for NZB indexers and the \\\"spiritual successor\\\" to NZBmegasearcH. It provides easy access to a number of raw and newznab based indexers.\n+ADMIN_PORT = 5075\n+RELOAD_UI = yes\n+DISPLAY_NAME = NZBHydra\n+BETA = 1\n+CHANGELOG = \"1. First release\"\n+\n+HOMEPAGE   = https://github.com/theotherp/nzbhydra\n+LICENSE    = ApacheV2\n+\n+INSTALLER_SCRIPT = src/installer.sh\n+SSS_SCRIPT       = src/dsm-control.sh\n+FWPORTS          = src/${SPK_NAME}.sc\n+\n+INSTALL_PREFIX = /usr/local/$(SPK_NAME)\n+\n+COPY_TARGET = nop\n+POST_STRIP_TARGET = nzbhydra_extra_install\n+\n+# Pure Python package, make sure ARCH is not defined\n+override ARCH=\n+\n+include ../../mk/spksrc.spk.mk\n+\n+.PHONY: nzbhydra_extra_install\n+nzbhydra_extra_install: $(STAGING_DIR)/share/NZBHydra\n+\tinstall -m 755 -d $(STAGING_DIR)/var\n+\tinstall -m 755 -d $(STAGING_DIR)/app\n+\tinstall -m 644 src/app/config $(STAGING_DIR)/app/config\n+\tinstall -m 755 -d $(STAGING_DIR)/app/images\n+\tfor size in 16 24 32 48 72; do \\\n+\t\tconvert $(SPK_ICON) -thumbnail $${size}x$${size} \\\n+\t\t        $(STAGING_DIR)/app/images/$(SPK_NAME)-$${size}.png ; \\\n+\tdone\n+\n+$(STAGING_DIR)/share/NZBHydra:\n+\tinstall -m 755 -d $(STAGING_DIR)/share\n+\tcd $(STAGING_DIR)/share && git clone --depth=1 https://github.com/theotherp/nzbhydra.git .","path":"spk/nzbhydra/Makefile","position":48,"original_position":48,"commit_id":"d66dc6661691ae35fd923584186834c726b425b5","original_commit_id":"d66dc6661691ae35fd923584186834c726b425b5","user":{"login":"Dr-Bean","id":1538260,"avatar_url":"https://avatars.githubusercontent.com/u/1538260?v=3","gravatar_id":"","url":"https://api.github.com/users/Dr-Bean","html_url":"https://github.com/Dr-Bean","followers_url":"https://api.github.com/users/Dr-Bean/followers","following_url":"https://api.github.com/users/Dr-Bean/following{/other_user}","gists_url":"https://api.github.com/users/Dr-Bean/gists{/gist_id}","starred_url":"https://api.github.com/users/Dr-Bean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dr-Bean/subscriptions","organizations_url":"https://api.github.com/users/Dr-Bean/orgs","repos_url":"https://api.github.com/users/Dr-Bean/repos","events_url":"https://api.github.com/users/Dr-Bean/events{/privacy}","received_events_url":"https://api.github.com/users/Dr-Bean/received_events","type":"User","site_admin":false},"body":"We prefer cloning to a `share/nzbhydra` dir: you can remove the period at the end.","created_at":"2016-04-14T07:37:11Z","updated_at":"2016-04-14T07:37:11Z","html_url":"https://github.com/SynoCommunity/spksrc/pull/2168#discussion_r59673699","pull_request_url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/2168","_links":{"self":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/comments/59673699"},"html":{"href":"https://github.com/SynoCommunity/spksrc/pull/2168#discussion_r59673699"},"pull_request":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/2168"}}},"pull_request":{"url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/2168","id":61747781,"html_url":"https://github.com/SynoCommunity/spksrc/pull/2168","diff_url":"https://github.com/SynoCommunity/spksrc/pull/2168.diff","patch_url":"https://github.com/SynoCommunity/spksrc/pull/2168.patch","issue_url":"https://api.github.com/repos/SynoCommunity/spksrc/issues/2168","number":2168,"state":"open","locked":false,"title":"Add NZBHydra package","user":{"login":"adchevrier","id":5243723,"avatar_url":"https://avatars.githubusercontent.com/u/5243723?v=3","gravatar_id":"","url":"https://api.github.com/users/adchevrier","html_url":"https://github.com/adchevrier","followers_url":"https://api.github.com/users/adchevrier/followers","following_url":"https://api.github.com/users/adchevrier/following{/other_user}","gists_url":"https://api.github.com/users/adchevrier/gists{/gist_id}","starred_url":"https://api.github.com/users/adchevrier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adchevrier/subscriptions","organizations_url":"https://api.github.com/users/adchevrier/orgs","repos_url":"https://api.github.com/users/adchevrier/repos","events_url":"https://api.github.com/users/adchevrier/events{/privacy}","received_events_url":"https://api.github.com/users/adchevrier/received_events","type":"User","site_admin":false},"body":"I added the NZBHydra as requested in issue  #2120\r\nI put everything in the share folder, except the log file and pid file that I put in the var folder. Not sure if it's where it should be or if I should put the config file and the db file in the var folder too.\r\n\r\nStart/stop from dsm works, update works and keeps config. Log file is viewable in dsm. Anything I should test in particular ?\r\n@theotherp does this looks good to you ?\r\n\r\nupdate: I chose to put the config and db files in the var folder as well, seems cleaner as they are all runtime generated","created_at":"2016-03-04T17:58:14Z","updated_at":"2016-04-14T07:37:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f645601a93991da68d27a548712b7de085de96e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/2168/commits","review_comments_url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/2168/comments","review_comment_url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SynoCommunity/spksrc/issues/2168/comments","statuses_url":"https://api.github.com/repos/SynoCommunity/spksrc/statuses/d66dc6661691ae35fd923584186834c726b425b5","head":{"label":"adchevrier:nzbhydra","ref":"nzbhydra","sha":"d66dc6661691ae35fd923584186834c726b425b5","user":{"login":"adchevrier","id":5243723,"avatar_url":"https://avatars.githubusercontent.com/u/5243723?v=3","gravatar_id":"","url":"https://api.github.com/users/adchevrier","html_url":"https://github.com/adchevrier","followers_url":"https://api.github.com/users/adchevrier/followers","following_url":"https://api.github.com/users/adchevrier/following{/other_user}","gists_url":"https://api.github.com/users/adchevrier/gists{/gist_id}","starred_url":"https://api.github.com/users/adchevrier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adchevrier/subscriptions","organizations_url":"https://api.github.com/users/adchevrier/orgs","repos_url":"https://api.github.com/users/adchevrier/repos","events_url":"https://api.github.com/users/adchevrier/events{/privacy}","received_events_url":"https://api.github.com/users/adchevrier/received_events","type":"User","site_admin":false},"repo":{"id":53142853,"name":"spksrc","full_name":"adchevrier/spksrc","owner":{"login":"adchevrier","id":5243723,"avatar_url":"https://avatars.githubusercontent.com/u/5243723?v=3","gravatar_id":"","url":"https://api.github.com/users/adchevrier","html_url":"https://github.com/adchevrier","followers_url":"https://api.github.com/users/adchevrier/followers","following_url":"https://api.github.com/users/adchevrier/following{/other_user}","gists_url":"https://api.github.com/users/adchevrier/gists{/gist_id}","starred_url":"https://api.github.com/users/adchevrier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adchevrier/subscriptions","organizations_url":"https://api.github.com/users/adchevrier/orgs","repos_url":"https://api.github.com/users/adchevrier/repos","events_url":"https://api.github.com/users/adchevrier/events{/privacy}","received_events_url":"https://api.github.com/users/adchevrier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adchevrier/spksrc","description":"Cross compilation framework to create native packages for the Synology's NAS","fork":true,"url":"https://api.github.com/repos/adchevrier/spksrc","forks_url":"https://api.github.com/repos/adchevrier/spksrc/forks","keys_url":"https://api.github.com/repos/adchevrier/spksrc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adchevrier/spksrc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adchevrier/spksrc/teams","hooks_url":"https://api.github.com/repos/adchevrier/spksrc/hooks","issue_events_url":"https://api.github.com/repos/adchevrier/spksrc/issues/events{/number}","events_url":"https://api.github.com/repos/adchevrier/spksrc/events","assignees_url":"https://api.github.com/repos/adchevrier/spksrc/assignees{/user}","branches_url":"https://api.github.com/repos/adchevrier/spksrc/branches{/branch}","tags_url":"https://api.github.com/repos/adchevrier/spksrc/tags","blobs_url":"https://api.github.com/repos/adchevrier/spksrc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adchevrier/spksrc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adchevrier/spksrc/git/refs{/sha}","trees_url":"https://api.github.com/repos/adchevrier/spksrc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adchevrier/spksrc/statuses/{sha}","languages_url":"https://api.github.com/repos/adchevrier/spksrc/languages","stargazers_url":"https://api.github.com/repos/adchevrier/spksrc/stargazers","contributors_url":"https://api.github.com/repos/adchevrier/spksrc/contributors","subscribers_url":"https://api.github.com/repos/adchevrier/spksrc/subscribers","subscription_url":"https://api.github.com/repos/adchevrier/spksrc/subscription","commits_url":"https://api.github.com/repos/adchevrier/spksrc/commits{/sha}","git_commits_url":"https://api.github.com/repos/adchevrier/spksrc/git/commits{/sha}","comments_url":"https://api.github.com/repos/adchevrier/spksrc/comments{/number}","issue_comment_url":"https://api.github.com/repos/adchevrier/spksrc/issues/comments{/number}","contents_url":"https://api.github.com/repos/adchevrier/spksrc/contents/{+path}","compare_url":"https://api.github.com/repos/adchevrier/spksrc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adchevrier/spksrc/merges","archive_url":"https://api.github.com/repos/adchevrier/spksrc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adchevrier/spksrc/downloads","issues_url":"https://api.github.com/repos/adchevrier/spksrc/issues{/number}","pulls_url":"https://api.github.com/repos/adchevrier/spksrc/pulls{/number}","milestones_url":"https://api.github.com/repos/adchevrier/spksrc/milestones{/number}","notifications_url":"https://api.github.com/repos/adchevrier/spksrc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adchevrier/spksrc/labels{/name}","releases_url":"https://api.github.com/repos/adchevrier/spksrc/releases{/id}","deployments_url":"https://api.github.com/repos/adchevrier/spksrc/deployments","created_at":"2016-03-04T14:59:21Z","updated_at":"2016-03-04T14:59:24Z","pushed_at":"2016-03-05T10:06:13Z","git_url":"git://github.com/adchevrier/spksrc.git","ssh_url":"git@github.com:adchevrier/spksrc.git","clone_url":"https://github.com/adchevrier/spksrc.git","svn_url":"https://github.com/adchevrier/spksrc","homepage":"https://github.com/SynoCommunity/spksrc","size":9703,"stargazers_count":0,"watchers_count":0,"language":"Makefile","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SynoCommunity:master","ref":"master","sha":"28811453943a6583d2e3d52e815866cfead4b93c","user":{"login":"SynoCommunity","id":1123581,"avatar_url":"https://avatars.githubusercontent.com/u/1123581?v=3","gravatar_id":"","url":"https://api.github.com/users/SynoCommunity","html_url":"https://github.com/SynoCommunity","followers_url":"https://api.github.com/users/SynoCommunity/followers","following_url":"https://api.github.com/users/SynoCommunity/following{/other_user}","gists_url":"https://api.github.com/users/SynoCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/SynoCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SynoCommunity/subscriptions","organizations_url":"https://api.github.com/users/SynoCommunity/orgs","repos_url":"https://api.github.com/users/SynoCommunity/repos","events_url":"https://api.github.com/users/SynoCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/SynoCommunity/received_events","type":"Organization","site_admin":false},"repo":{"id":2565137,"name":"spksrc","full_name":"SynoCommunity/spksrc","owner":{"login":"SynoCommunity","id":1123581,"avatar_url":"https://avatars.githubusercontent.com/u/1123581?v=3","gravatar_id":"","url":"https://api.github.com/users/SynoCommunity","html_url":"https://github.com/SynoCommunity","followers_url":"https://api.github.com/users/SynoCommunity/followers","following_url":"https://api.github.com/users/SynoCommunity/following{/other_user}","gists_url":"https://api.github.com/users/SynoCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/SynoCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SynoCommunity/subscriptions","organizations_url":"https://api.github.com/users/SynoCommunity/orgs","repos_url":"https://api.github.com/users/SynoCommunity/repos","events_url":"https://api.github.com/users/SynoCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/SynoCommunity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SynoCommunity/spksrc","description":"Cross compilation framework to create native packages for the Synology's NAS","fork":false,"url":"https://api.github.com/repos/SynoCommunity/spksrc","forks_url":"https://api.github.com/repos/SynoCommunity/spksrc/forks","keys_url":"https://api.github.com/repos/SynoCommunity/spksrc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SynoCommunity/spksrc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SynoCommunity/spksrc/teams","hooks_url":"https://api.github.com/repos/SynoCommunity/spksrc/hooks","issue_events_url":"https://api.github.com/repos/SynoCommunity/spksrc/issues/events{/number}","events_url":"https://api.github.com/repos/SynoCommunity/spksrc/events","assignees_url":"https://api.github.com/repos/SynoCommunity/spksrc/assignees{/user}","branches_url":"https://api.github.com/repos/SynoCommunity/spksrc/branches{/branch}","tags_url":"https://api.github.com/repos/SynoCommunity/spksrc/tags","blobs_url":"https://api.github.com/repos/SynoCommunity/spksrc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SynoCommunity/spksrc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SynoCommunity/spksrc/git/refs{/sha}","trees_url":"https://api.github.com/repos/SynoCommunity/spksrc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SynoCommunity/spksrc/statuses/{sha}","languages_url":"https://api.github.com/repos/SynoCommunity/spksrc/languages","stargazers_url":"https://api.github.com/repos/SynoCommunity/spksrc/stargazers","contributors_url":"https://api.github.com/repos/SynoCommunity/spksrc/contributors","subscribers_url":"https://api.github.com/repos/SynoCommunity/spksrc/subscribers","subscription_url":"https://api.github.com/repos/SynoCommunity/spksrc/subscription","commits_url":"https://api.github.com/repos/SynoCommunity/spksrc/commits{/sha}","git_commits_url":"https://api.github.com/repos/SynoCommunity/spksrc/git/commits{/sha}","comments_url":"https://api.github.com/repos/SynoCommunity/spksrc/comments{/number}","issue_comment_url":"https://api.github.com/repos/SynoCommunity/spksrc/issues/comments{/number}","contents_url":"https://api.github.com/repos/SynoCommunity/spksrc/contents/{+path}","compare_url":"https://api.github.com/repos/SynoCommunity/spksrc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SynoCommunity/spksrc/merges","archive_url":"https://api.github.com/repos/SynoCommunity/spksrc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SynoCommunity/spksrc/downloads","issues_url":"https://api.github.com/repos/SynoCommunity/spksrc/issues{/number}","pulls_url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls{/number}","milestones_url":"https://api.github.com/repos/SynoCommunity/spksrc/milestones{/number}","notifications_url":"https://api.github.com/repos/SynoCommunity/spksrc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SynoCommunity/spksrc/labels{/name}","releases_url":"https://api.github.com/repos/SynoCommunity/spksrc/releases{/id}","deployments_url":"https://api.github.com/repos/SynoCommunity/spksrc/deployments","created_at":"2011-10-12T20:25:50Z","updated_at":"2016-04-12T14:05:14Z","pushed_at":"2016-04-13T23:33:38Z","git_url":"git://github.com/SynoCommunity/spksrc.git","ssh_url":"git@github.com:SynoCommunity/spksrc.git","clone_url":"https://github.com/SynoCommunity/spksrc.git","svn_url":"https://github.com/SynoCommunity/spksrc","homepage":"https://github.com/SynoCommunity/spksrc","size":40307,"stargazers_count":931,"watchers_count":931,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":446,"mirror_url":null,"open_issues_count":305,"forks":446,"open_issues":305,"watchers":931,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/2168"},"html":{"href":"https://github.com/SynoCommunity/spksrc/pull/2168"},"issue":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/issues/2168"},"comments":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/issues/2168/comments"},"review_comments":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/2168/comments"},"review_comment":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/2168/commits"},"statuses":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/statuses/d66dc6661691ae35fd923584186834c726b425b5"}}}}