| 1 | # $Id: Makefile 3298 2006-03-03 01:03:38Z nbd $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=dsniff
|
|---|
| 6 | PKG_VERSION:=2.4b1
|
|---|
| 7 | PKG_RELEASE:=2
|
|---|
| 8 | PKG_MD5SUM:=2f761fa3475682a7512b0b43568ee7d6
|
|---|
| 9 |
|
|---|
| 10 | PKG_SOURCE_URL:=http://www.monkey.org/~dugsong/dsniff/beta
|
|---|
| 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 12 |
|
|---|
| 13 | WRKBUILD:=${WRKDIR}/$(PKG_NAME)-2.4
|
|---|
| 14 |
|
|---|
| 15 | include $(TOPDIR)/package/rules.mk
|
|---|
| 16 |
|
|---|
| 17 | $(eval $(call PKG_template,DSNIFF,dsniff,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| 19 | $(WRKBUILD)/.configured:
|
|---|
| 20 | (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
|
|---|
| 21 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 22 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 23 | CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|---|
| 24 | LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
|---|
| 25 | ./configure \
|
|---|
| 26 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 27 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 28 | --build=$(GNU_HOST_NAME) \
|
|---|
| 29 | --program-prefix="" \
|
|---|
| 30 | --program-suffix="" \
|
|---|
| 31 | --prefix=/usr \
|
|---|
| 32 | --exec-prefix=/usr \
|
|---|
| 33 | --bindir=/usr/bin \
|
|---|
| 34 | --datadir=/usr/share \
|
|---|
| 35 | --includedir=/usr/include \
|
|---|
| 36 | --infodir=/usr/share/info \
|
|---|
| 37 | --libdir=/usr/lib \
|
|---|
| 38 | --libexecdir=/usr/lib \
|
|---|
| 39 | --localstatedir=/var \
|
|---|
| 40 | --mandir=/usr/share/man \
|
|---|
| 41 | --sbindir=/usr/sbin \
|
|---|
| 42 | --sysconfdir=/etc \
|
|---|
| 43 | --without-db \
|
|---|
| 44 | --without-x \
|
|---|
| 45 | --with-gdbm="$(STAGING_DIR)/usr" \
|
|---|
| 46 | --with-libnids="$(STAGING_DIR)/usr" \
|
|---|
| 47 | --with-libpcap="$(STAGING_DIR)/usr" \
|
|---|
| 48 | --with-libnet="$(STAGING_DIR)/usr" \
|
|---|
| 49 | --with-openssl="$(STAGING_DIR)/usr" \
|
|---|
| 50 | --enable-largefile \
|
|---|
| 51 | --disable-nls \
|
|---|
| 52 | );
|
|---|
| 53 | touch $@
|
|---|
| 54 |
|
|---|
| 55 | $(WRKBUILD)/.built:
|
|---|
| 56 | rm -rf $(WRKINST)
|
|---|
| 57 | mkdir -p $(WRKINST)
|
|---|
| 58 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 59 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 60 | install_prefix="$(WRKINST)" \
|
|---|
| 61 | all install
|
|---|
| 62 | touch $@
|
|---|
| 63 |
|
|---|
| 64 | $(IPKG_DSNIFF):
|
|---|
| 65 | install -d -m0755 $(IDIR_DSNIFF)/usr/lib
|
|---|
| 66 | install -d -m0755 $(IDIR_DSNIFF)/usr/sbin
|
|---|
| 67 | $(CP) $(WRKINST)/usr/sbin/* $(IDIR_DSNIFF)/usr/sbin
|
|---|
| 68 | $(CP) $(WRKINST)/usr/lib/* $(IDIR_DSNIFF)/usr/lib
|
|---|
| 69 | $(RSTRIP) $(IDIR_DSNIFF)
|
|---|
| 70 | $(IPKG_BUILD) $(IDIR_DSNIFF) $(PACKAGE_DIR)
|
|---|
| 71 |
|
|---|
| 72 | mostlyclean:
|
|---|
| 73 | make -C $(WRKBUILD) clean
|
|---|
| 74 | rm $(WRKBUILD)/.built
|
|---|