source: branches/backfire/package/relayd/Makefile @ 25718

Last change on this file since 25718 was 25718, checked in by jow, 5 years ago

[backfire] backport relayd, libubox and libjson-c

File size: 1.1 KB
Line 
1#
2# Copyright (C) 2010-2011 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:=relayd
11PKG_VERSION:=2011-02-07
12PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16PKG_SOURCE_URL:=git://nbd.name/relayd.git
17PKG_SOURCE_PROTO:=git
18PKG_SOURCE_VERSION:=aeb49d61c2a737dc9a89e0558388c25208e5e919
19
20include $(INCLUDE_DIR)/package.mk
21include $(INCLUDE_DIR)/cmake.mk
22
23define Package/relayd
24  SECTION:=net
25  CATEGORY:=Network
26  TITLE:=Transparent routing / relay daemon
27  DEPENDS:=+libubox
28endef
29
30TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
31
32define Package/relayd/install
33        $(INSTALL_DIR) $(1)/usr/sbin
34        $(INSTALL_BIN) $(PKG_BUILD_DIR)/relayd $(1)/usr/sbin/relayd
35        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
36        $(INSTALL_DATA) ./files/relay.hotplug $(1)/etc/hotplug.d/iface/30-relay
37        $(INSTALL_DIR) $(1)/lib/network
38        $(INSTALL_DATA) ./files/relay.sh $(1)/lib/network/relay.sh
39endef
40
41$(eval $(call BuildPackage,relayd))
Note: See TracBrowser for help on using the repository browser.