1
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e6e486be75b0d6433bac22a7de0e11f5
  8. PKG_DESCR:= A port-knocking client
  9. PKG_SECTION:= 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. PKG_SUBPKGS:= KNOCK KNOCKD
  14. PKGSD_KNOCKD:= A port-knocking server
  15. PKGSS_KNOCKD:= libpcap
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,KNOCK,knock,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,KNOCKD,knockd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_KNOCKD},${PKGSD_KNOCKD},${PKG_SECTION}))
  19. TARGET_CPPFLAGS+= -D_GNU_SOURCE
  20. CONFIGURE_ENV+= ac_cv_lib_pcap_pcap_open_live=yes
  21. knock-install:
  22. ${INSTALL_DIR} ${IDIR_KNOCK}/usr/bin
  23. ${CP} ${WRKINST}/usr/bin/knock ${IDIR_KNOCK}/usr/bin/
  24. knockd-install:
  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