18
recipes/api/libgetdns/content.mk
Normal file
18
recipes/api/libgetdns/content.mk
Normal file
@@ -0,0 +1,18 @@
|
||||
content: include lib/symbols/libgetdns LICENSE
|
||||
|
||||
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/getdns)
|
||||
|
||||
include:
|
||||
cp -r $(PORT_DIR)/$@ $@
|
||||
|
||||
lib/symbols/libgetdns:
|
||||
$(mirror_from_rep_dir)
|
||||
|
||||
LICENSE:
|
||||
cp $(PORT_DIR)/src/lib/getdns/$@ $@
|
||||
|
||||
content: include/config.h
|
||||
|
||||
include/config.h:
|
||||
mkdir -p $(dir $@)
|
||||
cp $(REP_DIR)/src/lib/getdns/config.h $@
|
||||
1
recipes/api/libgetdns/hash
Normal file
1
recipes/api/libgetdns/hash
Normal file
@@ -0,0 +1 @@
|
||||
2019-02-25 468537af47bef2c1aad3d76f33839880b158ed4b
|
||||
2
recipes/pkg/nic_router-nat-dns/README
Normal file
2
recipes/pkg/nic_router-nat-dns/README
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
Runtime for using the NIC router for NAT and DNS
|
||||
10
recipes/pkg/nic_router-nat-dns/archives
Normal file
10
recipes/pkg/nic_router-nat-dns/archives
Normal file
@@ -0,0 +1,10 @@
|
||||
_/src/nic_router
|
||||
_/src/stubby
|
||||
_/src/libc
|
||||
_/src/libssl
|
||||
_/src/libgetdns
|
||||
_/src/libcrypto
|
||||
_/src/posix
|
||||
_/src/vfs
|
||||
_/src/vfs_lxip
|
||||
_/src/vfs_jitterentropy
|
||||
1
recipes/pkg/nic_router-nat-dns/hash
Normal file
1
recipes/pkg/nic_router-nat-dns/hash
Normal file
@@ -0,0 +1 @@
|
||||
2020-05-26 ffddbe1ef8f91cc6eb260ae5da29c76fa0d1b2fe
|
||||
91
recipes/pkg/nic_router-nat-dns/runtime
Normal file
91
recipes/pkg/nic_router-nat-dns/runtime
Normal file
@@ -0,0 +1,91 @@
|
||||
<runtime ram="48M" caps="600" binary="init">
|
||||
|
||||
<requires> <nic/> </requires>
|
||||
<provides> <nic/> </provides>
|
||||
|
||||
<config>
|
||||
<parent-provides>
|
||||
<service name="CPU"/>
|
||||
<service name="LOG"/>
|
||||
<service name="PD"/>
|
||||
<service name="RM"/>
|
||||
<service name="ROM"/>
|
||||
<service name="Nic"/>
|
||||
<service name="Report"/>
|
||||
<service name="Rtc"/>
|
||||
<service name="Timer"/>
|
||||
</parent-provides>
|
||||
<service name="Nic">
|
||||
<default-policy> <child name="router"/> </default-policy> </service>
|
||||
<start name="router" caps="300">
|
||||
<binary name="nic_router"/>
|
||||
<resource name="RAM" quantum="10M"/>
|
||||
<provides> <service name="Nic"/> </provides>
|
||||
<config verbose_domain_state="yes">
|
||||
<default-policy domain="default" />
|
||||
<uplink domain="uplink" />
|
||||
<domain name="uplink">
|
||||
<nat domain="default" tcp-ports="1000" udp-ports="1000"/>
|
||||
</domain>
|
||||
<domain name="default" interface="10.0.1.1/24">
|
||||
<dhcp-server ip_first="10.0.1.4"
|
||||
ip_last="10.0.1.200"
|
||||
ip_lease_time_sec="360"
|
||||
dns_server="10.0.1.2"/>
|
||||
<tcp dst="0.0.0.0/0"><permit-any domain="uplink"/></tcp>
|
||||
<udp dst="0.0.0.0/0"><permit-any domain="uplink"/></udp>
|
||||
</domain>
|
||||
</config>
|
||||
<route>
|
||||
<any-service> <parent/> </any-service>
|
||||
</route>
|
||||
</start>
|
||||
<start name="stubby" caps="300">
|
||||
<resource name="RAM" quantum="32M"/>
|
||||
<config>
|
||||
<vfs>
|
||||
<ram/>
|
||||
<dir name="dev">
|
||||
<log/> <null/> <rtc/>
|
||||
<jitterentropy name="random"/>
|
||||
</dir>
|
||||
<dir name="socket">
|
||||
<lxip ip_addr="10.0.1.2" netmask="255.255.255.0" gateway="10.0.1.1" nameserver="9.9.9.9"/>
|
||||
</dir>
|
||||
<inline name="stubby.yaml">
|
||||
listen_addresses:
|
||||
- 10.0.1.2
|
||||
</inline>
|
||||
</vfs>
|
||||
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc" socket="/socket"/>
|
||||
<env key="HOME" value="/"/>
|
||||
<arg value="stubby"/>
|
||||
<arg value="-C"/>
|
||||
<arg value="/stubby.yaml"/>
|
||||
</config>
|
||||
<route>
|
||||
<any-service> <any-child/> <parent/> </any-service>
|
||||
</route>
|
||||
</start>
|
||||
</config>
|
||||
|
||||
<content>
|
||||
<rom label="ld.lib.so"/>
|
||||
<rom label="init"/>
|
||||
<rom label="nic_router"/>
|
||||
<rom label="libc.lib.so"/>
|
||||
<rom label="libcrypto.lib.so"/>
|
||||
<rom label="libgetdns.lib.so"/>
|
||||
<rom label="libm.lib.so"/>
|
||||
<rom label="libssl.lib.so"/>
|
||||
<rom label="lxip.lib.so"/>
|
||||
<rom label="posix.lib.so"/>
|
||||
<rom label="rtc_drv"/>
|
||||
<rom label="stubby"/>
|
||||
<rom label="vfs_jitterentropy.lib.so"/>
|
||||
<rom label="lxip.lib.so"/>
|
||||
<rom label="vfs.lib.so"/>
|
||||
<rom label="vfs_lxip.lib.so"/>
|
||||
</content>
|
||||
|
||||
</runtime>
|
||||
24
recipes/src/libgetdns/content.mk
Normal file
24
recipes/src/libgetdns/content.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
MIRROR_FROM_REP_DIR = lib/import/import-libgetdns.mk lib/mk/libgetdns.mk
|
||||
|
||||
content: $(MIRROR_FROM_REP_DIR)
|
||||
|
||||
$(MIRROR_FROM_REP_DIR):
|
||||
$(mirror_from_rep_dir)
|
||||
|
||||
MIRROR_FROM_PORT_DIR = src/lib/getdns
|
||||
content: $(MIRROR_FROM_PORT_DIR)
|
||||
|
||||
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/getdns)
|
||||
|
||||
$(MIRROR_FROM_PORT_DIR):
|
||||
mkdir -p $(dir $@)
|
||||
cp -r $(PORT_DIR)/$@ $@
|
||||
|
||||
content: src/lib/getdns/target.mk LICENSE
|
||||
|
||||
src/lib/getdns/target.mk:
|
||||
mkdir -p $(dir $@)
|
||||
echo 'LIBS=libgetdns' > $@
|
||||
|
||||
LICENSE:
|
||||
cp $(PORT_DIR)/src/lib/getdns/$@ $@
|
||||
1
recipes/src/libgetdns/hash
Normal file
1
recipes/src/libgetdns/hash
Normal file
@@ -0,0 +1 @@
|
||||
2020-06-21 109df97f77d3fb7855b543b509245630de889ba2
|
||||
5
recipes/src/libgetdns/used_apis
Normal file
5
recipes/src/libgetdns/used_apis
Normal file
@@ -0,0 +1,5 @@
|
||||
libc
|
||||
libcrypto
|
||||
libssl
|
||||
libyaml
|
||||
libgetdns
|
||||
39
recipes/src/stubby/content.mk
Normal file
39
recipes/src/stubby/content.mk
Normal file
@@ -0,0 +1,39 @@
|
||||
content: src/lib/getdns/stubby LICENSE
|
||||
|
||||
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/getdns)
|
||||
|
||||
STUBBY_SRC_DIR := $(PORT_DIR)/src/lib/getdns/stubby
|
||||
|
||||
MIRROR_FROM_PORT_DIR = src/lib/getdns/stubby include/sldns src/lib/getdns/src/gldns
|
||||
content: $(MIRROR_FROM_PORT_DIR)
|
||||
|
||||
include/sldns:
|
||||
mkdir -p $(dir $@)
|
||||
cp -r $(PORT_DIR)/src/lib/getdns/src/util/auxiliary/sldns $@
|
||||
|
||||
src/lib/getdns/src/gldns:
|
||||
mkdir -p $(dir $@)
|
||||
cp -r $(PORT_DIR)/$@ $@
|
||||
|
||||
src/lib/getdns/stubby:
|
||||
mkdir -p $(dir $@)
|
||||
cp -r $(STUBBY_SRC_DIR) $@
|
||||
|
||||
LICENSE:
|
||||
cp $(STUBBY_SRC_DIR)/COPYING $@
|
||||
|
||||
MIRROR_FROM_REP_DIR := \
|
||||
src/app/stubby \
|
||||
lib/mk/getdns-gldns.mk lib/import/import-libgetdns.mk \
|
||||
src/app/stubby/config.h \
|
||||
|
||||
content: $(MIRROR_FROM_REP_DIR)
|
||||
|
||||
$(MIRROR_FROM_REP_DIR):
|
||||
$(mirror_from_rep_dir)
|
||||
|
||||
content: include/config.h
|
||||
|
||||
include/config.h:
|
||||
mkdir -p $(dir $@)
|
||||
cp $(REP_DIR)/src/app/stubby/config.h $@
|
||||
1
recipes/src/stubby/hash
Normal file
1
recipes/src/stubby/hash
Normal file
@@ -0,0 +1 @@
|
||||
2020-06-21 e404b2d85aaedc807440ff4b424658bec943b9fa
|
||||
8
recipes/src/stubby/used_apis
Normal file
8
recipes/src/stubby/used_apis
Normal file
@@ -0,0 +1,8 @@
|
||||
libc
|
||||
timer_session
|
||||
report_session
|
||||
posix
|
||||
libgetdns
|
||||
libcrypto
|
||||
libyaml
|
||||
libssl
|
||||
Reference in New Issue
Block a user