Do not depend on kmod-ipv6 (#2423)
[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 endef
27
28 define Package/polipo/description
29 Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy, a proxy server).
30 While Polipo was designed to be used by one person or a small group of people, there is
31 nothing that prevents it from being used by a larger group.
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 CC="$(TARGET_CC)" \
37 CFLAGS="$(TARGET_CFLAGS)" \
38 polipo
39 endef
40
41 define Package/polipo/conffiles
42 /etc/polipo/polipo.conf
43 endef
44
45 define Package/polipo/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/polipo $(1)/usr/sbin/
48 $(INSTALL_DIR) $(1)/etc/polipo
49 $(INSTALL_CONF) $(PKG_BUILD_DIR)/config.sample $(1)/etc/polipo/polipo.conf
50 endef
51
52 $(eval $(call BuildPackage,polipo))