Add polipo, IPv6-ready web caching proxy (#2392)
[openwrt/svn-archive/archive.git] / ipv6 / polipo / Makefile
1 #
2 # Copyright (C) 2007 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: Makefile 8594 2007-09-03 14:13:19Z nico $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=polipo
12 PKG_VERSION:=1.0.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/$(PKG_NAME)/
17 PKG_MD5SUM:=2d1d8af414429e5823675a781604c70a
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/polipo
22 SECTION:=ipv6
23 CATEGORY:=IPv6
24 TITLE:=a caching web proxy
25 URL:=http://www.pps.jussieu.fr/~jch/software/polipo/
26 DEPENDS:=+kmod-ipv6
27 endef
28
29 define Package/polipo/description
30 Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy, a proxy server).
31 While Polipo was designed to be used by one person or a small group of people, there is
32 nothing that prevents it from being used by a larger group.
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 CC="$(TARGET_CC)" \
38 CFLAGS="$(TARGET_CFLAGS)" \
39 all
40 endef
41
42 define Package/polipo/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
45 $(INSTALL_DIR) $(1)/var/cache/$(PKG_NAME)
46 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
47 $(INSTALL_CONF) $(PKG_BUILD_DIR)/config.sample $(1)/etc/$(PKG_NAME)/$(PKG_NAME).conf
48 endef
49
50 $(eval $(call BuildPackage,polipo))