Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2019 19:36:52 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492800 - in head/deskutils: . sysctlview sysctlview/files
Message-ID:  <201902121936.x1CJaqd6031229@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Tue Feb 12 19:36:52 2019
New Revision: 492800
URL: https://svnweb.freebsd.org/changeset/ports/492800

Log:
  deskutils/sysctlview: create port
  
  sysctlview is a gtk frontend for the sysctl mib.
  
  WWW: https://gitlab.com/alfix/sysctlview/
  
  PR:		235434
  Submitted by:	Alfonso S. Siciliano <alfix86@gmail.com>

Added:
  head/deskutils/sysctlview/
  head/deskutils/sysctlview/Makefile   (contents, props changed)
  head/deskutils/sysctlview/distinfo   (contents, props changed)
  head/deskutils/sysctlview/files/
  head/deskutils/sysctlview/files/patch-main.c   (contents, props changed)
  head/deskutils/sysctlview/pkg-descr   (contents, props changed)
Modified:
  head/deskutils/Makefile   (contents, props changed)

Modified: head/deskutils/Makefile
==============================================================================
--- head/deskutils/Makefile	Tue Feb 12 19:15:25 2019	(r492799)
+++ head/deskutils/Makefile	Tue Feb 12 19:36:52 2019	(r492800)
@@ -233,6 +233,7 @@
     SUBDIR += sugarcrm
     SUBDIR += synapse
     SUBDIR += syncthing-gtk
+    SUBDIR += sysctlview
     SUBDIR += systempreferences
     SUBDIR += taskcoach
     SUBDIR += taskd

Added: head/deskutils/sysctlview/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/sysctlview/Makefile	Tue Feb 12 19:36:52 2019	(r492800)
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+PORTNAME=	sysctlview
+PORTVERSION=	0.1
+CATEGORIES=	deskutils
+
+MAINTAINER=	alfix86@gmail.com
+COMMENT=	Show sysctl mib
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		pkgconfig gettext-runtime gnome
+USE_GNOME=	gtk30 pango atk cairo gdkpixbuf2 glib20
+
+USE_GITLAB=	yes
+GL_ACCOUNT=	alfix
+GL_COMMIT=	4f35c02f0c9fa3d27fbfbc4e654272b1c2d7d54d
+
+DESKTOP_ENTRIES="Sysctlview" "Show kernel state" "" \
+		"sysctlview" "System;" false
+
+OPTIONS_DEFINE=		NLS
+OPTIONS_SUB=		yes
+
+NLS_USES=		gettext
+NLS_CONFIGURE_ENABLE=	nls
+
+PLIST_FILES=	bin/sysctlview \
+		${DATADIR}/sysctlview.window.xml
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/main.c
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/sysctlview ${STAGEDIR}${PREFIX}/bin
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${CP} ${WRKSRC}/sysctlview.window.xml ${STAGEDIR}${DATADIR}
+
+.include <bsd.port.mk>

Added: head/deskutils/sysctlview/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/sysctlview/distinfo	Tue Feb 12 19:36:52 2019	(r492800)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1549083799
+SHA256 (alfix-sysctlview-4f35c02f0c9fa3d27fbfbc4e654272b1c2d7d54d_GL0.tar.gz) = 60289d811c13b5066bfef686b431e3b2cb046a241bf542fcbca671bdc1bbceb7
+SIZE (alfix-sysctlview-4f35c02f0c9fa3d27fbfbc4e654272b1c2d7d54d_GL0.tar.gz) = 304472

Added: head/deskutils/sysctlview/files/patch-main.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/sysctlview/files/patch-main.c	Tue Feb 12 19:36:52 2019	(r492800)
@@ -0,0 +1,11 @@
+--- main.c.orig	2018-12-26 11:57:59 UTC
++++ main.c
+@@ -27,7 +27,7 @@
+ 
+ #include "trees.h"
+ 
+-#define DATADIR "./"
++#define DATADIR "%%PREFIX%%/share/sysctlview/"
+ 
+ int
+ main (int argc, char *argv[])

Added: head/deskutils/sysctlview/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/sysctlview/pkg-descr	Tue Feb 12 19:36:52 2019	(r492800)
@@ -0,0 +1,3 @@
+sysctlview is a gtk frontend for the sysctl mib.
+
+WWW: https://gitlab.com/alfix/sysctlview/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902121936.x1CJaqd6031229>