Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_CXX:= DANSGUARDIAN
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,DANSGUARDIAN,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. ifeq ($(ADK_COMPILE_DANSGUARDIAN_WITH_UCLIBCXX),y)
  18. CONFIGURE_ENV+= CXXFLAGS="-fno-threadsafe-statics -fno-builtin -nostdinc++ \
  19. -I${STAGING_DIR}/usr/include/uClibc++" \
  20. LIBS="-nodefaultlibs -luClibc++ -lgcc -lm"
  21. endif
  22. CONFIGURE_ARGS+= --enable-orig-ip \
  23. --with-proxyuser=proxy \
  24. --with-proxygroup=proxy
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_DANSGUARDIAN}/usr/sbin \
  27. ${IDIR_DANSGUARDIAN}/etc/dansguardian \
  28. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian/languages/ukenglish
  29. ${CP} ${WRKINST}/usr/share/dansguardian/languages/ukenglish/* \
  30. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian/languages/ukenglish
  31. ${CP} ${WRKINST}/usr/share/dansguardian/transparent1x1.gif \
  32. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian
  33. ${CP} ${WRKINST}/etc/dansguardian/* \
  34. ${IDIR_DANSGUARDIAN}/etc/dansguardian
  35. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dansguardian \
  36. ${IDIR_DANSGUARDIAN}/usr/sbin/
  37. include ${TOPDIR}/mk/pkg-bottom.mk