Makefile (733B)
1 # 2 # This software is licensed under the CC0-1.0 license. 3 # 4 include $(TOPDIR)/rules.mk 5 6 PKG_NAME:=sockread 7 PKG_VERSION:=1.0 8 PKG_RELEASE:=1 9 PKG_LICENSE:=CC0-1.0 10 11 include $(INCLUDE_DIR)/package.mk 12 13 define Package/sockread 14 SECTION:=utils 15 CATEGORY:=Utilities 16 TITLE:=sockread 17 MAINTAINER:=Moritz Warning <moritzwarning@web.de> 18 endef 19 20 define Package/sockread/description 21 sockread writes and reads data from a Unix domain socket 22 represented as a special file on the file system. 23 endef 24 25 define Build/Prepare 26 mkdir -p $(PKG_BUILD_DIR) 27 $(CP) ./src/* $(PKG_BUILD_DIR)/ 28 endef 29 30 define Package/sockread/install 31 $(INSTALL_DIR) $(1)/usr/bin 32 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sockread $(1)/usr/bin/ 33 endef 34 35 $(eval $(call BuildPackage,sockread))