Tatsh / tatsh-overlay

Personal Gentoo Portage overlay.
https://tatsh.github.io/tatsh-overlay/
GNU General Public License v2.0
35 stars 10 forks source link

net-dns/pihole and net-dns/pihole: prepare *.db files by standard package manager command #121

Closed Bogdan107 closed 2 years ago

Bogdan107 commented 2 years ago

This pihole-5.6.ebuild-macvendor.db.patch allows to install macvendor.db file by standard package manager configuration command:

emerge net-dns/pihole --config

This pihole-ftl-5.11.ebuild-gravity.db.patch allows to prepare gravity.db database structure by standard package manager configuration command:

emerge net-dns/pihole-ftl --config
Tatsh commented 2 years ago

The first patch doesn't have MACVENDOR_URI defined. Also I do not think pkg_config should be called from src_install. Maybe it can be called from pkg_postinst but I thought emerge --config was to be run by the user separately.

Tatsh commented 2 years ago

net-dns/pihole pulls in net-dns/pihole-FTL so the second patch has to happen in the pihole ebuild.

Bogdan107 commented 2 years ago

The first patch doesn't have MACVENDOR_URI defined.

# Add this line after SRC_URI:
MACVENDOR_URI="https://ftl.pi-hole.net/macvendor.db"

Link from https://programmersought.com/article/68718054610/

Bogdan107 commented 2 years ago

Patch for ebuild: pihole-5.6.ebuild-padd+macvendor+gravity.patch

Tatsh commented 2 years ago

This is done. PADD will be a separate package.