source: packages/net/olsrd/Makefile @ 21678

Last change on this file since 21678 was 21678, checked in by zioproto, 6 years ago

[packages] olsrd: Added maintainer to the Makefile

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 5.8 KB
Line 
1#
2# Copyright (C) 2009-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=olsrd
11PKG_VERSION:=0.6.0
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://www.olsr.org/releases/0.6
16PKG_MD5SUM:=8425a10e315be5e061143ac310f2424b
17
18include $(INCLUDE_DIR)/package.mk
19
20TARGET_CFLAGS += $(FPIC)
21
22define Package/olsrd/template
23  SECTION:=net
24  CATEGORY:=Network
25  MAINTAINER:=Saverio Proto <zioproto@gmail.com>
26  TITLE:=OLSR (Optimized Link State Routing) daemon
27  URL:=http://www.olsr.org/
28endef
29
30define Package/olsrd
31  $(call Package/olsrd/template)
32  MENU:=1
33  DEPENDS:=+libpthread
34endef
35
36define Package/olsrd/conffiles
37/etc/config/olsrd
38endef
39
40define Package/olsrd-mod-arprefresh
41  $(call Package/olsrd/template)
42  DEPENDS:=olsrd
43  TITLE:=Kernel ARP cache refresh plugin
44endef
45
46define Package/olsrd-mod-dot-draw
47  $(call Package/olsrd/template)
48  DEPENDS:=olsrd
49  TITLE:=Dot topology information plugin
50endef
51
52define Package/olsrd-mod-bmf
53  $(call Package/olsrd/template)
54  DEPENDS:=olsrd +kmod-tun
55  TITLE:=Basic multicast forwarding plugin
56endef
57
58define Package/olsrd-mod-dyn-gw
59  $(call Package/olsrd/template)
60  DEPENDS:=olsrd
61  TITLE:=Dynamic internet gateway plugin
62endef
63
64define Package/olsrd-mod-dyn-gw-plain
65  $(call Package/olsrd/template)
66  DEPENDS:=olsrd
67  TITLE:=Dynamic internet gateway plain plugin
68endef
69
70define Package/olsrd-mod-httpinfo
71  $(call Package/olsrd/template)
72  DEPENDS:=olsrd
73  TITLE:=Small informative web server plugin
74endef
75
76define Package/olsrd-mod-mdns
77  $(call Package/olsrd/template)
78  DEPENDS:=olsrd
79  TITLE:=Multicast DNS plugin
80endef
81
82define Package/olsrd-mod-nameservice
83  $(call Package/olsrd/template)
84  DEPENDS:=olsrd
85  TITLE:=Lightweight hostname resolver plugin
86endef
87
88define Package/olsrd-mod-p2pd
89  $(call Package/olsrd/template)
90  DEPENDS:=olsrd
91  TITLE:=Peer to Peer Discovery plugin
92endef
93
94define Package/olsrd-mod-quagga
95  $(call Package/olsrd/template)
96  DEPENDS:=olsrd
97  TITLE:=Quagga plugin
98endef
99
100define Package/olsrd-mod-secure
101  $(call Package/olsrd/template)
102  DEPENDS:=olsrd
103  TITLE:=Message signing plugin to secure routing domain
104endef
105
106define Package/olsrd-mod-txtinfo
107  $(call Package/olsrd/template)
108  DEPENDS:=olsrd
109  TITLE:=Small informative web server plugin
110endef
111
112define Package/olsrd-mod-watchdog
113  $(call Package/olsrd/template)
114  DEPENDS:=olsrd
115  TITLE:=Watchdog plugin
116endef
117
118define Package/olsrd-mod-secure/conffiles
119/etc/olsrd.d/olsrd_secure_key
120endef
121
122MAKE_FLAGS+= \
123        NO_DEBUG_MESSAGES=1 \
124        OS="linux" \
125        DESTDIR="$(PKG_INSTALL_DIR)" \
126        STRIP="true" \
127        INSTALL_LIB="true" \
128        SUBDIRS="arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo mdns nameservice p2pd quagga secure txtinfo watchdog" \
129        all libs install install_libs
130
131define Package/olsrd/install
132        $(INSTALL_DIR) $(1)/etc/config
133        $(INSTALL_DATA) ./files/olsrd.config $(1)/etc/config/olsrd
134        $(INSTALL_DIR) $(1)/usr/sbin
135        $(INSTALL_BIN) $(PKG_BUILD_DIR)/olsrd $(1)/usr/sbin/
136        $(INSTALL_DIR) $(1)/etc/init.d
137        $(INSTALL_BIN) ./files/olsrd.init $(1)/etc/init.d/olsrd
138endef
139
140define Package/olsrd-mod-arprefresh/install
141        $(INSTALL_DIR) $(1)/usr/lib
142        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/arprefresh/olsrd_arprefresh.so.* $(1)/usr/lib/
143endef
144
145define Package/olsrd-mod-dot-draw/install
146        $(INSTALL_DIR) $(1)/usr/lib
147        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dot_draw/olsrd_dot_draw.so.* $(1)/usr/lib/
148endef
149
150define Package/olsrd-mod-bmf/install
151        $(INSTALL_DIR) $(1)/usr/lib
152        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmf/olsrd_bmf.so.* $(1)/usr/lib/
153endef
154
155define Package/olsrd-mod-dyn-gw/install
156        $(INSTALL_DIR) $(1)/usr/lib
157        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dyn_gw/olsrd_dyn_gw.so.* $(1)/usr/lib/
158endef
159
160define Package/olsrd-mod-dyn-gw-plain/install
161        $(INSTALL_DIR) $(1)/usr/lib
162        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dyn_gw_plain/olsrd_dyn_gw_plain.so.* $(1)/usr/lib/
163endef
164
165define Package/olsrd-mod-httpinfo/install
166        $(INSTALL_DIR) $(1)/usr/lib
167        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/httpinfo/olsrd_httpinfo.so.* $(1)/usr/lib/
168endef
169
170define Package/olsrd-mod-mdns/install
171        $(INSTALL_DIR) $(1)/usr/lib
172        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/mdns/olsrd_mdns.so.* $(1)/usr/lib/
173endef
174
175define Package/olsrd-mod-nameservice/install
176        $(INSTALL_DIR) $(1)/usr/lib
177        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/nameservice/olsrd_nameservice.so.* $(1)/usr/lib/
178endef
179
180define Package/olsrd-mod-p2pd/install
181        $(INSTALL_DIR) $(1)/usr/lib
182        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/p2pd/olsrd_p2pd.so.* $(1)/usr/lib/
183endef
184
185define Package/olsrd-mod-quagga/install
186        $(INSTALL_DIR) $(1)/usr/lib
187        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/quagga/olsrd_quagga.so.* $(1)/usr/lib/
188endef
189
190define Package/olsrd-mod-secure/install
191        $(INSTALL_DIR) $(1)/etc/olsrd.d
192        $(CP) ./files/olsrd_secure_key $(1)/etc/olsrd.d/
193        $(INSTALL_DIR) $(1)/usr/lib
194        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/secure/olsrd_secure.so.* $(1)/usr/lib/
195endef
196
197define Package/olsrd-mod-txtinfo/install
198        $(INSTALL_DIR) $(1)/usr/lib
199        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/txtinfo/olsrd_txtinfo.so.* $(1)/usr/lib/
200endef
201
202define Package/olsrd-mod-watchdog/install
203        $(INSTALL_DIR) $(1)/usr/lib
204        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/watchdog/olsrd_watchdog.so.* $(1)/usr/lib/
205endef
206
207$(eval $(call BuildPackage,olsrd))
208$(eval $(call BuildPackage,olsrd-mod-arprefresh))
209$(eval $(call BuildPackage,olsrd-mod-dot-draw))
210$(eval $(call BuildPackage,olsrd-mod-bmf))
211$(eval $(call BuildPackage,olsrd-mod-dyn-gw))
212$(eval $(call BuildPackage,olsrd-mod-dyn-gw-plain))
213$(eval $(call BuildPackage,olsrd-mod-httpinfo))
214$(eval $(call BuildPackage,olsrd-mod-mdns))
215$(eval $(call BuildPackage,olsrd-mod-nameservice))
216$(eval $(call BuildPackage,olsrd-mod-p2pd))
217$(eval $(call BuildPackage,olsrd-mod-quagga))
218$(eval $(call BuildPackage,olsrd-mod-secure))
219$(eval $(call BuildPackage,olsrd-mod-txtinfo))
220$(eval $(call BuildPackage,olsrd-mod-watchdog))
Note: See TracBrowser for help on using the repository browser.