1 # call BuildPackage - OpenWrt buildroot signature
2 include $(TOPDIR
)/rules.mk
4 PKG_NAME
:=luci-app-olsrd2
7 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
9 include $(INCLUDE_DIR
)/package.mk
11 define Package
/luci-app-olsrd2
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
24 define Build
/Configure
30 define Package
/$(PKG_NAME
)/postinst
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
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
57 $(eval
$(call BuildPackage
,luci-app-olsrd2
))