Bug 201459 - [patch] security/openssl - allow disabling API manpage installation
Summary: [patch] security/openssl - allow disabling API manpage installation
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: Dirk Meyer
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-07-10 18:03 UTC by Adam Weinberger
Modified: 2015-09-05 13:29 UTC (History)
0 users

See Also:
dinoex: maintainer-feedback-


Attachments
API_MAN (114.19 KB, patch)
2015-07-10 18:03 UTC, Adam Weinberger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Weinberger freebsd_committer 2015-07-10 18:03:15 UTC
Created attachment 158586 [details]
API_MAN

The openssl port contains a lot of manpages. About 1500 of them, to be precise. For many (most?) users, we just need the libraries, not the API manpages, and it'd be nice to not have to install them.

The attached patch is pretty simple, it just adds an API_MAN option (defaults to ON) that controls whether the man3 pages are installed. It shouldn't change the default package at all (so it shouldn't need a PORTREVISION bump). It doesn't affect the man1 manpages.

While here, I also cleaned up the @dir handling in the plist. So, it removes all the @dirrm/@dirrmtry stuff, and only lists @dir for empty directories.

With this patch and API_MAN off, the installation goes from 1,647 files to 168 files, and reduces the resulting package size by 37%.

Installing the manpages won't cause the earth to stop turning, but I thought it'd be a nice option to have.
Comment 1 Dirk Meyer freebsd_committer 2015-08-16 18:56:22 UTC
I will work on a cleaner option
Comment 2 commit-hook freebsd_committer 2015-09-05 13:18:40 UTC
A commit references this bug:

Author: dinoex
Date: Sat Sep  5 13:17:48 UTC 2015
New revision: 396168
URL: https://svnweb.freebsd.org/changeset/ports/396168

Log:
  - new OPTION MAN3
  PR:		201459

Changes:
  head/security/openssl/Makefile
  head/security/openssl/pkg-plist