Bug 196446

Summary: net/kamailio: Fix pkg-plist orphans when using PGSQL option
Product: Ports & Packages Reporter: John W. O'Brien <john>
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: easy, needs-qa, patch, patch-ready
Priority: --- Flags: bugzilla: maintainer-feedback? (pi)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
net/kamailio: Add mohqueue and rtpproxy SQL init files to PLIST none

Description John W. O'Brien 2015-01-02 20:18:57 UTC
Created attachment 151222 [details]
net/kamailio: Add mohqueue and rtpproxy SQL init files to PLIST

If built with the PGSQL option, two files necessary for creating the initial database are not installed as necessary. This causes "kamdbctl create" to fail during extra_create() when EXTRA_MODULES contains "mohqueue" and/or "rtpproxy" (which is does, by default).

The orphaned files are:

    %%DATADIR%%/postgres/mohqueue-create.sql
    %%DATADIR%%/postgres/rtpproxy-create.sql

The fix is to add them to pkg-plist. The attached patch does this.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-01-02 20:18:57 UTC
Auto-assigned to maintainer pi@FreeBSD.org
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-01-03 06:33:28 UTC
A commit references this bug:

Author: pi
Date: Sat Jan  3 06:31:58 UTC 2015
New revision: 376081
URL: https://svnweb.freebsd.org/changeset/ports/376081

Log:
  net/kamailio: install two files necessary if build with PQSQL

  If built with the PGSQL option, two files necessary for creating
  the initial database are not installed as necessary. This causes
  "kamdbctl create" to fail during extra_create() when EXTRA_MODULES
  contains "mohqueue" and/or "rtpproxy" (which is does, by default).

  PR:		196446
  Submitted by:	John W. O'Brien <john@saltant.com>

Changes:
  head/net/kamailio/Makefile
  head/net/kamailio/pkg-plist
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2015-01-03 06:40:34 UTC
Committed, thanks.