Added wx200d, thanks Geoffrey Kruse, corrected typo in tmsnc/Config.in
[openwrt.git] / package / olsrd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=olsrd
6 PKG_VERSION:=0.4.10
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=9807d4451e65cb4ec385155eef7bf3cf
9
10 PKG_SOURCE_URL:=http://www.olsr.org/releases/0.4
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 define PKG_mod_template
20
21 $$(IPKG_$(1)):
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)
26
27 endef
28
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)))
37
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))
45
46 $(PKG_BUILD_DIR)/.configured:
47 touch $@
48
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) \
54 NODEBUG=1 \
55 OFLAGS="$(TARGET_CFLAGS)" \
56 OS="linux" \
57 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
58 STRIP="/bin/true" \
59 all libs install install_libs
60 touch $@
61
62 $(IPKG_OLSRD):
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)
71
72 $(IPKG_OLSRD_MOD_SECURE): $(IDIR_OLSRD_MOD_SECURE)/etc/olsrd.d/olsrd_secure_key
73
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/
This page took 0.051648 seconds and 5 git commands to generate.