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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= knock
  5. PKG_VERSION:= 0.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= cb6373fd4ccb42eeca3ff406b7fdb8a7
  8. PKG_DESCR:= port-knocking client
  9. PKG_SECTION:= net/firewall
  10. PKG_BUILDDEP:= libpcap
  11. PKG_URL:= http://www.zeroflux.org/projects/knock
  12. PKG_SITES:= http://www.zeroflux.org/proj/knock/files/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. PKG_SUBPKGS:= KNOCK KNOCKD
  15. PKGSD_KNOCKD:= port-knocking server
  16. PKGSS_KNOCKD:= libpcap
  17. include ${ADK_TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,KNOCK,knock,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,KNOCKD,knockd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_KNOCKD},${PKGSD_KNOCKD},${PKG_SECTION}))
  20. TARGET_CPPFLAGS+= -D_GNU_SOURCE
  21. CONFIGURE_ENV+= ac_cv_lib_pcap_pcap_open_live=yes
  22. knock-install:
  23. ${INSTALL_DIR} ${IDIR_KNOCK}/usr/bin
  24. ${CP} ${WRKINST}/usr/bin/knock ${IDIR_KNOCK}/usr/bin/
  25. knockd-install:
  26. ${INSTALL_DIR} ${IDIR_KNOCKD}/etc
  27. install -m0600 ${WRKINST}/etc/knockd.conf ${IDIR_KNOCKD}/etc/
  28. ${INSTALL_DIR} ${IDIR_KNOCKD}/usr/sbin
  29. ${CP} ${WRKINST}/usr/sbin/knockd ${IDIR_KNOCKD}/usr/sbin/
  30. include ${ADK_TOPDIR}/mk/pkg-bottom.mk