2 # Copyright (C) 2006 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 TITLE:=The extra-light http proxy server
24 URL:=http://sourceforge.net/projects/crowdcontrol/
27 define Package/crowdcontrol/description
28 Crowd Control is an small, cross-platform HTTP proxy (a fork of the elhttp project)
29 designed for systems with little RAM, such as a home router. It can filter URLs using
30 SquidGuard blocklists, and has the unique ability to filter HTTPS domains as well.
33 define Build/Configure
37 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/crowdcontrol $(PKG_BUILD_DIR)/crowdcontrol.c
40 define Package/crowdcontrol/install
41 mkdir -p $(1)/usr/sbin
42 mkdir -p $(1)/etc/crowdcontrol
43 $(CP) $(PKG_BUILD_DIR)/crowdcontrol $(1)/usr/sbin
44 $(CP) $(PKG_BUILD_DIR)/*-{domains,expressions,urls} $(1)/etc/crowdcontrol/
47 $(eval $(call BuildPackage,crowdcontrol))