Add irc/znc-push: Push notification service module for ZNC

ZNC Push is a module for ZNC that will send notifications to multiple push
notification services, or SMS for any private message or channel highlight that
matches a configurable set of conditions. ZNC Push current supports the
following services:

  Boxcar
  Boxcar 2
  Discord
  Faast
  Nexmo
  Notify My Android (NMA)
  Prowl
  Pushalot
  PushBullet
  Pushjet
  Pushover
  Pushsafer
  Slack
  Supertoasty
  Telegram
  Custom URL GET requests

WWW: https://github.com/jreese/znc-push

PR:		232409
Submitted by:	David O'Rourke <dor.bsd@xm0.uk>
This commit is contained in:
Danilo G. Baio 2018-11-07 00:53:41 +00:00
parent 1fd5c2b223
commit 6d38993af5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=484375
5 changed files with 80 additions and 0 deletions

View File

@ -125,5 +125,6 @@
SUBDIR += weechat-otr
SUBDIR += xaric
SUBDIR += znc
SUBDIR += znc-push
.include <bsd.port.subdir.mk>

44
irc/znc-push/Makefile Normal file
View File

@ -0,0 +1,44 @@
# $FreeBSD$
PORTNAME= znc-push
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.0-165
DISTVERSIONSUFFIX= -g0a36b1c
CATEGORIES= irc
MAINTAINER= dor.bsd@xm0.uk
COMMENT= Push notification service module for ZNC
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= znc:irc/znc
LIB_DEPENDS= libicudata.so:devel/icu
RUN_DEPENDS= znc:irc/znc
USES= gmake ssl
USE_GITHUB= yes
GH_ACCOUNT= jreese
MAKE_ENV= version=${PORTVERSION}
PLIST_FILES= lib/znc/push.so
PORTDOCS= *.md
OPTIONS_DEFINE= CURL DOCS
CURL_DESC= Use curl for HTTP requests
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_MAKE_ENV= curl=yes
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/znc
${INSTALL_PROGRAM} ${WRKSRC}/push.so ${STAGEDIR}${PREFIX}/lib/znc/push.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/znc/push.so
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.md ${WRKSRC}/doc/*.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

3
irc/znc-push/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1541547602
SHA256 (jreese-znc-push-v1.0.0-165-g0a36b1c_GH0.tar.gz) = c0f1ccf8634424828ac70a37d560044bd8ff2bf2a9b046ac412b1bacfa68a097
SIZE (jreese-znc-push-v1.0.0-165-g0a36b1c_GH0.tar.gz) = 497827

View File

@ -0,0 +1,9 @@
--- Makefile.orig 2018-08-27 02:38:08 UTC
+++ Makefile
@@ -1,5 +1,4 @@
-version = $(shell git describe --dirty || echo dev)
-curl=no
+curl?=no
ifneq ($(curl),no)
flags=-DUSE_CURL -lcurl

23
irc/znc-push/pkg-descr Normal file
View File

@ -0,0 +1,23 @@
ZNC Push is a module for ZNC that will send notifications to multiple push
notification services, or SMS for any private message or channel highlight that
matches a configurable set of conditions. ZNC Push current supports the
following services:
Boxcar
Boxcar 2
Discord
Faast
Nexmo
Notify My Android (NMA)
Prowl
Pushalot
PushBullet
Pushjet
Pushover
Pushsafer
Slack
Supertoasty
Telegram
Custom URL GET requests
WWW: https://github.com/jreese/znc-push