c1c8f45448118d012f4f3289ffdeeba096992775
[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 PKG_MD5SUM:=5f15c274de61dfb88e0dbfc1ccbe6b67
15
16 PKG_SOURCE_URL:=@SF/wccpd
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/wccpd
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=a Web Cache Coordination daemon
29 DESCRIPTION:=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 URL:=http://wccpd.sourceforge.net/
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default,
38 --enable-shared \
39 --enable-static \
40 --disable-rpath \
41 --with-gnu-ld \
42 )
43 endef
44
45 define Build/Compile
46 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" all install)
47 endef
48
49 define Package/wccpd/install
50 install -d -m0755 $(1)/usr/sbin
51 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/wccpd $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,wccpd))