1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include ${TOPDIR}/rules.mk
- PKG_NAME:= dansguardian
- PKG_VERSION:= 2.12.0.3
- PKG_RELEASE:= 1
- PKG_MD5SUM:= 2a88d0392cd28eaec02b7ee727b2e253
- PKG_DESCR:= web content filter proxy
- PKG_SECTION:= proxy
- PKG_DEPENDS:= libpcre zlib
- PKG_BUILDDEP:= pcre zlib
- PKG_URL:= http://dansguardian.org/
- PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=dansguardian/}
- PKG_NEED_CXX:= 1
- PKG_CXX:= DANSGUARDIAN
- DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
- include ${TOPDIR}/mk/package.mk
- $(eval $(call PKG_template,DANSGUARDIAN,dansguardian,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
- ifeq ($(ADK_COMPILE_DANSGUARDIAN_WITH_UCLIBCXX),y)
- LIBRARIES:=-nodefaultlibs -luClibc++ -lgcc -lm -lc -lgcc_s
- endif
- ifeq ($(ADK_TOOLCHAIN_USE_SSP),y)
- LIBRARIES+=-lssp
- endif
- ifeq ($(ADK_COMPILE_DANSGUARDIAN_WITH_UCLIBCXX),y)
- CONFIGURE_ENV+= CXXFLAGS="-fno-threadsafe-statics -fno-builtin -nostdinc++ \
- -I${STAGING_TARGET_DIR}/usr/include/uClibc++" \
- LIBS="$(LIBRARIES)"
- endif
- CONFIGURE_ARGS+= --enable-orig-ip \
- --with-proxyuser=proxy \
- --with-proxygroup=proxy
- post-install:
- ${INSTALL_DIR} ${IDIR_DANSGUARDIAN}/usr/sbin \
- ${IDIR_DANSGUARDIAN}/etc/dansguardian \
- ${IDIR_DANSGUARDIAN}/usr/share/dansguardian/languages/ukenglish
- ${CP} ${WRKINST}/usr/share/dansguardian/languages/ukenglish/* \
- ${IDIR_DANSGUARDIAN}/usr/share/dansguardian/languages/ukenglish
- ${CP} ${WRKINST}/usr/share/dansguardian/transparent1x1.gif \
- ${IDIR_DANSGUARDIAN}/usr/share/dansguardian
- ${CP} ${WRKINST}/etc/dansguardian/* \
- ${IDIR_DANSGUARDIAN}/etc/dansguardian
- ${INSTALL_BIN} ${WRKINST}/usr/sbin/dansguardian \
- ${IDIR_DANSGUARDIAN}/usr/sbin/
- include ${TOPDIR}/mk/pkg-bottom.mk
|