Page MenuHomeFreeBSD

[new port] devel/zanata-platform: web-based translation platform
ClosedPublic

Authored by dbaio on Apr 20 2019, 1:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 2:12 AM
Unknown Object (File)
Dec 18 2023, 12:19 AM
Unknown Object (File)
Nov 11 2023, 6:38 PM
Unknown Object (File)
Nov 10 2023, 9:35 AM
Unknown Object (File)
Nov 7 2023, 9:37 PM
Unknown Object (File)
Nov 7 2023, 9:54 AM
Unknown Object (File)
Nov 7 2023, 9:35 AM
Unknown Object (File)
Nov 5 2023, 10:32 PM
Subscribers

Details

Summary
Add devel/zanata-platform: Zanata is a web-based translation platform

Zanata is a web-based translation platform for managing localization projects.
Localization (L10n) is the process of translating software or documentation into 
different languages.

Zanata platform is designed for translators, content creators and developers to
manage localization projects.

WWW: http://zanata.org/

#Reviewed by:
#Differential Revision:	XXX

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

lwhsu requested changes to this revision.Apr 22 2019, 4:16 AM

Overall this looks good, please check my comments. Thanks for working on this!

devel/zanata-platform/Makefile
20

Is this really a required dependency? I think could be an optional dependency: http://docs.zanata.org/en/release/user-guide/system-admin/configuration/installation/

22

It seems Zanata needs a mysql server to store data, but which is not "using" a mysql server. In other words, Zanata and mysql can be installed on different machines. Also, it seems we already pull in the mysql connector so there it doesn't need pull in mysql-client, either.

85

Having this file with weak default password in the installation makes me very nervous, can we at least just use a pkg-message to some (other) documents to guide users to initial the admin user data?

devel/zanata-platform/files/admin-user-setup.sql
1 ↗(On Diff #56426)

I hope this file can mot be included in this port, which is a very insecure default.

devel/zanata-platform/files/pkg-message.in
29

Perhaps we also need to guide user to edit /etc/rc.conf or use sysrc(8).

devel/zanata-platform/pkg-plist
5

@sample?

This revision now requires changes to proceed.Apr 22 2019, 4:16 AM

BTW, there seems a leading white space in each line of your draft commit message.

@lwhsu thanks for reviewing it, I'll do some tests and then update the review.

devel/zanata-platform/Makefile
20

right, I'll change this

22

ok, do you think it's worth to have another optional dependency or just a message about a database in the pkg-message?

85

we can have another approach on this, defining a specific username as admin: advanced-configuration
I'll test it first.

devel/zanata-platform/files/admin-user-setup.sql
1 ↗(On Diff #56426)

testing another approach

devel/zanata-platform/pkg-plist
5

wildfly already have a standalone.xml and standalone.xml.sample, I didn't mark it as @sample because of this, the user needs to copy it.

devel/zanata-platform/Makefile
22

Can Zanata use other database? If it can only use mysql and we pulled in mysql connector, having a note to user to setup db connection settings should be fine.

85

This looks better to me. I'm not sure using sql commands to create user is the official recommended way, if it really is, I think point to the document is enough. Having that .sql file installed on the system doesn't make much sense to me.

devel/zanata-platform/pkg-plist
5

Ok, thanks for clarify.

I tested the other approach suggested at configuration but the registration page is blocked for anonymous users, an admin needs to enable it.
More info here:
https://zanata.atlassian.net/browse/ZNTA-2083
https://zanata.atlassian.net/browse/ZNTA-1626

So I removed the .sql and added some notes in the pkg-message about this step.
Added rc.conf instructions.

Removed MySQL dependency and Clamav is now optional.

linimon retitled this revision from Add devel/zanata-platform to [new port] devel/zanata-platform: web-based translation platform.May 2 2019, 6:22 AM

I haven't had time to setup a server to test myself, but this port looks good to me. Thanks for the work!

This revision is now accepted and ready to land.May 2 2019, 8:21 PM
devel/zanata-platform/Makefile
10

Both files are versionned, this is probably not needed.

37

any reason the default is almost the oldest possible version ?

devel/zanata-platform/files/pkg-message.in
3–44

This file is really, really, really too long, nobody will ever read it (and probably never see it either). All this should probably be removed, keep only the link, it probably contains all of this.

devel/zanata-platform/Makefile
10

right, I'll remove it.

37

All Zanatta installations and instructions that I saw are using wildfly 9.X or 10.X.

Their official container is using 10.X, see here, so I presumed that is safe to use the same version as default.

devel/zanata-platform/files/pkg-message.in
3–44

The instructions are fragmented, we don't have a single link for it.

What about removing this from pkg-message and install instructions into DATADIR? And inform users about it in the pkg-message?

devel/zanata-platform/files/pkg-message.in
3–44

While I feel it's fine to have all these in pkg-message, how about this: let's put these instructions on wiki and put the link here?

devel/zanata-platform/files/pkg-message.in
3–44

For me it's fine.

We can copy Jenkins structure and insert a Install page:
https://wiki.freebsd.org/Zanata --> Home (to be written)
https://wiki.freebsd.org/Zanata/Setup --> Setup instructions like Jenkins (to be written)
https://wiki.freebsd.org/Zanata/Install --> Port install instructions here!

devel/zanata-platform/files/pkg-message.in
3–44

I think it's fine.

Not a ports committer, but it looks good to me!

Add changes to pkg-message, now the instructions are on the FreeBSD Wiki.

This revision now requires review to proceed.May 8 2019, 12:37 AM
dbaio added a reviewer: mat.
dbaio marked an inline comment as done.
This revision is now accepted and ready to land.May 8 2019, 2:47 AM
This revision was automatically updated to reflect the committed changes.