aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2006-09-06 02:39:30 +0800
committerrafan <rafan@FreeBSD.org>2006-09-06 02:39:30 +0800
commitc34799e800e96a354e3e5b4ca43cc480624b3794 (patch)
tree72838f87085bd85ec240b1d865a6fa0042723831
parent436e4c6b0c10fd7a657bdfd69e5f57b24cc5fdbc (diff)
downloadfreebsd-ports-gnome-c34799e800e96a354e3e5b4ca43cc480624b3794.tar.gz
freebsd-ports-gnome-c34799e800e96a354e3e5b4ca43cc480624b3794.tar.zst
freebsd-ports-gnome-c34799e800e96a354e3e5b4ca43cc480624b3794.zip
Add p5-BSD-Sysctl 0.03, fetch sysctl values from BSD-like systems.
PR: ports/102885 Submitted by: chinsan <chinsan.tw at gmail.com>
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/p5-BSD-Sysctl/Makefile28
-rw-r--r--sysutils/p5-BSD-Sysctl/distinfo3
-rw-r--r--sysutils/p5-BSD-Sysctl/pkg-descr10
-rw-r--r--sysutils/p5-BSD-Sysctl/pkg-plist8
5 files changed, 50 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 886e89d84a1a..2d5b2ff247e6 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -388,6 +388,7 @@
SUBDIR += open
SUBDIR += openupsd
SUBDIR += p5-BSD-Jail-Object
+ SUBDIR += p5-BSD-Sysctl
SUBDIR += p5-Dir-Purge
SUBDIR += p5-File-Stat-Bits
SUBDIR += p5-File-Which
diff --git a/sysutils/p5-BSD-Sysctl/Makefile b/sysutils/p5-BSD-Sysctl/Makefile
new file mode 100644
index 000000000000..f630b65e774f
--- /dev/null
+++ b/sysutils/p5-BSD-Sysctl/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: sysutils/p5-BSD-Sysctl
+# Date created: 2006/09/05
+# Whom: chinsan <chinsan.tw@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= BSD-Sysctl
+PORTVERSION= 0.03
+CATEGORIES= sysutils perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= ../../authors/id/D/DL/DLAND
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= chinsan.tw@gmail.com
+COMMENT= Fetch sysctl values from BSD-like systems
+
+PERL_CONFIGURE= yes
+
+MAN3= BSD::Sysctl.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500806
+IGNORE= requires perl 5.8.6 or later. Install lang/perl5.8 then try again
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/p5-BSD-Sysctl/distinfo b/sysutils/p5-BSD-Sysctl/distinfo
new file mode 100644
index 000000000000..8736d6e3c488
--- /dev/null
+++ b/sysutils/p5-BSD-Sysctl/distinfo
@@ -0,0 +1,3 @@
+MD5 (BSD-Sysctl-0.03.tar.gz) = fb65579e2b4d39c474cdd59d001d1472
+SHA256 (BSD-Sysctl-0.03.tar.gz) = aa86ca55df87da0871c33ff072a042b43d28048ac9c041d00c2f814b1407b86a
+SIZE (BSD-Sysctl-0.03.tar.gz) = 17633
diff --git a/sysutils/p5-BSD-Sysctl/pkg-descr b/sysutils/p5-BSD-Sysctl/pkg-descr
new file mode 100644
index 000000000000..730e5a2d30a9
--- /dev/null
+++ b/sysutils/p5-BSD-Sysctl/pkg-descr
@@ -0,0 +1,10 @@
+BSD::Sysctl offers a native Perl interface for fetching sysctl values that
+describe the kernel state of BSD-like operating systems. This is around 80
+times faster than scraping the output of the sysctl(8) program.
+
+This module handles the conversion of symbolic sysctl variable names to the
+internal numeric format, and this information, along with the details of how
+to format the results, are cached. Hence, the first call to sysctl requires
+three system calls, however, subsequent calls require only one call.
+
+WWW: http://search.cpan.org/dist/BSD-Sysctl/
diff --git a/sysutils/p5-BSD-Sysctl/pkg-plist b/sysutils/p5-BSD-Sysctl/pkg-plist
new file mode 100644
index 000000000000..b0e8f8e1eb8e
--- /dev/null
+++ b/sysutils/p5-BSD-Sysctl/pkg-plist
@@ -0,0 +1,8 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/BSD/Sysctl.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/BSD/bsd-sysctl.pl
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/BSD/Sysctl/Sysctl.so
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/BSD/Sysctl/Sysctl.bs
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/BSD/Sysctl/.packlist
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/BSD/Sysctl
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/BSD
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/BSD