[8.09] merge r17680
[openwrt/svn-archive/archive.git] / net / scdp / Makefile
1 #
2 # Copyright (C) 2006 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:=scdp
12 PKG_VERSION:=1.0b
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/scdp
17 PKG_MD5SUM:=7eafaf5a422e37d04715613993ed5d95
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/scdp
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libnet0
25 TITLE:=An utility to send CDP (Cisco Discovery Protocol) packets
26 URL:=http://sourceforge.net/projects/scdp
27 endef
28
29 define Package/scdp/description
30 This program sends CDP (Cisco Discovery Protocol) packets out on
31 selected interfaces and tells the connected switch (cisco only)
32 where the host is connected.
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 , \
38 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libnet-1.0.x/include" \
39 LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libnet-1.0.x/lib" \
40 PATH="$(STAGING_DIR)/usr/lib/libnet-1.0.x/bin:$$$$PATH" \
41 )
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Package/scdp/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scdp $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,scdp))