aboutsummaryrefslogtreecommitdiff
path: root/sysutils/dnf
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2020-09-27 10:40:27 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2020-09-27 10:40:27 +0000
commite779ccecac6914a73e75246683177460c2a07465 (patch)
treed49d5d8e1197c69cb3bfe82283732f9b09ac6800 /sysutils/dnf
parent72990a759b031c9479830a600d99b83d6adfb445 (diff)
downloadports-e779ccecac6914a73e75246683177460c2a07465.tar.gz
ports-e779ccecac6914a73e75246683177460c2a07465.zip
sysutils/dnf: Add symbolic links to executables for them to be named like in the documentation
Notes
Notes: svn path=/head/; revision=550263
Diffstat (limited to 'sysutils/dnf')
-rw-r--r--sysutils/dnf/Makefile6
-rw-r--r--sysutils/dnf/pkg-plist2
2 files changed, 8 insertions, 0 deletions
diff --git a/sysutils/dnf/Makefile b/sysutils/dnf/Makefile
index 173227ffdf21..3a4c52f46ee2 100644
--- a/sysutils/dnf/Makefile
+++ b/sysutils/dnf/Makefile
@@ -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>
diff --git a/sysutils/dnf/pkg-plist b/sysutils/dnf/pkg-plist
index a362cb5fcc0b..02e1bcec2b4c 100644
--- a/sysutils/dnf/pkg-plist
+++ b/sysutils/dnf/pkg-plist
@@ -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