-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
52 lines (41 loc) · 1.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
include $(TOPDIR)/rules.mk
PKG_NAME:=xmbot
PKG_RELEASE:=0.1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
PKG_CONFIG_DEPENDS := \
CONFIG_PACKAGE_xmbot
include $(INCLUDE_DIR)/package.mk
define Package/xmbot/default
SECTION:=net
CATEGORY:=Network
SUBMENU:=XMPP
TITLE:=xmbot - XMPP bot for openwrt
DEPENDS:=+libiksemel
MAINTAINER:=wgjtyu <[email protected]>
endef
define Package/xmbot
$(Package/xmbot/default)
MENU:=1
endef
define Package/xmbot/description
xmbot is a xmpp bot for openwrt
endef
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
TARGET_LDFLAGS += -liksemel -L$(STAGING_DIR)/usr/lib
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Package/xmbot/conffiles
/etc/xmbotrc
endef
define Package/xmbot/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/xmbot.init $(1)/etc/init.d/xmbot
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/xmbotrc $(1)/etc/xmbotrc
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/xmbot $(1)/usr/sbin/xmbot
$(INSTALL_BIN) ./files/control_wireless.sh $(1)/usr/sbin/control_wireless.sh
endef
$(eval $(call BuildPackage,xmbot))