add missing .configured target
[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:=2
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 -fno-rtti -nostdinc++" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
29 LIBS="-luClibc++ -lc -lm" \
30 ac_cv_prog_CXX="$(TARGET_CXX)" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc \
49 $(DISABLE_LARGEFILE) \
50 $(DISABLE_NLS) \
51 --without-openssl \
52 --without-nmapfe \
53 --with-libpcap="$(STAGING_DIR)/usr" \
54 --with-libpcre="$(STAGING_DIR)/usr" \
55 );
56 touch $@
57
58 $(PKG_BUILD_DIR)/.built:
59 mkdir -p $(PKG_INSTALL_DIR)
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 $(TARGET_CONFIGURE_OPTS) \
62 CCOPT="$(TARGET_CFLAGS) -fno-builtin -nostdinc++" \
63 DESTDIR="$(PKG_INSTALL_DIR)" \
64 all install
65 touch $@
66
67 $(IPKG_NMAP):
68 install -d -m0755 $(IDIR_NMAP)/usr/share/nmap
69 for file in mac-prefixes os-fingerprints protocols rpc service-probes services; do \
70 cp -fpR $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$file $(IDIR_NMAP)/usr/share/nmap; \
71 done
72 install -d -m0755 $(IDIR_NMAP)/usr/bin
73 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/nmap $(IDIR_NMAP)/usr/bin/
74 $(RSTRIP) $(IDIR_NMAP)
75 $(IPKG_BUILD) $(IDIR_NMAP) $(PACKAGE_DIR)
76
77 mostlyclean:
78 $(MAKE) -C $(PKG_BUILD_DIR) clean
79 rm $(PKG_BUILD_DIR)/.built
This page took 0.044305 seconds and 5 git commands to generate.