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.
9 include $(TOPDIR)/rules.mk
11 PKG_NAME:=crowdcontrol
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@openwrt
17 PKG_MD5SUM:=a0991ae3d1f1a361558bed1a4aa66a9c
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/crowdcontrol
28 TITLE:=The extra-light http proxy server
29 URL:=http://sourceforge.net/projects/crowdcontrol/
32 define Package/crowdcontrol/description
33 Crowd Control is an small, cross-platform HTTP proxy (a fork of the elhttp project)
34 designed for systems with little RAM, such as a home router. It can filter URLs using
35 SquidGuard blocklists, and has the unique ability to filter HTTPS domains as well.
38 define Build/Configure
42 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/crowdcontrol $(PKG_BUILD_DIR)/crowdcontrol.c
45 define Package/crowdcontrol/install
46 mkdir -p $(1)/usr/sbin
47 mkdir -p $(1)/etc/crowdcontrol
48 $(CP) $(PKG_BUILD_DIR)/crowdcontrol $(1)/usr/sbin
49 $(CP) $(PKG_BUILD_DIR)/*-{domains,expressions,urls} $(1)/etc/crowdcontrol/
52 $(eval $(call BuildPackage,crowdcontrol))