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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= dhcp
  5. PKG_VERSION:= 4.1.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 38a74c89d8913b9b5f33737047623c18
  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 ${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 ${TOPDIR}/mk/pkg-bottom.mk