small image builder change
[openwrt.git] / openwrt / package / nmap / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=nmap
6 PKG_VERSION:=3.81
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=0713306dda85aee2c95ef31b4b7d2838
9
10 PKG_SOURCE_URL:=http://download.insecure.org/nmap/dist
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,NMAP,nmap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 libpcapdir="$(STAGING_DIR)/usr/lib" \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -nostdinc++ -nodefaultlibs " \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -fno-builtin -nostdinc++ -nodefaultlibs -luClibc++ -lc -lm -lgcc_s" \
29 ac_cv_prog_CXX="$(TARGET_CXX)" \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 $(DISABLE_LARGEFILE) \
49 $(DISABLE_NLS) \
50 --without-openssl \
51 --without-nmapfe \
52 --with-libpcap="$(STAGING_DIR)/usr" \
53 --with-libpcre="$(STAGING_DIR)/usr" \
54 );
55 touch $@
56
57 $(PKG_BUILD_DIR)/.built:
58 mkdir -p $(PKG_INSTALL_DIR)
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 $(TARGET_CONFIGURE_OPTS) \
61 CCOPT="-fno-builtin -nostdinc++ -nodefaultlibs $(TARGET_CFLAGS)" \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 all install
64 touch $@
65
66 $(IPKG_NMAP):
67 install -d -m0755 $(IDIR_NMAP)/usr/share/nmap
68 for file in mac-prefixes os-fingerprints protocols rpc service-probes services; do \
69 cp -fpR $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$file $(IDIR_NMAP)/usr/share/nmap; \
70 done
71 install -d -m0755 $(IDIR_NMAP)/usr/bin
72 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/nmap $(IDIR_NMAP)/usr/bin/
73 $(RSTRIP) $(IDIR_NMAP)
74 $(IPKG_BUILD) $(IDIR_NMAP) $(PACKAGE_DIR)
75
76 mostlyclean:
77 $(MAKE) -C $(PKG_BUILD_DIR) clean
78 rm $(PKG_BUILD_DIR)/.built
This page took 0.037589 seconds and 5 git commands to generate.