Bug 215056 - net-im/openfire: Update to 4.0.4
Summary: net-im/openfire: Update to 4.0.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Pietro Cerutti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-05 00:03 UTC by Danilo G. Baio
Modified: 2016-12-07 12:49 UTC (History)
0 users

See Also:
gahr: maintainer-feedback+


Attachments
openfire-4.0.4.patch (2.45 KB, patch)
2016-12-05 00:03 UTC, Danilo G. Baio
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Danilo G. Baio freebsd_committer freebsd_triage 2016-12-05 00:03:14 UTC
Created attachment 177670 [details]
openfire-4.0.4.patch

- Update to 4.0.4
- Add LICENSE_FILE
- Remove resources/nativeAuth/* 
  nativeAuth/linux-i386/libshaj.so requires linux emulation + pam[1], not present on the ports tree.
- Set architecture neutral

Changelog: http://download.igniterealtime.org/openfire/docs/latest/changelog.html

=====================================================================
[Q/A]

testport: 
	poudriere: i386,  9.3   (OK)
	poudriere: amd64, 9.3   (OK)
	poudriere: i386,  10.3  (OK)
	poudriere: amd64, 10.3  (OK)
	poudriere: i386,  11    (OK)
	poudriere: amd64, 11    (OK)	
	poudriere: i386,  12    (OK)
	poudriere: amd64, 12    (OK)

Same warnings on portlint:
WARN: Makefile: possible use of absolute pathname "/var/log/openfire".
WARN: Makefile: possible use of absolute pathname "/var/db/openfire".
0 fatal errors and 2 warnings found.

Same warnings on stage-qa:
====> Running Q/A tests (stage-qa)
Warning: Bad symlink '/usr/local/share/java/openfire/resources/security' pointing to an absolute pathname '/usr/local/etc/openfire'
Warning: Bad symlink '/usr/local/share/java/openfire/logs' pointing to an absolute pathname '/var/log/openfire'
Warning: Bad symlink '/usr/local/share/java/openfire/conf' pointing to an absolute pathname '/usr/local/etc/openfire'
Warning: Bad symlink '/usr/local/share/java/openfire/embedded-db' pointing to an absolute pathname '/var/db/openfire'
=====================================================================

This nativeAuth feature requires some tweaks[2] to work properly.
I think it's not used on FreeBSD, thats why I am suggesting this patch.

I've found libdl.so.2 and libc.so.6 through linux_base but couldn't find libpam.so.0.

[1] - readelf -d  work/stage/usr/local/share/java/openfire/resources/nativeAuth/linux-i386/libshaj.so | grep NEEDED
0x00000001 NEEDED               Shared library: [libpam.so.0]
0x00000001 NEEDED               Shared library: [libdl.so.2]
0x00000001 NEEDED               Shared library: [libc.so.6]

[2] - https://community.igniterealtime.org/docs/DOC-1723
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-12-07 12:49:03 UTC
A commit references this bug:

Author: gahr
Date: Wed Dec  7 12:48:08 UTC 2016
New revision: 428056
URL: https://svnweb.freebsd.org/changeset/ports/428056

Log:
  net-im/openfire: update to 4.0.4, kill Linux-based nativeAuth plugin

  Changelog:
  http://download.igniterealtime.org/openfire/docs/latest/changelog.html

  PR:		215056
  Submitted by:	Danilo G. Baio <dbaio@bsd.com.br>

Changes:
  head/net-im/openfire/Makefile
  head/net-im/openfire/distinfo
  head/net-im/openfire/pkg-plist