Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= dansguardian
  5. PKG_VERSION:= 2.10.1.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 0987a1c9bfbdf398118386f10279611a
  8. PKG_DESCR:= web content filter proxy
  9. PKG_SECTION:= proxy
  10. PKG_DEPENDS:= libpcre zlib
  11. PKG_BUILDDEP:= pcre zlib
  12. PKG_URL:= http://dansguardian.org/
  13. PKG_SITES:= http://dansguardian.org/downloads/2/Stable/
  14. PKG_NEED_CXX:= 1
  15. PKG_CXX:= DANSGUARDIAN
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,DANSGUARDIAN,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. LIBRARIES:=-nodefaultlibs -luClibc++ -lgcc -lm
  19. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  20. LIBRARIES+=-lssp
  21. endif
  22. ifeq ($(ADK_COMPILE_DANSGUARDIAN_WITH_UCLIBCXX),y)
  23. CONFIGURE_ENV+= CXXFLAGS="-fno-threadsafe-statics -fno-builtin -nostdinc++ \
  24. -I${STAGING_TARGET_DIR}/usr/include/uClibc++" \
  25. LIBS="$(LIBRARIES)"
  26. endif
  27. CONFIGURE_ARGS+= --enable-orig-ip \
  28. --with-proxyuser=proxy \
  29. --with-proxygroup=proxy
  30. post-install:
  31. ${INSTALL_DIR} ${IDIR_DANSGUARDIAN}/usr/sbin \
  32. ${IDIR_DANSGUARDIAN}/etc/dansguardian \
  33. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian/languages/ukenglish
  34. ${CP} ${WRKINST}/usr/share/dansguardian/languages/ukenglish/* \
  35. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian/languages/ukenglish
  36. ${CP} ${WRKINST}/usr/share/dansguardian/transparent1x1.gif \
  37. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian
  38. ${CP} ${WRKINST}/etc/dansguardian/* \
  39. ${IDIR_DANSGUARDIAN}/etc/dansguardian
  40. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dansguardian \
  41. ${IDIR_DANSGUARDIAN}/usr/sbin/
  42. include ${TOPDIR}/mk/pkg-bottom.mk