netopeer2-server: add custom config file
authorMislav Novakovic <mislav.novakovic@sartura.hr>
Tue, 23 May 2017 10:10:44 +0000 (12:10 +0200)
committerMislav Novakovic <mislav.novakovic@sartura.hr>
Wed, 24 May 2017 14:04:55 +0000 (16:04 +0200)
Signed-off-by: Mislav Novakovic <mislav.novakovic@sartura.hr>
net/netopeer2/Makefile
net/netopeer2/files/stock_config.xml [new file with mode: 0644]

index ac242eb6a577995ea06f56b0f18545f239b66eb1..c0a1cdcbed8847cbdc6be866a214797ea64ece29 100644 (file)
@@ -112,7 +112,7 @@ define Package/netopeer2-server/install
        $(INSTALL_BIN) ./files/netopeer2-server.init $(1)/etc/init.d/netopeer2-server
 
        $(INSTALL_DIR) $(1)/usr/share/netopeer2-server
-       $(INSTALL_DATA) $(PKG_BUILD_ROOT)/server/stock_config.xml $(1)/usr/share/netopeer2-server
+       $(INSTALL_DATA) ./files/stock_config.xml $(1)/usr/share/netopeer2-server
 endef
 
 define Package/netopeer2-cli/install
diff --git a/net/netopeer2/files/stock_config.xml b/net/netopeer2/files/stock_config.xml
new file mode 100644 (file)
index 0000000..4576684
--- /dev/null
@@ -0,0 +1,17 @@
+<netconf-server xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-server">
+  <listen>
+    <endpoint>
+      <name>test_ssh_listen_endpt</name>
+      <ssh>
+        <address>::</address>
+        <port>830</port>
+        <host-keys>
+          <host-key>
+            <name>test_ssh_listen_key</name>
+            <public-key>ssh_host_rsa_key</public-key>
+          </host-key>
+        </host-keys>
+      </ssh>
+    </endpoint>
+  </listen>
+</netconf-server>