massive Makefile cleanup, add missing 'svn:keywords' property
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5348 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -11,14 +11,13 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_NAME:=arpd
|
||||
PKG_VERSION:=0.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_MD5SUM:=e2911fa9de1b92ef50deda1489ae944d
|
||||
|
||||
PKG_SOURCE_URL:=http://niels.xtdnet.nl/honeyd
|
||||
PKG_MD5SUM:=e2911fa9de1b92ef50deda1489ae944d
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://niels.xtdnet.nl/honeyd
|
||||
PKG_CAT:=zcat
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
@ -27,30 +26,27 @@ define Package/arpd
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+libpcap +libdnet +libevent
|
||||
TITLE:=A daemon to fake ARP replies
|
||||
DESCRIPTION:=A daemon to fake ARP replies
|
||||
URL:=http://niels.xtdnet.nl/honeyd
|
||||
URL:=http://niels.xtdnet.nl/honeyd/
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default,--enable-shared --disable-static \
|
||||
--with-libdnet=$(STAGING_DIR)/usr \
|
||||
--with-libevent=$(STAGING_DIR)/usr \
|
||||
--with-libpcap=$(STAGING_DIR)/usr \
|
||||
)
|
||||
$(call Build/Configure/Default, \
|
||||
--with-libdnet="$(STAGING_DIR)/usr" \
|
||||
--with-libevent="$(STAGING_DIR)/usr" \
|
||||
--with-libpcap="$(STAGING_DIR)/usr" \
|
||||
)
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
rm -rf $(PKG_INSTALL_DIR)
|
||||
mkdir -p $(PKG_INSTALL_DIR)
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
CCOPT="$(TARGET_CFLAGS)" \
|
||||
INCLS="-I. -I$(STAGING_DIR)/usr/include" \
|
||||
LIBS="-L$(STAGING_DIR)/usr/lib -lpcap -ldnet -levent"
|
||||
INCLS="-I. -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
||||
LIBS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lpcap -ldnet -levent"
|
||||
endef
|
||||
|
||||
define Package/arpd/install
|
||||
install -d -m0755 $(1)/usr/sbin
|
||||
$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
|
||||
install -m0755 $(PKG_BUILD_DIR)/arpd $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,arpd))
|
||||
|
Reference in New Issue
Block a user