2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=crowdcontrol
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
16 PKG_MD5SUM:=a0991ae3d1f1a361558bed1a4aa66a9c
18 include $(INCLUDE_DIR)/package.mk
20 define Package/crowdcontrol
23 SUBMENU:=Web Servers/Proxies
24 TITLE:=The extra-light http proxy server
25 URL:=http://sourceforge.net/projects/crowdcontrol/
28 define Package/crowdcontrol/description
29 Crowd Control is an small, cross-platform HTTP proxy (a fork of the elhttp project)
30 designed for systems with little RAM, such as a home router. It can filter URLs using
31 SquidGuard blocklists, and has the unique ability to filter HTTPS domains as well.
34 define Build/Configure
38 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/crowdcontrol $(PKG_BUILD_DIR)/crowdcontrol.c
41 define Package/crowdcontrol/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_DIR) $(1)/etc/crowdcontrol
44 $(CP) $(PKG_BUILD_DIR)/crowdcontrol $(1)/usr/sbin
45 $(CP) $(PKG_BUILD_DIR)/*-{domains,expressions,urls} $(1)/etc/crowdcontrol/
48 define Package/crowdcontrol/conffiles
49 /etc/crowdcontrol/blocked-domains
50 /etc/crowdcontrol/blocked-expressions
51 /etc/crowdcontrol/blocked-urls
52 /etc/crowdcontrol/permitted-domains
53 /etc/crowdcontrol/permitted-expressions
54 /etc/crowdcontrol/permitted-urls
57 $(eval $(call BuildPackage,crowdcontrol))