add proftpd
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=polipo
11 PKG_VERSION:=1.0.4
12 PKG_RELEASE:=1
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_MD5SUM:=defdce7f8002ca68705b6c2c36c4d096
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/polipo
21 SUBMENU:=Proxy Servers
22 SECTION:=net
23 CATEGORY:=Network
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,
30 a proxy server). While Polipo was designed to be used by one person or a
31 small group of people, there is nothing that prevents it from being used
32 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 polipo
40 endef
41
42 define Package/polipo/conffiles
43 /etc/config/polipo
44 /etc/polipo/config
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/config
52 $(INSTALL_DIR) $(1)/etc/config
53 $(INSTALL_DATA) ./files/polipo.config $(1)/etc/config/polipo
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/polipo.init $(1)/etc/init.d/polipo
56 endef
57
58 $(eval $(call BuildPackage,polipo))