{"action":"created","comment":{"url":"https://api.github.com/repos/OpenIndiana/oi-userland/pulls/comments/63274763","id":63274763,"diff_hunk":"@@ -0,0 +1,111 @@\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+set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)/bins@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)\n+set name=pkg.summary value=\"$(COMPONENT_SUMMARY) - NUT Command-line binaries and scripts\"\n+set name=info.classification value=\"$(COMPONENT_CLASSIFICATION)\"\n+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)\n+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)\n+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)\n+\n+license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'\n+\n+<transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>\n+\n+depend fmri=$(COMPONENT_FMRI)-common@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) type=require\n+\n+### NUT Command-line binaries and scripts (daemons, clients)\n+\n+### Note: While nut-scanner can use snmp, neon/xml, ipmi and usb libs, it pulls\n+### them truly dynamically (if available) and skips otherwise. Installing all\n+### the NUT driver packages should pull those libs by harder ldd requirements.\n+### Conversely if you don't want those UPSes (got no drivers) why scan them? :)\n+\n+file path=usr/bin/$(MACH64)/nut-scanner\n+file path=usr/bin/$(MACH64)/upsc\n+file path=usr/bin/$(MACH64)/upscmd\n+file path=usr/bin/$(MACH64)/upslog\n+file path=usr/bin/$(MACH64)/upsrw\n+file path=usr/bin/$(MACH64)/upssched-cmd\n+\n+file path=usr/bin/nut-scanner\n+file path=usr/bin/upsc\n+file path=usr/bin/upscmd\n+file path=usr/bin/upslog\n+file path=usr/bin/upsrw\n+file path=usr/bin/upssched-cmd\n+\n+file path=usr/sbin/$(MACH64)/upsd\n+file path=usr/sbin/$(MACH64)/upsdrvctl\n+file path=usr/sbin/$(MACH64)/upsmon\n+file path=usr/sbin/$(MACH64)/upssched\n+\n+file path=usr/sbin/upsd\n+file path=usr/sbin/upsdrvctl\n+file path=usr/sbin/upsmon\n+file path=usr/sbin/upssched\n+\n+# Example notification script for UPSMON\n+file files/notifyme path=$(NUTDRVDIR)/notifyme\n+\n+file path=usr/share/man/man5/hosts.conf.5\n+file path=usr/share/man/man5/nut.conf.5\n+file path=usr/share/man/man5/ups.conf.5\n+file path=usr/share/man/man5/upsd.conf.5\n+file path=usr/share/man/man5/upsd.users.5\n+file path=usr/share/man/man5/upsmon.conf.5\n+file path=usr/share/man/man5/upssched.conf.5\n+\n+file path=usr/share/man/man8/nut-scanner.8\n+file path=usr/share/man/man8/upsc.8\n+file path=usr/share/man/man8/upscmd.8\n+file path=usr/share/man/man8/upsd.8\n+file path=usr/share/man/man8/upsdrvctl.8\n+file path=usr/share/man/man8/upslog.8\n+file path=usr/share/man/man8/upsmon.8\n+file path=usr/share/man/man8/upsrw.8\n+file path=usr/share/man/man8/upssched.8\n+\n+# NUT starter examples are by convention across many distros delivered in /etc\n+file path=$(NUTETCDIR)/hosts.conf.sample group=$(NUTGROUP) owner=$(NUTUSER) mode=0640\n+file path=$(NUTETCDIR)/nut.conf.sample group=$(NUTGROUP) owner=$(NUTUSER) mode=0644\n+file path=$(NUTETCDIR)/ups.conf.sample group=$(NUTGROUP) owner=$(NUTUSER) mode=0644\n+file path=$(NUTETCDIR)/upsd.conf.sample group=$(NUTGROUP) owner=$(NUTUSER) mode=0640\n+file path=$(NUTETCDIR)/upsd.users.sample group=$(NUTGROUP) owner=$(NUTUSER) mode=0640\n+file path=$(NUTETCDIR)/upsmon.conf.sample group=$(NUTGROUP) owner=$(NUTUSER) mode=0640\n+file path=$(NUTETCDIR)/upssched.conf.sample group=$(NUTGROUP) owner=$(NUTUSER) mode=0644\n+\n+# Integration with dynamically added devices (USB mostly)\n+# TODO pedantic: split this off to depend on some USB/hotplug/udev package(s)?\n+file path=$(NUTHOTPLUGDIR)/usb/libhid.usermap\n+file path=$(NUTHOTPLUGDIR)/usb/libhidups\n+\n+# README also suggests running `udevadm trigger --subsystem-match=usb_device`\n+#file path=$(NUTUDEVDIR)/rules.d/52-nut-ipmipsu.rules\n+file path=$(NUTUDEVDIR)/rules.d/62-nut-usbups.rules\n+\n+# Maybe on another iteration this would help us fix up illumos definitions?\n+file scripts/upower/95-upower-hid.rules path=$(NUTETCDIR)/95-upower-hid.rules.sample\n+\n+# TODO pedantic: split this off to depend on avahi package?\n+# Also make sure which path that would go into?\n+file path=$(NUT_AVAHI_SERVICE_FILE)\n+\n+# TODO pedantic: split this off to depend on logrotate package?\n+file scripts/logrotate/nutlogd path=etc/logrotate.d/nutlogd","path":"components/sysutils/nut/nut-bins.p5m","position":107,"original_position":107,"commit_id":"8763ecacc8d248aa64f9eaebf64c307267ff7ab5","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":"perhaps, deliver as example?","created_at":"2016-05-14T11:19:51Z","updated_at":"2016-05-14T11:19:51Z","html_url":"https://github.com/OpenIndiana/oi-userland/pull/2001#discussion_r63274763","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/63274763"},"html":{"href":"https://github.com/OpenIndiana/oi-userland/pull/2001#discussion_r63274763"},"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-14T11:19:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a0e5578cbade869fe160c5bc05c39181c53f917","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/8763ecacc8d248aa64f9eaebf64c307267ff7ab5","head":{"label":"jimklimov:nut-initial","ref":"nut-initial","sha":"8763ecacc8d248aa64f9eaebf64c307267ff7ab5","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-14T09:26:36Z","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":42814,"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-06T16:21:23Z","pushed_at":"2016-05-14T11:15:40Z","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":43284,"stargazers_count":24,"watchers_count":24,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":24,"forks":54,"open_issues":24,"watchers":24,"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/8763ecacc8d248aa64f9eaebf64c307267ff7ab5"}}}}