You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=ncp
  8. PKG_VERSION:=1.2.4
  9. PKG_RELEASE:=1
  10. PKG_LICENSE:=FREE
  11. PKG_LICENSE_FILES:=
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://dl.fefe.de/
  14. PKG_MD5SUM:=421c4855bd3148b7d0a4342942b4bf13
  15. PKG_BUILD_DEPENDS:=libowfat
  16. PKG_MAINTAINER:=Andreas Shimokawa <shimokawa@fsfe.org>
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/ncp
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=copy files over the network
  22. URL:=https://www.fefe.de/ncp/
  23. endef
  24. define Package/ncp/description
  25. copy files over the network
  26. endef
  27. define Build/Compile
  28. cd $(PKG_BUILD_DIR); \
  29. $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -I$(STAGING_DIR)/usr/include/libowfat ncp.c -lowfat -o ncp
  30. endef
  31. define Package/ncp/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ncp $(1)/usr/bin/
  34. ln -sf ncp $(1)/usr/bin/npush
  35. ln -sf ncp $(1)/usr/bin/npoll
  36. endef
  37. $(eval $(call BuildPackage,ncp))