name: pihole
version: 2.9.6
summary: A black hole for Internet advertisements
description: |
Pi-hole is a DNS-based, platform-agnostic, network-wide ad blocker.
# icon: setup/gui/Vortex.png
grade: devel
confinement: devmode
apps:
# Pi-hole is a DNS server at it's core, so we need to install a resolver
# dnsmasq apps/parts forked from https://github.com/lool/dnsmasq-snap
dnsmasq:
command: bin/dnsmasq
daemon: simple
# The DNS server needs access to the network to function properly
plugs:
- network
- network-bind
- network-control
parts:
dnsmasq:
plugin: make
source: git://thekelleys.org.uk/dnsmasq.git
organize:
usr/local/sbin/dnsmasq: bin/dnsmasq
# A list of files from a part’s installation to expose in the snap
snap:
- bin/dnsmasq
files-to-copy:
# We need several supplemental files for the DNS and Web servers
# Just use the dump plugin to copy them over
plugin: dump
source: .
organize:
# We need a custom config file for the DNS server
dnsmasq.conf: /var/snap/pihole/common/dnsmasq.conf