Makefile (1679B)
1 # 2 # Copyright (C) 2015-2016 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=u2pnpd 11 PKG_VERSION:=0.3 12 PKG_RELEASE:=1 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 15 PKG_SOURCE_URL:=https://github.com/mhei/u2pnpd/releases/download/v$(PKG_VERSION) 16 PKG_MD5SUM:=ac6f378590d3e4e38b40e4b13f03b369 17 18 PKG_LICENSE:=GPL-2.0 19 PKG_LICENSE_FILES:=COPYING 20 21 PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de> 22 23 PKG_INSTALL:=1 24 PKG_BUILD_PARALLEL:=1 25 26 include $(INCLUDE_DIR)/package.mk 27 28 define Package/u2pnpd 29 SECTION:=net 30 CATEGORY:=Network 31 TITLE:=Announce device via UPnP on the network 32 URL:=https://github.com/mhei/u2pnpd 33 DEPENDS:=+libupnp 34 endef 35 36 define Package/u2pnpd/description 37 This tools announces a device via UPnP on the local network, thus it is possible 38 to find it within the network neightboorhood of a well-known OS and the user 39 can easily double-click on an icon to open the web frontend of this device without 40 knowing the IP address. 41 endef 42 43 define Package/u2pnpd/install 44 $(INSTALL_DIR) $(1)/usr/bin 45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/u2pnpd $(1)/usr/bin/ 46 47 $(INSTALL_DIR) $(1)/etc/init.d 48 $(INSTALL_BIN) ./files/u2pnpd.init $(1)/etc/init.d/u2pnpd 49 50 $(INSTALL_DIR) $(1)/etc/uci-defaults 51 $(INSTALL_DATA) ./files/u2pnpd.defaults $(1)/etc/uci-defaults/u2pnpd 52 53 $(INSTALL_DIR) $(1)/etc/config 54 $(INSTALL_CONF) ./files/u2pnpd.config $(1)/etc/config/u2pnpd 55 endef 56 57 define Package/u2pnpd/postinst 58 #!/bin/sh 59 [ -n "$${IPKG_INSTROOT}" ] || (. /etc/uci-defaults/u2pnpd) && rm -f /etc/uci-defaults/u2pnpd 60 exit 0 61 endef 62 63 $(eval $(call BuildPackage,u2pnpd))