Page MenuHomeFreeBSD

New Port: www/archiva
ClosedPublic

Authored by joneum on Jun 3 2018, 8:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 17, 12:32 PM
Unknown Object (File)
Sat, Jun 8, 1:54 PM
Unknown Object (File)
May 17 2024, 11:23 AM
Unknown Object (File)
May 5 2024, 6:08 AM
Unknown Object (File)
May 4 2024, 7:21 PM
Unknown Object (File)
Apr 19 2024, 7:37 AM
Unknown Object (File)
Apr 19 2024, 7:37 AM
Unknown Object (File)
Apr 19 2024, 7:37 AM
Subscribers

Details

Summary

New Port: www/archiva

Apache Archiva is an extensible repository management software that helps taking
care of your own personal or enterprise-wide build artifact repository. It is
the perfect companion for build tools such as Maven, Continuum, and ANT.

Archiva offers several capabilities, amongst which remote repository proxying,
security access management, build artifact storage, delivery, browsing, indexing
and usage reporting, extensible scanning functionality and many more!

WWW: https://archiva.apache.org

PR: 203071
Submitted by: Dušan Vejnovič <freebsd@dussan.org>
#Differential Revision: https://reviews.freebsd.org/Dxxxxx

Test Plan

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The Makefile is badly ordered. See Chapter 15. Order of Variables in Port Makefiles.

www/archiva/Makefile
34 ↗(On Diff #43290)

Why +=?

www/archiva/Makefile
34 ↗(On Diff #43290)

Is there a guide for "+"? In the "porters-handbook" I have not found so far

www/archiva/Makefile
34 ↗(On Diff #43290)

You use += when the variable is defined before and you want to append to it.

Here, I cannot see the variable being defined before, so I see += and I wonder where the mistake is. Should it be =? Should it be += because this is a master port and some slave port can set it before? Did it use to be += because of some now defunct code in the Makefile?

The only variables for which you use += in a Makefile (if they are not defined before and need appending) are the variables that you can set in make.conf like CFLAGS, CXXFLAGS, LDFLAGS, that's it.

www/archiva/Makefile
34 ↗(On Diff #43290)

Thank you for your explanation. I think it's good to have the explanation of "+" and "?" could record in the handbook. Many have problems with it

www/archiva/files/patch-bin_archiva
23 ↗(On Diff #43290)

%%LOCALBASE%%

44 ↗(On Diff #43290)

%%LOCALBASE%%/etc

52 ↗(On Diff #43290)

%%USERS%%

www/archiva/files/patch-conf_wrapper.conf
10 ↗(On Diff #43290)

DIR is not defined.
%%DATADIR%%

www/archiva/Makefile
34 ↗(On Diff #43290)

I do not really agree, ?= and += are make(1) syntax, set if empty and append. You should be able to know which one to use by yourself.
The porter's handbook needs to stay a general guideline of how to do things, it must not, and will not become an ISO9001 abomination.

sort Makefile
Bernards changes implemented

fix a files/patch-bin_archiva problem

www/archiva/files/patch-bin_archiva
20 ↗(On Diff #44686)

^.. technically this is probably %%PREFIX%% not %%LOCALBASE%% (as they are files of this port not a dependency).

switch from %%LOCALBASE%% to %%PREFIX%% in files/patch-bin_archiva

This revision was not accepted when it landed; it landed in state Needs Review.Jul 7 2018, 10:38 AM
Closed by commit rP474069: New Port: www/archiva (authored by joneum). · Explain Why
This revision was automatically updated to reflect the committed changes.