暫無描述

Makefile 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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:=1
  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_MD5SUM:=86939e331e656f638271f578b6e3f893
  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. define Build/Compile
  30. $(MAKE) -C $(PKG_BUILD_DIR) \
  31. CC="$(TARGET_CC)" \
  32. CFLAGS="$(TARGET_CFLAGS)" \
  33. polipo
  34. endef
  35. define Package/polipo/conffiles
  36. /etc/config/polipo
  37. /etc/polipo/config
  38. endef
  39. define Package/polipo/install
  40. $(INSTALL_DIR) $(1)/usr/sbin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/polipo $(1)/usr/sbin/
  42. $(INSTALL_DIR) $(1)/etc/polipo
  43. $(INSTALL_CONF) $(PKG_BUILD_DIR)/config.sample $(1)/etc/polipo/config
  44. $(INSTALL_DIR) $(1)/etc/config
  45. $(INSTALL_DATA) ./files/polipo.config $(1)/etc/config/polipo
  46. $(INSTALL_DIR) $(1)/etc/init.d
  47. $(INSTALL_BIN) ./files/polipo.init $(1)/etc/init.d/polipo
  48. endef
  49. $(eval $(call BuildPackage,polipo))