LouisBrunner / avahi2dns

Small DNS server which interface with avahi (perfect for Alpine Linux and musl)
MIT License
21 stars 4 forks source link

Add an openrc file for use in alpine linux #3

Closed espindola closed 10 months ago

espindola commented 10 months ago

With this avahi2dns can be used as a system daemon by coping openrc/avahi2dns to /etc/init.d/avahi2dns and the compiled binary to somewhere in the system path.

sonarcloud[bot] commented 10 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

LouisBrunner commented 10 months ago

LGTM, I just have one question: how would a user install that file on their system? Each release has pre-build binaries for all major OS and arch combo but not this file?

espindola commented 10 months ago

LGTM, I just have one question: how would a user install that file on their system? Each release has pre-build binaries for all major OS and arch combo but not this file?

avahi2dns is still not include in alpine unfortunately: avahi packages.

So for now installation is:

$ go build
$ sudo cp avahi2dns /usr/bin
$ sudo cp  openrc/avahi2dns /etc/init.d/
$ sudo rc-update add avahi2dns