archivers/zpaqfranz: Add option for installing dir

bin/dir is just a shorthand for a subcommand of zpaqfranz. Installing it
would conflict with misc/gnuls, so make it optional and disabled by
default.

PR:		265651
Reported by:	diizzy (on IRC)
Approved by:	Franco Corbelli <franco@francocorbelli.com> (maintainer)
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D36292
This commit is contained in:
Felix Palmen 2022-08-22 13:27:18 +02:00
parent cf06cc6061
commit 85b9e25367

View File

@ -1,5 +1,6 @@
PORTNAME= zpaqfranz
DISTVERSION= 55.12
PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= http://www.francocorbelli.it/zpaqfranz/freebsd/
@ -11,8 +12,16 @@ LICENSE_COMB= dual
NO_WRKSUBDIR= yes
PLIST_FILES= bin/dir \
bin/zpaqfranz
OPTIONS_DEFINE= DIRCOMMAND
DIRCOMMAND_DESC= Add a symlink to call the dir subcommand directly
PLIST_FILES= bin/zpaqfranz
DIRCOMMAND_PLIST_FILES= bin/dir
DIRCOMMAND_CONFLICTS_INSTALL= gnuls
post-install-DIRCOMMAND-off:
${RM} ${STAGEDIR}${LOCALBASE}/bin/dir
.include <bsd.port.pre.mk>