Added service file and package generation

This commit is contained in:
df
2020-07-28 00:28:33 +01:00
parent cfdf09a1dc
commit 7223f118a7
5 changed files with 59 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ BIN=testmdnsd
LIBTINYSVCMDNS_OBJS = mdns.o mdnsd.o
.PHONY: all clean
.PHONY: all clean opkg
all: $(BIN) libtinysvcmdns.a
@@ -44,4 +44,10 @@ libtinysvcmdns.a: $(patsubst %, libtinysvcmdns.a(%), $(LIBTINYSVCMDNS_OBJS))
mdnsd: testmdnsd
strip -o $@ $<
install -C -D -p mdnsd sbin/
opkg: mdnsd $(wildcard opkg/CONTROL/*) etc/init.d/S80mdnsd
install -D -p mdnsd opkg/sbin
install -D -p etc/init.d/S80mdnsd opkg/etc/init.d/
opkg-pack opkg