aboutsummaryrefslogtreecommitdiff
path: root/sysutils/p5-BSD-Sysctl
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2006-09-05 18:39:30 +0000
committerRong-En Fan <rafan@FreeBSD.org>2006-09-05 18:39:30 +0000
commit2257523e83018813b383f4fb474653f6bb536849 (patch)
tree95a67cf3fcaefdb58d4bc177bceabcc737e66a9b /sysutils/p5-BSD-Sysctl
parent337f0e97da269b058606d35b50e3ef8a937fd907 (diff)
downloadports-2257523e83018813b383f4fb474653f6bb536849.tar.gz
ports-2257523e83018813b383f4fb474653f6bb536849.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>
Notes
Notes: svn path=/head/; revision=172351
Diffstat (limited to 'sysutils/p5-BSD-Sysctl')
-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
4 files changed, 49 insertions, 0 deletions
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