Bug 188350 - Package repository is missing nrpe-ssl
Summary: Package repository is missing nrpe-ssl
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-07 15:40 UTC by teixeira
Modified: 2014-06-19 18:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description teixeira 2014-04-07 15:40:00 UTC
I was upgrading from ports tools to the new "pkg" tool and noticed that, after upgrading, the new "nrpe" package did not include SSL support, which my environment requires.

Fix: 

I found that the "net-mgmt/nrpe-ssl" port does exist, however, and was able to create a package for that port using:

cd /usr/ports/net-mgmt/nrpe-ssl
make package
pkg add /usr/ports/packages/All/nrpe-ssl-2.15_2.txz

This solved my problem, but I wanted to file this to see if there was any way of including an "nrpe-ssl" package alongside the "nrpe" package in the repository so that people could simply remove "nrpe" and install "nrpe-ssl" if they need SSL support instead of going through this process.  Also, this now puts my nrpe-ssl package outside the streamlined "pkg upgrade" shortcut to upgrade all packages on the system.

I am new to the "pkg" system, so I could just be missing something where nrpe-ssl is easier installed with "pkg" in some way.  If that is the case, please let me know how I *should* have done this, as I could not find it in the documentation for "pkg".

Thank you.
How-To-Repeat: pkg install nrpe
Comment 1 John Marino freebsd_committer freebsd_triage 2014-06-18 21:42:16 UTC
"pkg install nrpe" installs the net-mgmt/nrpe package
"pkg install nrpe-ssl" installs the net-mgmt/nrpe-ssl package

So they are "along side" each other already.

It looks to me that you just installed the wrong package, it's that simple.


see this page:
http://www.freshports.org/net-mgmt/nrpe-ssl

About halfway down, you see:
"To add the package: pkg install net-mgmt/nrpe-ssl"

So in the future, just look at freshports for the correct command.
Comment 2 teixeira 2014-06-19 13:53:19 UTC
I guess this may then be a problem with the package system on my server then.  I ran pkg2ng and then followed all the directions from https://wiki.freebsd.org/pkgng to add the repository to the system.  I was then able to add any packages that I needed.  I originally tried to install "nrpe-ssl", but the package was not found in the repository.  I then went to the freshports site as you suggested to make sure I was typing the right command, and that page confirmed it.  Below are some examples of my attempts to find that package on my systems:

[root@foo /]# pkg search nrpe
mcollective-nrpe-agent-20130805
mnrpes-2014041501
nrpe-2.15_3

[root@foo /]# pkg install nrpe-ssl
Updating repository catalogue
pkg: No packages matching 'nrpe-ssl' available in the repositories

[root@foo /]# pkg install net-mgmt/nrpe-ssl
Updating repository catalogue
pkg: No packages matching 'net-mgmt/nrpe-ssl' available in the repositories

Any other package that I have looked for, including "nrpe" all seem to be there and are easily installable, so it seems a little strange.  My repository file is exactly as the documentation recommends:

/usr/local/etc/pkg/repos/FreeBSD.conf:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  enabled: yes
}

I have now done this conversion on 4 separate systems, and all of them work completely fine except for the nrpe-ssl package.  Therefore, unless the URL in the above configuration points to an old repository and has changed but was not updated in the documentation, I don't see what I could possibly be doing wrong.

Potentially, this is not a problem with the port itself, but rather with the repository system, which may require a different bug ticket.  If that is the case, then I apologize for re-opening this ticket and would request that you just let me know where it may be more appropriate to file this bug report.

Any further assistance would be greatly appreciated.
Comment 3 John Marino freebsd_committer freebsd_triage 2014-06-19 17:56:40 UTC
[long post deleted]

Hmmm, there is something very strange specifically with net-mgmt/npre-ssl.  I asked on IRC and it's not connected to the tree.  It seems that this report is valid after all.
Comment 4 commit-hook freebsd_committer freebsd_triage 2014-06-19 18:17:43 UTC
A commit references this bug:

Author: marino
Date: Thu Jun 19 18:16:45 UTC 2014
New revision: 358449
URL: http://svnweb.freebsd.org/changeset/ports/358449

Log:
  Connect net-mgmt/nrpe-ssl to the build

  This port was added to the tree on 6 APR 2014 but it was never added
  to the net-mgmt makefile.  This prevents the package builders from
  creating binary packages for it.

  PR:		188350
  Reported by:	teixeira (broadinstitute.org)
  Approved by:	portmgr (antoine)

Changes:
  head/net-mgmt/Makefile
Comment 5 John Marino freebsd_committer freebsd_triage 2014-06-19 18:21:47 UTC
you win.  It was a real problem!