2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/scdp
17 PKG_MD5SUM
:=7eafaf5a422e37d04715613993ed5d95
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
29 TITLE
:=An utility to send CDP
(Cisco Discovery Protocol
) packets
31 This program sends CDP
(Cisco Discovery Protocol
) packets out on
\\\
32 selected interfaces and tells the connected switch
(cisco only
)\\\
33 where the host is connected.
34 URL
:=http
://sourceforge.net
/projects
/scdp
37 define Build
/Configure
38 $(call Build
/Configure
/Default
, \
40 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libnet-1.0.x/include" \
41 LDFLAGS
="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libnet-1.0.x/lib" \
42 PATH
="$(STAGING_DIR)/usr/lib/libnet-1.0.x/bin:$$$$PATH" \
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
48 DESTDIR
="$(PKG_INSTALL_DIR)" \
52 define Package
/scdp
/install
53 $(INSTALL_DIR
) $(1)/usr
/bin
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/scdp
$(1)/usr
/bin
/
57 $(eval
$(call BuildPackage
,scdp
))