source: packages/net/dansguardian/Makefile @ 26061

Last change on this file since 26061 was 26061, checked in by cshore, 5 years ago

[net] Web Servers/Proxies: Move all web servers, proxies, and related programs into the combined Web Servers/Proxies category. One-stop shopping.

File size: 1.7 KB
Line 
1#
2# Copyright (C) 2008-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=dansguardian
11PKG_VERSION:=2.10.1.1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://dansguardian.org/downloads/2/Stable
16PKG_MD5SUM:=0987a1c9bfbdf398118386f10279611a
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/dansguardian
23  SECTION:=net
24  DEPENDS:=+libpthread +uclibcxx +zlib
25  CATEGORY:=Network
26  SUBMENU:=Web Servers/Proxies
27  TITLE:=DansGuardian
28  URL:=http://dansguardian.org
29endef
30
31define Package/dansguardian/conffiles
32/etc/dansguardian/dansguardian.conf
33endef
34
35CONFIGURE_VARS += \
36        INCLUDES="" \
37        CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++"  \
38        CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
39        LDFLAGS="$$$$LDFLAGS" \
40        LIBS="-nodefaultlibs -luClibc++ -lpthread $(LIBGCC_S)" \
41
42define Build/Configure
43        $(call Build/Configure/Default,\
44                --disable-clamav \
45                --with-sysconfsubdir=dansguardian \
46                --with-proxyuser=root \
47                --with-proxygroup=root \
48                --disable-pcre \
49        )
50endef
51
52define Package/dansguardian/install
53        $(INSTALL_DIR) $(1)/usr/sbin
54        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dansguardian $(1)/usr/sbin/
55        $(INSTALL_DIR) $(1)/etc
56        $(CP) $(PKG_INSTALL_DIR)/etc/dansguardian $(1)/etc/
57        $(INSTALL_DIR) $(1)/usr/share/dansguardian
58        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/dansguardian/transparent1x1.gif $(1)/usr/share/dansguardian/
59        $(INSTALL_DIR) $(1)/usr/share/dansguardian/languages/ukenglish
60        $(CP) $(PKG_INSTALL_DIR)/usr/share/dansguardian/languages/ukenglish/* $(1)/usr/share/dansguardian/languages/ukenglish/
61endef
62
63$(eval $(call BuildPackage,dansguardian))
Note: See TracBrowser for help on using the repository browser.