2014-03-27 07:05:06 +00:00
|
|
|
#
|
2014-03-08 00:56:59 +00:00
|
|
|
# Copyright (C) 2008-2014 OpenWrt.org
|
2011-11-16 20:02:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
2008-11-09 15:33:26 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=imsnif
|
|
|
|
PKG_VERSION:=0.04
|
2014-03-08 00:56:59 +00:00
|
|
|
PKG_RELEASE:=5
|
2008-11-09 15:33:26 +00:00
|
|
|
|
2009-06-13 17:01:55 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/im-snif
|
2008-11-09 15:33:26 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)f_$(PKG_VERSION).tgz
|
2011-11-16 20:02:41 +00:00
|
|
|
PKG_MD5SUM:=689c456f8edb77b9b4199a25514ac683
|
2008-11-09 15:33:26 +00:00
|
|
|
|
2012-08-04 17:02:04 +00:00
|
|
|
include $(INCLUDE_DIR)/uclibc++.mk
|
2008-11-09 15:33:26 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2009-06-20 15:21:37 +00:00
|
|
|
PKG_UNPACK:=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) -xvf -
|
|
|
|
|
2008-11-09 15:33:26 +00:00
|
|
|
define Package/imsnif
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 07:19:53 +00:00
|
|
|
SUBMENU:=Instant Messaging
|
2012-08-04 17:02:04 +00:00
|
|
|
DEPENDS:=+libpcap $(CXX_DEPENDS)
|
2008-11-09 15:33:26 +00:00
|
|
|
TITLE:=MSN Messenger sniffer
|
|
|
|
URL:=http://sourceforge.net/projects/im-snif
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imsnif/description
|
|
|
|
IMsnif is a simple program to log Instant Message activity
|
|
|
|
on the network. It uses libpcap to capture packets and
|
|
|
|
analyzes them, logging conversation, contact lists, etc.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2014-03-08 00:56:59 +00:00
|
|
|
$(TARGET_CXX) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -fno-rtti -I$(LINUX_DIR)/include \
|
2008-11-09 15:33:26 +00:00
|
|
|
-o $(PKG_BUILD_DIR)/src/imsnif \
|
|
|
|
$(PKG_BUILD_DIR)/src/imsniff.cpp \
|
|
|
|
$(PKG_BUILD_DIR)/src/util.cpp \
|
|
|
|
$(PKG_BUILD_DIR)/src/msn_conntrack.cpp \
|
|
|
|
$(PKG_BUILD_DIR)/src/msn_handlers.cpp \
|
2012-08-04 17:02:04 +00:00
|
|
|
-L$(STAGING_DIR)/usr/lib -lpcap \
|
2008-11-09 15:33:26 +00:00
|
|
|
$(PKG_BUILD_DIR)/src/pcap_stuff.cpp
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imsnif/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/docs/imsniff.conf.sample $(1)/etc/imsnif.conf
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/imsnif $(1)/etc/init.d
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/imsnif $(1)/usr/bin
|
|
|
|
endef
|
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/imsnif/conffiles
|
|
|
|
/etc/imsnif.conf
|
|
|
|
endef
|
|
|
|
|
2008-11-09 15:33:26 +00:00
|
|
|
$(eval $(call BuildPackage,imsnif))
|