Branch oldpackages for 14.07
[14.07/packages.git] / admin / facter / Makefile
1 #
2 # Copyright (C) 2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=facter
11 PKG_VERSION:=1.7.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
15 PKG_SOURCE_URL:=http://downloads.puppetlabs.com/facter/
16 PKG_MD5SUM:=50dd278ad91a6d9266aeebf444ba1a71
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/facter
21   SECTION:=admin
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
26 endef
27
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.
34
35  It is easy to extend Facter to include your own custom facts or to include
36  additional mechanisms for retrieving facts.
37 endef
38
39 define Build/Configure
40 endef
41
42 define Build/Compile
43 endef
44
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/
50 endef
51
52 $(eval $(call BuildPackage,facter))