Git Product home page Git Product logo

pihole-snap's Introduction

Building and Installing

Note: you cannot currently install this via snap install pihole since this repo is incomplete. If you want to play with it, you'll need to clone the repo, and then run these commands:

snapcraft
snap install pihole_4.0_amd64.snap --dangerous --devmode

If you are developing and want to rebuild, we added a redo script that does everything for you.

./redo.sh

Snapcraft Summit Notes

End of day one

  • pihole dnsmasq fork building
  • Patched to use var/lib/snap instead of /etc and /var/run
  • Created a patchfile rather than ninja files with sed
  • Located files in more logical directories (matching non-snap install under /var/snap/pihole/common)
/var/snap/pihole/common/
├── etc
│   └── pihole
│       ├── dnsmasq.conf
│       ├── gravity.list
│       ├── pihole-FTL.db
│       └── setupVars.conf
└── var
    ├── log
    │   └── pihole-FTL.log
    └── run
        ├── dnsmasq.pid
        ├── pihole
        │   └── FTL.sock
        ├── pihole-FTL.pid
        └── pihole-FTL.port

Future things

  • Test it works
  • Resolve and block
  • First run wizard
  • whiptail added to stage packages
  • install script + gravity components to munge and install block lists
  • snapctl restart itself
  • Tidy up locations of config files, block lists, lock files
  • currently in /var/snap/pihole/common
  • Refresh block lists
  • Strict confinement
  • Web admin tool
  • Patch upstream pihole-ftl to ifdef $SNAP for paths rather than patch in yaml
  • Trim down snap to save space

pihole-snap's People

Contributors

jacobsalmela avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.