3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=9807d4451e65cb4ec385155eef7bf3cf
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
)))
36 $(eval
$(call PKG_template
,OLSRD_MOD_TAS
,olsrd-mod-tas
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
38 $(eval
$(call PKG_mod_template
,OLSRD_MOD_DOT_DRAW
,dot_draw
))
39 $(eval
$(call PKG_mod_template
,OLSRD_MOD_DYN_GW
,dyn_gw
))
40 $(eval
$(call PKG_mod_template
,OLSRD_MOD_HTTPINFO
,httpinfo
))
41 $(eval
$(call PKG_mod_template
,OLSRD_MOD_NAMESERVICE
,nameservice
))
42 $(eval
$(call PKG_mod_template
,OLSRD_MOD_POWER
,power
))
43 $(eval
$(call PKG_mod_template
,OLSRD_MOD_SECURE
,secure
))
44 $(eval
$(call PKG_mod_template
,OLSRD_MOD_TAS
,tas
))
46 $(PKG_BUILD_DIR
)/.configured
:
49 $(PKG_BUILD_DIR
)/.built
:
50 rm -rf
$(PKG_INSTALL_DIR
)
51 mkdir
-p
$(PKG_INSTALL_DIR
)
52 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
53 $(TARGET_CONFIGURE_OPTS
) \
55 OFLAGS
="$(TARGET_CFLAGS)" \
57 INSTALL_PREFIX
="$(PKG_INSTALL_DIR)" \
59 all libs
install install_libs
63 install -d
-m0755
$(IDIR_OLSRD
)/etc
64 cp
-fpR
$(PKG_INSTALL_DIR
)/etc
/olsrd.conf
$(IDIR_OLSRD
)/etc
/
65 install -d
-m0755
$(IDIR_OLSRD
)/usr
/sbin
66 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/olsrd
$(IDIR_OLSRD
)/usr
/sbin
/
67 install -d
-m0755
$(IDIR_OLSRD
)/etc
/init.d
68 cp
-fpR .
/files
/olsrd.init
$(IDIR_OLSRD
)/etc
/init.d
/S60olsrd
69 $(RSTRIP
) $(IDIR_OLSRD
)
70 $(IPKG_BUILD
) $(IDIR_OLSRD
) $(PACKAGE_DIR
)
72 $(IPKG_OLSRD_MOD_SECURE
): $(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
/olsrd_secure_key
74 $(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
/olsrd_secure_key
:
75 install -d
-m0755
$(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
76 cp
-fpR .
/files
/olsrd_secure_key
$(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
/