diff options
author | sborrill <sborrill@pkgsrc.org> | 2022-08-30 12:20:14 +0000 |
---|---|---|
committer | sborrill <sborrill@pkgsrc.org> | 2022-08-30 12:20:14 +0000 |
commit | 629a14bf1d043b3a3db9566b2373d97af42e90a5 (patch) | |
tree | 77463265318b41a4bb4e0f13f983723386642665 /mail | |
parent | 81a42d052e95e99221f04d37bd7e2df6494a91a1 (diff) | |
download | pkgsrc-629a14bf1d043b3a3db9566b2373d97af42e90a5.tar.gz |
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 (limited to 'mail')
-rw-r--r-- | mail/gyb/DESCR | 5 | ||||
-rw-r--r-- | mail/gyb/Makefile | 44 | ||||
-rw-r--r-- | mail/gyb/PLIST | 4 | ||||
-rw-r--r-- | mail/gyb/distinfo | 6 | ||||
-rw-r--r-- | mail/gyb/patches/patch-gyb.py | 15 |
5 files changed, 74 insertions, 0 deletions
diff --git a/mail/gyb/DESCR b/mail/gyb/DESCR new file mode 100644 index 00000000000..04ec4bea570 --- /dev/null +++ b/mail/gyb/DESCR @@ -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 --git a/mail/gyb/Makefile b/mail/gyb/Makefile new file mode 100644 index 00000000000..64ad463e8b0 --- /dev/null +++ b/mail/gyb/Makefile @@ -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 +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 --git a/mail/gyb/PLIST b/mail/gyb/PLIST new file mode 100644 index 00000000000..75eddda0edd --- /dev/null +++ b/mail/gyb/PLIST @@ -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 --git a/mail/gyb/distinfo b/mail/gyb/distinfo new file mode 100644 index 00000000000..50abeeb84bb --- /dev/null +++ b/mail/gyb/distinfo @@ -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 --git a/mail/gyb/patches/patch-gyb.py b/mail/gyb/patches/patch-gyb.py new file mode 100644 index 00000000000..96717bc1f6b --- /dev/null +++ b/mail/gyb/patches/patch-gyb.py @@ -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', |