move polipo from ipv6 to net, put it in 'Proxy Servers' submenu, bump release number
[openwrt/svn-archive/archive.git] / net / 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$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=polipo
12 PKG_VERSION:=1.0.2
13 PKG_RELEASE:=2
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 SUBMENU:=Proxy Servers
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=a caching web proxy
26 URL:=http://www.pps.jussieu.fr/~jch/software/polipo/
27 endef
28
29 define Package/polipo/description
30 Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy,
31 a proxy server). While Polipo was designed to be used by one person or a
32 small group of people, there is nothing that prevents it from being used
33 by a larger group.
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 CC="$(TARGET_CC)" \
39 CFLAGS="$(TARGET_CFLAGS)" \
40 polipo
41 endef
42
43 define Package/polipo/conffiles
44 /etc/polipo/polipo.conf
45 endef
46
47 define Package/polipo/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/polipo $(1)/usr/sbin/
50 $(INSTALL_DIR) $(1)/etc/polipo
51 $(INSTALL_CONF) $(PKG_BUILD_DIR)/config.sample $(1)/etc/polipo/polipo.conf
52 endef
53
54 $(eval $(call BuildPackage,polipo))