fix ipcad compile
git-svn-id: svn://svn.openwrt.org/openwrt/packages@4449 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
17ad83c964
commit
ee05891f54
@ -27,8 +27,8 @@ define Package/ipcad
|
|||||||
DEPENDS:=+libpcap
|
DEPENDS:=+libpcap
|
||||||
TITLE:=listens for traffic on the specified interfaces
|
TITLE:=listens for traffic on the specified interfaces
|
||||||
DESCRIPTION:=This daemon listens for traffic on the specified interfaces.\\\
|
DESCRIPTION:=This daemon listens for traffic on the specified interfaces.\\\
|
||||||
It has the built-in RSH and NetFlow engines to allow exporting\\\
|
It has the built-in RSH and NetFlow engines to allow exporting\\\
|
||||||
the accounting data the same way as Cisco routers do.\\\
|
the accounting data the same way as Cisco routers do.\\\
|
||||||
URL:=http://lionet.info/ipcad/
|
URL:=http://lionet.info/ipcad/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -38,17 +38,25 @@ endef
|
|||||||
|
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(call Build/Configure/Default,--enable-shared \
|
$(call Build/Configure/Default,--enable-shared \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--with-gnu-ld \
|
--with-gnu-ld \
|
||||||
--with-psrc=pcap \
|
--with-psrc=pcap \
|
||||||
--with-pcap-include="$(STAGING_DIR)/usr/include" \
|
--with-pcap-include="$(STAGING_DIR)/usr/include" \
|
||||||
--with-pcap-libraries="$(STAGING_DIR)/usr/lib",touch cfglex.c cslex.c;)
|
--with-pcap-libraries="$(STAGING_DIR)/usr/lib", \
|
||||||
|
touch cfglex.c cslex.c; \
|
||||||
|
ac_cv_func_getifaddrs=no \
|
||||||
|
ac_cv_header_ifaddrs_h=no \
|
||||||
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
|
CFLAGS="$(TARGET_CFLAGS) -DHAVE_PCAP_H=1 -I$(STAGING_DIR)/usr/include" \
|
||||||
|
LIBS="-lnsl -pthread -lpcap" \
|
||||||
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
||||||
DESTDIR=$(PKG_INSTALL_DIR) \
|
DESTDIR=$(PKG_INSTALL_DIR) \
|
||||||
all install
|
all install
|
||||||
endef
|
endef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user