Ticket #2126: msniff.3.diff

File msniff.3.diff, 2.1 KB (added by jake1981@…, 9 years ago)

fixed, previous diff contained something not necessary for this package..

  • net/msniff/files/msniff.init

    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: net/msniff/files/msniff-0.1.3.tar.gz
    ___________________________________________________________________
    Name: svn:mime-type
       + application/octet-stream
    
     
     1#!/bin/sh /etc/rc.common 
     2#Copyright (C) 2007 RoadRunner.cx 
     3START=65 
     4 
     5start() { 
     6    /usr/sbin/msniff eth0.1 >> /var/log/msniff.log & 
     7} 
     8 
     9stop() { 
     10    [ `ps ax|grep -v grep|grep -c msniff` != "0" ] && killall -q msniff 
     11} 
  • net/msniff/Makefile

    Property changes on: net/msniff/files/msniff.init
    ___________________________________________________________________
    Name: svn:executable
       + *
    
     
     1#  
     2# Copyright (C) 2007 RoadRunner.cx 
     3# 
     4 
     5include $(TOPDIR)/rules.mk 
     6 
     7PKG_NAME:=msniff 
     8PKG_VERSION:=0.1.3 
     9PKG_RELEASE:=999 
     10 
     11PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     12 
     13include $(INCLUDE_DIR)/package.mk 
     14 
     15define Package/msniff 
     16  SECTION:=net 
     17  CATEGORY:=network 
     18  DEPENDS:=+libpcap 
     19  TITLE:=msniff 
     20  DESCRIPTION:=msniff captures MSN Messenger conversations 
     21  URL:=http://shh.thathost.com/pub-unix 
     22endef 
     23 
     24define Build/Prepare 
     25        $(INSTALL_DIR) $(PKG_BUILD_DIR)  
     26        gzip -dc ./files/msniff-0.1.3.tar.gz | $(TAR) -C $(BUILD_DIR) -xvf - 
     27endef 
     28 
     29define Build/Compile 
     30        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     31                CC="$(TARGET_CC)" \ 
     32                CFLAGS="$(TARGET_CFLAGS)" \ 
     33                INCDIR="-I$(STAGING_DIR)/usr/include" \ 
     34                LIBDIR="-L$(STAGING_DIR)/usr/lib" 
     35endef 
     36 
     37define Package/msniff/install 
     38        $(INSTALL_DIR) $(1)/usr/sbin 
     39        $(INSTALL_DIR) $(1)/etc/init.d 
     40        $(CP) $(PKG_BUILD_DIR)/msniff $(1)/usr/sbin 
     41        $(CP) ./files/msniff.init $(1)/etc/init.d 
     42endef 
     43 
     44$(eval $(call BuildPackage,msniff))