Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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:= knock
  5. PKG_VERSION:= 0.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ca09d61458974cff90a700aba6120891
  8. PKG_DESCR:= A port-knocking client
  9. PKG_SECTION:= net
  10. PKG_URL:= http://www.zeroflux.org/projects/knock
  11. PKG_SITES:= http://www.zeroflux.org/proj/knock/files/
  12. PKG_DESCR_1:= A port-knocking server
  13. PKG_DEPENDS_1:= libpcap
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,KNOCK,knock,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,KNOCKD,knockd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_1},${PKG_DESCR_1},${PKG_SECTION}))
  17. TCXXFLAGS+= ${TCPPFLAGS} ${TCFLAGS}
  18. CONFIGURE_STYLE= gnu
  19. CONFIGURE_ENV+= ac_cv_lib_pcap_pcap_open_live=yes
  20. BUILD_STYLE= auto
  21. INSTALL_STYLE= auto
  22. post-install:
  23. ${INSTALL_DIR} ${IDIR_KNOCK}/usr/bin
  24. ${CP} ${WRKINST}/usr/bin/knock ${IDIR_KNOCK}/usr/bin/
  25. ${INSTALL_DIR} ${IDIR_KNOCKD}/etc
  26. install -m0600 ${WRKINST}/etc/knockd.conf ${IDIR_KNOCKD}/etc/
  27. ${INSTALL_DIR} ${IDIR_KNOCKD}/usr/sbin
  28. ${CP} ${WRKINST}/usr/sbin/knockd ${IDIR_KNOCKD}/usr/sbin/
  29. include ${TOPDIR}/mk/pkg-bottom.mk