Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_BUILDDEP+= pcre zlib
  8. PKG_CXX:= DANSGUARDIAN
  9. PKG_MD5SUM:= 0987a1c9bfbdf398118386f10279611a
  10. PKG_DESCR:= web content filter proxy
  11. PKG_SECTION:= net
  12. PKG_DEPENDS:= pcre zlib
  13. PKG_URL:= http://dansguardian.org
  14. PKG_SITES:= http://dansguardian.org/downloads/2/Stable/
  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_STYLE:= gnu
  23. CONFIGURE_ARGS+= --enable-orig-ip \
  24. --with-proxyuser=proxy \
  25. --with-proxygroup=proxy
  26. BUILD_STYLE:= auto
  27. INSTALL_STYLE:= auto
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_DANSGUARDIAN}/usr/sbin ${IDIR_DANSGUARDIAN}/etc/dansguardian \
  30. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian/languages/ukenglish
  31. ${CP} ${WRKINST}/usr/share/dansguardian/languages/ukenglish/* \
  32. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian/languages/ukenglish
  33. ${CP} ${WRKINST}/usr/share/dansguardian/transparent1x1.gif \
  34. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian
  35. ${CP} ${WRKINST}/etc/dansguardian/* \
  36. ${IDIR_DANSGUARDIAN}/etc/dansguardian
  37. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dansguardian ${IDIR_DANSGUARDIAN}/usr/sbin/
  38. include ${TOPDIR}/mk/pkg-bottom.mk