packages/vnstat: rename uci config file, cleanup
[packages.git] / net / dansguardian / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dansguardian
11 PKG_VERSION:=2.10.1.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://dansguardian.org/downloads/2/Stable
16 PKG_MD5SUM:=0987a1c9bfbdf398118386f10279611a
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define 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
29 endef
30
31 define Package/dansguardian/conffiles
32 /etc/dansguardian/dansguardian.conf
33 endef
34
35 CONFIGURE_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
42 define 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         )
50 endef
51
52 define 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/
61 endef
62
63 $(eval $(call BuildPackage,dansguardian))