{"action":"created","comment":{"url":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/comments/63286221","id":63286221,"diff_hunk":"@@ -0,0 +1,178 @@\n+#\n+# This file and its contents are supplied under the terms of the\n+# Common Development and Distribution License (\"CDDL\"), version 1.0.\n+# You may only use this file in accordance with the terms of version\n+# 1.0 of the CDDL.\n+#\n+# A full copy of the text of the CDDL should have accompanied this\n+# source.  A copy of the CDDL is also available via the Internet at\n+# http://www.illumos.org/license/CDDL.\n+#\n+\n+#\n+# Copyright 2016 Jim Klimov\n+#\n+\n+include ../../../make-rules/shared-macros.mk\n+\n+COMPONENT_NAME=\tnut\n+COMPONENT_VERSION=\t2.7.4\n+COMPONENT_SUMMARY=\tNetwork UPS Tools (NUT)\n+COMPONENT_DESCRIPTION=\tNetwork UPS Tools (NUT) is a versatile power-device monitoring toolkit to facilitate safe shutdowns\n+COMPONENT_SRC=\t$(COMPONENT_NAME)-$(COMPONENT_VERSION)\n+COMPONENT_ARCHIVE=\t$(COMPONENT_SRC).tar.gz\n+COMPONENT_ARCHIVE_HASH=\t\\\n+  sha256:d580915fdf7090655c1c7c98eb116b61952553f06f0039b1f93c9f5a13e2d36b\n+COMPONENT_ARCHIVE_URL=\t\\\n+  https://github.com/networkupstools/$(COMPONENT_NAME)/archive/v$(COMPONENT_VERSION).tar.gz\n+COMPONENT_PROJECT_URL=\thttp://networkupstools.org\n+COMPONENT_FMRI=\tsystem/management/$(COMPONENT_NAME)\n+COMPONENT_CLASSIFICATION=\tSystem/Administration and Configuration\n+COMPONENT_LICENSE=\tGPLv2+\n+COMPONENT_LICENSE_FILE=\tCOPYING\n+\n+include $(WS_MAKE_RULES)/prep.mk\n+include $(WS_MAKE_RULES)/configure.mk\n+include $(WS_MAKE_RULES)/ips.mk\n+\n+CXXFLAGS.32=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE\n+CFLAGS.32=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE\n+\n+CXXFLAGS+=$(CXXFLAGS.$(BITS))\n+CFLAGS+=$(CFLAGS.$(BITS))\n+\n+LDFLAGS.32= -L$(USRLIBDIR) -R $(USRLIBDIR) $(LDFLAGS) -L$(GNULIB) -R $(GNULIB)","path":"components/sysutils/nut/Makefile","position":null,"original_position":44,"commit_id":"12939535a011a517235e4e14001ddaea287a7dcb","original_commit_id":"8763ecacc8d248aa64f9eaebf64c307267ff7ab5","user":{"login":"pyhalov","id":4092748,"avatar_url":"https://avatars.githubusercontent.com/u/4092748?v=3","gravatar_id":"","url":"https://api.github.com/users/pyhalov","html_url":"https://github.com/pyhalov","followers_url":"https://api.github.com/users/pyhalov/followers","following_url":"https://api.github.com/users/pyhalov/following{/other_user}","gists_url":"https://api.github.com/users/pyhalov/gists{/gist_id}","starred_url":"https://api.github.com/users/pyhalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyhalov/subscriptions","organizations_url":"https://api.github.com/users/pyhalov/orgs","repos_url":"https://api.github.com/users/pyhalov/repos","events_url":"https://api.github.com/users/pyhalov/events{/privacy}","received_events_url":"https://api.github.com/users/pyhalov/received_events","type":"User","site_admin":false},"body":"right","created_at":"2016-05-15T05:00:17Z","updated_at":"2016-05-15T05:00:17Z","html_url":"https://github.com/OpenIndiana/oi-userland/pull/2001#discussion_r63286221","pull_request_url":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/2001","_links":{"self":{"href":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/comments/63286221"},"html":{"href":"https://github.com/OpenIndiana/oi-userland/pull/2001#discussion_r63286221"},"pull_request":{"href":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/2001"}}},"pull_request":{"url":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/2001","id":70087392,"html_url":"https://github.com/OpenIndiana/oi-userland/pull/2001","diff_url":"https://github.com/OpenIndiana/oi-userland/pull/2001.diff","patch_url":"https://github.com/OpenIndiana/oi-userland/pull/2001.patch","issue_url":"https://api.github.com/repos/OpenIndiana/oi-userland/issues/2001","number":2001,"state":"open","locked":false,"title":"(WIP-RFC) NUT initial recipe at version 2.7.4","user":{"login":"jimklimov","id":1636756,"avatar_url":"https://avatars.githubusercontent.com/u/1636756?v=3","gravatar_id":"","url":"https://api.github.com/users/jimklimov","html_url":"https://github.com/jimklimov","followers_url":"https://api.github.com/users/jimklimov/followers","following_url":"https://api.github.com/users/jimklimov/following{/other_user}","gists_url":"https://api.github.com/users/jimklimov/gists{/gist_id}","starred_url":"https://api.github.com/users/jimklimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimklimov/subscriptions","organizations_url":"https://api.github.com/users/jimklimov/orgs","repos_url":"https://api.github.com/users/jimklimov/repos","events_url":"https://api.github.com/users/jimklimov/events{/privacy}","received_events_url":"https://api.github.com/users/jimklimov/received_events","type":"User","site_admin":false},"body":"Hello all, here is my initial PR for Network UPS Tools - at this stage the aim is to have the tools in gate at all (integration with SMF, RBAC or actual graceful shutdown is left to the end-user - anyway they have to configure their system for their UPSes, as they had to for the past 20 years of the project). At least, with this package in place, they have a standing chance of doing it at all ;)\r\n\r\nSome of this integration may be tackled in subsequent PRs, and the advanced somethings would need changes in illumos core (to support shutdown scenarios that aim to avoid the \"power-race condition\").\r\n\r\nSo far this PR aims to collect comments about glaring errors and omissions :)","created_at":"2016-05-14T09:33:45Z","updated_at":"2016-05-15T05:00:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4bb28c17fa1014ef34a0b2db46a6f207614fbad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/2001/commits","review_comments_url":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/2001/comments","review_comment_url":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenIndiana/oi-userland/issues/2001/comments","statuses_url":"https://api.github.com/repos/OpenIndiana/oi-userland/statuses/12939535a011a517235e4e14001ddaea287a7dcb","head":{"label":"jimklimov:nut-initial","ref":"nut-initial","sha":"12939535a011a517235e4e14001ddaea287a7dcb","user":{"login":"jimklimov","id":1636756,"avatar_url":"https://avatars.githubusercontent.com/u/1636756?v=3","gravatar_id":"","url":"https://api.github.com/users/jimklimov","html_url":"https://github.com/jimklimov","followers_url":"https://api.github.com/users/jimklimov/followers","following_url":"https://api.github.com/users/jimklimov/following{/other_user}","gists_url":"https://api.github.com/users/jimklimov/gists{/gist_id}","starred_url":"https://api.github.com/users/jimklimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimklimov/subscriptions","organizations_url":"https://api.github.com/users/jimklimov/orgs","repos_url":"https://api.github.com/users/jimklimov/repos","events_url":"https://api.github.com/users/jimklimov/events{/privacy}","received_events_url":"https://api.github.com/users/jimklimov/received_events","type":"User","site_admin":false},"repo":{"id":43373839,"name":"oi-userland","full_name":"jimklimov/oi-userland","owner":{"login":"jimklimov","id":1636756,"avatar_url":"https://avatars.githubusercontent.com/u/1636756?v=3","gravatar_id":"","url":"https://api.github.com/users/jimklimov","html_url":"https://github.com/jimklimov","followers_url":"https://api.github.com/users/jimklimov/followers","following_url":"https://api.github.com/users/jimklimov/following{/other_user}","gists_url":"https://api.github.com/users/jimklimov/gists{/gist_id}","starred_url":"https://api.github.com/users/jimklimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimklimov/subscriptions","organizations_url":"https://api.github.com/users/jimklimov/orgs","repos_url":"https://api.github.com/users/jimklimov/repos","events_url":"https://api.github.com/users/jimklimov/events{/privacy}","received_events_url":"https://api.github.com/users/jimklimov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jimklimov/oi-userland","description":"OI Userland","fork":true,"url":"https://api.github.com/repos/jimklimov/oi-userland","forks_url":"https://api.github.com/repos/jimklimov/oi-userland/forks","keys_url":"https://api.github.com/repos/jimklimov/oi-userland/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimklimov/oi-userland/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimklimov/oi-userland/teams","hooks_url":"https://api.github.com/repos/jimklimov/oi-userland/hooks","issue_events_url":"https://api.github.com/repos/jimklimov/oi-userland/issues/events{/number}","events_url":"https://api.github.com/repos/jimklimov/oi-userland/events","assignees_url":"https://api.github.com/repos/jimklimov/oi-userland/assignees{/user}","branches_url":"https://api.github.com/repos/jimklimov/oi-userland/branches{/branch}","tags_url":"https://api.github.com/repos/jimklimov/oi-userland/tags","blobs_url":"https://api.github.com/repos/jimklimov/oi-userland/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimklimov/oi-userland/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimklimov/oi-userland/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimklimov/oi-userland/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimklimov/oi-userland/statuses/{sha}","languages_url":"https://api.github.com/repos/jimklimov/oi-userland/languages","stargazers_url":"https://api.github.com/repos/jimklimov/oi-userland/stargazers","contributors_url":"https://api.github.com/repos/jimklimov/oi-userland/contributors","subscribers_url":"https://api.github.com/repos/jimklimov/oi-userland/subscribers","subscription_url":"https://api.github.com/repos/jimklimov/oi-userland/subscription","commits_url":"https://api.github.com/repos/jimklimov/oi-userland/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimklimov/oi-userland/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimklimov/oi-userland/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimklimov/oi-userland/issues/comments{/number}","contents_url":"https://api.github.com/repos/jimklimov/oi-userland/contents/{+path}","compare_url":"https://api.github.com/repos/jimklimov/oi-userland/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimklimov/oi-userland/merges","archive_url":"https://api.github.com/repos/jimklimov/oi-userland/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimklimov/oi-userland/downloads","issues_url":"https://api.github.com/repos/jimklimov/oi-userland/issues{/number}","pulls_url":"https://api.github.com/repos/jimklimov/oi-userland/pulls{/number}","milestones_url":"https://api.github.com/repos/jimklimov/oi-userland/milestones{/number}","notifications_url":"https://api.github.com/repos/jimklimov/oi-userland/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimklimov/oi-userland/labels{/name}","releases_url":"https://api.github.com/repos/jimklimov/oi-userland/releases{/id}","deployments_url":"https://api.github.com/repos/jimklimov/oi-userland/deployments","created_at":"2015-09-29T14:46:30Z","updated_at":"2016-01-16T19:49:08Z","pushed_at":"2016-05-15T01:00:44Z","git_url":"git://github.com/jimklimov/oi-userland.git","ssh_url":"git@github.com:jimklimov/oi-userland.git","clone_url":"https://github.com/jimklimov/oi-userland.git","svn_url":"https://github.com/jimklimov/oi-userland","homepage":null,"size":42887,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"oi/hipster"}},"base":{"label":"OpenIndiana:oi/hipster","ref":"oi/hipster","sha":"0f7d90630f07e681e9b0b8d771a9fd258118afbe","user":{"login":"OpenIndiana","id":1423700,"avatar_url":"https://avatars.githubusercontent.com/u/1423700?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenIndiana","html_url":"https://github.com/OpenIndiana","followers_url":"https://api.github.com/users/OpenIndiana/followers","following_url":"https://api.github.com/users/OpenIndiana/following{/other_user}","gists_url":"https://api.github.com/users/OpenIndiana/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenIndiana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenIndiana/subscriptions","organizations_url":"https://api.github.com/users/OpenIndiana/orgs","repos_url":"https://api.github.com/users/OpenIndiana/repos","events_url":"https://api.github.com/users/OpenIndiana/events{/privacy}","received_events_url":"https://api.github.com/users/OpenIndiana/received_events","type":"Organization","site_admin":false},"repo":{"id":10007731,"name":"oi-userland","full_name":"OpenIndiana/oi-userland","owner":{"login":"OpenIndiana","id":1423700,"avatar_url":"https://avatars.githubusercontent.com/u/1423700?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenIndiana","html_url":"https://github.com/OpenIndiana","followers_url":"https://api.github.com/users/OpenIndiana/followers","following_url":"https://api.github.com/users/OpenIndiana/following{/other_user}","gists_url":"https://api.github.com/users/OpenIndiana/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenIndiana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenIndiana/subscriptions","organizations_url":"https://api.github.com/users/OpenIndiana/orgs","repos_url":"https://api.github.com/users/OpenIndiana/repos","events_url":"https://api.github.com/users/OpenIndiana/events{/privacy}","received_events_url":"https://api.github.com/users/OpenIndiana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenIndiana/oi-userland","description":"OI Userland","fork":false,"url":"https://api.github.com/repos/OpenIndiana/oi-userland","forks_url":"https://api.github.com/repos/OpenIndiana/oi-userland/forks","keys_url":"https://api.github.com/repos/OpenIndiana/oi-userland/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenIndiana/oi-userland/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenIndiana/oi-userland/teams","hooks_url":"https://api.github.com/repos/OpenIndiana/oi-userland/hooks","issue_events_url":"https://api.github.com/repos/OpenIndiana/oi-userland/issues/events{/number}","events_url":"https://api.github.com/repos/OpenIndiana/oi-userland/events","assignees_url":"https://api.github.com/repos/OpenIndiana/oi-userland/assignees{/user}","branches_url":"https://api.github.com/repos/OpenIndiana/oi-userland/branches{/branch}","tags_url":"https://api.github.com/repos/OpenIndiana/oi-userland/tags","blobs_url":"https://api.github.com/repos/OpenIndiana/oi-userland/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenIndiana/oi-userland/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenIndiana/oi-userland/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenIndiana/oi-userland/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenIndiana/oi-userland/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenIndiana/oi-userland/languages","stargazers_url":"https://api.github.com/repos/OpenIndiana/oi-userland/stargazers","contributors_url":"https://api.github.com/repos/OpenIndiana/oi-userland/contributors","subscribers_url":"https://api.github.com/repos/OpenIndiana/oi-userland/subscribers","subscription_url":"https://api.github.com/repos/OpenIndiana/oi-userland/subscription","commits_url":"https://api.github.com/repos/OpenIndiana/oi-userland/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenIndiana/oi-userland/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenIndiana/oi-userland/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenIndiana/oi-userland/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenIndiana/oi-userland/contents/{+path}","compare_url":"https://api.github.com/repos/OpenIndiana/oi-userland/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenIndiana/oi-userland/merges","archive_url":"https://api.github.com/repos/OpenIndiana/oi-userland/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenIndiana/oi-userland/downloads","issues_url":"https://api.github.com/repos/OpenIndiana/oi-userland/issues{/number}","pulls_url":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenIndiana/oi-userland/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenIndiana/oi-userland/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenIndiana/oi-userland/labels{/name}","releases_url":"https://api.github.com/repos/OpenIndiana/oi-userland/releases{/id}","deployments_url":"https://api.github.com/repos/OpenIndiana/oi-userland/deployments","created_at":"2013-05-12T01:29:19Z","updated_at":"2016-05-14T14:34:54Z","pushed_at":"2016-05-15T01:00:44Z","git_url":"git://github.com/OpenIndiana/oi-userland.git","ssh_url":"git@github.com:OpenIndiana/oi-userland.git","clone_url":"https://github.com/OpenIndiana/oi-userland.git","svn_url":"https://github.com/OpenIndiana/oi-userland","homepage":null,"size":43450,"stargazers_count":25,"watchers_count":25,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":22,"forks":55,"open_issues":22,"watchers":25,"default_branch":"oi/hipster"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/2001"},"html":{"href":"https://github.com/OpenIndiana/oi-userland/pull/2001"},"issue":{"href":"https://api.github.com/repos/OpenIndiana/oi-userland/issues/2001"},"comments":{"href":"https://api.github.com/repos/OpenIndiana/oi-userland/issues/2001/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/2001/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/2001/commits"},"statuses":{"href":"https://api.github.com/repos/OpenIndiana/oi-userland/statuses/12939535a011a517235e4e14001ddaea287a7dcb"}}}}