diff options
author | stephen <stephen@FreeBSD.org> | 2011-07-19 11:45:58 +0800 |
---|---|---|
committer | stephen <stephen@FreeBSD.org> | 2011-07-19 11:45:58 +0800 |
commit | 2d47033deac339743497fac343beba5f02fbc6e2 (patch) | |
tree | 68136343b6879718cc6629ffc30b08efcb610e56 /sysutils | |
parent | cff7123764d65f319213254f720e64239bb87c04 (diff) | |
download | freebsd-ports-gnome-2d47033deac339743497fac343beba5f02fbc6e2.tar.gz freebsd-ports-gnome-2d47033deac339743497fac343beba5f02fbc6e2.tar.zst freebsd-ports-gnome-2d47033deac339743497fac343beba5f02fbc6e2.zip |
- New port sysutils/createrepo.
This utility will generate a common metadata repository from a directory of
rpm packages.
WWW: http://createrepo.baseurl.org/
PR: ports/150542
Submitted by: afb@rpm5.org
Approved by: maho (mentor)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/createrepo/Makefile | 47 | ||||
-rw-r--r-- | sysutils/createrepo/distinfo | 2 | ||||
-rw-r--r-- | sysutils/createrepo/pkg-descr | 4 | ||||
-rw-r--r-- | sysutils/createrepo/pkg-plist | 20 |
5 files changed, 74 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 8361e99b0b59..06738693a87a 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -132,6 +132,7 @@ SUBDIR += cpupowerd SUBDIR += cramfs SUBDIR += crashme + SUBDIR += createrepo SUBDIR += cromwell SUBDIR += cronolog SUBDIR += cronolog-devel diff --git a/sysutils/createrepo/Makefile b/sysutils/createrepo/Makefile new file mode 100644 index 000000000000..5a136db3f61a --- /dev/null +++ b/sysutils/createrepo/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: yum +# Date created: 22 August 2010 +# Whom: Anders F Bjorklund <afb@rpm5.org> +# +# $FreeBSD$ + +PORTNAME= createrepo +PORTVERSION= 0.9.8 +CATEGORIES= sysutils +MASTER_SITES= http://createrepo.baseurl.org/download/ + +MAINTAINER= afb@rpm5.org +COMMENT= Creates a common metadata repository + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/sqlitecachec.py:${PORTSDIR}/devel/py-yum-metadata-parser \ + ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 + +USE_PYTHON= yes +USE_GMAKE= yes + +BUILD_DEPENDS+= ginstall:${PORTSDIR}/sysutils/coreutils +GINSTALL= ginstall + +MAKE_ARGS= MAKE=${GMAKE} INSTALL="${GINSTALL} -p -v" PYTHON=${PYTHON_CMD} \ + prefix=${PREFIX} mandir=${MANPREFIX}/man sysconfdir=${PREFIX}/etc + +MAN1= mergerepo.1 modifyrepo.1 +MAN8= createrepo.8 + +post-patch: + ${REINPLACE_CMD} -e 's|/usr/share/createrepo|${DATADIR}|g' \ + ${WRKSRC}/bin/mergerepo \ + ${WRKSRC}/bin/modifyrepo \ + ${WRKSRC}/bin/createrepo + ${REINPLACE_CMD} -e 's|#!/usr/bin/|#!${PYTHON_CMD}|' \ + ${WRKSRC}/genpkgmetadata.py \ + ${WRKSRC}/dmd.py \ + ${WRKSRC}/mergerepo.py \ + ${WRKSRC}/createrepo/deltarpms.py \ + ${WRKSRC}/createrepo/utils.py \ + ${WRKSRC}/createrepo/yumbased.py \ + ${WRKSRC}/createrepo/readMetadata.py \ + ${WRKSRC}/createrepo/merge.py + ${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' -e 's|$$(datadir)/$$(PKGNAME)|${DATADIR}|' \ + ${WRKSRC}/Makefile + +.include <bsd.port.mk> diff --git a/sysutils/createrepo/distinfo b/sysutils/createrepo/distinfo new file mode 100644 index 000000000000..132f12c43587 --- /dev/null +++ b/sysutils/createrepo/distinfo @@ -0,0 +1,2 @@ +SHA256 (createrepo-0.9.8.tar.gz) = 736842bda7d404a03470775332ccda339a114f14772d7a354d99bf64f38ecd14 +SIZE (createrepo-0.9.8.tar.gz) = 57973 diff --git a/sysutils/createrepo/pkg-descr b/sysutils/createrepo/pkg-descr new file mode 100644 index 000000000000..06a9cfdfbcb2 --- /dev/null +++ b/sysutils/createrepo/pkg-descr @@ -0,0 +1,4 @@ +This utility will generate a common metadata repository from a directory of +rpm packages. + +WWW: http://createrepo.baseurl.org/ diff --git a/sysutils/createrepo/pkg-plist b/sysutils/createrepo/pkg-plist new file mode 100644 index 000000000000..a00296f2ccde --- /dev/null +++ b/sysutils/createrepo/pkg-plist @@ -0,0 +1,20 @@ +bin/createrepo +bin/modifyrepo +bin/mergerepo +%%DATADIR%%/genpkgmetadata.py +%%DATADIR%%/modifyrepo.py +%%DATADIR%%/mergerepo.py +@dirrm %%DATADIR%% +%%PYTHON_SITELIBDIR%%/createrepo/__init__.py +%%PYTHON_SITELIBDIR%%/createrepo/deltarpms.py +%%PYTHON_SITELIBDIR%%/createrepo/merge.py +%%PYTHON_SITELIBDIR%%/createrepo/readMetadata.py +%%PYTHON_SITELIBDIR%%/createrepo/utils.py +%%PYTHON_SITELIBDIR%%/createrepo/yumbased.py +%%PYTHON_SITELIBDIR%%/createrepo/__init__.pyc +%%PYTHON_SITELIBDIR%%/createrepo/deltarpms.pyc +%%PYTHON_SITELIBDIR%%/createrepo/merge.pyc +%%PYTHON_SITELIBDIR%%/createrepo/readMetadata.pyc +%%PYTHON_SITELIBDIR%%/createrepo/utils.pyc +%%PYTHON_SITELIBDIR%%/createrepo/yumbased.pyc +@dirrm %%PYTHON_SITELIBDIR%%/createrepo |