summaryrefslogtreecommitdiff
path: root/homebrew/nut
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/nut
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/nut')
-rw-r--r--homebrew/nut/.beer72
-rw-r--r--homebrew/nut/.make.sh-auto6
-rw-r--r--homebrew/nut/_metadata/description1
-rw-r--r--homebrew/nut/_metadata/homepage1
-rw-r--r--homebrew/nut/_metadata/name1
-rw-r--r--homebrew/nut/_metadata/version1
-rwxr-xr-xhomebrew/nut/download.sh1
7 files changed, 83 insertions, 0 deletions
diff --git a/homebrew/nut/.beer b/homebrew/nut/.beer
new file mode 100644
index 000000000..ae004ae05
--- /dev/null
+++ b/homebrew/nut/.beer
@@ -0,0 +1,72 @@
+{
+ "name": "Nut",
+ "description": "Network UPS Tools: Support for various power devices",
+ "url": "https://networkupstools.org/source/2.7/nut-2.7.4.tar.gz",
+ "mirror": null,
+ "homepage": "https://networkupstools.org/",
+ "depends": [
+ {
+ "depend": "asciidoc",
+ "build-depend": true
+ },
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "automake",
+ "build-depend": true
+ },
+ {
+ "depend": "libtool",
+ "build-depend": true
+ },
+ {
+ "depend": "pkg-config",
+ "build-depend": true
+ },
+ {
+ "depend": "libusb-compat",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [
+ {
+ "conflict": "rhino",
+ "reason": "both install `rhino` binaries"
+ }
+ ],
+ "patches": [],
+ "install": [
+ "if build.head?",
+ "ENV[\"XML_CATALOG_FILES\"] = \"#{etc}/xml/catalog\"",
+ "system \"./autogen.sh\"",
+ "end",
+ "system \"./configure\", \"--disable-dependency-tracking\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--localstatedir=#{var}\",",
+ "\"--with-macosx_ups\",",
+ "\"--with-openssl\",",
+ "\"--with-serial\",",
+ "\"--with-usb\",",
+ "\"--without-avahi\",",
+ "\"--without-cgi\",",
+ "\"--without-dev\",",
+ "\"--without-doc\",",
+ "\"--without-ipmi\",",
+ "\"--without-libltdl\",",
+ "\"--without-neon\",",
+ "\"--without-nss\",",
+ "\"--without-powerman\",",
+ "\"--without-snmp\",",
+ "\"--without-wrap\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "2.7.4",
+ "file": "nut.rb"
+} \ No newline at end of file
diff --git a/homebrew/nut/.make.sh-auto b/homebrew/nut/.make.sh-auto
new file mode 100644
index 000000000..ef1b7a4c8
--- /dev/null
+++ b/homebrew/nut/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
+./autogen.sh
+end
+pkg:configure --disable-dependency-tracking --with-macosx_ups --with-openssl --with-serial --with-usb --without-avahi --without-cgi --without-dev --without-doc --without-ipmi --without-libltdl --without-neon --without-nss --without-powerman --without-snmp --without-wrap
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/nut/_metadata/description b/homebrew/nut/_metadata/description
new file mode 100644
index 000000000..3f30e19e5
--- /dev/null
+++ b/homebrew/nut/_metadata/description
@@ -0,0 +1 @@
+Network UPS Tools: Support for various power devices
diff --git a/homebrew/nut/_metadata/homepage b/homebrew/nut/_metadata/homepage
new file mode 100644
index 000000000..6aa0f420f
--- /dev/null
+++ b/homebrew/nut/_metadata/homepage
@@ -0,0 +1 @@
+https://networkupstools.org/
diff --git a/homebrew/nut/_metadata/name b/homebrew/nut/_metadata/name
new file mode 100644
index 000000000..38096c361
--- /dev/null
+++ b/homebrew/nut/_metadata/name
@@ -0,0 +1 @@
+Nut
diff --git a/homebrew/nut/_metadata/version b/homebrew/nut/_metadata/version
new file mode 100644
index 000000000..a4dd9dba4
--- /dev/null
+++ b/homebrew/nut/_metadata/version
@@ -0,0 +1 @@
+2.7.4
diff --git a/homebrew/nut/download.sh b/homebrew/nut/download.sh
new file mode 100755
index 000000000..7de8a7b1b
--- /dev/null
+++ b/homebrew/nut/download.sh
@@ -0,0 +1 @@
+wget https://networkupstools.org/source/2.7/nut-2.7.4.tar.gz \ No newline at end of file