2 # Copyright (C) 2015-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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_HASH
:=73010be7ec523e3c3a9849a9783026627ecb3bc18d8195a9bed450e98a055ac2
19 PKG_LICENSE_FILES
:=COPYING
21 PKG_MAINTAINER
:=Michael Heimpold
<mhei@heimpold.de
>
26 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=Announce device via UPnP on the network
32 URL
:=https
://github.com
/mhei
/u2pnpd
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.
43 define Package
/u2pnpd
/install
44 $(INSTALL_DIR
) $(1)/usr
/bin
45 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/u2pnpd
$(1)/usr
/bin
/
47 $(INSTALL_DIR
) $(1)/etc
/init.d
48 $(INSTALL_BIN
) .
/files
/u2pnpd.init
$(1)/etc
/init.d
/u2pnpd
50 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
51 $(INSTALL_DATA
) .
/files
/u2pnpd.defaults
$(1)/etc
/uci-defaults
/u2pnpd
53 $(INSTALL_DIR
) $(1)/etc
/config
54 $(INSTALL_CONF
) .
/files
/u2pnpd.config
$(1)/etc
/config
/u2pnpd
57 define Package
/u2pnpd
/postinst
59 [ -n
"$${IPKG_INSTROOT}" ] ||
(.
/etc
/uci-defaults
/u2pnpd
) && rm -f
/etc
/uci-defaults
/u2pnpd
63 $(eval
$(call BuildPackage
,u2pnpd
))