pkgsrc-WIP-changes archive

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

syncstorage-rs-git: install tokenserver and add some dependencies for it



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Sat Jun 17 18:31:51 2023 +0200
Changeset:	97b0dc73baa3379c1482d7acd75e02574b26f99e

Modified Files:
	syncstorage-rs-git/Makefile
	syncstorage-rs-git/PLIST

Log Message:
syncstorage-rs-git: install tokenserver and add some dependencies for it

pyramid is not packaged yet

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=97b0dc73baa3379c1482d7acd75e02574b26f99e

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

diffstat:
 syncstorage-rs-git/Makefile | 23 ++++++++++++++++++-----
 syncstorage-rs-git/PLIST    | 17 +++++++++++++++++
 2 files changed, 35 insertions(+), 5 deletions(-)

diffs:
diff --git a/syncstorage-rs-git/Makefile b/syncstorage-rs-git/Makefile
index 231a060e25..7ca845c759 100644
--- a/syncstorage-rs-git/Makefile
+++ b/syncstorage-rs-git/Makefile
@@ -14,6 +14,17 @@ TOOL_DEPENDS+=	cmake-[0-9]*:../../devel/cmake
 DEPENDS+=	${PYPKGPREFIX}-cryptography-[0-9]*:../../security/py-cryptography
 DEPENDS+=	${PYPKGPREFIX}-FxA-[0-9]*:../../www/py-FxA
 DEPENDS+=	${PYPKGPREFIX}-tokenlib-[0-9]*:../../security/py-tokenlib
+# for tokenserver
+DEPENDS+=	${PYPKGPREFIX}-boto>=2.49.0:../../net/py-boto
+DEPENDS+=	${PYPKGPREFIX}-hawkauthlib>=2.0.0:../../security/py-hawkauthlib
+DEPENDS+=	${PYPKGPREFIX}-mysqlclient>=2.1.1:../../databases/py-mysqlclient
+#pyramid==2.0.1
+DEPENDS+=	${PYPKGPREFIX}-sqlalchemy>=1.4.46:../../databases/py-sqlalchemy
+DEPENDS+=	${PYPKGPREFIX}-testfixtures>=0:../../wip/py-testfixtures
+DEPENDS+=	${PYPKGPREFIX}-tokenlib>=2.0.0:../../security/py-tokenlib
+DEPENDS+=	${PYPKGPREFIX}-BrowserID>=0.14.0:../../www/py-BrowserID
+
+CARGO_ARGS+=	build --release ${DEFAULT_CARGO_ARGS} --no-default-features --features=syncstorage-db/mysql
 
 .include "cargo-depends.mk"
 
@@ -30,7 +41,8 @@ RUSTFLAGS+=		-C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.curl}/lib
 
 PYTHON_VERSIONS_INCOMPATIBLE=	27 37 38
 
-INSTALLATION_DIRS=	bin share/doc/syncstorage-rs share/examples/syncstorage-rs
+INSTALLATION_DIRS+=	bin share/doc/syncstorage-rs share/examples/syncstorage-rs
+INSTALLATION_DIRS+=	lib/tokenserver
 
 post-extract:
 	mv ${WRKDIR}/deadpool* ${WRKDIR}/deadpool
@@ -38,10 +50,11 @@ post-extract:
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/syncserver ${DESTDIR}${PREFIX}/bin
 	# 'Makefile' has logic how to start this
-	${INSTALL_PROGRAM} ${WRKSRC}/Makefile ${DESTDIR}${PREFIX}/share/doc/syncstorage-rs
-	${INSTALL_PROGRAM} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/syncstorage-rs
-	${INSTALL_PROGRAM} ${WRKSRC}/docs/config.md ${DESTDIR}${PREFIX}/share/doc/syncstorage-rs
-	${INSTALL_PROGRAM} ${WRKSRC}/config/local.example.toml ${DESTDIR}${PREFIX}/share/examples/syncstorage-rs
+	${INSTALL_DATA} ${WRKSRC}/Makefile ${DESTDIR}${PREFIX}/share/doc/syncstorage-rs
+	${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/syncstorage-rs
+	${INSTALL_DATA} ${WRKSRC}/docs/config.md ${DESTDIR}${PREFIX}/share/doc/syncstorage-rs
+	${INSTALL_DATA} ${WRKSRC}/config/local.example.toml ${DESTDIR}${PREFIX}/share/examples/syncstorage-rs
+	${INSTALL_SCRIPT} ${WRKSRC}/tools/tokenserver/*.* ${DESTDIR}${PREFIX}/lib/tokenserver
 
 .include "../../lang/rust/cargo.mk"
 .include "../../lang/clang/buildlink3.mk"
diff --git a/syncstorage-rs-git/PLIST b/syncstorage-rs-git/PLIST
index d79b4240c3..93b3f55e05 100644
--- a/syncstorage-rs-git/PLIST
+++ b/syncstorage-rs-git/PLIST
@@ -1,5 +1,22 @@
 @comment $NetBSD$
 bin/syncserver
+lib/tokenserver/__init__.py
+lib/tokenserver/add_node.py
+lib/tokenserver/allocate_user.py
+lib/tokenserver/count_users.py
+lib/tokenserver/database.py
+lib/tokenserver/process_account_events.py
+lib/tokenserver/purge_old_records.py
+lib/tokenserver/remove_node.py
+lib/tokenserver/requirements.txt
+lib/tokenserver/run_tests.py
+lib/tokenserver/test_database.py
+lib/tokenserver/test_process_account_events.py
+lib/tokenserver/test_purge_old_records.py
+lib/tokenserver/test_scripts.py
+lib/tokenserver/unassign_node.py
+lib/tokenserver/update_node.py
+lib/tokenserver/util.py
 share/doc/syncstorage-rs/Makefile
 share/doc/syncstorage-rs/README.md
 share/doc/syncstorage-rs/config.md


Home | Main Index | Thread Index | Old Index