svn commit: r459945 - in head/ports-mgmt: . pkg-provides pkg-provides/files

Rodrigo Osorio rodrigo at FreeBSD.org
Thu Jan 25 14:45:05 UTC 2018


Author: rodrigo
Date: Thu Jan 25 14:45:04 2018
New Revision: 459945
URL: https://svnweb.freebsd.org/changeset/ports/459945

Log:
  Add new port: ports-mgmt/pkg-provides
  
  pkg-provides is a pkg plugin write in C for querying
  which package provides a particular file.

Added:
  head/ports-mgmt/pkg-provides/
  head/ports-mgmt/pkg-provides/Makefile   (contents, props changed)
  head/ports-mgmt/pkg-provides/distinfo   (contents, props changed)
  head/ports-mgmt/pkg-provides/files/
  head/ports-mgmt/pkg-provides/files/pkg-message.in   (contents, props changed)
  head/ports-mgmt/pkg-provides/pkg-descr   (contents, props changed)
Modified:
  head/ports-mgmt/Makefile

Modified: head/ports-mgmt/Makefile
==============================================================================
--- head/ports-mgmt/Makefile	Thu Jan 25 14:01:37 2018	(r459944)
+++ head/ports-mgmt/Makefile	Thu Jan 25 14:45:04 2018	(r459945)
@@ -28,6 +28,7 @@
     SUBDIR += pkg
     SUBDIR += pkg-devel
     SUBDIR += pkg-plist
+    SUBDIR += pkg-provides
     SUBDIR += pkg-rmleaf
     SUBDIR += pkg_cleanup
     SUBDIR += pkg_cutleaves

Added: head/ports-mgmt/pkg-provides/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/pkg-provides/Makefile	Thu Jan 25 14:45:04 2018	(r459945)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME=	pkg-provides
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.3.1
+CATEGORIES=	ports-mgmt
+
+MAINTAINER=	rodrigo at FreeBSD.org
+COMMENT=	Pkg plugin for querying which package provides a particular file
+
+LICENSE=	BSD2CLAUSE
+
+NOT_FOR_ARCHS=	armv6 mips mips64
+
+LIB_DEPENDS=	libpcre.so:devel/pcre
+BUILD_DEPENDS=	${LOCALBASE}/include/uthash.h:devel/uthash
+
+USE_LDCONFIG=	yes
+USE_GITHUB=	yes
+
+SUB_FILES=	pkg-message
+SUB_LIST=	LOCALBASE=${LOCALBASE}
+
+GH_ACCOUNT=	rosorio
+GH_PROJECT=	pkg-provides
+GH_TAGNAME=	cf5262b
+
+PLIST_FILES=	lib/pkg/provides.so man/man8/pkg-provides.8.gz
+
+do-install:
+	${MKDIR} ${STAGEDIR}${LOCALBASE}/lib/pkg/
+	${INSTALL_LIB} ${WRKSRC}/provides.so ${STAGEDIR}${LOCALBASE}/lib/pkg/
+	${INSTALL_MAN} ${WRKSRC}/pkg-provides.8 ${STAGEDIR}${PREFIX}/man/man8/
+
+.include <bsd.port.mk>

Added: head/ports-mgmt/pkg-provides/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/pkg-provides/distinfo	Thu Jan 25 14:45:04 2018	(r459945)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1516882559
+SHA256 (rosorio-pkg-provides-v0.3.1-cf5262b_GH0.tar.gz) = 8f63e37f835a687872c32ce0ec4ec469c2978986fe0be6b04af7617f73110eaf
+SIZE (rosorio-pkg-provides-v0.3.1-cf5262b_GH0.tar.gz) = 8322

Added: head/ports-mgmt/pkg-provides/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/pkg-provides/files/pkg-message.in	Thu Jan 25 14:45:04 2018	(r459945)
@@ -0,0 +1,14 @@
+  ======================= pkg plugin activation ========================
+  In order to use the pkg-provides plugin you need to enable plugins in pkg.
+  To do this, uncomment the following lines in %%LOCALBASE%%etc/pkg.conf file
+  and add pkg-provides to the supported plugin list
+
+  PKG_PLUGINS_DIR = "%%LOCALBASE%%lib/pkg/";
+  PKG_ENABLE_PLUGINS = true;
+  PLUGINS [ provides ]
+
+  After that run `pkg plugins' to see the plugins handled by pkg`.
+
+  To update the provides database run `pkg provides -u`
+
+  ====================================================================

Added: head/ports-mgmt/pkg-provides/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/pkg-provides/pkg-descr	Thu Jan 25 14:45:04 2018	(r459945)
@@ -0,0 +1,3 @@
+Pkg plugin for querying which package provides a particular file
+
+WWW: https://github.com/rosorio/pkg-provides


More information about the svn-ports-all mailing list