source: packages/net/imsnif/Makefile @ 26080

Last change on this file since 26080 was 26080, checked in by cshore, 6 years ago

[net] Instant Messaging: Moved imsnif MSN Messenger sniffer to Instant Messaging submenu.

File size: 1.6 KB
Line 
1#
2# Copyright (C) 2008 OpenWrt.org
3#
4# $ Id:$
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=imsnif
9PKG_VERSION:=0.04
10PKG_RELEASE:=2
11PKG_MD5SUM:=689c456f8edb77b9b4199a25514ac683
12
13PKG_SOURCE_URL:=@SF/im-snif
14PKG_SOURCE:=$(PKG_NAME)f_$(PKG_VERSION).tgz
15
16include $(INCLUDE_DIR)/package.mk
17
18PKG_UNPACK:=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) -xvf -
19
20define Package/imsnif
21  SECTION:=net
22  CATEGORY:=Network
23  SUBMENU:=Instant Messaging
24  DEPENDS:=+libpcap +uclibcxx
25  TITLE:=MSN Messenger sniffer
26  URL:=http://sourceforge.net/projects/im-snif
27endef
28
29define Package/imsnif/description
30  IMsnif is a simple program to log Instant Message activity
31  on the network. It uses libpcap to capture packets and
32  analyzes them, logging conversation, contact lists, etc.
33endef
34
35define Build/Compile
36        $(TARGET_CROSS)g++ $(TARGET_CPPFLAGS) -fno-builtin -fno-rtti -nostdinc++ \
37                -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include \
38                -o $(PKG_BUILD_DIR)/src/imsnif \
39                        $(PKG_BUILD_DIR)/src/imsniff.cpp \
40                        $(PKG_BUILD_DIR)/src/util.cpp \
41                        $(PKG_BUILD_DIR)/src/msn_conntrack.cpp \
42                        $(PKG_BUILD_DIR)/src/msn_handlers.cpp \
43                -L$(STAGING_DIR)/usr/lib -nodefaultlibs -luClibc++ $(LIBGCC_S) -lpcap \
44                        $(PKG_BUILD_DIR)/src/pcap_stuff.cpp
45endef
46
47define Package/imsnif/install
48        $(INSTALL_DIR) $(1)/etc
49        $(INSTALL_CONF) $(PKG_BUILD_DIR)/docs/imsniff.conf.sample $(1)/etc/imsnif.conf
50        $(INSTALL_DIR) $(1)/etc/init.d
51        $(INSTALL_BIN) ./files/imsnif $(1)/etc/init.d
52        $(INSTALL_DIR) $(1)/usr/bin
53        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/imsnif $(1)/usr/bin
54endef
55
56$(eval $(call BuildPackage,imsnif))
Note: See TracBrowser for help on using the repository browser.