From 48968fd070cc2ed794df9c95baec3e5a3e51ca60 Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 2 Jan 2007 19:11:15 +0000 Subject: [PATCH] import of ruby-facter-1.3.5: A cross-platform Ruby library for retrieving facts from operating systems. Supports multiple resolution mechanisms, any of which can be restricted to working only on certain operating systems or environments. Facter is especially useful for retrieving things like operating system names, IP addresses, MAC addresses, and SSH keys. --- sysutils/ruby-facter/Makefile | 35 ++++++++++++++++++++++++++++++++++ sysutils/ruby-facter/distinfo | 4 ++++ sysutils/ruby-facter/pkg/DESCR | 5 +++++ sysutils/ruby-facter/pkg/PLIST | 8 ++++++++ 4 files changed, 52 insertions(+) create mode 100644 sysutils/ruby-facter/Makefile create mode 100644 sysutils/ruby-facter/distinfo create mode 100644 sysutils/ruby-facter/pkg/DESCR create mode 100644 sysutils/ruby-facter/pkg/PLIST diff --git a/sysutils/ruby-facter/Makefile b/sysutils/ruby-facter/Makefile new file mode 100644 index 00000000000..64239859de2 --- /dev/null +++ b/sysutils/ruby-facter/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/01/02 19:11:15 robert Exp $ + +SHARED_ONLY= Yes + +COMMENT= "Ruby library for retrieving facts from operating systems" + +VERSION= 1.3.5 +DISTNAME= facter-${VERSION} +PKGNAME= ruby-${DISTNAME} +CATEGORIES= sysutils +EXTRACT_SUFX= .tgz + +HOMEPAGE= http://reductivelabs.com/projects/facter/ +MASTER_SITES= http://reductivelabs.com/downloads/facter/ + +MAINTAINER= Robert Nagy + +# GPL license +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MODULES= lang/ruby + +NO_REGRESS= Yes +NO_BUILD= Yes + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ruby-facter + @cd ${WRKSRC} && ${FAKE_FLAGS} ${RUBY} install.rb + ${INSTALL_DATA} ${WRKSRC}/etc/facter.conf \ + ${PREFIX}/share/examples/ruby-facter + +.include diff --git a/sysutils/ruby-facter/distinfo b/sysutils/ruby-facter/distinfo new file mode 100644 index 00000000000..7a4d5f62529 --- /dev/null +++ b/sysutils/ruby-facter/distinfo @@ -0,0 +1,4 @@ +MD5 (facter-1.3.5.tgz) = e7a6abaee07603cbd79a30cb9b55b484 +RMD160 (facter-1.3.5.tgz) = 1dbcda759b98cd09fb818ceca5cbb014ffe738a8 +SHA1 (facter-1.3.5.tgz) = d16acf8acb4c08dd4ce89f77c857e0201db78d8e +SIZE (facter-1.3.5.tgz) = 23304 diff --git a/sysutils/ruby-facter/pkg/DESCR b/sysutils/ruby-facter/pkg/DESCR new file mode 100644 index 00000000000..ea1e57c1c11 --- /dev/null +++ b/sysutils/ruby-facter/pkg/DESCR @@ -0,0 +1,5 @@ +A cross-platform Ruby library for retrieving facts from operating systems. +Supports multiple resolution mechanisms, any of which can be restricted to +working only on certain operating systems or environments. +Facter is especially useful for retrieving things like operating system names, +IP addresses, MAC addresses, and SSH keys. diff --git a/sysutils/ruby-facter/pkg/PLIST b/sysutils/ruby-facter/pkg/PLIST new file mode 100644 index 00000000000..22cc2887ed1 --- /dev/null +++ b/sysutils/ruby-facter/pkg/PLIST @@ -0,0 +1,8 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/01/02 19:11:15 robert Exp $ +bin/facter +lib/ruby/site_ruby/${MODRUBY_REV}/facter/ +lib/ruby/site_ruby/${MODRUBY_REV}/facter.rb +lib/ruby/site_ruby/${MODRUBY_REV}/facter/memory.rb +lib/ruby/site_ruby/${MODRUBY_REV}/facter/processor.rb +share/examples/ruby-facter/ +share/examples/ruby-facter/facter.conf