aboutsummaryrefslogtreecommitdiff
path: root/sysutils/yum/Makefile
blob: d342919ff7990d92c777c2eb7acdeab52ab92bab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Created by: Anders F Bjorklund <afb@rpm5.org>
# $FreeBSD$

PORTNAME=	yum
PORTVERSION=	3.4.3
PORTREVISION=	3
CATEGORIES=	sysutils
MASTER_SITES=	http://yum.baseurl.org/download/${PORTVERSION:R}/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Installer/updater for rpm

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash \
		intltool-update:${PORTSDIR}/textproc/intltool
RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash \
		${PYTHON_SITELIBDIR}/rpm/__init__.py:${PORTSDIR}/archivers/rpm4 \
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
		${PYTHON_SITELIBDIR}/sqlitecachec.py:${PORTSDIR}/devel/py-yum-metadata-parser \
		${PYTHON_PKGNAMEPREFIX}iniparse>0:${PORTSDIR}/devel/py-iniparse \
		${PYTHON_PKGNAMEPREFIX}urlgrabber>0:${PORTSDIR}/www/py-urlgrabber

USES=		cpe gettext gmake python shebangfix
SHEBANG_FILES=	etc/yum-updatesd.init
CPE_VENDOR=	baseurl

MAKE_ARGS=	MAKE=${MAKE_CMD} PYTHON=${PYTHON_CMD} \
		prefix=${PREFIX} mandir=${MANPREFIX}/man sysconfdir=${PREFIX}/etc

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

.include <bsd.port.mk>