Makefile 1.6 KB

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