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
:
45 touch
$(PKG_BUILD_DIR
)/.configured
47 $(PKG_BUILD_DIR
)/.built
:
48 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
49 $(TARGET_CONFIGURE_OPTS
) \
50 OFLAGS
="$(TARGET_CFLAGS)" \
53 rm -rf
$(PKG_INSTALL_DIR
)
54 mkdir
-p
$(PKG_INSTALL_DIR
)
55 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
56 INSTALL_PREFIX
="$(PKG_INSTALL_DIR)" \
59 touch
$(PKG_BUILD_DIR
)/.built
62 install -d
-m0755
$(IDIR_OLSRD
)/etc
63 cp
-fpR
$(PKG_INSTALL_DIR
)/etc
/olsrd.conf
$(IDIR_OLSRD
)/etc
/
64 install -d
-m0755
$(IDIR_OLSRD
)/usr
/sbin
65 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/olsrd
$(IDIR_OLSRD
)/usr
/sbin
/
66 install -d
-m0755
$(IDIR_OLSRD
)/etc
/init.d
67 cp
-fpR .
/files
/olsrd.init
$(IDIR_OLSRD
)/etc
/init.d
/olsrd
68 $(RSTRIP
) $(IDIR_OLSRD
)
69 $(IPKG_BUILD
) $(IDIR_OLSRD
) $(PACKAGE_DIR
)
71 $(IPKG_OLSRD_MOD_SECURE
): $(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
/olsrd_secure_key
73 $(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
/olsrd_secure_key
:
74 install -d
-m0755
$(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
75 cp
-fpR .
/files
/olsrd_secure_key
$(IDIR_OLSRD_MOD_SECURE
)/etc
/olsrd.d
/