pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/gyb gyb: Add 1.70



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a5ace679e089
branches:  trunk
changeset: 384274:a5ace679e089
user:      sborrill <sborrill%pkgsrc.org@localhost>
date:      Tue Aug 30 12:20:14 2022 +0000

description:
gyb: Add 1.70

Got Your Back a.k.a. GYB is a command-line tool to backup/restore Gmail
accounts. It can also perform other batch operations such as bulk
deletion.

GYB works with Gmail.com and Google Workspace (formerly G Suite /
Google Apps) accounts.

diffstat:

 mail/gyb/DESCR                |   5 ++++
 mail/gyb/Makefile             |  44 +++++++++++++++++++++++++++++++++++++++++++
 mail/gyb/PLIST                |   4 +++
 mail/gyb/distinfo             |   6 +++++
 mail/gyb/patches/patch-gyb.py |  15 ++++++++++++++
 5 files changed, 74 insertions(+), 0 deletions(-)

diffs (94 lines):

diff -r 9acd482e84be -r a5ace679e089 mail/gyb/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/gyb/DESCR    Tue Aug 30 12:20:14 2022 +0000
@@ -0,0 +1,5 @@
+Got Your Back (GYB) is a command line tool for backing up your Gmail
+messages to your computer using Gmail's API over HTTPS.
+
+Full documentation can be found at:
+https://github.com/GAM-team/got-your-back/wiki
diff -r 9acd482e84be -r a5ace679e089 mail/gyb/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/gyb/Makefile Tue Aug 30 12:20:14 2022 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2022/08/30 12:20:14 sborrill Exp $
+
+DISTNAME=      gyb-1.70
+#PKGNAME=      v${VERSION}
+#PKGNAME=      gyb
+CATEGORIES=    mail python
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=GAM-team/}
+GITHUB_PROJECT=        got-your-back
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/GAM-team/got-your-back
+COMMENT=       Command line tool for backing up Gmail
+LICENSE=       apache-2.0
+
+DEPENDS+=      ${PYPKGPREFIX}-google-api-python-client>=2.0:../../www/py-google-api-python-client
+DEPENDS+=      ${PYPKGPREFIX}-google-auth>=1.11.2:../../security/py-google-auth
+DEPENDS+=      ${PYPKGPREFIX}-google-auth-httplib2-[0-9]*:../../security/py-google-auth-httplib2
+DEPENDS+=      ${PYPKGPREFIX}-google-auth-oauthlib>=0.4.1:../../security/py-google-auth-oauthlib
+DEPENDS+=      ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
+
+NO_BUILD=      yes
+PLIST_SUBST+=  PYSITELIB=${PYSITELIB}
+REPLACE_PYTHON=        *.py
+
+INSTALLATION_DIRS=     bin ${PYSITELIB}
+
+SUBST_CLASSES+=                config
+SUBST_STAGE.config=    pre-install
+SUBST_MESSAGE.config=  Setting config directory
+SUBST_FILES.config=    gyb.py
+SUBST_SED.config=      -e 's:PKG_SYSCONFDIR:${PKG_SYSCONFDIR}:'
+
+PKG_SYSCONFSUBDIR=     gyb
+
+do-install:
+       cd ${WRKSRC};                                                           \
+       ${INSTALL_SCRIPT} gyb.py ${DESTDIR}${PREFIX}/bin/gyb;                   \
+       for f in fmbox.py labellang.py; do                                      \
+               ${INSTALL_SCRIPT} $${f} ${DESTDIR}${PREFIX}/${PYSITELIB}/$${f}; \
+       done
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9acd482e84be -r a5ace679e089 mail/gyb/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/gyb/PLIST    Tue Aug 30 12:20:14 2022 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2022/08/30 12:20:14 sborrill Exp $
+bin/gyb
+${PYSITELIB}/fmbox.py
+${PYSITELIB}/labellang.py
diff -r 9acd482e84be -r a5ace679e089 mail/gyb/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/gyb/distinfo Tue Aug 30 12:20:14 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/08/30 12:20:14 sborrill Exp $
+
+BLAKE2s (gyb-1.70.tar.gz) = 6e84219126244b34671f603e434e475de0a555194bb0a7250700f4611df7163d
+SHA512 (gyb-1.70.tar.gz) = 5050cd0a8d75057b4e56ff000c502db90f2a81616bb470cd4d6660d5f066a2d4f0a92d890a96ea88d79ac11aa4e780779011b2921ea7729e563c0cbbac9343bb
+Size (gyb-1.70.tar.gz) = 1154292 bytes
+SHA1 (patch-gyb.py) = 10a426513fed76f3ef47510452d602ed88f5ac0b
diff -r 9acd482e84be -r a5ace679e089 mail/gyb/patches/patch-gyb.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/gyb/patches/patch-gyb.py     Tue Aug 30 12:20:14 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-gyb.py,v 1.1 2022/08/30 12:20:15 sborrill Exp $
+
+Set default config path to PKG_SYSCONFDIR
+
+--- gyb.py.orig        2022-08-25 10:03:41.833502873 +0100
++++ gyb.py     2022-08-25 10:06:19.651616395 +0100
+@@ -241,7 +241,7 @@
+   parser.add_argument('--config-folder',
+     dest='config_folder',
+     help='Optional: Alternate folder to store config and credentials',
+-    default=getProgPath())
++    default='PKG_SYSCONFDIR')
+   parser.add_argument('--cleanup',
+           action='store_true',
+           dest='cleanup',



Home | Main Index | Thread Index | Old Index