3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=593c0861fa10d2a8d0e7d8617479c5cf
10 PKG_SOURCE_URL
:=http
://www.olsr.org
/releases
/0.4
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 define PKG_mod_template
22 install -d
-m0755
$$(IDIR_
$(1))/usr
/lib
23 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/olsrd_
$(2).so.
* $$(IDIR_
$(1))/usr
/lib
/
24 $(RSTRIP
) $$(IDIR_
$(1))
25 $(IPKG_BUILD
) $$(IDIR_
$(1)) $(PACKAGE_DIR
)
29 $(eval
$(call PKG_template
,OLSRD
,olsrd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
30 $(eval
$(call PKG_template
,OLSRD_MOD_DOT_DRAW
,olsrd-mod-dot-draw
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
31 $(eval
$(call PKG_template
,OLSRD_MOD_DYN_GW
,olsrd-mod-dyn-gw
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
32 $(eval
$(call PKG_template
,OLSRD_MOD_HTTPINFO
,olsrd-mod-httpinfo
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
33 $(eval
$(call PKG_template
,OLSRD_MOD_NAMESERVICE
,olsrd-mod-nameservice
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
34 $(eval
$(call PKG_template
,OLSRD_MOD_POWER
,olsrd-mod-power
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
35 $(eval
$(call PKG_template
,OLSRD_MOD_SECURE
,olsrd-mod-secure
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
37 $(eval
$(call PKG_mod_template
,OLSRD_MOD_DOT_DRAW
,dot_draw
))
38 $(eval
$(call PKG_mod_template
,OLSRD_MOD_DYN_GW
,dyn_gw
))
39 $(eval
$(call PKG_mod_template
,OLSRD_MOD_HTTPINFO
,httpinfo
))
40 $(eval
$(call PKG_mod_template
,OLSRD_MOD_NAMESERVICE
,nameservice
))
41 $(eval
$(call PKG_mod_template
,OLSRD_MOD_POWER
,power
))
42 $(eval
$(call PKG_mod_template
,OLSRD_MOD_SECURE
,secure
))
44 $(PKG_BUILD_DIR
)/.configured
:
47 $(PKG_BUILD_DIR
)/.built
:
48 rm -rf
$(PKG_INSTALL_DIR
)
49 mkdir
-p
$(PKG_INSTALL_DIR
)
50 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
51 $(TARGET_CONFIGURE_OPTS
) \
53 OFLAGS
="$(TARGET_CFLAGS)" \
55 INSTALL_PREFIX
="$(PKG_INSTALL_DIR)" \
57 all libs
install install_libs
61 install -d
-m0755
$(IDIR_OLSRD
)/etc
62 cp
-fpR
$(PKG_INSTALL_DIR
)/etc
/olsrd.conf
$(IDIR_OLSRD
)/etc
/
63 install -d
-m0755
$(IDIR_OLSRD
)/usr
/sbin
64 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/olsrd
$(IDIR_OLSRD
)/usr
/sbin
/
65 install -d
-m0755
$(IDIR_OLSRD
)/etc
/init.d
66 cp
-fpR .
/files
/olsrd.init
$(IDIR_OLSRD
)/etc
/init.d
/S60olsrd
67 $(RSTRIP
) $(IDIR_OLSRD
)
68 $(IPKG_BUILD
) $(IDIR_OLSRD
) $(PACKAGE_DIR
)
70 $(IPKG_OLSRD_MOD_SECURE
): $(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
/olsrd_secure_key
72 $(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
/olsrd_secure_key
:
73 install -d
-m0755
$(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
74 cp
-fpR .
/files
/olsrd_secure_key
$(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
/