-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.openwrt
51 lines (40 loc) · 1.16 KB
/
Makefile.openwrt
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
COMMIT=99f79c018893f5a06e63a766f5c4a207c5368a1e
include $(TOPDIR)/rules.mk
PKG_NAME:=rascal
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=$(COMMIT)
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_SOURCE_URL:=https://github.com/cucumber-tony/rascal.git
PKG_SOURCE:=$(PKG_NAME).tar.gz
PKG_VERSION:=1#$(COMMIT)
#PKG_RELEASE:=1
#PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS += $(FPIC)
define Package/rascal
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libcurl +libpthread +librt +libopenssl +libpcap +libjson
TITLE:=The little rascal sniffs for mac addresses
#URL:=http://oss.metaparadigm.com/json-c/
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
tar -C $(DL_DIR) -xzvf $(DL_DIR)/$(PKG_NAME).tar.gz
$(CP) $(DL_DIR)/$(PKG_NAME)/src/* $(PKG_BUILD_DIR)/
endef
define Package/rascal/conffiles
/etc/config/rascal
endef
define Package/rascal/description
This package contains a compatibility library for packages that have not
been adapted to the json-c library rename yet
endef
define Package/rascal/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/rascal $(1)/usr/bin/rascal
endef
$(eval $(call BuildPackage,rascal))
.PHONY: clean
clean:
rm -rf $(DL_DIR)/$(PKG_NAME)*