{"action":"created","comment":{"url":"https://api.github.com/repos/void-linux/void-packages/pulls/comments/217890418","pull_request_review_id":155719671,"id":217890418,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzg5MDQxOA==","diff_hunk":"@@ -1302,6 +1326,360 @@ cache during the install/removal of the package\n - `font_dirs`: which should be set to the directory where the package\n installs its fonts\n \n+<a id=\"xbps_triggers\"></a>\n+### XBPS Triggers\n+\n+XBPS triggers is a collection of snippets of code, provided by the `xbps-triggers`\n+package, that are added to the INSTALL/REMOVE scripts of packages either manually\n+by setting the `triggers` variable in the template, or automatically, when specific\n+conditions are met.\n+\n+The following is a list for each trigger available, its current status, what it does\n+and what conditions need to be met so that it is included automatically on a package.\n+\n+This is not a complete overview of the package. It is recommended to read the variables\n+referenced and the triggers themselves.\n+\n+<a id=\"triggers_appstream_cache\"></a>\n+#### appstream-cache\n+\n+The appstream-cache trigger is responsible for rebuilding the appstream metadata cache.\n+\n+During installation it executes `appstreamcli refresh-cache --verbose --force --datapath\n+$APPSTREAM_PATHS --cachepath var/cache/app-info/gv`. By default APPSTREAM_PATHS are all the\n+paths that appstreamcli will look into for metadata files.\n+\n+The directories searched by appstreamcli are:\n+\n+- `usr/share/appdata`\n+- `usr/share/app-info`\n+- `var/lib/app-info`\n+- `var/cache/app-info`\n+\n+During removal of the `AppStream` package it will remove the `var/cache/app-info/gv`\n+directory.\n+\n+It is automatically added to packages that have XML files under one of the directories\n+searched by appstreamcli.\n+\n+<a id=\"triggers_binfmts\"></a>\n+#### binfmts\n+\n+The binfmts trigger is responsible for registration and removal of arbitrary\n+executable binary formats, know as binfmts.\n+\n+During installation/removal it uses `update-binfmts` from the `binfmt-support` package\n+to register/remove entries from the arbitrary executable binary formats database.\n+\n+To include the trigger use the `binfmts` variable, as the trigger won't do anything unless\n+it is defined.\n+\n+<a id=\"triggers_dkms\"></a>\n+#### dkms\n+\n+The dkms trigger is responsible for compiling and removing dynamic kernel modules of a\n+package.\n+\n+During installation the trigger compiles and install the dynamic module for all `linux`","path":"Manual.md","position":89,"original_position":89,"commit_id":"807a91f070413129e7973abb06612ad4e63756d7","original_commit_id":"807a91f070413129e7973abb06612ad4e63756d7","user":{"login":"Cogitri","id":8766773,"node_id":"MDQ6VXNlcjg3NjY3NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/8766773?v=4","gravatar_id":"","url":"https://api.github.com/users/Cogitri","html_url":"https://github.com/Cogitri","followers_url":"https://api.github.com/users/Cogitri/followers","following_url":"https://api.github.com/users/Cogitri/following{/other_user}","gists_url":"https://api.github.com/users/Cogitri/gists{/gist_id}","starred_url":"https://api.github.com/users/Cogitri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cogitri/subscriptions","organizations_url":"https://api.github.com/users/Cogitri/orgs","repos_url":"https://api.github.com/users/Cogitri/repos","events_url":"https://api.github.com/users/Cogitri/events{/privacy}","received_events_url":"https://api.github.com/users/Cogitri/received_events","type":"User","site_admin":false},"body":"`installs`","created_at":"2018-09-15T17:20:55Z","updated_at":"2018-09-15T17:37:41Z","html_url":"https://github.com/void-linux/void-packages/pull/2011#discussion_r217890418","pull_request_url":"https://api.github.com/repos/void-linux/void-packages/pulls/2011","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/void-linux/void-packages/pulls/comments/217890418"},"html":{"href":"https://github.com/void-linux/void-packages/pull/2011#discussion_r217890418"},"pull_request":{"href":"https://api.github.com/repos/void-linux/void-packages/pulls/2011"}}},"pull_request":{"url":"https://api.github.com/repos/void-linux/void-packages/pulls/2011","id":209634893,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5NjM0ODkz","html_url":"https://github.com/void-linux/void-packages/pull/2011","diff_url":"https://github.com/void-linux/void-packages/pull/2011.diff","patch_url":"https://github.com/void-linux/void-packages/pull/2011.patch","issue_url":"https://api.github.com/repos/void-linux/void-packages/issues/2011","number":2011,"state":"open","locked":false,"title":"Manual.md: document xbps triggers.","user":{"login":"maxice8","id":30738253,"node_id":"MDQ6VXNlcjMwNzM4MjUz","avatar_url":"https://avatars3.githubusercontent.com/u/30738253?v=4","gravatar_id":"","url":"https://api.github.com/users/maxice8","html_url":"https://github.com/maxice8","followers_url":"https://api.github.com/users/maxice8/followers","following_url":"https://api.github.com/users/maxice8/following{/other_user}","gists_url":"https://api.github.com/users/maxice8/gists{/gist_id}","starred_url":"https://api.github.com/users/maxice8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxice8/subscriptions","organizations_url":"https://api.github.com/users/maxice8/orgs","repos_url":"https://api.github.com/users/maxice8/repos","events_url":"https://api.github.com/users/maxice8/events{/privacy}","received_events_url":"https://api.github.com/users/maxice8/received_events","type":"User","site_admin":false},"body":null,"created_at":"2018-08-20T20:31:09Z","updated_at":"2018-09-15T17:37:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e47758617e6100569f36a328a1fe7da1e432f458","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":979191434,"node_id":"MDU6TGFiZWw5NzkxOTE0MzQ=","url":"https://api.github.com/repos/void-linux/void-packages/labels/WIP","name":"WIP","color":"b2e0f7","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/void-linux/void-packages/pulls/2011/commits","review_comments_url":"https://api.github.com/repos/void-linux/void-packages/pulls/2011/comments","review_comment_url":"https://api.github.com/repos/void-linux/void-packages/pulls/comments{/number}","comments_url":"https://api.github.com/repos/void-linux/void-packages/issues/2011/comments","statuses_url":"https://api.github.com/repos/void-linux/void-packages/statuses/807a91f070413129e7973abb06612ad4e63756d7","head":{"label":"maxice8:document-xbps-triggers","ref":"document-xbps-triggers","sha":"807a91f070413129e7973abb06612ad4e63756d7","user":{"login":"maxice8","id":30738253,"node_id":"MDQ6VXNlcjMwNzM4MjUz","avatar_url":"https://avatars3.githubusercontent.com/u/30738253?v=4","gravatar_id":"","url":"https://api.github.com/users/maxice8","html_url":"https://github.com/maxice8","followers_url":"https://api.github.com/users/maxice8/followers","following_url":"https://api.github.com/users/maxice8/following{/other_user}","gists_url":"https://api.github.com/users/maxice8/gists{/gist_id}","starred_url":"https://api.github.com/users/maxice8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxice8/subscriptions","organizations_url":"https://api.github.com/users/maxice8/orgs","repos_url":"https://api.github.com/users/maxice8/repos","events_url":"https://api.github.com/users/maxice8/events{/privacy}","received_events_url":"https://api.github.com/users/maxice8/received_events","type":"User","site_admin":false},"repo":{"id":137528258,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc1MjgyNTg=","name":"UnlimitedPullRequestWorks","full_name":"maxice8/UnlimitedPullRequestWorks","private":false,"owner":{"login":"maxice8","id":30738253,"node_id":"MDQ6VXNlcjMwNzM4MjUz","avatar_url":"https://avatars3.githubusercontent.com/u/30738253?v=4","gravatar_id":"","url":"https://api.github.com/users/maxice8","html_url":"https://github.com/maxice8","followers_url":"https://api.github.com/users/maxice8/followers","following_url":"https://api.github.com/users/maxice8/following{/other_user}","gists_url":"https://api.github.com/users/maxice8/gists{/gist_id}","starred_url":"https://api.github.com/users/maxice8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxice8/subscriptions","organizations_url":"https://api.github.com/users/maxice8/orgs","repos_url":"https://api.github.com/users/maxice8/repos","events_url":"https://api.github.com/users/maxice8/events{/privacy}","received_events_url":"https://api.github.com/users/maxice8/received_events","type":"User","site_admin":false},"html_url":"https://github.com/maxice8/UnlimitedPullRequestWorks","description":"The XBPS source packages collection","fork":true,"url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks","forks_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/forks","keys_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/teams","hooks_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/hooks","issue_events_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/issues/events{/number}","events_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/events","assignees_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/assignees{/user}","branches_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/branches{/branch}","tags_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/tags","blobs_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/statuses/{sha}","languages_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/languages","stargazers_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/stargazers","contributors_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/contributors","subscribers_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/subscribers","subscription_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/subscription","commits_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/contents/{+path}","compare_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/merges","archive_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/downloads","issues_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/issues{/number}","pulls_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/pulls{/number}","milestones_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/milestones{/number}","notifications_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/labels{/name}","releases_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/releases{/id}","deployments_url":"https://api.github.com/repos/maxice8/UnlimitedPullRequestWorks/deployments","created_at":"2018-06-15T20:16:19Z","updated_at":"2018-09-15T10:27:10Z","pushed_at":"2018-09-15T11:28:32Z","git_url":"git://github.com/maxice8/UnlimitedPullRequestWorks.git","ssh_url":"git@github.com:maxice8/UnlimitedPullRequestWorks.git","clone_url":"https://github.com/maxice8/UnlimitedPullRequestWorks.git","svn_url":"https://github.com/maxice8/UnlimitedPullRequestWorks","homepage":null,"size":167426,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"void-linux:master","ref":"master","sha":"e58b04a8c369e92c1cd9c190e2dd1991c7760aee","user":{"login":"void-linux","id":37247796,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MjQ3Nzk2","avatar_url":"https://avatars1.githubusercontent.com/u/37247796?v=4","gravatar_id":"","url":"https://api.github.com/users/void-linux","html_url":"https://github.com/void-linux","followers_url":"https://api.github.com/users/void-linux/followers","following_url":"https://api.github.com/users/void-linux/following{/other_user}","gists_url":"https://api.github.com/users/void-linux/gists{/gist_id}","starred_url":"https://api.github.com/users/void-linux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/void-linux/subscriptions","organizations_url":"https://api.github.com/users/void-linux/orgs","repos_url":"https://api.github.com/users/void-linux/repos","events_url":"https://api.github.com/users/void-linux/events{/privacy}","received_events_url":"https://api.github.com/users/void-linux/received_events","type":"Organization","site_admin":false},"repo":{"id":137503442,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc1MDM0NDI=","name":"void-packages","full_name":"void-linux/void-packages","private":false,"owner":{"login":"void-linux","id":37247796,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MjQ3Nzk2","avatar_url":"https://avatars1.githubusercontent.com/u/37247796?v=4","gravatar_id":"","url":"https://api.github.com/users/void-linux","html_url":"https://github.com/void-linux","followers_url":"https://api.github.com/users/void-linux/followers","following_url":"https://api.github.com/users/void-linux/following{/other_user}","gists_url":"https://api.github.com/users/void-linux/gists{/gist_id}","starred_url":"https://api.github.com/users/void-linux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/void-linux/subscriptions","organizations_url":"https://api.github.com/users/void-linux/orgs","repos_url":"https://api.github.com/users/void-linux/repos","events_url":"https://api.github.com/users/void-linux/events{/privacy}","received_events_url":"https://api.github.com/users/void-linux/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/void-linux/void-packages","description":"The Void source packages collection","fork":false,"url":"https://api.github.com/repos/void-linux/void-packages","forks_url":"https://api.github.com/repos/void-linux/void-packages/forks","keys_url":"https://api.github.com/repos/void-linux/void-packages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/void-linux/void-packages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/void-linux/void-packages/teams","hooks_url":"https://api.github.com/repos/void-linux/void-packages/hooks","issue_events_url":"https://api.github.com/repos/void-linux/void-packages/issues/events{/number}","events_url":"https://api.github.com/repos/void-linux/void-packages/events","assignees_url":"https://api.github.com/repos/void-linux/void-packages/assignees{/user}","branches_url":"https://api.github.com/repos/void-linux/void-packages/branches{/branch}","tags_url":"https://api.github.com/repos/void-linux/void-packages/tags","blobs_url":"https://api.github.com/repos/void-linux/void-packages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/void-linux/void-packages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/void-linux/void-packages/git/refs{/sha}","trees_url":"https://api.github.com/repos/void-linux/void-packages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/void-linux/void-packages/statuses/{sha}","languages_url":"https://api.github.com/repos/void-linux/void-packages/languages","stargazers_url":"https://api.github.com/repos/void-linux/void-packages/stargazers","contributors_url":"https://api.github.com/repos/void-linux/void-packages/contributors","subscribers_url":"https://api.github.com/repos/void-linux/void-packages/subscribers","subscription_url":"https://api.github.com/repos/void-linux/void-packages/subscription","commits_url":"https://api.github.com/repos/void-linux/void-packages/commits{/sha}","git_commits_url":"https://api.github.com/repos/void-linux/void-packages/git/commits{/sha}","comments_url":"https://api.github.com/repos/void-linux/void-packages/comments{/number}","issue_comment_url":"https://api.github.com/repos/void-linux/void-packages/issues/comments{/number}","contents_url":"https://api.github.com/repos/void-linux/void-packages/contents/{+path}","compare_url":"https://api.github.com/repos/void-linux/void-packages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/void-linux/void-packages/merges","archive_url":"https://api.github.com/repos/void-linux/void-packages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/void-linux/void-packages/downloads","issues_url":"https://api.github.com/repos/void-linux/void-packages/issues{/number}","pulls_url":"https://api.github.com/repos/void-linux/void-packages/pulls{/number}","milestones_url":"https://api.github.com/repos/void-linux/void-packages/milestones{/number}","notifications_url":"https://api.github.com/repos/void-linux/void-packages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/void-linux/void-packages/labels{/name}","releases_url":"https://api.github.com/repos/void-linux/void-packages/releases{/id}","deployments_url":"https://api.github.com/repos/void-linux/void-packages/deployments","created_at":"2018-06-15T15:25:34Z","updated_at":"2018-09-15T17:24:14Z","pushed_at":"2018-09-15T17:23:57Z","git_url":"git://github.com/void-linux/void-packages.git","ssh_url":"git@github.com:void-linux/void-packages.git","clone_url":"https://github.com/void-linux/void-packages.git","svn_url":"https://github.com/void-linux/void-packages","homepage":"https://voidlinux.org","size":170795,"stargazers_count":194,"watchers_count":194,"language":"Shell","has_issues":true,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":255,"mirror_url":null,"archived":false,"open_issues_count":205,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":255,"open_issues":205,"watchers":194,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/void-linux/void-packages/pulls/2011"},"html":{"href":"https://github.com/void-linux/void-packages/pull/2011"},"issue":{"href":"https://api.github.com/repos/void-linux/void-packages/issues/2011"},"comments":{"href":"https://api.github.com/repos/void-linux/void-packages/issues/2011/comments"},"review_comments":{"href":"https://api.github.com/repos/void-linux/void-packages/pulls/2011/comments"},"review_comment":{"href":"https://api.github.com/repos/void-linux/void-packages/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/void-linux/void-packages/pulls/2011/commits"},"statuses":{"href":"https://api.github.com/repos/void-linux/void-packages/statuses/807a91f070413129e7973abb06612ad4e63756d7"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Cogitri"}}