Bug 226667 - net/opensips: Update to 2.2.6
Summary: net/opensips: Update to 2.2.6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-17 03:29 UTC by Euan Thoms
Modified: 2018-03-24 02:12 UTC (History)
3 users (show)

See Also:
euan: maintainer-feedback+
euan: merge-quarterly?


Attachments
Diff patch between current port version and upgrade to v2.2.6. (27.19 KB, patch)
2018-03-17 03:29 UTC, Euan Thoms
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Euan Thoms 2018-03-17 03:29:12 UTC
Created attachment 191567 [details]
Diff patch between current port version and upgrade to v2.2.6.

I'm back! After a long hiatus of ports dev neglection. Appologies to all that were awaiting my input. I've been so busy with work, babies and other open source development.

I'm just upgrading my personal and work servers, so I want to get on the latest OpensIPS LTS. I have only been running the last version I updated myself (2.1.4 I think). Unlike versions before it, v2.1.4 has been running rock solid for well over a year. Let's hope 2.2.6 is just as stable on a FreeBSD jail.  

Changes to note:

(i) added support in rc script for process ownership (user & group).
(ii) added opensips to UIDs and GIDs
(iii) made default daemon process owner opensips:opensips.
(iv) added pkg-message
(v) updated sample config to be a valid 2.2.x residential script.

The following is required in UIDs and GIDs:

# cat /usr/ports/UIDs | grep opensips
opensips:*:221:221::0:0:OpenSIPS user:/nonexistent:/usr/sbin/nologin

# cat /usr/ports/GIDs | grep opensips
opensips:*:221:
Comment 1 Euan Thoms 2018-03-17 03:39:16 UTC
TESTING
=======

DEVELOPER=yes make                      : PASS
portlint -AC                            : PASS
make check-plist (default options)      : PASS
make check-plist (all options disabled) : PASS
make check-plist (all options enabled)  : PASS
poudriere build                         : PASS


Production testing:
-------------------

Been running in production on one server for 2 days with very light usage and basic testing (3 video calls, one conference call). No issues so far.

Test clients: Linphone Desktop v3.9.1 on Linux, Linphone Android v3.3.1, Grandstream GXV3275.
Comment 2 Euan Thoms 2018-03-17 03:47:58 UTC
Worth noting that since the deafult daemon process ownership has changed from root:wheel to opensips:opensips. The ownership flags of the following files will need changing on the users system:

/tmp/opensips_fifo (assuming FIFO used and the default file path)
/usr/local/etc/opensips/opensips.cfg

I would be happy to create a /usr/ports/UPDATING message stating this if it recommended. I am not aware of the process for doing this.
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2018-03-24 02:12:24 UTC
welcome back, Euan!

-----------

Committed with changes.
Thank you for the update!
Comment 4 commit-hook freebsd_committer freebsd_triage 2018-03-24 02:12:30 UTC
A commit references this bug:

Author: yuri
Date: Sat Mar 24 02:12:20 UTC 2018
New revision: 465424
URL: https://svnweb.freebsd.org/changeset/ports/465424

Log:
  net/opensips: Update 2.2.3 -> 2.2.6

  Port changes:
  * Change to DISTVERSION
  * Add USERS/GROUPS and corresponding entries in UIDs/GIDs
  * Add USE_RC_SUBR
  * Change MYSQL_USE=MYSQL=client -> MYSQL_USES=mysql:client
  * Remove unnecessary +=
  * Add pkg-message
  * Change WWW to https

  PR:		226667
  Submitted by:	Euan Thoms <euan@potensol.com> (maintainer)

Changes:
  head/GIDs
  head/UIDs
  head/net/opensips/Makefile
  head/net/opensips/distinfo
  head/net/opensips/files/Makefile.conf
  head/net/opensips/files/opensips.cfg.sample
  head/net/opensips/files/opensips.in
  head/net/opensips/files/patch-modules__proto_tls__proto_tls.c
  head/net/opensips/pkg-descr
  head/net/opensips/pkg-message
  head/net/opensips/pkg-plist