pi-hole:development
← Graf-Euler:gentoo_support
opened 11:11AM - 21 Jan 18 UTC
**By submitting this pull request, I confirm the following:**
- [X] I have re…ad and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md), as well as this entire template.
- [X] I have made only one major change in my proposed changes.
- [X] I have commented my proposed changes within the code.
- [X] I have tested my proposed changes, and have included unit tests where possible.
- [X] I am willing to help maintain this change if there are issues with it later.
- [X] I give this submission freely and claim no ownership.
- [X] It is compatible with the [EUPL 1.2 license](https://opensource.org/licenses/EUPL-1.1)
- [X] I have squashed any insignificant commits. ([`git rebase`](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
- [X] I have Signed Off all commits. ([`git commit --signoff`](https://git-scm.com/docs/git-commit#git-commit---signoff))
---
**What does this PR aim to accomplish?:**
Add support for Gentoo OS to Pi-hole, see [this feature request](https://discourse.pi-hole.net/t/add-gentoo-as-a-supported-os/2011).
**How does this PR accomplish the above?:**
Originally described [here](https://discourse.pi-hole.net/t/add-gentoo-as-a-supported-os/2011/7?u=graf_euler).
> 1. Added a gentoo section to the distro_check() function to fill the global variables accordingly.
> 2. As gentoo uses OpenRC init system as default, I added checks if the ‘service’-command is available before it is used (this also affects the pihole executable).
> 3. Added a lighttpd.conf.gentoo
> 4. For gentoo, the install-script does not install the dependencies! The script outputs the missing packages and requests the user to install them. This allows the user to review the use flags of the packages and review the comments of portage, since some packages require some further actions after installing them.
**What documentation changes (if any) are needed to support this PR?:**
Add Gentoo to supported OS