add support for belkin/ravotek routers
[openwrt.git] / obsolete-buildroot / make / fprobe.mk
1 ## fprobe
2
3 FPROBE_VERSION:=1.0.5
4 FPROBE_RELEASE:=1
5
6 FPROBE_SOURCE:=fprobe-$(FPROBE_VERSION).tar.bz2
7 FPROBE_SITE:=http://dl.sourceforge.net/sourceforge/fprobe/
8 FPROBE_DIR:=$(BUILD_DIR)/fprobe-$(FPROBE_VERSION)
9 FPROBE_CAT:=bzcat
10
11 FPROBE_PATCH_DIR := $(SOURCE_DIR)/openwrt/patches/fprobe
12
13 FPROBE_BUILD_DIR := $(BUILD_DIR)/fprobe_$(FPROBE_VERSION)-$(FPROBE_RELEASE)
14 FPROBE_IPK_DIR := $(OPENWRT_IPK_DIR)/fprobe
15 FPROBE_IPK := $(FPROBE_BUILD_DIR)_$(ARCH).ipk
16
17
18 $(DL_DIR)/$(FPROBE_SOURCE):
19 $(WGET) -P $(DL_DIR) $(FPROBE_SITE)/$(FPROBE_SOURCE)
20
21
22 $(FPROBE_DIR)/.stamp-unpacked: $(DL_DIR)/$(FPROBE_SOURCE)
23 $(FPROBE_CAT) $(DL_DIR)/$(FPROBE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
24
25 touch $(FPROBE_DIR)/.stamp-unpacked
26
27
28 $(FPROBE_DIR)/.stamp-configured: $(FPROBE_DIR)/.stamp-unpacked
29 cd $(FPROBE_DIR) ; \
30 rm -rf config.cache ; \
31 $(TARGET_CONFIGURE_OPTS) \
32 CFLAGS="$(TARGET_CFLAGS)" \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --sbindir=/usr/sbin \
41 --libexecdir=/usr/lib/locate \
42 --sysconfdir=/etc \
43 --datadir=/usr/share \
44 --localstatedir=/var/lib \
45 --mandir=/usr/share/man \
46 --infodir=/usr/share/info \
47 --includedir=/usr/include \
48 --libdir=/usr/lib \
49 $(DISABLE_NLS) \
50 --with-membulk=index8 \
51 --with-hash=xor8
52
53 touch $(FPROBE_DIR)/.stamp-configured
54
55
56 $(FPROBE_DIR)/.stamp-built: $(FPROBE_DIR)/.stamp-configured
57 cd $(FPROBE_DIR) ; \
58 $(MAKE) \
59 CC=$(TARGET_CC) \
60
61 touch $(FPROBE_DIR)/.stamp-built
62
63
64 $(FPROBE_DIR)/.stamp-installed: $(FPROBE_DIR)/.stamp-built
65 mkdir -p $(FPROBE_BUILD_DIR)
66 cd $(FPROBE_DIR) ; \
67 $(MAKE) \
68 DESTDIR="$(FPROBE_BUILD_DIR)" \
69 install \
70
71 install -m0755 -d $(FPROBE_BUILD_DIR)/etc
72 install -m0644 $(FPROBE_IPK_DIR)/root/etc/fprobe.conf $(FPROBE_BUILD_DIR)/etc/
73
74 install -m0755 -d $(FPROBE_BUILD_DIR)/etc/init.d
75 install -m0755 $(FPROBE_IPK_DIR)/root/etc/init.d/fprobe $(FPROBE_BUILD_DIR)/etc/init.d/
76
77 rm -rf $(FPROBE_BUILD_DIR)/usr/share
78
79 $(STRIP) $(FPROBE_BUILD_DIR)/usr/sbin/*
80
81 touch $(FPROBE_DIR)/.stamp-installed
82
83
84 $(FPROBE_IPK): $(FPROBE_DIR)/.stamp-installed
85 cp -a $(FPROBE_IPK_DIR)/CONTROL $(FPROBE_BUILD_DIR)/
86 perl -pi -e "s/^Vers.*:.*$$/Version: $(FPROBE_VERSION)-$(FPROBE_RELEASE)/" $(FPROBE_BUILD_DIR)/CONTROL/control
87 perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(FPROBE_BUILD_DIR)/CONTROL/control
88 cd $(BUILD_DIR); $(IPKG_BUILD) $(FPROBE_BUILD_DIR)
89
90
91 fprobe-source: $(DL_DIR)/$(FPROBE_SOURCE)
92
93 fprobe-ipk: ipkg-utils libpcap-ipk $(FPROBE_IPK)
94
95 fprobe-clean:
96 $(MAKE) -C $(FPROBE_DIR) clean
97
98 fprobe-clean-all:
99 rm -rf $(FPROBE_DIR)
100 rm -rf $(FPROBE_BUILD_DIR)
101 rm -rf $(FPROBE_IPK)
This page took 0.05192 seconds and 5 git commands to generate.