aboutsummaryrefslogtreecommitdiff
path: root/sysutils/createrepo
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2014-10-09 15:57:23 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2014-10-09 15:57:23 +0000
commita53ebac6a8713ee6b49d765a721208cc5b97bfb5 (patch)
tree28cf162273d5f7b759ab57c4c3d52245eb3f1aa0 /sysutils/createrepo
parent5aed07834b458338ff6642ef10ea2510672283bf (diff)
downloadports-a53ebac6a8713ee6b49d765a721208cc5b97bfb5.tar.gz
ports-a53ebac6a8713ee6b49d765a721208cc5b97bfb5.zip
Notes
Diffstat (limited to 'sysutils/createrepo')
-rw-r--r--sysutils/createrepo/Makefile39
-rw-r--r--sysutils/createrepo/distinfo2
-rw-r--r--sysutils/createrepo/pkg-descr4
-rw-r--r--sysutils/createrepo/pkg-plist28
4 files changed, 73 insertions, 0 deletions
diff --git a/sysutils/createrepo/Makefile b/sysutils/createrepo/Makefile
new file mode 100644
index 000000000000..5d008e580153
--- /dev/null
+++ b/sysutils/createrepo/Makefile
@@ -0,0 +1,39 @@
+# Created by: Anders F Bjorklund <afb@rpm5.org>
+# $FreeBSD$
+
+PORTNAME= createrepo
+PORTVERSION= 0.10.3
+CATEGORIES= sysutils
+MASTER_SITES= http://createrepo.baseurl.org/download/
+
+MAINTAINER= gahr@FreeBSD.org
+COMMENT= Utility to create and manage RPM metadata repositories
+
+LICENSE= GPLv2
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/sqlitecachec.py:${PORTSDIR}/devel/py-yum-metadata-parser \
+ ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
+ ${PYTHON_SITELIBDIR}/urlgrabber/__init__.py:${PORTSDIR}/www/py-urlgrabber \
+ ${PYTHON_SITELIBDIR}/yum/__init__.py:${PORTSDIR}/sysutils/yum \
+ ${PYTHON_SITELIBDIR}/deltarpm.py:${PORTSDIR}/sysutils/deltarpm
+
+USES= gmake python shebangfix
+SHEBANG_FILES= *.py */*.py Makefile
+
+BUILD_DEPENDS+= ginstall:${PORTSDIR}/sysutils/coreutils
+GINSTALL= ginstall
+
+MAKE_ARGS= MAKE=${MAKE_CMD} INSTALL="${GINSTALL} -p -v" PYTHON=${PYTHON_CMD} \
+ prefix=${PREFIX} mandir=${MANPREFIX}/man sysconfdir=${PREFIX}/etc
+
+post-patch:
+ ${FIND} ${WRKSRC} -type f | ${XARGS} \
+ ${REINPLACE_CMD} -e 's|/usr/share/createrepo|${DATADIR}|g'
+ ${REINPLACE_CMD} \
+ -e 's|$$(datadir)/$$(PKGNAME)|${DATADIR}|' \
+ -e '/^compdir :=/s|:= .*$$|= ${PREFIX}/share/bash-completion/completions|' \
+ ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -e '/^PYSYSDIR/s|:= \(.*\)|= ${PREFIX}|' \
+ ${WRKSRC}/createrepo/Makefile
+
+.include <bsd.port.mk>
diff --git a/sysutils/createrepo/distinfo b/sysutils/createrepo/distinfo
new file mode 100644
index 000000000000..917d8c88d6b4
--- /dev/null
+++ b/sysutils/createrepo/distinfo
@@ -0,0 +1,2 @@
+SHA256 (createrepo-0.10.3.tar.gz) = cd54621bef94c4a5ebffb5f19382050452d3e69763d2db4121c5d3881509ea6d
+SIZE (createrepo-0.10.3.tar.gz) = 66004
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..a7196a5d6baf
--- /dev/null
+++ b/sysutils/createrepo/pkg-plist
@@ -0,0 +1,28 @@
+bin/createrepo
+bin/mergerepo
+bin/modifyrepo
+%%PYTHON_SITELIBDIR%%/createrepo/__init__.py
+%%PYTHON_SITELIBDIR%%/createrepo/__init__.pyc
+%%PYTHON_SITELIBDIR%%/createrepo/deltarpms.py
+%%PYTHON_SITELIBDIR%%/createrepo/deltarpms.pyc
+%%PYTHON_SITELIBDIR%%/createrepo/merge.py
+%%PYTHON_SITELIBDIR%%/createrepo/merge.pyc
+%%PYTHON_SITELIBDIR%%/createrepo/readMetadata.py
+%%PYTHON_SITELIBDIR%%/createrepo/readMetadata.pyc
+%%PYTHON_SITELIBDIR%%/createrepo/utils.py
+%%PYTHON_SITELIBDIR%%/createrepo/utils.pyc
+%%PYTHON_SITELIBDIR%%/createrepo/yumbased.py
+%%PYTHON_SITELIBDIR%%/createrepo/yumbased.pyc
+man/man1/mergerepo.1.gz
+man/man1/modifyrepo.1.gz
+man/man8/createrepo.8.gz
+share/bash-completion/completions/createrepo
+share/bash-completion/completions/genpkgmetadata.py
+share/bash-completion/completions/mergerepo
+share/bash-completion/completions/mergerepo.py
+share/bash-completion/completions/modifyrepo
+share/bash-completion/completions/modifyrepo.py
+%%DATADIR%%/genpkgmetadata.py
+%%DATADIR%%/mergerepo.py
+%%DATADIR%%/modifyrepo.py
+%%DATADIR%%/worker.py