diff options
| author | Patrick Grimm <patrick@lunatiki.de> | 2023-01-15 10:43:07 +0100 |
|---|---|---|
| committer | Moritz Warning <moritzwarning@web.de> | 2023-01-23 14:25:30 +0100 |
| commit | d27be8dad93d17b80a057389207ffd1d75c5c683 (patch) | |
| tree | 9d978a4be94eec3670b41872bb7c6051789475ac /luci-app-olsrd2/Makefile | |
| parent | c8ba43a99b67b5a56fe2a1a29bc33e9aa2c3a773 (diff) | |
luci-app-olsrd2: New Package for OLSR2 configuration and status visualisation'
Compile tested: mips_24kc, arm_cortex-a9_vfpv3-d16, i386_pentium4, x86_64, i386_pentium-mmx, mipsel_24kc
Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
Diffstat (limited to 'luci-app-olsrd2/Makefile')
| -rw-r--r-- | luci-app-olsrd2/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/luci-app-olsrd2/Makefile b/luci-app-olsrd2/Makefile new file mode 100644 index 0000000..6725067 --- /dev/null +++ b/luci-app-olsrd2/Makefile @@ -0,0 +1,57 @@ +# call BuildPackage - OpenWrt buildroot signature +include $(TOPDIR)/rules.mk + +PKG_NAME:=luci-app-olsrd2 +PKG_VERSION:=0.2.6 +PKG_RELEASE:=14 +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/luci-app-olsrd2 + SECTION:=luci + CATEGORY:=LuCI + SUBMENU:=3. Applications + TITLE:=OLSR2 configuration and status module + MAINTAINER:=Patrick Grimm <patrick@lunatiki.de> + EXTRA_DEPENDS:=oonf-olsrd2, luci-mod-admin-full + PKGARCH:=all +endef + +define Build/Prepare +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/$(PKG_NAME)/postinst +#!/bin/sh +if [ -z $${IPKG_INSTROOT} ] ; then + rm -f /tmp/luci-indexcache + rm -rf /tmp/luci-modulecache/ + killall -HUP rpcd 2>/dev/null +fi +endef + +define Package/$(PKG_NAME)/install + $(INSTALL_DIR) $(1)/www/luci-static/resources/view/olsrd2 + $(INSTALL_DATA) ./htdocs/cgi-bin-olsrd2-neigh.html $(1)/www + $(INSTALL_DATA) ./htdocs/luci-static/resources/view/olsrd2/* $(1)/www/luci-static/resources/view/olsrd2 + $(INSTALL_DIR) $(1)/etc/config + $(INSTALL_DATA) ./root/etc/config/* $(1)/etc/config + $(INSTALL_DIR) $(1)/etc/uci-defaults + $(INSTALL_DATA) ./root/etc/uci-defaults/* $(1)/etc/uci-defaults + $(INSTALL_DIR) $(1)/usr/libexec/rpcd + $(INSTALL_BIN) ./root/usr/libexec/rpcd/status.olsrd2 $(1)/usr/libexec/rpcd/status.olsrd2 + $(INSTALL_DIR) $(1)/usr/share/luci/menu.d + $(INSTALL_DATA) ./root/usr/share/luci/menu.d/* $(1)/usr/share/luci/menu.d + $(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d + $(INSTALL_DATA) ./root/usr/share/rpcd/acl.d/* $(1)/usr/share/rpcd/acl.d + $(INSTALL_DIR) $(1)/lib/functions + $(INSTALL_DATA) ./root/lib/functions/* $(1)/lib/functions +endef + +$(eval $(call BuildPackage,luci-app-olsrd2)) |
