[package] add missing cross-compilation patch from #5468, thanks swalker
[openwrt/svn-archive/archive.git] / net / wccpd / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=wccpd
11 PKG_VERSION:=0.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/wccpd
16 PKG_MD5SUM:=5f15c274de61dfb88e0dbfc1ccbe6b67
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/wccpd
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=a Web Cache Coordination daemon
24 URL:=http://wccpd.sourceforge.net/
25 endef
26
27 define Package/wccpd/description
28 wccpd is a WCCP (Web Cache Coordination Protocol) server daemon
29 It allows a router (running Linux) to redirect web traffic to a
30 group of Squid servers using WCCP as the monitoring/controling
31 protocol.
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default)
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all install
42 endef
43
44 define Package/wccpd/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wccpd $(1)/usr/sbin/
47 endef
48
49 $(eval $(call BuildPackage,wccpd))