Bug 210028

Summary: [patch] mail/spamd: use USE_OPENSSL to link against correct libcrypto
Product: Ports & Packages Reporter: Adam Weinberger <adamw>
Component: Individual Port(s)Assignee: Olli Hauer <ohauer>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (ohauer)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
USE_OPENSSL for spamd none

Description Adam Weinberger freebsd_committer freebsd_triage 2016-06-04 17:03:50 UTC
Created attachment 171016 [details]
USE_OPENSSL for spamd

spamd links against libcrypto, but without using USE_OPENSSL
it can't link against the preferred SSL implementation. The
attached patch fixes this, and bumps PORTREVISION for the
dependency change.

before:
root@lockup:~ # ldd /usr/local/libexec/spamd
        libcrypto.so.7 => /lib/libcrypto.so.7 (0x800829000)
after:
root@lockup:~ # ldd /usr/local/libexec/spamd
        libcrypto.so.37 => /usr/local/lib/libcrypto.so.37 (0x80082b000)

The attached patch also includes a couple Makefile tweaks. The
bsd.port.options.mk is converted to bsd.port.pre.mk because of
USE_OPENSSL, and the PLIST_SUB stuff that's no longer used is
removed. Also, the "${INSTALL} -d" is changed to ${MKDIR} so
that it's consistent with the ${MKDIR} below it.
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-06-12 17:58:18 UTC
A commit references this bug:

Author: ohauer
Date: Sun Jun 12 17:57:38 UTC 2016
New revision: 416816
URL: https://svnweb.freebsd.org/changeset/ports/416816

Log:
  - allow build with openssl / libressl from ports
  - convert PLIST_SUB into SUB_LIST
  - bump PORTREVISION
  - small Makefile tweaks

  PR:		210028
  Submitted by:	adamw@

Changes:
  head/mail/spamd/Makefile
Comment 2 Olli Hauer freebsd_committer freebsd_triage 2016-06-12 19:05:42 UTC
Committed, Thanks!