Re: svn commit: r1829770 - in /attic/site-json: build.props build.sh build.xml docs/projects/ lib/ xdocs/

2018-04-22 Thread Jan Iversen


> On 22 Apr 2018, at 16:24, Henk P. Penning <penn...@uu.nl> wrote:
> 
> On Sun, 22 Apr 2018, Jan Iversen wrote:
> 
>> Date: Sun, 22 Apr 2018 14:34:29 +0200
>> From: Jan Iversen <jancasacon...@gmail.com>
>> To: general@attic.apache.org
>> Subject: Re: svn commit: r1829770 - in /attic/site-json: build.props build.sh
>>build.xml docs/projects/ lib/ xdocs/
> 
>>>> The 'name' attribute in the JSON in "attic.js".
> 
>>> That is the text for the project list in the RH menu, and is free-format.
>>> It's not directly convertible into a dist/ directory name.
>>> So I agree that a dist attribute would be needed for at least some entries.
> 
>> That is the reason for the “website” field. If we want to use the name
>> alone, that field could be split in 2.
> 
>  IHMO it is better to derive attribute 'website' (as $dist.apache.org)
>  from a 'dist' attribute, than the other way around ; nevermind.
> 
>>> I hope dist names are the same as TLP website names but I've not checked.
>> The field “board” was added where I had problems between the TLP name
>> used in Whimsy and the normal name.
> 
>  I see only two entries with non-empty "board" fields ;
>  the first isn't necessary ; the second isn't helpful
>  in mapping to the right /dist/GHOST tag :
> 
>"name":"Crimson",
>"board":   "crimson",
> 
>"name":"Standard C++ Library (STDCXX)",
>"board":   "Cxx_Standard_Library",
> 
>  Let's have a 'dist' attribute for entries that need it.
>  default : lowercase($name).
>  sanity  : if $name matches whitespace then $dist must not be empty.
> 
>  Let's remove 'board' in entries where board == ‘'.
Agreed to all.

rgds
Jan I
> 
>  Regards,
> 
>  HPP
> 
>    _
> Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
> Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
> Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
> http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/



Re: svn commit: r1829770 - in /attic/site-json: build.props build.sh build.xml docs/projects/ lib/ xdocs/

2018-04-22 Thread Henk P. Penning

On Sun, 22 Apr 2018, Jan Iversen wrote:


Date: Sun, 22 Apr 2018 14:34:29 +0200
From: Jan Iversen <jancasacon...@gmail.com>
To: general@attic.apache.org
Subject: Re: svn commit: r1829770 - in /attic/site-json: build.props build.sh
build.xml docs/projects/ lib/ xdocs/



 The 'name' attribute in the JSON in "attic.js".



That is the text for the project list in the RH menu, and is free-format.
It's not directly convertible into a dist/ directory name.
So I agree that a dist attribute would be needed for at least some entries.



That is the reason for the “website” field. If we want to use the name
alone, that field could be split in 2.


  IHMO it is better to derive attribute 'website' (as $dist.apache.org)
  from a 'dist' attribute, than the other way around ; nevermind.


I hope dist names are the same as TLP website names but I've not checked.

The field “board” was added where I had problems between the TLP name
used in Whimsy and the normal name.


  I see only two entries with non-empty "board" fields ;
  the first isn't necessary ; the second isn't helpful
  in mapping to the right /dist/GHOST tag :

"name":"Crimson",
"board":   "crimson",

"name":"Standard C++ Library (STDCXX)",
"board":   "Cxx_Standard_Library",

  Let's have a 'dist' attribute for entries that need it.
  default : lowercase($name).
  sanity  : if $name matches whitespace then $dist must not be empty.

  Let's remove 'board' in entries where board == ''.

  Regards,

  HPP

   _
Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/

Re: svn commit: r1829770 - in /attic/site-json: build.props build.sh build.xml docs/projects/ lib/ xdocs/

2018-04-22 Thread sebb
On 22 April 2018 at 13:04, Henk P. Penning <penn...@uu.nl> wrote:
> On Sun, 22 Apr 2018, sebb wrote:
>
>> Date: Sun, 22 Apr 2018 13:53:15 +0200
>> From: sebb <seb...@gmail.com>
>> To: general@attic.apache.org
>> Subject: Re: svn commit: r1829770 - in /attic/site-json: build.props
>> build.sh
>> build.xml docs/projects/ lib/ xdocs/
>
>
>>>   Eh ; just a reminder ; the httpd config for www.a.o uses :
>>>
>>> RewriteCond "%%{}{REQUEST_URI}" "^/dist/([-a-zA-Z0-9]+)"
>>> RewriteCond "/var/www/attic.apache.org/projects/%1.html" -f
>>> RewriteRule ".*" "http://attic.apache.org/projects/%1.html; [R=307,L]
>>>
>>>   In other words : the /dist/GHOST/ redirects are triggered
>>>   by the presence of "attic.apache.org/projects/GHOST.html".
>>>
>>>   The point is that the lookup [-f] has to fast.
>>>   In the future we should create a directory (like "flagged/") ;
>>>   possibly combine the two, as in :
>>>
>>> attic.a.o/retired/
>>> attic.a.o/retired/GHOST/# retired flag
>>> attic.a.o/retired/GHOST/add-banner  # banner flag
>>
>>
>> The dist redirect needs the plain host name, e.g. ace, whereas AFAIK
>> the banner processing needs FQDN, e.g. ace[.eu|us].apache.org.
>> So that won't work unless the banner processing can be changed to use
>> the plain host name.
>
>
>   Right ; if we stay with /flagged/, the dist trigger can changed as :
>
>   - RewriteCond "/var/www/attic.apache.org/projects/%1.html" -f
>   + RewriteCond "/var/www/attic.apache.org/flagged/%1.apache.org/" -d
>
>   ... and the banner-trigger :
>
>   - 
>   + 

Surely HTTP_HOST is GHOST.apache.org?
For example we currently have:

https://svn.apache.org/repos/asf/attic/site-json/docs/flagged/oltu.apache.org/oltu.apache.org

>> But I agree it would be good to reduce the number of files that have
>> to be created/amended for a new retirement.
>
>
>   Eventually, we should generate the 'flagged' stuff.

That would require a buildbot job or similar in order to make it
simpler for tablet users.

>>>   Does it make sense to have an (optional) 'dist' attribute,
>>>   for sites where "lowercase(name)" is not equal to the
>>>   the NAME in /dist/NAME ?
>>
>>
>> Which 'name' are you referring to here?
>
>
>   The 'name' attribute in the JSON in "attic.js".

I see.
That is the text for the project list in the RH menu, and is free-format.
It's not directly convertible into a dist/ directory name.
So I agree that a dist attribute would be needed for at least some entries.

I hope dist names are the same as TLP website names but I've not checked.

>   Regards,
>
>
>   HPP
>
>    _
> Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
> Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
> Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
> http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/


Re: svn commit: r1829770 - in /attic/site-json: build.props build.sh build.xml docs/projects/ lib/ xdocs/

2018-04-22 Thread Henk P. Penning

On Sun, 22 Apr 2018, sebb wrote:


Date: Sun, 22 Apr 2018 13:53:15 +0200
From: sebb <seb...@gmail.com>
To: general@attic.apache.org
Subject: Re: svn commit: r1829770 - in /attic/site-json: build.props build.sh
build.xml docs/projects/ lib/ xdocs/



  Eh ; just a reminder ; the httpd config for www.a.o uses :

RewriteCond "%%{}{REQUEST_URI}" "^/dist/([-a-zA-Z0-9]+)"
RewriteCond "/var/www/attic.apache.org/projects/%1.html" -f
RewriteRule ".*" "http://attic.apache.org/projects/%1.html; [R=307,L]

  In other words : the /dist/GHOST/ redirects are triggered
  by the presence of "attic.apache.org/projects/GHOST.html".

  The point is that the lookup [-f] has to fast.
  In the future we should create a directory (like "flagged/") ;
  possibly combine the two, as in :

attic.a.o/retired/
attic.a.o/retired/GHOST/# retired flag
attic.a.o/retired/GHOST/add-banner  # banner flag


The dist redirect needs the plain host name, e.g. ace, whereas AFAIK
the banner processing needs FQDN, e.g. ace[.eu|us].apache.org.
So that won't work unless the banner processing can be changed to use
the plain host name.


  Right ; if we stay with /flagged/, the dist trigger can changed as :

  - RewriteCond "/var/www/attic.apache.org/projects/%1.html" -f
  + RewriteCond "/var/www/attic.apache.org/flagged/%1.apache.org/" -d

  ... and the banner-trigger :

  - 
  + 


But I agree it would be good to reduce the number of files that have
to be created/amended for a new retirement.


  Eventually, we should generate the 'flagged' stuff.


  Does it make sense to have an (optional) 'dist' attribute,
  for sites where "lowercase(name)" is not equal to the
  the NAME in /dist/NAME ?


Which 'name' are you referring to here?


  The 'name' attribute in the JSON in "attic.js".

  Regards,

  HPP

   _
Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/


Re: svn commit: r1829770 - in /attic/site-json: build.props build.sh build.xml docs/projects/ lib/ xdocs/

2018-04-22 Thread sebb
On 22 April 2018 at 12:12, Henk P. Penning <penn...@uu.nl> wrote:
> On Sun, 22 Apr 2018, Jan Iversen wrote:
>
>> Date: Sun, 22 Apr 2018 12:42:39 +0200
>> From: Jan Iversen <jancasacon...@gmail.com>
>> To: general@attic.apache.org
>> Subject: Re: svn commit: r1829770 - in /attic/site-json: build.props
>> build.sh
>> build.xml docs/projects/ lib/ xdocs/
>
>
>>>attic/site-json/docs/projects/
>>
>> I think this is wrong ? The idea was to have projects/.htaccess with
>> the rewrite to attic.js
>
>
>   Eh ; just a reminder ; the httpd config for www.a.o uses :
>
> RewriteCond "%%{}{REQUEST_URI}" "^/dist/([-a-zA-Z0-9]+)"
> RewriteCond "/var/www/attic.apache.org/projects/%1.html" -f
> RewriteRule ".*" "http://attic.apache.org/projects/%1.html; [R=307,L]
>
>   In other words : the /dist/GHOST/ redirects are triggered
>   by the presence of "attic.apache.org/projects/GHOST.html".
>
>   The point is that the lookup [-f] has to fast.
>   In the future we should create a directory (like "flagged/") ;
>   possibly combine the two, as in :
>
> attic.a.o/retired/
> attic.a.o/retired/GHOST/# retired flag
> attic.a.o/retired/GHOST/add-banner  # banner flag

The dist redirect needs the plain host name, e.g. ace, whereas AFAIK
the banner processing needs FQDN, e.g. ace[.eu|us].apache.org.
So that won't work unless the banner processing can be changed to use
the plain host name.

But I agree it would be good to reduce the number of files that have
to be created/amended for a new retirement.

>   Does it make sense to have an (optional) 'dist' attribute,
>   for sites where "lowercase(name)" is not equal to the
>   the NAME in /dist/NAME ?

Which 'name' are you referring to here?

>> Jan I
>
>
>   HPP
>
>    _
> Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
> Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
> Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
> http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/


Re: svn commit: r1829770 - in /attic/site-json: build.props build.sh build.xml docs/projects/ lib/ xdocs/

2018-04-22 Thread sebb
On 22 April 2018 at 11:42, Jan Iversen  wrote:
>
>
>> On 22 Apr 2018, at 12:41, s...@apache.org wrote:
>>
>> Author: sebb
>> Date: Sun Apr 22 10:41:16 2018
>> New Revision: 1829770
>>
>> URL: http://svn.apache.org/viewvc?rev=1829770=rev
>> Log:
>> Reduce to proposed source files
>>
>> Removed:
>>attic/site-json/build.props
>>attic/site-json/build.sh
>>attic/site-json/build.xml
>>attic/site-json/docs/projects/
> I think this is wrong ? The idea was to have projects/.htaccess with the 
> rewrite to attic.js

The intention was to ensure that the old html files were not used accidentally.

Note that an .htaccess file could also be placed in the main directory
or the redirect could be done by the server config.
Indeed it may have to be done there if .htaccess files are disallowed.

But it is easy enough to add the folder back if/when it is needed.

>>attic/site-json/lib/
>>attic/site-json/xdocs/
>>
>
>
> Rgds
> Jan I
>


Re: svn commit: r1829770 - in /attic/site-json: build.props build.sh build.xml docs/projects/ lib/ xdocs/

2018-04-22 Thread Jan Iversen


> On 22 Apr 2018, at 12:41, s...@apache.org wrote:
> 
> Author: sebb
> Date: Sun Apr 22 10:41:16 2018
> New Revision: 1829770
> 
> URL: http://svn.apache.org/viewvc?rev=1829770=rev
> Log:
> Reduce to proposed source files
> 
> Removed:
>attic/site-json/build.props
>attic/site-json/build.sh
>attic/site-json/build.xml
>attic/site-json/docs/projects/
I think this is wrong ? The idea was to have projects/.htaccess with the 
rewrite to attic.js

>attic/site-json/lib/
>attic/site-json/xdocs/
> 


Rgds
Jan I



svn commit: r1829770 - in /attic/site-json: build.props build.sh build.xml docs/projects/ lib/ xdocs/

2018-04-22 Thread sebb
Author: sebb
Date: Sun Apr 22 10:41:16 2018
New Revision: 1829770

URL: http://svn.apache.org/viewvc?rev=1829770=rev
Log:
Reduce to proposed source files

Removed:
attic/site-json/build.props
attic/site-json/build.sh
attic/site-json/build.xml
attic/site-json/docs/projects/
attic/site-json/lib/
attic/site-json/xdocs/