FreeBSD Bugzilla – Attachment 240312 Details for
Bug 269748
New port: net/xapsd: iOS push notifications daemon for dovecot
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-net-xapsd-New-port-iOS-push-notifications-daemon-for.patch (text/plain), 10.40 KB, created by
Henry
on 2023-02-21 22:45:32 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Henry
Created:
2023-02-21 22:45:32 UTC
Size:
10.40 KB
patch
obsolete
>From c73ecc78cc5b807b7cd147a033976890db7a677f Mon Sep 17 00:00:00 2001 >From: Henry <PopularMoment@protonmail.com> >Date: Tue, 21 Feb 2023 18:59:48 +0000 >Subject: [PATCH] net/xapsd: New port: iOS push notifications daemon for > dovecot > >--- > GIDs | 2 +- > UIDs | 2 +- > net/xapsd/Makefile | 50 +++++++++++++++++++++++++++++++++++ > net/xapsd/distinfo | 45 ++++++++++++++++++++++++++++++++ > net/xapsd/files/xapsd.in | 56 ++++++++++++++++++++++++++++++++++++++++ > net/xapsd/pkg-descr | 3 +++ > net/xapsd/pkg-message | 14 ++++++++++ > net/xapsd/pkg-plist | 2 ++ > 8 files changed, 172 insertions(+), 2 deletions(-) > create mode 100644 net/xapsd/Makefile > create mode 100644 net/xapsd/distinfo > create mode 100644 net/xapsd/files/xapsd.in > create mode 100644 net/xapsd/pkg-descr > create mode 100644 net/xapsd/pkg-message > create mode 100644 net/xapsd/pkg-plist > >diff --git a/GIDs b/GIDs >index 4b5cb168fbc5..d21eed9d5144 100644 >--- a/GIDs >+++ b/GIDs >@@ -566,7 +566,7 @@ taskd:*:616: > # free: 622 > # free: 623 > # free: 624 >-# free: 625 >+xapsd:*:625: > # free: 626 > # free: 627 > # free: 628 >diff --git a/UIDs b/UIDs >index c2ecbb8c766b..7d560eba0e22 100644 >--- a/UIDs >+++ b/UIDs >@@ -571,7 +571,7 @@ taskd:*:616:616::0:0:taskd user:/nonexistent:/usr/sbin/nologin > # free: 622 > # free: 623 > # free: 624 >-# free: 625 >+xapsd:*:625:625::0:0:xapsd:/var/lib/xapsd:/usr/sbin/nologin > # free: 626 > # free: 627 > # free: 628 >diff --git a/net/xapsd/Makefile b/net/xapsd/Makefile >new file mode 100644 >index 000000000000..372d4b626b41 >--- /dev/null >+++ b/net/xapsd/Makefile >@@ -0,0 +1,50 @@ >+PORTNAME= xapsd >+PORTVERSION= 202210002 >+CATEGORIES= net >+ >+MAINTAINER= PopularMoment@protonmail.com >+COMMENT= iOS push notifications daemon for dovecot >+ >+LICENSE= MIT >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+USES= go:modules >+USE_RC_SUBR= xapsd >+USE_GITHUB= yes >+GH_ACCOUNT= freswa >+GH_PROJECT= dovecot-xaps-daemon >+GH_TAGNAME= 4d4ce18 >+ >+GH_TUPLE= \ >+ dgrijalva:jwt-go:v3.2.0:dgrijalva_jwt_go/vendor/github.com/dgrijalva/jwt-go \ >+ freswa:go-plist:900e8a7d907d:freswa_go_plist/vendor/github.com/freswa/go-plist \ >+ fsnotify:fsnotify:v1.5.1:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \ >+ go-ini:ini:v1.66.4:go_ini_ini/vendor/gopkg.in/ini.v1 \ >+ go-yaml:yaml:v2.4.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \ >+ golang:net:27dd8689420f:golang_net/vendor/golang.org/x/net \ >+ golang:sys:2edf467146b5:golang_sys/vendor/golang.org/x/sys \ >+ golang:text:v0.3.7:golang_text/vendor/golang.org/x/text \ >+ hashicorp:hcl:v1.0.0:hashicorp_hcl/vendor/github.com/hashicorp/hcl \ >+ julienschmidt:httprouter:v1.3.0:julienschmidt_httprouter/vendor/github.com/julienschmidt/httprouter \ >+ magiconair:properties:v1.8.6:magiconair_properties/vendor/github.com/magiconair/properties \ >+ mitchellh:mapstructure:v1.4.3:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \ >+ pelletier:go-toml:v1.9.4:pelletier_go_toml/vendor/github.com/pelletier/go-toml \ >+ sideshow:apns2:v0.20.0:sideshow_apns2/vendor/github.com/sideshow/apns2 \ >+ sirupsen:logrus:v1.8.1:sirupsen_logrus/vendor/github.com/sirupsen/logrus \ >+ spf13:afero:v1.8.2:spf13_afero/vendor/github.com/spf13/afero \ >+ spf13:cast:v1.4.1:spf13_cast/vendor/github.com/spf13/cast \ >+ spf13:jwalterweatherman:v1.1.0:spf13_jwalterweatherman/vendor/github.com/spf13/jwalterweatherman \ >+ spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \ >+ spf13:viper:v1.10.1:spf13_viper/vendor/github.com/spf13/viper \ >+ subosito:gotenv:v1.2.0:subosito_gotenv/vendor/github.com/subosito/gotenv >+ >+GO_TARGET= ./cmd/xapsd:${PREFIX}/sbin/xapsd >+ >+USERS= ${PORTNAME} >+GROUPS= ${PORTNAME} >+ >+post-install: >+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/xapsd >+ ${INSTALL_DATA} ${WRKSRC}/configs/xapsd/xapsd.yaml ${STAGEDIR}${PREFIX}/etc/xapsd/xapsd.yaml.sample >+ >+.include <bsd.port.mk> >diff --git a/net/xapsd/distinfo b/net/xapsd/distinfo >new file mode 100644 >index 000000000000..35e47a67c5e9 >--- /dev/null >+++ b/net/xapsd/distinfo >@@ -0,0 +1,45 @@ >+TIMESTAMP = 1664896084 >+SHA256 (freswa-dovecot-xaps-daemon-202210002-4d4ce18_GH0.tar.gz) = 6375abd1ef72c34d4897d4ab5247bedf0bc7e4c8e13b36be4a53a21a9efcf64b >+SIZE (freswa-dovecot-xaps-daemon-202210002-4d4ce18_GH0.tar.gz) = 62000 >+SHA256 (dgrijalva-jwt-go-v3.2.0_GH0.tar.gz) = 197465ef53219f3aeb1a6940b70e16d288fe4e4108d4831b91ea101118440e63 >+SIZE (dgrijalva-jwt-go-v3.2.0_GH0.tar.gz) = 36960 >+SHA256 (freswa-go-plist-900e8a7d907d_GH0.tar.gz) = 2b4a06b8805bc1436ab8f34d6fd140645a0a01ccaf9f4b3a7dc3e0e35f5a2e88 >+SIZE (freswa-go-plist-900e8a7d907d_GH0.tar.gz) = 47675 >+SHA256 (fsnotify-fsnotify-v1.5.1_GH0.tar.gz) = bf4be597aef95796bec7c7def6701581c5e153376ba5a5aa31c2d04470d84f1d >+SIZE (fsnotify-fsnotify-v1.5.1_GH0.tar.gz) = 32691 >+SHA256 (go-ini-ini-v1.66.4_GH0.tar.gz) = 6b64578fd951b1654ec09893ba7bf2cb8517c1a6905258aa0e5a85fff3fa3a91 >+SIZE (go-ini-ini-v1.66.4_GH0.tar.gz) = 53337 >+SHA256 (go-yaml-yaml-v2.4.0_GH0.tar.gz) = d8e94679e5fff6bd1a35e10241543929a5f3da44f701755babf99b3daf0faac0 >+SIZE (go-yaml-yaml-v2.4.0_GH0.tar.gz) = 73209 >+SHA256 (golang-net-27dd8689420f_GH0.tar.gz) = e72ae02627807460cd899f85e9043f3b5047f2842b82457f5c7b18466f791eaf >+SIZE (golang-net-27dd8689420f_GH0.tar.gz) = 1229548 >+SHA256 (golang-sys-2edf467146b5_GH0.tar.gz) = 1b30a2729572b041c744dc191c1ea9fe906aa9a013d92d89d22429a3025fa43d >+SIZE (golang-sys-2edf467146b5_GH0.tar.gz) = 1288409 >+SHA256 (golang-text-v0.3.7_GH0.tar.gz) = 7cab2f6c3133ac1d422edd952b0dd2082fa55a73c2663fb2defd9bf83d649b26 >+SIZE (golang-text-v0.3.7_GH0.tar.gz) = 8354718 >+SHA256 (hashicorp-hcl-v1.0.0_GH0.tar.gz) = 50632428210503070fd2fde748c88b7414bf84a6a0eadebf9d8e596a033bead2 >+SIZE (hashicorp-hcl-v1.0.0_GH0.tar.gz) = 70658 >+SHA256 (julienschmidt-httprouter-v1.3.0_GH0.tar.gz) = 2999dffc23f8ac3872ea37d108ddec0ba570d2780a42876300bdcdb0744908e2 >+SIZE (julienschmidt-httprouter-v1.3.0_GH0.tar.gz) = 23889 >+SHA256 (magiconair-properties-v1.8.6_GH0.tar.gz) = 59b7e9184d83405c09af4ec23ebd20737cce34fa79244ff1f6314085244b9907 >+SIZE (magiconair-properties-v1.8.6_GH0.tar.gz) = 30241 >+SHA256 (mitchellh-mapstructure-v1.4.3_GH0.tar.gz) = 06198bdaa6782f68990134b88b5f0c1db44757cf81721c619fff5626d97fffc4 >+SIZE (mitchellh-mapstructure-v1.4.3_GH0.tar.gz) = 28418 >+SHA256 (pelletier-go-toml-v1.9.4_GH0.tar.gz) = 2b00521c81b994a72d0f3bd3aa9273cb17fab61a5e9749aff1108117a8d7c397 >+SIZE (pelletier-go-toml-v1.9.4_GH0.tar.gz) = 106507 >+SHA256 (sideshow-apns2-v0.20.0_GH0.tar.gz) = ae2cd6340a91e67ac9e7ef5c53c199591c922d28980c5ed59ae1ead505b3b8dc >+SIZE (sideshow-apns2-v0.20.0_GH0.tar.gz) = 393110 >+SHA256 (sirupsen-logrus-v1.8.1_GH0.tar.gz) = e9492c08ac8f202b438ccfb992bf81b7860739cf8f2266958e0c574c7abfdd74 >+SIZE (sirupsen-logrus-v1.8.1_GH0.tar.gz) = 47161 >+SHA256 (spf13-afero-v1.8.2_GH0.tar.gz) = a42e97857af6e66fed79ac636daf79c0c083e55b460adee47b580c07dfb3f9b5 >+SIZE (spf13-afero-v1.8.2_GH0.tar.gz) = 91568 >+SHA256 (spf13-cast-v1.4.1_GH0.tar.gz) = 3d099a48b75a66ac52dbb473c93096076dca752af51087b8d163e15e5de721f8 >+SIZE (spf13-cast-v1.4.1_GH0.tar.gz) = 13381 >+SHA256 (spf13-jwalterweatherman-v1.1.0_GH0.tar.gz) = 4fd850a792c5738954c4801cf549d8d0bf53edd17139cd39d179aa5abf7ec68d >+SIZE (spf13-jwalterweatherman-v1.1.0_GH0.tar.gz) = 6871 >+SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808 >+SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796 >+SHA256 (spf13-viper-v1.10.1_GH0.tar.gz) = 9d4276ff76799b7e5a4ad39542df3b27e3b24e70356e84ceaa338c782617c275 >+SIZE (spf13-viper-v1.10.1_GH0.tar.gz) = 106638 >+SHA256 (subosito-gotenv-v1.2.0_GH0.tar.gz) = 5f6826992c11981018c77377f33dbc56d0be932e0d38a2f51e795c99725e7ba5 >+SIZE (subosito-gotenv-v1.2.0_GH0.tar.gz) = 7359 >diff --git a/net/xapsd/files/xapsd.in b/net/xapsd/files/xapsd.in >new file mode 100644 >index 000000000000..df8deac4e369 >--- /dev/null >+++ b/net/xapsd/files/xapsd.in >@@ -0,0 +1,56 @@ >+#!/bin/sh >+ >+# PROVIDE: xapsd >+# REQUIRE: DAEMON NETWORKING >+# BEFORE: mail >+# KEYWORD: shutdown >+ >+# Add the following lines to /etc/rc.conf.local, /etc/rc.conf or >+# /etc/rc.conf.d/xapsd to enable this service: >+# >+# xapsd_enable (bool): Set to NO by default. >+# Set it to "YES" to enable xapsd. >+# xapsd_flags (str): Optional extra flags to pass. >+# Empty by default. >+# xapsd_user (string): User to run xapsd as >+# Set to "xapsd" by default. >+# xapsd_group (string): Group to run xapsd as >+# Set to "xapsd" by default. >+ >+. /etc/rc.subr >+ >+name=xapsd >+rcvar=xapsd_enable >+start_precmd="${name}_precmd" >+ >+load_rc_config $name >+ >+: ${xapsd_enable:="NO"} >+: ${xapsd_flags:=""} >+: ${xapsd_user:="xapsd"} >+: ${xapsd_group:="xapsd"} >+ >+pidfile="/var/run/${name}/${name}.pid" >+procname="%%PREFIX%%/sbin/${name}" >+command="/usr/sbin/daemon" >+command_args="-m 3 -t ${name} -T ${name} -p ${pidfile} -c -f -S -u ${xapsd_user} ${procname} -configPath %%PREFIX%%/etc/xapsd ${xapsd_flags}" >+ >+required_files=%%PREFIX%%/etc/xapsd/xapsd.yaml >+ >+start_cmd=xapsd_start >+ >+xapsd_precmd() { >+ /usr/bin/install -d -m 0755 -o ${xapsd_user} /var/run/${name} >+ dbdir=$(/usr/bin/dirname `awk '/^databaseFile/ {print $2}' %%PREFIX%%/etc/xapsd/xapsd.yaml`) >+ if [ ! -d ${dbdir} ]; then >+ install -d -o ${xapsd_user} -g ${xapsd_group} ${dbdir}; >+ fi >+} >+ >+xapsd_start() { >+ echo "Starting xapsd." >+ umask 007 >+ ${command} ${command_args} >+} >+ >+run_rc_command "$1" >diff --git a/net/xapsd/pkg-descr b/net/xapsd/pkg-descr >new file mode 100644 >index 000000000000..70c4e5d29de9 >--- /dev/null >+++ b/net/xapsd/pkg-descr >@@ -0,0 +1,3 @@ >+iOS push notification daemon for dovecot. >+ >+WWW: https://github.com/freswa/dovecot-xaps-daemon >diff --git a/net/xapsd/pkg-message b/net/xapsd/pkg-message >new file mode 100644 >index 000000000000..a3db1fafc5c6 >--- /dev/null >+++ b/net/xapsd/pkg-message >@@ -0,0 +1,14 @@ >+[ >+{ type: install >+ message: <<EOM >+ >+1. Create a new apple id account at https://appleid.apple.com/ >+ >+2. Use `xapsd -pass` to create the hash of the apple id password >+ >+3. Add account information to xapsd.yaml >+ >+EOM >+} >+] >+ >diff --git a/net/xapsd/pkg-plist b/net/xapsd/pkg-plist >new file mode 100644 >index 000000000000..1fbd41224c17 >--- /dev/null >+++ b/net/xapsd/pkg-plist >@@ -0,0 +1,2 @@ >+@sample(root,xapsd,640) etc/xapsd/xapsd.yaml.sample >+sbin/xapsd >-- >2.39.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
PopularMoment
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 269748
:
240312
|
240313
|
240314
|
240383