2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
15 PKG_SOURCE_URL:=http://downloads.puppetlabs.com/facter/
16 PKG_MD5SUM:=50dd278ad91a6d9266aeebf444ba1a71
18 include $(INCLUDE_DIR)/package.mk
22 CATEGORY:=Administration
23 DEPENDS:= +ruby +libruby +ruby-core +ruby-enc +ruby-yaml
24 TITLE:=Collect and display facts about the system
25 URL:=http://projects.puppetlabs.com/projects/facter
28 define Package/facter/description
29 A cross-platform Ruby library for retrieving facts from operating systems.
30 Supports multiple resolution mechanisms, any of which can be restricted to
31 working only on certain operating systems or environments. Facter is
32 especially useful for retrieving things like operating system names, IP
33 addresses, MAC addresses, and SSH keys.
35 It is easy to extend Facter to include your own custom facts or to include
36 additional mechanisms for retrieving facts.
39 define Build/Configure
45 define Package/facter/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/$(PKG_NAME) $(1)/usr/bin/
48 $(INSTALL_DIR) $(1)/usr/lib/ruby/1.9/facter
49 $(CP) $(PKG_BUILD_DIR)/lib/* $(1)/usr/lib/ruby/1.9/
52 $(eval $(call BuildPackage,facter))