Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add OpenWRT Makefile #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add OpenWRT Makefile #111

wants to merge 1 commit into from

Conversation

honwen
Copy link
Contributor

@honwen honwen commented Nov 22, 2020

@ameshkov
Copy link
Member

Tbh, I am not fully sure about the service part.

Wouldn't it be better to implement #39 using kardianos/service (just like we do in AdGuard Home), and reuse it?
Also, I think that implementing dnsproxy configuration should be done prior to this task.

@honwen
Copy link
Contributor Author

honwen commented Nov 23, 2020

As Said in AdguardTeam/AdGuardHome#1348, kardianos/service does not match the initscripts standard of openwrt, and openwrt require a makefile to add preinstalled packages to the final image.

@ameshkov
Copy link
Member

@honwen sure, and here's what we do in AGH to handle this:
https://github.com/AdguardTeam/AdGuardHome/blob/master/internal/home/service.go#L456

Search for util.IsOpenWRT there to see the necessary changes.

@dhewg
Copy link

dhewg commented Jul 20, 2021

This is an OpenWRT package, it doesn't belong here.
But the package has been added already: openwrt/packages#16130

On the good side, while this one downloaded a binary release, the merged package compiles the go sources.
But the merged one doesn't ship a init/uci config yet, while this one does.

@honwen / @1715173329 maybe you're interested to get that merged?

@1715173329
Copy link

@dhewg
Copy link

dhewg commented Jul 22, 2021

Nice! There're a few small things I'd change, but it's not up to me ;)
Let's discuss that in a openwrt/packages PR so other reviewers will see that too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants