lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1317B)


      1 #
      2 # Copyright (C) 2006-2014 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:=tinyproxy
     11 PKG_VERSION:=1.8.3
     12 PKG_RELEASE:=2
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
     15 PKG_SOURCE_URL:=http://www.banu.com/pub/tinyproxy/1.8/
     16 PKG_MD5SUM:=292ac51da8ad6ae883d4ebf56908400d
     17 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
     18 
     19 PKG_INSTALL:=1
     20 
     21 include $(INCLUDE_DIR)/package.mk
     22 
     23 define Package/tinyproxy
     24   SUBMENU:=Web Servers/Proxies
     25   SECTION:=net
     26   CATEGORY:=Network
     27   TITLE:=Tinyproxy is a lightweight HTTP and HTTPS proxy
     28   URL:=http://tinyproxy.sourceforge.net/
     29 endef
     30 
     31 define Package/tinyproxy/conffiles
     32 /etc/config/tinyproxy
     33 endef
     34 
     35 CONFIGURE_ARGS+= \
     36 	--enable-filter \
     37 	--enable-transparent \
     38 	--disable-regexcheck \
     39 
     40 define Package/tinyproxy/install
     41 	$(INSTALL_DIR) $(1)/usr/sbin
     42 	$(CP) $(PKG_INSTALL_DIR)/usr/sbin/tinyproxy $(1)/usr/sbin/
     43 	$(INSTALL_DIR) $(1)/usr/share/tinyproxy
     44 	$(CP) $(PKG_INSTALL_DIR)/usr/share/tinyproxy/*.html $(1)/usr/share/tinyproxy/
     45 	$(INSTALL_DIR) $(1)/etc/config
     46 	$(INSTALL_CONF) ./files/tinyproxy.config $(1)/etc/config/tinyproxy
     47 	$(INSTALL_DIR) $(1)/etc/init.d
     48 	$(INSTALL_BIN) ./files/tinyproxy.init $(1)/etc/init.d/tinyproxy
     49 endef
     50 
     51 $(eval $(call BuildPackage,tinyproxy))