2 # Copyright (C) 2015 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
13 PKG_LICENSE
:=BSD-3-Clause
14 PKG_LICENSE_FILES
:=src
/LICENSE.txt
15 PKG_MAINTAINER
:=Simon Peter
<probono@puredarwin.org
>
18 PKG_SOURCE_URL
:=https
://github.com
/probonopd
/announce.git
19 PKG_SOURCE_VERSION
:=1368525c7305ca5bb4134242f332344f5f7e94e3
20 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
)
21 PKG_SOURCE
:=$(PKG_SOURCE_SUBDIR
).
tar.gz
22 PKG_MIRROR_HASH
:=247059922197db04e78c2845974d3dc2fc95a0624a0e0da32b5a13fd86a59d1b
23 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_SOURCE_SUBDIR
)
27 include $(INCLUDE_DIR
)/package.mk
29 PKG_BUILD_DEPENDS
:= +libpthread
31 define Package
/announce
34 SUBMENU
:=IP Addresses and Names
35 TITLE
:=Announce services on the network with Zeroconf
/Bonjour
36 URL
:=https
://github.com
/probonopd
/announce
40 define Package
/announce
/description
41 Announce services on the network with Zeroconf
/Bonjour.
42 This announces services such
as ssh
, sftp
, and http running on the local machine
47 $(call Build
/Prepare
/Default
)
48 $(CP
) $(PKG_BUILD_DIR
)/src
/* $(PKG_BUILD_DIR
)/
51 define Package
/announce
/install
52 $(INSTALL_DIR
) $(1)/usr
/sbin
53 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/announce
$(1)/usr
/sbin
/
54 $(INSTALL_DIR
) $(1)/etc
/init.d
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/announce.initscript
$(1)/etc
/init.d
/announce
58 $(eval
$(call BuildPackage
,announce
))