2007-05-02 19:45:09 +00:00
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := netcat
PKG_VERSION := 0.7.1
2009-02-07 02:33:24 +00:00
PKG_RELEASE := 2
2007-05-02 19:45:09 +00:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.bz2
PKG_SOURCE_URL := @SF/$( PKG_NAME)
PKG_MD5SUM := 0a29eff1736ddb5effd0b1ec1f6fe0ef
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / n e t c a t
SECTION:= net
CATEGORY:= Network
TITLE:= A feature-rich network debugging and exploration tool.
URL:= http://netcat.sourceforge.net/
e n d e f
2007-10-14 04:32:56 +00:00
d e f i n e P a c k a g e / n e t c a t / d e s c r i p t i o n
Netcat is a featured networking utility which reads and writes data across network connections, using the TCP/IP protocol.
It is designed to be a reliable "back-end" tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.
e n d e f
2007-05-02 19:45:09 +00:00
d e f i n e B u i l d / C o n f i g u r e
$( call Build/Configure/Default, \
--disable-rpath \
--with-included-getopt \
)
e n d e f
d e f i n e B u i l d / C o m p i l e
DESTDIR = " $( PKG_INSTALL_DIR) " \
$( MAKE) -C $( PKG_BUILD_DIR) \
all install
e n d e f
d e f i n e P a c k a g e / n e t c a t / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/netcat \
$( 1) /usr/bin
e n d e f
d e f i n e P a c k a g e / n e t c a t / p o s t i n s t
#!/bin/sh
i f [ - e $$ { I P K G _ I N S T R O O T } / u s r / b i n / n c ] ; t h e n
rm -rf $$ { IPKG_INSTROOT} /usr/bin/nc;
f i
l n - s . / n e t c a t $$ { I P K G _ I N S T R O O T } / u s r / b i n / n c
e n d e f
d e f i n e P a c k a g e / n e t c a t / p o s t r m
#!/bin/sh
r m $$ { I P K G _ I N S T R O O T } / u s r / b i n / n c
l n - s . . / . . / b i n / b u s y b o x $$ { I P K G _ I N S T R O O T } / u s r / b i n / n c
$$ { I P K G _ I N S T R O O T } / u s r / b i n / n c 2 > & 1 | g r e p 'applet not found' > / d e v / n u l l 2 > & 1 & & r m $$ { I P K G _ I N S T R O O T } / u s r / b i n / n c
e x i t 0
e n d e f
$( eval $ ( call BuildPackage ,netcat ) )