Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.12.0.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 2a88d0392cd28eaec02b7ee727b2e253
  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:= ${MASTER_SITE_SOURCEFORGE:=dansguardian/}
  14. PKG_NEED_CXX:= 1
  15. PKG_CXX:= DANSGUARDIAN
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,DANSGUARDIAN,dansguardian,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. ifeq ($(ADK_COMPILE_DANSGUARDIAN_WITH_UCLIBCXX),y)
  20. LIBRARIES:=-nodefaultlibs -luClibc++ -lgcc -lm -lc -lgcc_s
  21. endif
  22. ifeq ($(ADK_TOOLCHAIN_USE_SSP),y)
  23. LIBRARIES+=-lssp
  24. endif
  25. ifeq ($(ADK_COMPILE_DANSGUARDIAN_WITH_UCLIBCXX),y)
  26. CONFIGURE_ENV+= CXXFLAGS="-fno-threadsafe-statics -fno-builtin -nostdinc++ \
  27. -I${STAGING_TARGET_DIR}/usr/include/uClibc++" \
  28. LIBS="$(LIBRARIES)"
  29. endif
  30. CONFIGURE_ARGS+= --enable-orig-ip \
  31. --with-proxyuser=proxy \
  32. --with-proxygroup=proxy
  33. post-install:
  34. ${INSTALL_DIR} ${IDIR_DANSGUARDIAN}/usr/sbin \
  35. ${IDIR_DANSGUARDIAN}/etc/dansguardian \
  36. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian/languages/ukenglish
  37. ${CP} ${WRKINST}/usr/share/dansguardian/languages/ukenglish/* \
  38. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian/languages/ukenglish
  39. ${CP} ${WRKINST}/usr/share/dansguardian/transparent1x1.gif \
  40. ${IDIR_DANSGUARDIAN}/usr/share/dansguardian
  41. ${CP} ${WRKINST}/etc/dansguardian/* \
  42. ${IDIR_DANSGUARDIAN}/etc/dansguardian
  43. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dansguardian \
  44. ${IDIR_DANSGUARDIAN}/usr/sbin/
  45. include ${TOPDIR}/mk/pkg-bottom.mk