I'm using the same FHEM Makefile for OpenWRT. I just updated mine to 5.3 - I'm attaching it for your convenience, maybe you will find it useful. When I start FHEM, it now complains about not finding lsusb, so perhaps a dependency line for the usbutils package is needed.
I've got to warn you, though: installing the updated package will overwrite your /etc/fhem.cfg.
Hey there,
I'm using the same FHEM Makefile for OpenWRT. I just updated mine to 5.3 - I'm attaching it for your convenience, maybe you will find it useful. When I start FHEM, it now complains about not finding lsusb, so perhaps a dependency line for the usbutils package is needed.
I've got to warn you, though: installing the updated package will overwrite your /etc/fhem.cfg.
Also make sure to update PKG_VERSION.
define Package/fhem/install $(INSTALL_DIR) $(1)$(BINDIR) $(INSTALL_DIR) $(1)$(MODDIR) $(INSTALL_DIR) $(1)$(DOCDIR) $(INSTALL_DIR) $(1)$(VARDIR) $(INSTALL_DIR) $(1)$(ETCDIR) $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) $(PKG_BUILD_DIR)/fhem.pl $(1)$(BINDIR) $(CP) $(PKG_BUILD_DIR)/FHEM $(1)$(MODDIR) $(CP) $(PKG_BUILD_DIR)/contrib $(1)$(MODDIR) $(CP) $(PKG_BUILD_DIR)/www/ $(1)$(MODDIR) $(CP) $(PKG_BUILD_DIR)/docs/* $(1)$(DOCDIR) perl -pi -e 's,modpath .,modpath $(MODDIR),' $(PKG_BUILD_DIR)/fhem.cfg perl -pi -e 's,([^h])/tmp,$$1 $(VARDIR),' $(PKG_BUILD_DIR)/fhem.cfg perl -pi -e 's,#define CUL,define CUL,' $(PKG_BUILD_DIR)/fhem.cfg $(CP) $(PKG_BUILD_DIR)/fhem.cfg $(1)$(ETCDIR)/fhem.cfg $(CP) $(PKG_BUILD_DIR)/docs/commandref.html $(PKG_BUILD_DIR)/docs/faq.html $(PKG_BUILD_DIR)/docs/HOWTO.html $(1)$(MODDIR)/FHEM $(CP) $(PKG_BUILDDIR)/docs/.png $(PKG_BUILDDIR)/docs/.jpg $(1)$(MODDIR)/FHEM $(INSTALL_BIN) ./files/fhem.init $(1)/etc/init.d/fhem
cd $(PKG_BUILD_DIR)/examples; for i in *; do $(CP) $($$i) $(1)$(MODDIR)/FHEM/example.$($$i); done
endef