1
0

Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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:= mini-httpd
  5. PKG_VERSION:= 1.19
  6. PKG_RELEASE:= 10
  7. PKG_MD5SUM:= 7c68293ad265ecfe2edea917912f6f1f
  8. PKG_DESCR:= A small HTTP server with SSL
  9. PKG_MULTI:= 1
  10. PKG_SECTION:= www
  11. PKG_DEPENDS:= libopenssl
  12. PKG_BUILDDEP:= openssl
  13. PKG_URL:= http://www.acme.com/software/mini_httpd/
  14. PKG_SITES:= http://www.acme.com/software/mini_httpd/
  15. PKG_SUBPKGS:= MINI_HTTPD MINI_HTTPD_HTPASSWD
  16. PKGSD_HTPASSWD:= htpasswd utility
  17. DISTFILES:= mini_httpd-${PKG_VERSION}.tar.gz
  18. WRKDIST= ${WRKDIR}/mini_httpd-${PKG_VERSION}
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,MINI_HTTPD,mini-httpd,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,MINI_HTTPD_HTPASSWD,mini-httpd-htpasswd,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_HTPASSWD},${PKG_SECTION}))
  22. CONFIG_STYLE:= manual
  23. BUILD_STYLE:= manual
  24. INSTALL_STYLE:= manual
  25. do-build:
  26. ${MAKE} -C ${WRKBUILD} \
  27. CC="${TARGET_CC}" \
  28. SSL_DEFS="-DUSE_SSL -DHAVE_OPENSSL" \
  29. SSL_INC="-I${STAGING_TARGET_DIR}/usr/include" \
  30. SSL_LIBS="-L${STAGING_TARGET_DIR}/usr/lib -lssl -lcrypto" \
  31. all
  32. do-install:
  33. ${INSTALL_DIR} ${IDIR_MINI_HTTPD}/etc
  34. ${INSTALL_DATA} ./files/mini_httpd-ssl.conf \
  35. ${IDIR_MINI_HTTPD}/etc/mini_httpd.conf
  36. install -m0600 ./files/mini_httpd.pem ${IDIR_MINI_HTTPD}/etc/
  37. ${INSTALL_DIR} ${IDIR_MINI_HTTPD}/usr/sbin
  38. ${INSTALL_BIN} ${WRKBUILD}/mini_httpd \
  39. ${IDIR_MINI_HTTPD}/usr/sbin/mini_httpd
  40. include ${TOPDIR}/mk/pkg-bottom.mk