libv4l: update to 1.22.1
[feed/packages.git] / net / polipo / Makefile
1 #
2 # Copyright (C) 2007-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=polipo
11 PKG_VERSION:=1.1.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/$(PKG_NAME)/
16 PKG_HASH:=a259750793ab79c491d05fcee5a917faf7d9030fb5d15e05b3704e9c9e4ee015
17
18 PKG_CPE_ID:=cpe:/a:pps.jussieu:polipo
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/polipo
23 SUBMENU:=Web Servers/Proxies
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=A caching web proxy
27 URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/polipo/
28 MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
29 endef
30
31 define Package/polipo/description
32 Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy,
33 a proxy server). While Polipo was designed to be used by one person or a
34 small group of people, there is nothing that prevents it from being used
35 by a larger group.
36 endef
37
38 TARGET_CFLAGS += -DHAVE_IPv6
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 CC="$(TARGET_CC)" \
43 CFLAGS="$(TARGET_CFLAGS)" \
44 polipo
45 endef
46
47 define Package/polipo/conffiles
48 /etc/config/polipo
49 /etc/polipo/config
50 endef
51
52 define Package/polipo/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/polipo $(1)/usr/sbin/
55 $(INSTALL_DIR) $(1)/etc/polipo
56 $(INSTALL_CONF) $(PKG_BUILD_DIR)/config.sample $(1)/etc/polipo/config
57 $(INSTALL_DIR) $(1)/etc/config
58 $(INSTALL_DATA) ./files/polipo.config $(1)/etc/config/polipo
59 $(INSTALL_DIR) $(1)/etc/init.d
60 $(INSTALL_BIN) ./files/polipo.init $(1)/etc/init.d/polipo
61 endef
62
63 $(eval $(call BuildPackage,polipo))