remove patch not needed anymore with v5.0.5
[openwrt.git] / openwrt / package / olsrd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=olsrd
6 PKG_VERSION:=0.4.9
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=593c0861fa10d2a8d0e7d8617479c5cf
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
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))
43
44 $(PKG_BUILD_DIR)/.configured:
45 touch $@
46
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) \
52 NODEBUG=1 \
53 OFLAGS="$(TARGET_CFLAGS)" \
54 OS="linux" \
55 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
56 STRIP="/bin/true" \
57 all libs install install_libs
58 touch $@
59
60 $(IPKG_OLSRD):
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/olsrd
67 $(RSTRIP) $(IDIR_OLSRD)
68 $(IPKG_BUILD) $(IDIR_OLSRD) $(PACKAGE_DIR)
69
70 $(IPKG_OLSRD_MOD_SECURE): $(IDIR_OLSRD_MOD_SECURE)/etc/olsrd.d/olsrd_secure_key
71
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/
This page took 0.041114 seconds and 5 git commands to generate.