ddc49dfbf608bd632bbd8de6a18308f382060440
[openwrt/svn-archive/archive.git] / net / crowdcontrol / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=crowdcontrol
12 PKG_VERSION:=0.4b
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
17 PKG_MD5SUM:=a0991ae3d1f1a361558bed1a4aa66a9c
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/crowdcontrol
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=The extra-light http proxy server
28 URL:=http://sourceforge.net/projects/crowdcontrol/
29 endef
30
31 define Package/crowdcontrol/description
32 Crowd Control is an small, cross-platform HTTP proxy (a fork of the elhttp project)
33 designed for systems with little RAM, such as a home router. It can filter URLs using
34 SquidGuard blocklists, and has the unique ability to filter HTTPS domains as well.
35 endef
36
37 define Build/Configure
38 endef
39
40 define Build/Compile
41 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/crowdcontrol $(PKG_BUILD_DIR)/crowdcontrol.c
42 endef
43
44 define Package/crowdcontrol/install
45 mkdir -p $(1)/usr/sbin
46 mkdir -p $(1)/etc/crowdcontrol
47 $(CP) $(PKG_BUILD_DIR)/crowdcontrol $(1)/usr/sbin
48 $(CP) $(PKG_BUILD_DIR)/*-{domains,expressions,urls} $(1)/etc/crowdcontrol/
49 endef
50
51 $(eval $(call BuildPackage,crowdcontrol))