sysutils/dnf: Add symbolic links to executables for them to be named like in the documentation

This commit is contained in:
Yuri Victorovich 2020-09-27 10:40:27 +00:00
parent 72990a759b
commit e779ccecac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550263
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= dnf
DISTVERSION= 4.2.23
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= yuri@FreeBSD.org
@ -30,4 +31,9 @@ NO_ARCH= yes
post-patch:
@${REINPLACE_CMD} -e "s|'/usr/bin'|'${PREFIX}/bin'|" ${WRKSRC}/bin/dnf*.in
post-install:
cd ${STAGEDIR}${PREFIX}/bin && \
${LN} -s dnf-3 dnf && \
${LN} -s dnf-automatic-3 dnf-automatic
.include <bsd.port.mk>

View File

@ -1,4 +1,6 @@
bin/dnf
bin/dnf-3
bin/dnf-automatic
bin/dnf-automatic-3
etc/bash_completion.d/dnf
%%ETCDIR%%/aliases.d/zypper.conf