Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:= dhcp
  5. PKG_VERSION:= 4.1.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 37058685bffbfeb793cfb0867f0b1911f8d238ea69fbaa6cbb165455ab803618
  8. PKG_DESCR:= dhcp server
  9. PKG_SECTION:= net/dns
  10. PKG_URL:= https://www.isc.org/software/dhcp/
  11. PKG_SITES:= ftp://ftp.isc.org/isc/dhcp/${PKG_VERSION}/
  12. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  13. PKG_SUBPKGS:= DHCP_SERVER DHCP_RELAY
  14. PKGSD_DHCP_RELAY:= dhcp relay server
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,DHCP_SERVER,dhcp-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,DHCP_RELAY,dhcp-relay,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DHCP_RELAY},${PKG_SECTION}))
  18. CONFIGURE_ENV+= ac_cv_file__dev_random=yes
  19. dhcp-relay-install:
  20. ${INSTALL_DIR} ${IDIR_DHCP_RELAY}/usr/sbin
  21. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dhcrelay \
  22. ${IDIR_DHCP_RELAY}/usr/sbin/
  23. dhcp-server-install:
  24. ${INSTALL_DIR} ${IDIR_DHCP_SERVER}/usr/sbin
  25. ${INSTALL_DIR} ${IDIR_DHCP_SERVER}/etc
  26. ${INSTALL_DATA} ./files/dhcpd.conf ${IDIR_DHCP_SERVER}/etc
  27. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dhcpd \
  28. ${IDIR_DHCP_SERVER}/usr/sbin/
  29. include ${ADK_TOPDIR}/mk/pkg-bottom.mk