1
0

Makefile 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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:= lighttpd
  5. PKG_VERSION:= 1.4.25
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 87e936ec272ddaba8a2fdfecd8c6b704
  8. PKG_DESCR:= a lightweight web server
  9. PKG_SECTION:= www
  10. PKG_DEPENDS:= libxml2 libsqlite libpcre libopenssl
  11. PKG_BUILDDEP:= pcre libxml2 sqlite openssl
  12. PKG_URL:= http://www.lighttpd.net/
  13. PKG_SITES:= http://download.lighttpd.net/lighttpd/releases-1.4.x/
  14. PKG_MULTI:= 1
  15. PKG_SUBPKGS:= LIGHTTPD LIGHTTPD_MOD_ACCESSLOG LIGHTTPD_MOD_ALIAS LIGHTTPD_MOD_AUTH
  16. PKG_SUBPKGS+= LIGHTTPD_MOD_CGI LIGHTTPD_MOD_EVASIVE LIGHTTPD_MOD_EXPIRE LIGHTTPD_MOD_FASTCGI
  17. PKG_SUBPKGS+= LIGHTTPD_MOD_PROXY LIGHTTPD_MOD_REDIRECT LIGHTTPD_MOD_REWRITE LIGHTTPD_MOD_SETENV
  18. PKG_SUBPKGS+= LIGHTTPD_MOD_SIMPLE_VHOST LIGHTTPD_MOD_SSI LIGHTTPD_MOD_STATUS LIGHTTPD_MOD_USERTRACK
  19. PKG_SUBPKGS+= LIGHTTPD_MOD_WEBDAV
  20. include $(TOPDIR)/mk/package.mk
  21. define PKG_mod_template
  22. INSTALL_MODS_$${ADK_PACKAGE_${1}}+= ${2}-install
  23. ${2}-install:
  24. ${INSTALL_DIR} $$(IDIR_$(1))/usr/lib/lighttpd
  25. ${INSTALL_BIN} $(WRKINST)/usr/lib/lighttpd/mod_$(2).so $$(IDIR_$(1))/usr/lib/lighttpd/
  26. endef
  27. $(eval $(call PKG_template,LIGHTTPD,lighttpd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  28. $(eval $(call PKG_template,LIGHTTPD_MOD_ACCESSLOG,lighttpd-mod-accesslog,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  29. $(eval $(call PKG_template,LIGHTTPD_MOD_ALIAS,lighttpd-mod-alias,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  30. $(eval $(call PKG_template,LIGHTTPD_MOD_AUTH,lighttpd-mod-auth,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  31. $(eval $(call PKG_template,LIGHTTPD_MOD_CGI,lighttpd-mod-cgi,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  32. $(eval $(call PKG_template,LIGHTTPD_MOD_EVASIVE,lighttpd-mod-evasive,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  33. $(eval $(call PKG_template,LIGHTTPD_MOD_EXPIRE,lighttpd-mod-expire,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  34. $(eval $(call PKG_template,LIGHTTPD_MOD_FASTCGI,lighttpd-mod-fastcgi,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  35. $(eval $(call PKG_template,LIGHTTPD_MOD_PROXY,lighttpd-mod-proxy,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  36. $(eval $(call PKG_template,LIGHTTPD_MOD_REDIRECT,lighttpd-mod-redirect,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  37. $(eval $(call PKG_template,LIGHTTPD_MOD_REWRITE,lighttpd-mod-rewrite,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  38. $(eval $(call PKG_template,LIGHTTPD_MOD_SETENV,lighttpd-mod-setenv,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  39. $(eval $(call PKG_template,LIGHTTPD_MOD_SIMPLE_VHOST,lighttpd-mod-simple-vhost,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  40. $(eval $(call PKG_template,LIGHTTPD_MOD_SSI,lighttpd-mod-ssi,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  41. $(eval $(call PKG_template,LIGHTTPD_MOD_STATUS,lighttpd-mod-status,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  42. $(eval $(call PKG_template,LIGHTTPD_MOD_USERTRACK,lighttpd-mod-usertrack,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  43. $(eval $(call PKG_template,LIGHTTPD_MOD_WEBDAV,lighttpd-mod-webdav,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  44. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_ACCESSLOG,accesslog))
  45. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_ALIAS,alias))
  46. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_AUTH,auth))
  47. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_CGI,cgi))
  48. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_EVASIVE,evasive))
  49. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_EXPIRE,expire))
  50. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_FASTCGI,fastcgi))
  51. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_PROXY,proxy))
  52. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_REDIRECT,redirect))
  53. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_REWRITE,rewrite))
  54. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_SETENV,setenv))
  55. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_SIMPLE_VHOST,simple_vhost))
  56. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_SSI,ssi))
  57. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_STATUS,status))
  58. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_USERTRACK,usertrack))
  59. $(eval $(call PKG_mod_template,LIGHTTPD_MOD_WEBDAV,webdav))
  60. TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libxml2
  61. CONFIGURE_ENV+= PCRE_LIB="-lpcre"
  62. CONFIGURE_ARGS+= \
  63. --libdir=/usr/lib/lighttpd \
  64. --sysconfdir=/etc/lighttpd \
  65. --without-attr \
  66. --without-bzip2 \
  67. --without-fam \
  68. --without-gdbm \
  69. --without-ldap \
  70. --without-lua \
  71. --without-memcache \
  72. --without-mysql \
  73. --with-pcre \
  74. --without-valgrind \
  75. --with-webdav-props \
  76. --with-openssl='${STAGING_TARGET_DIR}/usr'
  77. post-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
  78. install -m0755 -d $(IDIR_LIGHTTPD)/etc
  79. install -m0644 ./files/lighttpd.conf $(IDIR_LIGHTTPD)/etc/
  80. install -m0755 -d $(IDIR_LIGHTTPD)/usr/lib/lighttpd
  81. for m in dirlisting indexfile staticfile; do \
  82. $(CP) $(WRKINST)/usr/lib/lighttpd/mod_$$m.so $(IDIR_LIGHTTPD)/usr/lib/lighttpd/ ; \
  83. done
  84. install -m0755 -d $(IDIR_LIGHTTPD)/usr/sbin
  85. $(CP) $(WRKINST)/usr/sbin/lighttpd $(IDIR_LIGHTTPD)/usr/sbin/
  86. include ${TOPDIR}/mk/pkg-bottom.mk