1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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:= dhcp
  5. PKG_VERSION:= 4.1.0p1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 325ff8338c5a21f89d5304ac13ffebdf
  8. PKG_DESCR:= ISC DHCP server
  9. PKG_SECTION:= net
  10. PKG_URL:= https://www.isc.org/software/dhcp
  11. PKG_SITES:= ftp://ftp.isc.org/isc/dhcp/
  12. PKG_DESCR_1:= ISC DHCP relay server
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,DHCP_SERVER,dhcp-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. $(eval $(call PKG_template,DHCP_RELAY,dhcp-relay,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
  16. ifeq ($(ADK_IPV6),y)
  17. CONFIGURE_ARGS+= --enable-dhcpv6
  18. else
  19. CONFIGURE_ARGS+= --disable-dhcpv6
  20. endif
  21. TCFLAGS+= -D_GNU_SOURCE
  22. CONFIGURE_STYLE:= gnu
  23. CONFIGURE_ENV+= ac_cv_file__dev_random=yes
  24. BUILD_STYLE= auto
  25. INSTALL_STYLE= auto
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_DHCP_RELAY}/usr/sbin
  28. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dhcrelay ${IDIR_DHCP_RELAY}/usr/sbin/
  29. ${INSTALL_DIR} ${IDIR_DHCP_SERVER}/usr/sbin
  30. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dhcpd ${IDIR_DHCP_SERVER}/usr/sbin/
  31. include ${TOPDIR}/mk/pkg-bottom.mk