pkgsrc-Changes archive

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

CVS commit: pkgsrc/mail/gyb



Module Name:    pkgsrc
Committed By:   sborrill
Date:           Tue Aug 30 12:20:15 UTC 2022

Added Files:
        pkgsrc/mail/gyb: DESCR Makefile PLIST distinfo
        pkgsrc/mail/gyb/patches: patch-gyb.py

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/gyb/DESCR pkgsrc/mail/gyb/Makefile \
    pkgsrc/mail/gyb/PLIST pkgsrc/mail/gyb/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/gyb/patches/patch-gyb.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/mail/gyb/DESCR
diff -u /dev/null pkgsrc/mail/gyb/DESCR:1.1
--- /dev/null   Tue Aug 30 12:20:15 2022
+++ pkgsrc/mail/gyb/DESCR       Tue Aug 30 12:20:14 2022
@@ -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
Index: pkgsrc/mail/gyb/Makefile
diff -u /dev/null pkgsrc/mail/gyb/Makefile:1.1
--- /dev/null   Tue Aug 30 12:20:15 2022
+++ pkgsrc/mail/gyb/Makefile    Tue Aug 30 12:20:14 2022
@@ -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"
Index: pkgsrc/mail/gyb/PLIST
diff -u /dev/null pkgsrc/mail/gyb/PLIST:1.1
--- /dev/null   Tue Aug 30 12:20:15 2022
+++ pkgsrc/mail/gyb/PLIST       Tue Aug 30 12:20:14 2022
@@ -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
Index: pkgsrc/mail/gyb/distinfo
diff -u /dev/null pkgsrc/mail/gyb/distinfo:1.1
--- /dev/null   Tue Aug 30 12:20:15 2022
+++ pkgsrc/mail/gyb/distinfo    Tue Aug 30 12:20:14 2022
@@ -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

Index: pkgsrc/mail/gyb/patches/patch-gyb.py
diff -u /dev/null pkgsrc/mail/gyb/patches/patch-gyb.py:1.1
--- /dev/null   Tue Aug 30 12:20:15 2022
+++ pkgsrc/mail/gyb/patches/patch-gyb.py        Tue Aug 30 12:20:15 2022
@@ -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