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