{"action":"created","comment":{"url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/comments/32165856","id":32165856,"diff_hunk":"@@ -0,0 +1,84 @@\n+# Copyright 1999-2015 Gentoo Foundation\n+# Distributed under the terms of the GNU General Public License v2\n+# $Header: $\n+\n+EAPI=5\n+\n+inherit autotools eutils flag-o-matic systemd\n+\n+DESCRIPTION=\"Precision Time Protocol daemon\"\n+HOMEPAGE=\"http://ptpd.sf.net\"\n+\n+if [[ ${PV} == \"9999\" ]]; then\n+\tESVN_REPO_URI=\"http://svn.code.sf.net/p/ptpd/code/trunk\"\n+\tinherit subversion\n+\tSRC_URI=\"\"\n+\tKEYWORDS=\"\"\n+else\n+\tif [[ ${PV} == *_rc* ]]; then\n+\t\tMY_PV=${PV/_rc*/}\n+\t\tMY_P=${P/_rc/-rc}\n+\telse\n+\t\tMY_PV=${PV}\n+\t\tMY_P=${P}\n+\tfi\n+\n+\tSRC_URI=\"mirror://sourceforge/ptpd/${MY_PV}/${MY_P}.tar.gz\"\n+\tKEYWORDS=\"~amd64 ~x86 ~arm\"\n+fi\n+\n+LICENSE=\"BSD\"\n+SLOT=\"0\"\n+IUSE=\"snmp +statistics ntp experimental debug +daemon\"\n+COMMON_DEPEND=\" snmp? ( net-analyzer/net-snmp )\n+                ntp? ( net-misc/ntp )\n+                net-libs/libpcap\"\n+RDEPEND=\"${COMMON_DEPEND}\"\n+DEPEND=\"${COMMON_DEPEND}\"\n+\n+S=\"${WORKDIR}/${MY_P}\"\n+\n+src_unpack() {\n+\tif [[ ${PV} == \"9999\" ]] ; then\n+\t\tsubversion_src_unpack\n+\telse\n+\t\tunpack ${A}\n+\t\tcd \"${S}\"\n+\t\t# QA\n+\t\tepatch \"${FILESDIR}/${P}-statistics-clear.patch\"\n+\t\tepatch \"${FILESDIR}/${P}-ntpdc.patch\"\n+\tfi\n+}\n+\n+src_prepare() { eautoreconf; }\n+\n+src_configure() {\n+\tappend-flags -fno-strict-aliasing\n+\teconf \\\n+\t\t$(use_enable snmp) \\\n+\t\t$(use_enable experimental experimental-options) \\\n+\t\t$(use_enable statistics) \\\n+\t\t$(use_enable ntp ntpdc) \\\n+\t\t$(use_enable debug runtime-debug) \\\n+\t\t$(use_enable daemon)\n+}\n+\n+src_install() {\n+\temake install DESTDIR=\"${D}\" || die \"install failed\"\n+\n+\tinsinto /etc\n+\tnewins \"${S}/src/ptpd2.conf.minimal\" ptpd2.conf\n+\n+\tdodoc \"${S}/src/ptpd2.conf.default-full\"\n+\tdodoc \"${S}/src/ptpd2.conf.minimal\"\n+\n+\tnewinitd \"${FILESDIR}/ptpd.rc\" ptpd2\n+\tnewconfd \"${FILESDIR}/ptpd.confd\" ptpd2\n+\n+\tsystemd_newunit \"${FILESDIR}/ptpd.service\" ptpd2.service","path":"net-misc/ptpd/ptpd-2.3.0.ebuild","position":78,"original_position":78,"commit_id":"2f4f95e1478317e3c14af948d1f987240010700c","original_commit_id":"2f4f95e1478317e3c14af948d1f987240010700c","user":{"login":"mgorny","id":110765,"avatar_url":"https://avatars.githubusercontent.com/u/110765?v=3","gravatar_id":"","url":"https://api.github.com/users/mgorny","html_url":"https://github.com/mgorny","followers_url":"https://api.github.com/users/mgorny/followers","following_url":"https://api.github.com/users/mgorny/following{/other_user}","gists_url":"https://api.github.com/users/mgorny/gists{/gist_id}","starred_url":"https://api.github.com/users/mgorny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgorny/subscriptions","organizations_url":"https://api.github.com/users/mgorny/orgs","repos_url":"https://api.github.com/users/mgorny/repos","events_url":"https://api.github.com/users/mgorny/events{/privacy}","received_events_url":"https://api.github.com/users/mgorny/received_events","type":"User","site_admin":false},"body":"Why not name the file `ptpd2.service` and avoid newunit?","created_at":"2015-06-10T21:00:27Z","updated_at":"2015-06-10T21:00:27Z","html_url":"https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/144#discussion_r32165856","pull_request_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/comments/32165856"},"html":{"href":"https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/144#discussion_r32165856"},"pull_request":{"href":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/144"}}},"pull_request":{"url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/144","id":37105921,"html_url":"https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/144","diff_url":"https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/144.diff","patch_url":"https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/144.patch","issue_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/issues/144","number":144,"state":"open","locked":false,"title":"new package net-misc/ptpd","user":{"login":"j123b567","id":2813154,"avatar_url":"https://avatars.githubusercontent.com/u/2813154?v=3","gravatar_id":"","url":"https://api.github.com/users/j123b567","html_url":"https://github.com/j123b567","followers_url":"https://api.github.com/users/j123b567/followers","following_url":"https://api.github.com/users/j123b567/following{/other_user}","gists_url":"https://api.github.com/users/j123b567/gists{/gist_id}","starred_url":"https://api.github.com/users/j123b567/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j123b567/subscriptions","organizations_url":"https://api.github.com/users/j123b567/orgs","repos_url":"https://api.github.com/users/j123b567/repos","events_url":"https://api.github.com/users/j123b567/events{/privacy}","received_events_url":"https://api.github.com/users/j123b567/received_events","type":"User","site_admin":false},"body":"PTPd is implementation of Precise Time Protocol (IEEE 1588)\r\n\r\nsee also https://bugs.gentoo.org/show_bug.cgi?id=492508","created_at":"2015-06-07T12:35:17Z","updated_at":"2015-06-10T21:00:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e58243ba6b426ac54668912d9fd153640edcc944","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/144/commits","review_comments_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/144/comments","review_comment_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/issues/144/comments","statuses_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/statuses/2f4f95e1478317e3c14af948d1f987240010700c","head":{"label":"j123b567:ptpd","ref":"ptpd","sha":"2f4f95e1478317e3c14af948d1f987240010700c","user":{"login":"j123b567","id":2813154,"avatar_url":"https://avatars.githubusercontent.com/u/2813154?v=3","gravatar_id":"","url":"https://api.github.com/users/j123b567","html_url":"https://github.com/j123b567","followers_url":"https://api.github.com/users/j123b567/followers","following_url":"https://api.github.com/users/j123b567/following{/other_user}","gists_url":"https://api.github.com/users/j123b567/gists{/gist_id}","starred_url":"https://api.github.com/users/j123b567/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j123b567/subscriptions","organizations_url":"https://api.github.com/users/j123b567/orgs","repos_url":"https://api.github.com/users/j123b567/repos","events_url":"https://api.github.com/users/j123b567/events{/privacy}","received_events_url":"https://api.github.com/users/j123b567/received_events","type":"User","site_admin":false},"repo":{"id":37008604,"name":"gentoo-portage-rsync-mirror","full_name":"j123b567/gentoo-portage-rsync-mirror","owner":{"login":"j123b567","id":2813154,"avatar_url":"https://avatars.githubusercontent.com/u/2813154?v=3","gravatar_id":"","url":"https://api.github.com/users/j123b567","html_url":"https://github.com/j123b567","followers_url":"https://api.github.com/users/j123b567/followers","following_url":"https://api.github.com/users/j123b567/following{/other_user}","gists_url":"https://api.github.com/users/j123b567/gists{/gist_id}","starred_url":"https://api.github.com/users/j123b567/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j123b567/subscriptions","organizations_url":"https://api.github.com/users/j123b567/orgs","repos_url":"https://api.github.com/users/j123b567/repos","events_url":"https://api.github.com/users/j123b567/events{/privacy}","received_events_url":"https://api.github.com/users/j123b567/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/j123b567/gentoo-portage-rsync-mirror","description":"Git mirror of the official Gentoo ebuild repository (created from rsync)","fork":true,"url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror","forks_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/forks","keys_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/teams","hooks_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/hooks","issue_events_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/issues/events{/number}","events_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/events","assignees_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/assignees{/user}","branches_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/branches{/branch}","tags_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/tags","blobs_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/git/refs{/sha}","trees_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/statuses/{sha}","languages_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/languages","stargazers_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/stargazers","contributors_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/contributors","subscribers_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/subscribers","subscription_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/subscription","commits_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/commits{/sha}","git_commits_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/git/commits{/sha}","comments_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/comments{/number}","issue_comment_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/issues/comments{/number}","contents_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/contents/{+path}","compare_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/merges","archive_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/downloads","issues_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/issues{/number}","pulls_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/pulls{/number}","milestones_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/milestones{/number}","notifications_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/labels{/name}","releases_url":"https://api.github.com/repos/j123b567/gentoo-portage-rsync-mirror/releases{/id}","created_at":"2015-06-07T07:45:50Z","updated_at":"2015-06-07T07:51:05Z","pushed_at":"2015-06-07T12:52:09Z","git_url":"git://github.com/j123b567/gentoo-portage-rsync-mirror.git","ssh_url":"git@github.com:j123b567/gentoo-portage-rsync-mirror.git","clone_url":"https://github.com/j123b567/gentoo-portage-rsync-mirror.git","svn_url":"https://github.com/j123b567/gentoo-portage-rsync-mirror","homepage":"","size":1149438,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"master"}},"base":{"label":"gentoo:master","ref":"master","sha":"3544d7124f51c74d45574c06792824dbc8db348b","user":{"login":"gentoo","id":52242,"avatar_url":"https://avatars.githubusercontent.com/u/52242?v=3","gravatar_id":"","url":"https://api.github.com/users/gentoo","html_url":"https://github.com/gentoo","followers_url":"https://api.github.com/users/gentoo/followers","following_url":"https://api.github.com/users/gentoo/following{/other_user}","gists_url":"https://api.github.com/users/gentoo/gists{/gist_id}","starred_url":"https://api.github.com/users/gentoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gentoo/subscriptions","organizations_url":"https://api.github.com/users/gentoo/orgs","repos_url":"https://api.github.com/users/gentoo/repos","events_url":"https://api.github.com/users/gentoo/events{/privacy}","received_events_url":"https://api.github.com/users/gentoo/received_events","type":"Organization","site_admin":false},"repo":{"id":29787434,"name":"gentoo-portage-rsync-mirror","full_name":"gentoo/gentoo-portage-rsync-mirror","owner":{"login":"gentoo","id":52242,"avatar_url":"https://avatars.githubusercontent.com/u/52242?v=3","gravatar_id":"","url":"https://api.github.com/users/gentoo","html_url":"https://github.com/gentoo","followers_url":"https://api.github.com/users/gentoo/followers","following_url":"https://api.github.com/users/gentoo/following{/other_user}","gists_url":"https://api.github.com/users/gentoo/gists{/gist_id}","starred_url":"https://api.github.com/users/gentoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gentoo/subscriptions","organizations_url":"https://api.github.com/users/gentoo/orgs","repos_url":"https://api.github.com/users/gentoo/repos","events_url":"https://api.github.com/users/gentoo/events{/privacy}","received_events_url":"https://api.github.com/users/gentoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gentoo/gentoo-portage-rsync-mirror","description":"Git mirror of the official Gentoo ebuild repository (created from rsync)","fork":false,"url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror","forks_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/forks","keys_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/teams","hooks_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/hooks","issue_events_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/issues/events{/number}","events_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/events","assignees_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/assignees{/user}","branches_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/branches{/branch}","tags_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/tags","blobs_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/git/refs{/sha}","trees_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/statuses/{sha}","languages_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/languages","stargazers_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/stargazers","contributors_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/contributors","subscribers_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/subscribers","subscription_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/subscription","commits_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/commits{/sha}","git_commits_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/git/commits{/sha}","comments_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/comments{/number}","issue_comment_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/issues/comments{/number}","contents_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/contents/{+path}","compare_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/merges","archive_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/downloads","issues_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/issues{/number}","pulls_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls{/number}","milestones_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/milestones{/number}","notifications_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/labels{/name}","releases_url":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/releases{/id}","created_at":"2015-01-24T18:48:40Z","updated_at":"2015-06-05T04:21:21Z","pushed_at":"2015-06-10T20:31:30Z","git_url":"git://github.com/gentoo/gentoo-portage-rsync-mirror.git","ssh_url":"git@github.com:gentoo/gentoo-portage-rsync-mirror.git","clone_url":"https://github.com/gentoo/gentoo-portage-rsync-mirror.git","svn_url":"https://github.com/gentoo/gentoo-portage-rsync-mirror","homepage":"","size":1181041,"stargazers_count":67,"watchers_count":67,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":8,"forks":46,"open_issues":8,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/144"},"html":{"href":"https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/144"},"issue":{"href":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/issues/144"},"comments":{"href":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/gentoo/gentoo-portage-rsync-mirror/statuses/2f4f95e1478317e3c14af948d1f987240010700c"}}}}