1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 10:59:13 +02:00
openwrt-packages/net/ncp/Makefile
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00

50 lines
1.1 KiB
Makefile

#
# Copyright (C) 2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=ncp
PKG_VERSION:=1.2.4
PKG_RELEASE:=1
PKG_LICENSE:=FREE
PKG_LICENSE_FILES:=
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://dl.fefe.de/
PKG_HASH:=6cfa72edd5f7717bf7a4a93ccc74c4abd89892360e2e0bb095a73c24b9359b88
PKG_BUILD_DEPENDS:=libowfat
PKG_MAINTAINER:=Andreas Shimokawa <shimokawa@fsfe.org>
include $(INCLUDE_DIR)/package.mk
define Package/ncp
SECTION:=net
CATEGORY:=Network
TITLE:=copy files over the network
URL:=https://www.fefe.de/ncp/
endef
define Package/ncp/description
copy files over the network
endef
define Build/Compile
cd $(PKG_BUILD_DIR); \
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -I$(STAGING_DIR)/usr/include/libowfat ncp.c -lowfat -o ncp
endef
define Package/ncp/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ncp $(1)/usr/bin/
ln -sf ncp $(1)/usr/bin/npush
ln -sf ncp $(1)/usr/bin/npoll
endef
$(eval $(call BuildPackage,ncp))