1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

New port: sysutils/dnf: Dandified YUM, the next-generation version of YUM

This commit is contained in:
Yuri Victorovich 2020-09-26 07:01:41 +00:00
parent 4a83f13ec5
commit e9b697dace
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550109
7 changed files with 221 additions and 0 deletions

View File

@ -253,6 +253,7 @@
SUBDIR += disktype
SUBDIR += dmg2img
SUBDIR += dmidecode
SUBDIR += dnf
SUBDIR += docker
SUBDIR += docker-compose
SUBDIR += docker-credential-pass

33
sysutils/dnf/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $FreeBSD$
PORTNAME= dnf
DISTVERSION= 4.2.23
CATEGORIES= sysutils
MAINTAINER= yuri@FreeBSD.org
COMMENT= Dandified YUM, the next-generation version of YUM
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= libcomps>0:misc/libcomps \
libdnf>0:sysutils/libdnf \
rpm4>0:archivers/rpm4 \
${PYTHON_PKGNAMEPREFIX}gpgme>0:security/py-gpgme@${PY_FLAVOR}
USES= cmake gettext-tools python
USE_GITHUB= yes
GH_ACCOUNT= rpm-software-management
GH_PROJECT= dnf
CMAKE_OFF= FREEBSD_INSTALL_DOC
CMAKE_ARGS= -DPYTHON_DESIRED=${PYTHON_MAJOR_VER}
INSTALL_TARGET= install
NO_ARCH= yes
post-patch:
@${REINPLACE_CMD} -e "s|'/usr/bin'|'${PREFIX}/bin'|" ${WRKSRC}/bin/dnf*.in
.include <bsd.port.mk>

3
sysutils/dnf/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1600574323
SHA256 (rpm-software-management-dnf-4.2.23_GH0.tar.gz) = a3366932bd252e5e88e9931ea7f9b5fdd434f9eb499a801716f8769d44fd3dd9
SIZE (rpm-software-management-dnf-4.2.23_GH0.tar.gz) = 1732376

View File

@ -0,0 +1,21 @@
--- CMakeLists.txt.orig 2020-06-02 09:51:52 UTC
+++ CMakeLists.txt
@@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED (VERSION 2.4)
INCLUDE (${CMAKE_SOURCE_DIR}/VERSION.cmake)
-SET( SYSCONFDIR /etc)
+SET( SYSCONFDIR ${CMAKE_INSTALL_PREFIX}/etc)
SET( SYSTEMD_DIR /usr/lib/systemd/system)
IF (NOT PYTHON_DESIRED)
@@ -25,7 +25,9 @@ MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL
ADD_SUBDIRECTORY (dnf)
ADD_SUBDIRECTORY (bin)
ADD_SUBDIRECTORY (etc)
+if (FREEBSD_INSTALL_DOC)
ADD_SUBDIRECTORY (doc)
+endif()
ADD_SUBDIRECTORY (po)
ENABLE_TESTING()
ADD_SUBDIRECTORY (tests)

View File

@ -0,0 +1,13 @@
--- etc/CMakeLists.txt.orig 2020-09-20 04:13:02 UTC
+++ etc/CMakeLists.txt
@@ -1,6 +1,6 @@
-INSTALL (FILES "collect_dnf.conf" DESTINATION ${SYSCONFDIR}/libreport/events.d/)
+#INSTALL (FILES "collect_dnf.conf" DESTINATION ${SYSCONFDIR}/libreport/events.d/)
ADD_SUBDIRECTORY (bash_completion.d)
ADD_SUBDIRECTORY (dnf)
-ADD_SUBDIRECTORY (logrotate.d)
-ADD_SUBDIRECTORY (systemd)
-ADD_SUBDIRECTORY (tmpfiles.d)
+#ADD_SUBDIRECTORY (logrotate.d)
+#ADD_SUBDIRECTORY (systemd)
+#ADD_SUBDIRECTORY (tmpfiles.d)

6
sysutils/dnf/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
Dandified YUM (DNF) is the next upcoming major version of YUM. It does package
management using RPM, libsolv and hawkey libraries. For metadata handling and
package downloads it utilizes librepo. To process and effectively handle the
comps data it uses libcomps.
WWW: https://github.com/rpm-software-management/dnf

144
sysutils/dnf/pkg-plist Normal file
View File

@ -0,0 +1,144 @@
bin/dnf-3
bin/dnf-automatic-3
etc/bash_completion.d/dnf
%%ETCDIR%%/aliases.d/zypper.conf
%%ETCDIR%%/automatic.conf
%%ETCDIR%%/dnf-strict.conf
%%ETCDIR%%/dnf.conf
%%ETCDIR%%/protected.d/dnf.conf
%%ETCDIR%%/protected.d/yum.conf
%%PYTHON_SITELIBDIR%%/dnf/__init__.py
%%PYTHON_SITELIBDIR%%/dnf/automatic/__init__.py
%%PYTHON_SITELIBDIR%%/dnf/automatic/emitter.py
%%PYTHON_SITELIBDIR%%/dnf/automatic/main.py
%%PYTHON_SITELIBDIR%%/dnf/base.py
%%PYTHON_SITELIBDIR%%/dnf/callback.py
%%PYTHON_SITELIBDIR%%/dnf/cli/__init__.py
%%PYTHON_SITELIBDIR%%/dnf/cli/aliases.py
%%PYTHON_SITELIBDIR%%/dnf/cli/cli.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/__init__.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/alias.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/autoremove.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/check.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/clean.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/deplist.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/distrosync.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/downgrade.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/group.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/install.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/makecache.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/mark.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/module.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/reinstall.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/remove.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/repolist.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/repoquery.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/search.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/shell.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/swap.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/updateinfo.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/upgrade.py
%%PYTHON_SITELIBDIR%%/dnf/cli/commands/upgrademinimal.py
%%PYTHON_SITELIBDIR%%/dnf/cli/completion_helper.py
%%PYTHON_SITELIBDIR%%/dnf/cli/demand.py
%%PYTHON_SITELIBDIR%%/dnf/cli/format.py
%%PYTHON_SITELIBDIR%%/dnf/cli/main.py
%%PYTHON_SITELIBDIR%%/dnf/cli/option_parser.py
%%PYTHON_SITELIBDIR%%/dnf/cli/output.py
%%PYTHON_SITELIBDIR%%/dnf/cli/progress.py
%%PYTHON_SITELIBDIR%%/dnf/cli/term.py
%%PYTHON_SITELIBDIR%%/dnf/cli/utils.py
%%PYTHON_SITELIBDIR%%/dnf/comps.py
%%PYTHON_SITELIBDIR%%/dnf/conf/__init__.py
%%PYTHON_SITELIBDIR%%/dnf/conf/config.py
%%PYTHON_SITELIBDIR%%/dnf/conf/read.py
%%PYTHON_SITELIBDIR%%/dnf/conf/substitutions.py
%%PYTHON_SITELIBDIR%%/dnf/const.py
%%PYTHON_SITELIBDIR%%/dnf/crypto.py
%%PYTHON_SITELIBDIR%%/dnf/db/__init__.py
%%PYTHON_SITELIBDIR%%/dnf/db/group.py
%%PYTHON_SITELIBDIR%%/dnf/db/history.py
%%PYTHON_SITELIBDIR%%/dnf/dnssec.py
%%PYTHON_SITELIBDIR%%/dnf/drpm.py
%%PYTHON_SITELIBDIR%%/dnf/exceptions.py
%%PYTHON_SITELIBDIR%%/dnf/goal.py
%%PYTHON_SITELIBDIR%%/dnf/history.py
%%PYTHON_SITELIBDIR%%/dnf/i18n.py
%%PYTHON_SITELIBDIR%%/dnf/lock.py
%%PYTHON_SITELIBDIR%%/dnf/logging.py
%%PYTHON_SITELIBDIR%%/dnf/match_counter.py
%%PYTHON_SITELIBDIR%%/dnf/module/__init__.py
%%PYTHON_SITELIBDIR%%/dnf/module/exceptions.py
%%PYTHON_SITELIBDIR%%/dnf/module/module_base.py
%%PYTHON_SITELIBDIR%%/dnf/package.py
%%PYTHON_SITELIBDIR%%/dnf/persistor.py
%%PYTHON_SITELIBDIR%%/dnf/plugin.py
%%PYTHON_SITELIBDIR%%/dnf/pycomp.py
%%PYTHON_SITELIBDIR%%/dnf/query.py
%%PYTHON_SITELIBDIR%%/dnf/repo.py
%%PYTHON_SITELIBDIR%%/dnf/repodict.py
%%PYTHON_SITELIBDIR%%/dnf/rpm/__init__.py
%%PYTHON_SITELIBDIR%%/dnf/rpm/connection.py
%%PYTHON_SITELIBDIR%%/dnf/rpm/error.py
%%PYTHON_SITELIBDIR%%/dnf/rpm/miscutils.py
%%PYTHON_SITELIBDIR%%/dnf/rpm/transaction.py
%%PYTHON_SITELIBDIR%%/dnf/sack.py
%%PYTHON_SITELIBDIR%%/dnf/selector.py
%%PYTHON_SITELIBDIR%%/dnf/subject.py
%%PYTHON_SITELIBDIR%%/dnf/transaction.py
%%PYTHON_SITELIBDIR%%/dnf/util.py
%%PYTHON_SITELIBDIR%%/dnf/yum/__init__.py
%%PYTHON_SITELIBDIR%%/dnf/yum/misc.py
%%PYTHON_SITELIBDIR%%/dnf/yum/rpmtrans.py
share/locale/ar/LC_MESSAGES/dnf.mo
share/locale/bg/LC_MESSAGES/dnf.mo
share/locale/bn_IN/LC_MESSAGES/dnf.mo
share/locale/ca/LC_MESSAGES/dnf.mo
share/locale/cs/LC_MESSAGES/dnf.mo
share/locale/da/LC_MESSAGES/dnf.mo
share/locale/de/LC_MESSAGES/dnf.mo
share/locale/el/LC_MESSAGES/dnf.mo
share/locale/en_GB/LC_MESSAGES/dnf.mo
share/locale/eo/LC_MESSAGES/dnf.mo
share/locale/es/LC_MESSAGES/dnf.mo
share/locale/eu/LC_MESSAGES/dnf.mo
share/locale/fa/LC_MESSAGES/dnf.mo
share/locale/fi/LC_MESSAGES/dnf.mo
share/locale/fil/LC_MESSAGES/dnf.mo
share/locale/fr/LC_MESSAGES/dnf.mo
share/locale/fur/LC_MESSAGES/dnf.mo
share/locale/gd/LC_MESSAGES/dnf.mo
share/locale/gu/LC_MESSAGES/dnf.mo
share/locale/he/LC_MESSAGES/dnf.mo
share/locale/hi/LC_MESSAGES/dnf.mo
share/locale/hr/LC_MESSAGES/dnf.mo
share/locale/hu/LC_MESSAGES/dnf.mo
share/locale/id/LC_MESSAGES/dnf.mo
share/locale/it/LC_MESSAGES/dnf.mo
share/locale/ja/LC_MESSAGES/dnf.mo
share/locale/ka/LC_MESSAGES/dnf.mo
share/locale/kk/LC_MESSAGES/dnf.mo
share/locale/ko/LC_MESSAGES/dnf.mo
share/locale/lt/LC_MESSAGES/dnf.mo
share/locale/ml/LC_MESSAGES/dnf.mo
share/locale/mr/LC_MESSAGES/dnf.mo
share/locale/ms/LC_MESSAGES/dnf.mo
share/locale/nb/LC_MESSAGES/dnf.mo
share/locale/nl/LC_MESSAGES/dnf.mo
share/locale/or/LC_MESSAGES/dnf.mo
share/locale/pa/LC_MESSAGES/dnf.mo
share/locale/pl/LC_MESSAGES/dnf.mo
share/locale/pt/LC_MESSAGES/dnf.mo
share/locale/pt_BR/LC_MESSAGES/dnf.mo
share/locale/ru/LC_MESSAGES/dnf.mo
share/locale/sk/LC_MESSAGES/dnf.mo
share/locale/sq/LC_MESSAGES/dnf.mo
share/locale/sr/LC_MESSAGES/dnf.mo
share/locale/sr@latin/LC_MESSAGES/dnf.mo
share/locale/sv/LC_MESSAGES/dnf.mo
share/locale/th/LC_MESSAGES/dnf.mo
share/locale/tr/LC_MESSAGES/dnf.mo
share/locale/uk/LC_MESSAGES/dnf.mo
share/locale/ur/LC_MESSAGES/dnf.mo
share/locale/zh_CN/LC_MESSAGES/dnf.mo
share/locale/zh_TW/LC_MESSAGES/dnf.mo