pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import go-ps-20201120 to wip
Module Name: pkgsrc-wip
Committed By: K.I.A Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By: jihbed
Date: Tue Jan 19 00:26:13 2021 +0100
Changeset: 4b1a55dcb80ac162120624794f09a5c4c6543c37
Modified Files:
Makefile
Added Files:
go-ps/DESCR
go-ps/Makefile
go-ps/PLIST
go-ps/buildlink3.mk
go-ps/distinfo
Log Message:
Import go-ps-20201120 to wip
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4b1a55dcb80ac162120624794f09a5c4c6543c37
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
go-ps/DESCR | 23 +++++++++++++++++++++++
go-ps/Makefile | 18 ++++++++++++++++++
go-ps/PLIST | 16 ++++++++++++++++
go-ps/buildlink3.mk | 15 +++++++++++++++
go-ps/distinfo | 6 ++++++
6 files changed, 79 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index d79c94e570..fb8ad1a568 100644
--- a/Makefile
+++ b/Makefile
@@ -1258,6 +1258,7 @@ SUBDIR+= go-prealloc
SUBDIR+= go-procfs
SUBDIR+= go-properties-map
SUBDIR+= go-protobuf-go
+SUBDIR+= go-ps
SUBDIR+= go-python
SUBDIR+= go-rateio
SUBDIR+= go-raymond
diff --git a/go-ps/DESCR b/go-ps/DESCR
new file mode 100644
index 0000000000..f616eba734
--- /dev/null
+++ b/go-ps/DESCR
@@ -0,0 +1,23 @@
+TODO: Adjust the following lines from README.md
+
+# Process List Library for Go [![GoDoc](https://godoc.org/github.com/mitchellh/go-ps?status.png)](https://godoc.org/github.com/mitchellh/go-ps)
+
+go-ps is a library for Go that implements OS-specific APIs to list and
+manipulate processes in a platform-safe way. The library can find and
+list processes on Linux, Mac OS X, Solaris, and Windows.
+
+If you're new to Go, this library has a good amount of advanced Go educational
+value as well. It uses some advanced features of Go: build tags, accessing
+DLL methods for Windows, cgo for Darwin, etc.
+
+How it works:
+
+ * **Darwin** uses the `sysctl` syscall to retrieve the process table.
+ * **Unix** uses the procfs at `/proc` to inspect the process tree.
+ * **Windows** uses the Windows API, and methods such as
+ `CreateToolhelp32Snapshot` to get a point-in-time snapshot of
+ the process table.
+
+## Installation
+
+...
diff --git a/go-ps/Makefile b/go-ps/Makefile
new file mode 100644
index 0000000000..c824389a33
--- /dev/null
+++ b/go-ps/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME= go-ps-20201120
+GITHUB_PROJECT= go-ps
+GITHUB_TAG= ddafa75
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=mitchellh/}
+
+MAINTAINER= kamelderouiche%yahoo.com@localhost
+HOMEPAGE= https://github.com/mitchellh/go-ps/
+COMMENT= Find, list, and inspect processes from Go
+LICENSE= mit
+
+GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}*
+GO_SRCPATH= github.com/mitchellh/go-ps
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-ps/PLIST b/go-ps/PLIST
new file mode 100644
index 0000000000..b4eea10c80
--- /dev/null
+++ b/go-ps/PLIST
@@ -0,0 +1,16 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/mitchellh/go-ps.a
+gopkg/src/github.com/mitchellh/go-ps/LICENSE.md
+gopkg/src/github.com/mitchellh/go-ps/README.md
+gopkg/src/github.com/mitchellh/go-ps/Vagrantfile
+gopkg/src/github.com/mitchellh/go-ps/go.mod
+gopkg/src/github.com/mitchellh/go-ps/process.go
+gopkg/src/github.com/mitchellh/go-ps/process_darwin.go
+gopkg/src/github.com/mitchellh/go-ps/process_darwin_test.go
+gopkg/src/github.com/mitchellh/go-ps/process_freebsd.go
+gopkg/src/github.com/mitchellh/go-ps/process_linux.go
+gopkg/src/github.com/mitchellh/go-ps/process_solaris.go
+gopkg/src/github.com/mitchellh/go-ps/process_test.go
+gopkg/src/github.com/mitchellh/go-ps/process_unix.go
+gopkg/src/github.com/mitchellh/go-ps/process_unix_test.go
+gopkg/src/github.com/mitchellh/go-ps/process_windows.go
diff --git a/go-ps/buildlink3.mk b/go-ps/buildlink3.mk
new file mode 100644
index 0000000000..f5df0d7a8d
--- /dev/null
+++ b/go-ps/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= go-ps
+
+.if !defined(GO_PS_BUILDLINK3_MK)
+GO_PS_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-ps= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-ps?= build
+
+BUILDLINK_API_DEPENDS.go-ps+= go-ps>=20201120
+BUILDLINK_PKGSRCDIR.go-ps?= ../../wip/go-ps
+.endif # GO_PS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-ps
diff --git a/go-ps/distinfo b/go-ps/distinfo
new file mode 100644
index 0000000000..0c2b6956df
--- /dev/null
+++ b/go-ps/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-ps-20201120-ddafa75.tar.gz) = 2557d8cff5ebd000b02de2286e14548836458cf8
+RMD160 (go-ps-20201120-ddafa75.tar.gz) = 3e62ad55bd030339a391f08df20a321f3762c497
+SHA512 (go-ps-20201120-ddafa75.tar.gz) = fc2c12a69fdd9d3f58698330b14b71209260a108fe8692cc0c4da53ac69f3f1bb1d1097c78c9e5e1ab83d3f9f9db4dc3fd11551201126834a045a8b74839c550
+Size (go-ps-20201120-ddafa75.tar.gz) = 7632 bytes
Home |
Main Index |
Thread Index |
Old Index