mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
78151dc8f2
The yum package manager is used by Fedora (and CentOS) to manage RPM packages. PR: 150541 Submitted by: Anders F Björklund <afb@rpm5.org> Feature safe: yes
102 lines
3.1 KiB
Makefile
102 lines
3.1 KiB
Makefile
# Created by: Anders F Bjorklund <afb@rpm5.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= yum
|
|
PORTVERSION= 3.4.3
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://yum.baseurl.org/download/${PORTVERSION:R}/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Installer/updater for rpm
|
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
|
msgfmt:${PORTSDIR}/devel/gettext \
|
|
intltool-update:${PORTSDIR}/textproc/intltool
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/rpm:${PORTSDIR}/archivers/rpm4 \
|
|
${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \
|
|
${PYTHON_SITELIBDIR}/sqlitecachec.py:${PORTSDIR}/devel/py-yum-metadata-parser \
|
|
${PYTHON_SITELIBDIR}/iniparse:${PORTSDIR}/devel/py-iniparse \
|
|
${PYTHON_SITELIBDIR}/urlgrabber:${PORTSDIR}/www/py-urlgrabber
|
|
|
|
USE_PYTHON= yes
|
|
USE_GMAKE= yes
|
|
USE_GETTEXT= yes
|
|
|
|
MAKE_ARGS= MAKE=${GMAKE} PYTHON=${PYTHON_CMD} \
|
|
prefix=${PREFIX} mandir=${MANPREFIX}/man sysconfdir=${PREFIX}/etc
|
|
|
|
PLIST_SUB+= PYTHONPREFIX_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
MAN5= yum.conf.5 yum-updatesd.conf.5
|
|
MAN8= yum.8 yum-updatesd.8 yum-shell.8
|
|
|
|
RPMDIR?= /var/lib/rpm
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' -e \
|
|
's|@RPMDIR@|${RPMDIR}|g' -e \
|
|
's|@LOCALBASE@|${LOCALBASE}|g' \
|
|
${WRKSRC}/bin/yum.py \
|
|
${WRKSRC}/bin/yum-updatesd.py \
|
|
${WRKSRC}/cli.py \
|
|
${WRKSRC}/yum-updatesd.py \
|
|
${WRKSRC}/yum/__init__.py \
|
|
${WRKSRC}/yum/config.py \
|
|
${WRKSRC}/yum/rpmsack.py \
|
|
${WRKSRC}/yum/plugins.py
|
|
${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!${PYTHON_CMD}|' \
|
|
${WRKSRC}/bin/yum.py \
|
|
${WRKSRC}/bin/yum-updatesd.py \
|
|
${WRKSRC}/callback.py \
|
|
${WRKSRC}/cli.py \
|
|
${WRKSRC}/output.py \
|
|
${WRKSRC}/yumcommands.py \
|
|
${WRKSRC}/yummain.py \
|
|
${WRKSRC}/yum-updatesd.py \
|
|
${WRKSRC}/utils.py \
|
|
${WRKSRC}/rpmUtils/__init__.py \
|
|
${WRKSRC}/rpmUtils/arch.py \
|
|
${WRKSRC}/rpmUtils/miscutils.py \
|
|
${WRKSRC}/rpmUtils/oldUtils.py \
|
|
${WRKSRC}/rpmUtils/transaction.py \
|
|
${WRKSRC}/rpmUtils/updates.py \
|
|
${WRKSRC}/yum/__init__.py \
|
|
${WRKSRC}/yum/Errors.py \
|
|
${WRKSRC}/yum/callbacks.py \
|
|
${WRKSRC}/yum/config.py \
|
|
${WRKSRC}/yum/depsolve.py \
|
|
${WRKSRC}/yum/failover.py \
|
|
${WRKSRC}/yum/history.py \
|
|
${WRKSRC}/yum/i18n.py \
|
|
${WRKSRC}/yum/metalink.py \
|
|
${WRKSRC}/yum/packageSack.py \
|
|
${WRKSRC}/yum/packages.py \
|
|
${WRKSRC}/yum/pkgtag_db.py \
|
|
${WRKSRC}/yum/repoMDObject.py \
|
|
${WRKSRC}/yum/repos.py \
|
|
${WRKSRC}/yum/rpmsack.py \
|
|
${WRKSRC}/yum/rpmtrans.py \
|
|
${WRKSRC}/yum/sqlitesack.py \
|
|
${WRKSRC}/yum/sqlutils.py \
|
|
${WRKSRC}/yum/update_md.py
|
|
${REINPLACE_CMD} -e 's|%%PYTHONPREFIX_SITELIBDIR%%|${PYTHONPREFIX_SITELIBDIR}|' \
|
|
${WRKSRC}/yum/Makefile ${WRKSRC}/rpmUtils/Makefile
|
|
|
|
pre-install:
|
|
${MKDIR} ${PREFIX}/share/yum-cli
|
|
${MKDIR} ${PREFIX}/etc/yum/repos.d
|
|
${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/rpmUtils
|
|
${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/yum
|
|
${MKDIR} /var/cache/yum
|
|
${MKDIR} /var/lib/yum
|
|
|
|
post-install:
|
|
if [ ! -f ${PREFIX}/etc/yum/yum.conf ]; then \
|
|
${CP} -p ${PREFIX}/etc/yum/yum.conf.sample ${PREFIX}/etc/yum/yum.conf; \
|
|
fi
|
|
if [ ! -f ${PREFIX}/etc/yum/yum-updatesd.conf ]; then \
|
|
${CP} -p ${PREFIX}/etc/yum/yum-updatesd.conf.sample ${PREFIX}/etc/yum/yum-updatesd.conf; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|