You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=polipo
  9. PKG_VERSION:=1.1.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/$(PKG_NAME)/
  13. PKG_HASH:=a259750793ab79c491d05fcee5a917faf7d9030fb5d15e05b3704e9c9e4ee015
  14. PKG_CPE_ID:=cpe:/a:pps.jussieu:polipo
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/polipo
  17. SUBMENU:=Web Servers/Proxies
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=A caching web proxy
  21. URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/polipo/
  22. MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
  23. endef
  24. define Package/polipo/description
  25. Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy,
  26. a proxy server). While Polipo was designed to be used by one person or a
  27. small group of people, there is nothing that prevents it from being used
  28. by a larger group.
  29. endef
  30. TARGET_CFLAGS += -DHAVE_IPv6
  31. define Build/Compile
  32. $(MAKE) -C $(PKG_BUILD_DIR) \
  33. CC="$(TARGET_CC)" \
  34. CFLAGS="$(TARGET_CFLAGS)" \
  35. polipo
  36. endef
  37. define Package/polipo/conffiles
  38. /etc/config/polipo
  39. /etc/polipo/config
  40. endef
  41. define Package/polipo/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/polipo $(1)/usr/sbin/
  44. $(INSTALL_DIR) $(1)/etc/polipo
  45. $(INSTALL_CONF) $(PKG_BUILD_DIR)/config.sample $(1)/etc/polipo/config
  46. $(INSTALL_DIR) $(1)/etc/config
  47. $(INSTALL_DATA) ./files/polipo.config $(1)/etc/config/polipo
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) ./files/polipo.init $(1)/etc/init.d/polipo
  50. endef
  51. $(eval $(call BuildPackage,polipo))