packages/net/olsrd: add example to use custom configs instead of uci
[openwrt/svn-archive/archive.git] / net / nbtscan / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nbtscan
12 PKG_VERSION:=1.5.1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/n/nbtscan/
16 PKG_MD5SUM:=
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)a
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/nbtscan
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=NBTscan is a program for scanning IP networks for NetBIOS name information
26 URL:=http://www.inetcat.net/software/nbtscan.html
27 endef
28
29 define Package/nbtscan/description
30 NBTscan is a program for scanning IP networks for NetBIOS name information.
31 It sends NetBIOS status query to each address in supplied range and lists
32 received information in human readable form. For each responded host it lists
33 IP address, NetBIOS computer name, logged-in user name and MAC address.
34 endef
35
36 CONFIGURE_ARGS += \
37 --enable-static \
38 --enable-shared
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 DESTDIR="$(PKG_INSTALL_DIR)"
43 endef
44
45
46 define Package/nbtscan/install
47 $(INSTALL_DIR) $(1)/usr/sbin/
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nbtscan $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,nbtscan))