2 # Copyright (C) 2008-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=dansguardian
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://dansguardian.org/downloads/2/Stable
16 PKG_MD5SUM:=0987a1c9bfbdf398118386f10279611a
20 include $(INCLUDE_DIR)/package.mk
22 define Package/dansguardian
24 DEPENDS:=+libpthread +uclibcxx +zlib
26 SUBMENU:=Web Servers/Proxies
28 URL:=http://dansguardian.org
31 define Package/dansguardian/conffiles
32 /etc/dansguardian/dansguardian.conf
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)" \
42 define Build/Configure
43 $(call Build/Configure/Default,\
45 --with-sysconfsubdir=dansguardian \
46 --with-proxyuser=root \
47 --with-proxygroup=root \
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/
63 $(eval $(call BuildPackage,dansguardian))