{"action":"created","comment":{"url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/comments/28653363","id":28653363,"diff_hunk":"@@ -0,0 +1,92 @@\n+#!/bin/sh\n+\n+# Package\n+PACKAGE=\"homeassistant\"\n+DNAME=\"Home Assistant\"\n+\n+# Others\n+INSTALL_DIR=\"/usr/local/${PACKAGE}\"\n+SSS=\"/var/packages/${PACKAGE}/scripts/start-stop-status\"\n+PYTHON_DIR=\"/usr/local/python3\"\n+PATH=\"${INSTALL_DIR}/env/bin:${PYTHON_DIR}/bin:${PATH}\"\n+USER=\"homeassistant\"\n+GROUP=\"users\"\n+VIRTUALENV=\"${PYTHON_DIR}/bin/python3 -m virtualenv\"\t\t\t#was \"${PYTHON_DIR}/bin/virtualenv-3.4\"\n+CONFIG_DIR=\"${INSTALL_DIR}/etc/\"\n+TMP_DIR=\"${SYNOPKG_PKGDEST}/../../@tmp\"\n+\n+SERVICETOOL=\"/usr/syno/bin/servicetool\"\n+\n+preinst ()\n+{\n+    exit 0\n+}\n+\n+postinst ()\n+{\n+    # Link\n+    ln -s ${SYNOPKG_PKGDEST} ${INSTALL_DIR}\n+\n+    # Create a Python virtualenv\n+    ${VIRTUALENV} --system-site-packages ${INSTALL_DIR}/env > /dev/null\n+\n+    # Install the wheels\n+    ${INSTALL_DIR}/env/bin/pip3.4 install --use-wheel --no-deps --force-reinstall -f ${INSTALL_DIR}/share/wheelhouse -r ${INSTALL_DIR}/share/wheelhouse/requirements.txt > /dev/null 2>&1","path":"spk/homeassistant/src/installer.sh","position":34,"original_position":34,"commit_id":"6903b261a09297c198e249ef3f9e3d32c0a8eda0","original_commit_id":"6903b261a09297c198e249ef3f9e3d32c0a8eda0","user":{"login":"wind-rider","id":3463496,"avatar_url":"https://avatars.githubusercontent.com/u/3463496?v=3","gravatar_id":"","url":"https://api.github.com/users/wind-rider","html_url":"https://github.com/wind-rider","followers_url":"https://api.github.com/users/wind-rider/followers","following_url":"https://api.github.com/users/wind-rider/following{/other_user}","gists_url":"https://api.github.com/users/wind-rider/gists{/gist_id}","starred_url":"https://api.github.com/users/wind-rider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wind-rider/subscriptions","organizations_url":"https://api.github.com/users/wind-rider/orgs","repos_url":"https://api.github.com/users/wind-rider/repos","events_url":"https://api.github.com/users/wind-rider/events{/privacy}","received_events_url":"https://api.github.com/users/wind-rider/received_events","type":"User","site_admin":false},"body":"I think this was the same as above (https://github.com/SynoCommunity/spksrc/issues/1647)","created_at":"2015-04-19T14:39:09Z","updated_at":"2015-04-19T14:39:09Z","html_url":"https://github.com/SynoCommunity/spksrc/pull/1655#discussion_r28653363","pull_request_url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/1655","_links":{"self":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/comments/28653363"},"html":{"href":"https://github.com/SynoCommunity/spksrc/pull/1655#discussion_r28653363"},"pull_request":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/1655"}}},"pull_request":{"url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/1655","id":33618030,"html_url":"https://github.com/SynoCommunity/spksrc/pull/1655","diff_url":"https://github.com/SynoCommunity/spksrc/pull/1655.diff","patch_url":"https://github.com/SynoCommunity/spksrc/pull/1655.patch","issue_url":"https://api.github.com/repos/SynoCommunity/spksrc/issues/1655","number":1655,"state":"open","locked":false,"title":"Homeassistant","user":{"login":"wind-rider","id":3463496,"avatar_url":"https://avatars.githubusercontent.com/u/3463496?v=3","gravatar_id":"","url":"https://api.github.com/users/wind-rider","html_url":"https://github.com/wind-rider","followers_url":"https://api.github.com/users/wind-rider/followers","following_url":"https://api.github.com/users/wind-rider/following{/other_user}","gists_url":"https://api.github.com/users/wind-rider/gists{/gist_id}","starred_url":"https://api.github.com/users/wind-rider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wind-rider/subscriptions","organizations_url":"https://api.github.com/users/wind-rider/orgs","repos_url":"https://api.github.com/users/wind-rider/repos","events_url":"https://api.github.com/users/wind-rider/events{/privacy}","received_events_url":"https://api.github.com/users/wind-rider/received_events","type":"User","site_admin":false},"body":"Basic working version\r\n- Start / stop and log files work\r\n- Pyephem and netifaces are packaged as cross-compiled wheels\r\n- Some optional cross-compilation dependencies are not yet compiled:\r\n - pychromecast>=0.5 disabled since it currently does not work with Chromecast api\r\n - pyuserinput>=0.1.9 is excluded for the moment\r\n - tellcore-py>=1.0.4 is excluded for the moment\r\n - pydispatcher>=2.0.5 is excluded for the moment\r\n - psutil>=2.2.1 is excluded for the moment\r\n- pip34 installs the rest of the requirements during installation (spksrc.common.mk in the build system currently contains hardcoded pip for python2).\r\n\r\n\r\n","created_at":"2015-04-19T12:24:11Z","updated_at":"2015-04-19T14:39:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2352e7bc79f800f87ee28cd8c11e870dc570de06","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/1655/commits","review_comments_url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/1655/comments","review_comment_url":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SynoCommunity/spksrc/issues/1655/comments","statuses_url":"https://api.github.com/repos/SynoCommunity/spksrc/statuses/6903b261a09297c198e249ef3f9e3d32c0a8eda0","head":{"label":"wind-rider:homeassistant","ref":"homeassistant","sha":"6903b261a09297c198e249ef3f9e3d32c0a8eda0","user":{"login":"wind-rider","id":3463496,"avatar_url":"https://avatars.githubusercontent.com/u/3463496?v=3","gravatar_id":"","url":"https://api.github.com/users/wind-rider","html_url":"https://github.com/wind-rider","followers_url":"https://api.github.com/users/wind-rider/followers","following_url":"https://api.github.com/users/wind-rider/following{/other_user}","gists_url":"https://api.github.com/users/wind-rider/gists{/gist_id}","starred_url":"https://api.github.com/users/wind-rider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wind-rider/subscriptions","organizations_url":"https://api.github.com/users/wind-rider/orgs","repos_url":"https://api.github.com/users/wind-rider/repos","events_url":"https://api.github.com/users/wind-rider/events{/privacy}","received_events_url":"https://api.github.com/users/wind-rider/received_events","type":"User","site_admin":false},"repo":{"id":33786554,"name":"spksrc","full_name":"wind-rider/spksrc","owner":{"login":"wind-rider","id":3463496,"avatar_url":"https://avatars.githubusercontent.com/u/3463496?v=3","gravatar_id":"","url":"https://api.github.com/users/wind-rider","html_url":"https://github.com/wind-rider","followers_url":"https://api.github.com/users/wind-rider/followers","following_url":"https://api.github.com/users/wind-rider/following{/other_user}","gists_url":"https://api.github.com/users/wind-rider/gists{/gist_id}","starred_url":"https://api.github.com/users/wind-rider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wind-rider/subscriptions","organizations_url":"https://api.github.com/users/wind-rider/orgs","repos_url":"https://api.github.com/users/wind-rider/repos","events_url":"https://api.github.com/users/wind-rider/events{/privacy}","received_events_url":"https://api.github.com/users/wind-rider/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wind-rider/spksrc","description":"Cross compilation framework to create native packages for the Synology's NAS","fork":true,"url":"https://api.github.com/repos/wind-rider/spksrc","forks_url":"https://api.github.com/repos/wind-rider/spksrc/forks","keys_url":"https://api.github.com/repos/wind-rider/spksrc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wind-rider/spksrc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wind-rider/spksrc/teams","hooks_url":"https://api.github.com/repos/wind-rider/spksrc/hooks","issue_events_url":"https://api.github.com/repos/wind-rider/spksrc/issues/events{/number}","events_url":"https://api.github.com/repos/wind-rider/spksrc/events","assignees_url":"https://api.github.com/repos/wind-rider/spksrc/assignees{/user}","branches_url":"https://api.github.com/repos/wind-rider/spksrc/branches{/branch}","tags_url":"https://api.github.com/repos/wind-rider/spksrc/tags","blobs_url":"https://api.github.com/repos/wind-rider/spksrc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wind-rider/spksrc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wind-rider/spksrc/git/refs{/sha}","trees_url":"https://api.github.com/repos/wind-rider/spksrc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wind-rider/spksrc/statuses/{sha}","languages_url":"https://api.github.com/repos/wind-rider/spksrc/languages","stargazers_url":"https://api.github.com/repos/wind-rider/spksrc/stargazers","contributors_url":"https://api.github.com/repos/wind-rider/spksrc/contributors","subscribers_url":"https://api.github.com/repos/wind-rider/spksrc/subscribers","subscription_url":"https://api.github.com/repos/wind-rider/spksrc/subscription","commits_url":"https://api.github.com/repos/wind-rider/spksrc/commits{/sha}","git_commits_url":"https://api.github.com/repos/wind-rider/spksrc/git/commits{/sha}","comments_url":"https://api.github.com/repos/wind-rider/spksrc/comments{/number}","issue_comment_url":"https://api.github.com/repos/wind-rider/spksrc/issues/comments{/number}","contents_url":"https://api.github.com/repos/wind-rider/spksrc/contents/{+path}","compare_url":"https://api.github.com/repos/wind-rider/spksrc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wind-rider/spksrc/merges","archive_url":"https://api.github.com/repos/wind-rider/spksrc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wind-rider/spksrc/downloads","issues_url":"https://api.github.com/repos/wind-rider/spksrc/issues{/number}","pulls_url":"https://api.github.com/repos/wind-rider/spksrc/pulls{/number}","milestones_url":"https://api.github.com/repos/wind-rider/spksrc/milestones{/number}","notifications_url":"https://api.github.com/repos/wind-rider/spksrc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wind-rider/spksrc/labels{/name}","releases_url":"https://api.github.com/repos/wind-rider/spksrc/releases{/id}","created_at":"2015-04-11T18:07:24Z","updated_at":"2015-04-11T18:07:27Z","pushed_at":"2015-04-19T12:51:48Z","git_url":"git://github.com/wind-rider/spksrc.git","ssh_url":"git@github.com:wind-rider/spksrc.git","clone_url":"https://github.com/wind-rider/spksrc.git","svn_url":"https://github.com/wind-rider/spksrc","homepage":"https://github.com/SynoCommunity/spksrc","size":6552,"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":"d4fb4c0de415c717be7be90cf8ff803af6addb4f","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}","created_at":"2011-10-12T20:25:50Z","updated_at":"2015-04-19T06:22:56Z","pushed_at":"2015-04-19T12:51:48Z","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":35621,"stargazers_count":702,"watchers_count":702,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":332,"mirror_url":null,"open_issues_count":212,"forks":332,"open_issues":212,"watchers":702,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/1655"},"html":{"href":"https://github.com/SynoCommunity/spksrc/pull/1655"},"issue":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/issues/1655"},"comments":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/issues/1655/comments"},"review_comments":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/1655/comments"},"review_comment":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/pulls/1655/commits"},"statuses":{"href":"https://api.github.com/repos/SynoCommunity/spksrc/statuses/6903b261a09297c198e249ef3f9e3d32c0a8eda0"}}}}