f18d4728f9e66c5f0afd0af8fc692afb9a4ebb96
[feed/routing.git] / luci-app-olsrd2 / Makefile
1 # call BuildPackage - OpenWrt buildroot signature
2 include $(TOPDIR)/rules.mk
3
4 PKG_NAME:=luci-app-olsrd2
5 PKG_VERSION:=0.2.6
6 PKG_RELEASE:=15
7 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
8
9 include $(INCLUDE_DIR)/package.mk
10
11 define Package/luci-app-olsrd2
12 SECTION:=luci
13 CATEGORY:=LuCI
14 SUBMENU:=3. Applications
15 TITLE:=OLSR2 configuration and status module
16 MAINTAINER:=Patrick Grimm <patrick@lunatiki.de>
17 EXTRA_DEPENDS:=oonf-olsrd2, luci-mod-admin-full
18 PKGARCH:=all
19 endef
20
21 define Build/Prepare
22 endef
23
24 define Build/Configure
25 endef
26
27 define Build/Compile
28 endef
29
30 define Package/$(PKG_NAME)/postinst
31 #!/bin/sh
32 if [ -z $${IPKG_INSTROOT} ] ; then
33 rm -f /tmp/luci-indexcache
34 rm -rf /tmp/luci-modulecache/
35 killall -HUP rpcd 2>/dev/null
36 fi
37 endef
38
39 define Package/$(PKG_NAME)/install
40 $(INSTALL_DIR) $(1)/www/luci-static/resources/view/olsrd2
41 $(INSTALL_DATA) ./htdocs/cgi-bin-olsrd2-neigh.html $(1)/www
42 $(INSTALL_DATA) ./htdocs/luci-static/resources/view/olsrd2/* $(1)/www/luci-static/resources/view/olsrd2
43 $(INSTALL_DIR) $(1)/etc/config
44 $(INSTALL_DATA) ./root/etc/config/* $(1)/etc/config
45 $(INSTALL_DIR) $(1)/etc/uci-defaults
46 $(INSTALL_DATA) ./root/etc/uci-defaults/* $(1)/etc/uci-defaults
47 $(INSTALL_DIR) $(1)/usr/libexec/rpcd
48 $(INSTALL_BIN) ./root/usr/libexec/rpcd/status.olsrd2 $(1)/usr/libexec/rpcd/status.olsrd2
49 $(INSTALL_DIR) $(1)/usr/share/luci/menu.d
50 $(INSTALL_DATA) ./root/usr/share/luci/menu.d/* $(1)/usr/share/luci/menu.d
51 $(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d
52 $(INSTALL_DATA) ./root/usr/share/rpcd/acl.d/* $(1)/usr/share/rpcd/acl.d
53 $(INSTALL_DIR) $(1)/lib/functions
54 $(INSTALL_DATA) ./root/lib/functions/* $(1)/lib/functions
55 endef
56
57 $(eval $(call BuildPackage,luci-app-olsrd2))