Rename /lib/gluon/respondd/ to /lib/respondd/
respondd is supposed to be non-Gluon-specific (it is in the packages repository), thus having its data direectory in /lib/gluon/ doesn't make sense.
This commit is contained in:
parent
cb86fce29f
commit
680a18035d
@ -133,6 +133,6 @@ about the supported arguments.
|
||||
Adding a data provider
|
||||
----------------------
|
||||
|
||||
To add a provider, you need to install a shared object into ``/lib/gluon/respondd``.
|
||||
To add a provider, you need to install a shared object into ``/lib/respondd``.
|
||||
For more information, refer to the `respondd README <https://github.com/freifunk-gluon/packages/blob/master/net/respondd/README.md>`_
|
||||
and have a look the existing providers.
|
||||
|
@ -31,8 +31,8 @@ define Package/gluon-autoupdater/install
|
||||
$(CP) ./files/* $(1)/
|
||||
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
|
||||
|
||||
$(INSTALL_DIR) $(1)/lib/gluon/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/autoupdater.so
|
||||
$(INSTALL_DIR) $(1)/lib/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/respondd/autoupdater.so
|
||||
|
||||
if [ '$(GLUON_BRANCH)' ]; then \
|
||||
$(INSTALL_DIR) $(1)/lib/gluon/autoupdater; \
|
||||
|
@ -29,8 +29,8 @@ endef
|
||||
define Package/gluon-mesh-batman-adv-core/install
|
||||
$(CP) ./files/* $(1)/
|
||||
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
|
||||
$(INSTALL_DIR) $(1)/lib/gluon/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/mesh-batman-adv-core.so
|
||||
$(INSTALL_DIR) $(1)/lib/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/respondd/mesh-batman-adv-core.so
|
||||
endef
|
||||
|
||||
define Package/gluon-mesh-batman-adv-core/postinst
|
||||
|
@ -29,8 +29,8 @@ endef
|
||||
define Package/gluon-mesh-vpn-fastd/install
|
||||
$(CP) ./files/* $(1)/
|
||||
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
|
||||
$(INSTALL_DIR) $(1)/lib/gluon/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/mesh-vpn-fastd.so
|
||||
$(INSTALL_DIR) $(1)/lib/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/respondd/mesh-vpn-fastd.so
|
||||
endef
|
||||
|
||||
define Package/gluon-mesh-vpn-fastd/postinst
|
||||
|
@ -25,8 +25,8 @@ endef
|
||||
define Package/gluon-node-info/install
|
||||
$(CP) ./files/* $(1)/
|
||||
|
||||
$(INSTALL_DIR) $(1)/lib/gluon/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/node-info.so
|
||||
$(INSTALL_DIR) $(1)/lib/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/respondd/node-info.so
|
||||
endef
|
||||
|
||||
define Package/gluon-node-info/postinst
|
||||
|
@ -28,8 +28,8 @@ endef
|
||||
define Package/gluon-respondd/install
|
||||
$(CP) ./files/* $(1)/
|
||||
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
|
||||
$(INSTALL_DIR) $(1)/lib/gluon/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/respondd.so
|
||||
$(INSTALL_DIR) $(1)/lib/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/respondd/respondd.so
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,gluon-respondd))
|
||||
|
@ -10,7 +10,7 @@ case "$ACTION" in
|
||||
ifup)
|
||||
DEVICE="$(ifname_to_dev "$INTERFACE")"
|
||||
|
||||
[ "$DEVICE" != "$(cat /lib/gluon/respondd/client.dev 2>/dev/null)" ] ||
|
||||
[ "$DEVICE" != "$(cat /lib/respondd/client.dev 2>/dev/null)" ] ||
|
||||
/etc/init.d/gluon-respondd restart_if_running &
|
||||
;;
|
||||
esac
|
||||
|
@ -13,11 +13,11 @@ LOCK=/var/run/gluon-respondd.lock
|
||||
|
||||
do_start() {
|
||||
DEVS=""
|
||||
for dev in $( ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device") $(cat /lib/gluon/respondd/client.dev 2>/dev/null)
|
||||
for dev in $( ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device") $(cat /lib/respondd/client.dev 2>/dev/null)
|
||||
do
|
||||
DEVS="$DEVS -i $dev"
|
||||
done
|
||||
service_start $DAEMON -g ff02::2:1001 -p 1001 -d /lib/gluon/respondd $DEVS
|
||||
service_start $DAEMON -g ff02::2:1001 -p 1001 -d /lib/respondd $DEVS
|
||||
}
|
||||
|
||||
do_stop() {
|
||||
|
@ -32,8 +32,8 @@ define Package/gluon-status-page-api/install
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/neighbours-batadv $(1)/lib/gluon/status-page/providers/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/
|
||||
|
||||
$(INSTALL_DIR) $(1)/lib/gluon/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/status-page-api.so
|
||||
$(INSTALL_DIR) $(1)/lib/respondd
|
||||
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/respondd/status-page-api.so
|
||||
|
||||
$(CP) ./files/* $(1)/
|
||||
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
|
||||
|
Loading…
Reference in New Issue
Block a user