[packages] massive: use $(INSTALL_DIR) instead of 'mkdir -p' in install and InstallDev
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=crowdcontrol
11 PKG_VERSION:=0.4b
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
16 PKG_MD5SUM:=a0991ae3d1f1a361558bed1a4aa66a9c
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/crowdcontrol
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=The extra-light http proxy server
24 URL:=http://sourceforge.net/projects/crowdcontrol/
25 endef
26
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.
31 endef
32
33 define Build/Configure
34 endef
35
36 define Build/Compile
37 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/crowdcontrol $(PKG_BUILD_DIR)/crowdcontrol.c
38 endef
39
40 define Package/crowdcontrol/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_DIR) $(1)/etc/crowdcontrol
43 $(CP) $(PKG_BUILD_DIR)/crowdcontrol $(1)/usr/sbin
44 $(CP) $(PKG_BUILD_DIR)/*-{domains,expressions,urls} $(1)/etc/crowdcontrol/
45 endef
46
47 $(eval $(call BuildPackage,crowdcontrol))