2006-08-08 09:34:25 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=scdp
|
|
|
|
PKG_VERSION:=1.0b
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-03 17:33:08 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/scdp
|
|
|
|
PKG_MD5SUM:=7eafaf5a422e37d04715613993ed5d95
|
2006-08-08 09:34:25 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/scdp
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2006-10-03 17:33:08 +00:00
|
|
|
DEPENDS:=+libnet0
|
2006-08-08 09:34:25 +00:00
|
|
|
TITLE:=An utility to send CDP (Cisco Discovery Protocol) packets
|
|
|
|
URL:=http://sourceforge.net/projects/scdp
|
|
|
|
endef
|
2007-10-14 04:32:56 +00:00
|
|
|
|
|
|
|
define Package/scdp/description
|
|
|
|
This program sends CDP (Cisco Discovery Protocol) packets out on
|
|
|
|
selected interfaces and tells the connected switch (cisco only)
|
|
|
|
where the host is connected.
|
|
|
|
endef
|
2006-08-08 09:34:25 +00:00
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-03 17:33:08 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
, \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libnet-1.0.x/include" \
|
|
|
|
LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libnet-1.0.x/lib" \
|
2006-10-04 17:10:54 +00:00
|
|
|
PATH="$(STAGING_DIR)/usr/lib/libnet-1.0.x/bin:$$$$PATH" \
|
2006-10-03 17:33:08 +00:00
|
|
|
)
|
2006-08-08 09:34:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-10-30 13:51:50 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2006-08-08 09:34:25 +00:00
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/scdp/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scdp $(1)/usr/bin/
|
2006-08-08 09:34:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,scdp))
|