2008-02-21 10:17:15 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2008-02-27 16:53:13 +00:00
|
|
|
# $Id$
|
2008-02-21 10:17:15 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=dansguardian
|
|
|
|
PKG_VERSION:=2.9.9.2
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://dansguardian.org/downloads/2/Beta
|
2008-02-27 16:53:13 +00:00
|
|
|
PKG_MD5SUM:=7877ee4d34df6ac538e6522755cedaf6
|
2008-02-21 10:17:15 +00:00
|
|
|
|
2008-02-27 16:53:13 +00:00
|
|
|
PKG_FIXUP = libtool
|
2008-02-21 10:17:15 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/dansguardian
|
|
|
|
SECTION:=net
|
2008-02-27 16:53:13 +00:00
|
|
|
DEPENDS:=+libpthread +uclibcxx +zlib
|
2008-02-21 10:17:15 +00:00
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=DansGuardian
|
|
|
|
URL:=http://dansguardian.org
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dansguardian/conffiles
|
|
|
|
/etc/dansguardian/dansguardian.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
INCLUDES="" \
|
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
|
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/uClibc++" \
|
|
|
|
LDFLAGS="$$$$LDFLAGS" \
|
2008-11-10 22:48:41 +00:00
|
|
|
LIBS="-nodefaultlibs -luClibc++ -lpthread -lgcc_s" \
|
2008-02-21 10:17:15 +00:00
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default,\
|
|
|
|
--disable-clamav \
|
|
|
|
--with-sysconfsubdir=dansguardian \
|
|
|
|
--with-proxyuser=root \
|
|
|
|
--with-proxygroup=root \
|
2008-02-27 16:53:13 +00:00
|
|
|
--disable-pcre \
|
2008-02-21 10:17:15 +00:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dansguardian/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dansguardian $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/dansguardian $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/dansguardian
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/dansguardian/transparent1x1.gif $(1)/usr/share/dansguardian/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/dansguardian/languages/ukenglish
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/dansguardian/languages/ukenglish/* $(1)/usr/share/dansguardian/languages/ukenglish/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,dansguardian))
|