Makefile 1.8 KB

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