summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2006-05-15 23:43:08 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2006-05-15 23:43:08 +0000
commit037df9899ac8768d1207ef9c4e3fabfbfdcc9575 (patch)
tree1de7ce78694b6e50fadef823f6e6bb76c71a2610 /sys-power
parentVersion bump. You can record DVDs with cdrecord now. Be aware of the licens... (diff)
downloadgentoo-2-037df9899ac8768d1207ef9c4e3fabfbfdcc9575.tar.gz
gentoo-2-037df9899ac8768d1207ef9c4e3fabfbfdcc9575.tar.bz2
gentoo-2-037df9899ac8768d1207ef9c4e3fabfbfdcc9575.zip
Bug #111701 - Move from www-apps to sys-power.
(Portage version: 2.1_rc1-r2)
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/nut/ChangeLog220
-rw-r--r--sys-power/nut/Manifest47
-rw-r--r--sys-power/nut/files/digest-nut-2.0.03
-rw-r--r--sys-power/nut/files/digest-nut-2.0.0-r13
-rw-r--r--sys-power/nut/files/digest-nut-2.0.1_pre43
-rwxr-xr-xsys-power/nut/files/upsd.rc626
-rwxr-xr-xsys-power/nut/files/upsdrv.rc621
-rwxr-xr-xsys-power/nut/files/upsdrv.rc6-r121
-rwxr-xr-xsys-power/nut/files/upsmon.rc620
-rw-r--r--sys-power/nut/metadata.xml6
-rw-r--r--sys-power/nut/nut-2.0.0-r1.ebuild128
-rw-r--r--sys-power/nut/nut-2.0.0.ebuild128
-rw-r--r--sys-power/nut/nut-2.0.1_pre4.ebuild134
13 files changed, 760 insertions, 0 deletions
diff --git a/sys-power/nut/ChangeLog b/sys-power/nut/ChangeLog
new file mode 100644
index 000000000000..8f70ed97d577
--- /dev/null
+++ b/sys-power/nut/ChangeLog
@@ -0,0 +1,220 @@
+# ChangeLog for www-apps/nut
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/ChangeLog,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+ 15 May 2006; Robin H. Johnson <robbat2@gentoo.org> +files/upsd.rc6,
+ +files/upsdrv.rc6, +files/upsdrv.rc6-r1, +files/upsmon.rc6, +metadata.xml,
+ +nut-2.0.0.ebuild, +nut-2.0.0-r1.ebuild, +nut-2.0.1_pre4.ebuild:
+ Bug #111701 - Move from www-apps to sys-power.
+
+ 07 May 2006; Markus Rothe <corsair@gentoo.org> nut-2.0.0-r1.ebuild:
+ Stable on ppc64
+
+ 10 Feb 2006; Mike Frysinger <vapier@gentoo.org> nut-2.0.0.ebuild,
+ nut-2.0.0-r1.ebuild, nut-2.0.1_pre4.ebuild:
+ Add the nut user/group #99601.
+
+ 17 Dec 2005; Markus Rothe <corsair@gentoo.org> nut-2.0.1_pre4.ebuild:
+ Added ~ppc64
+
+ 16 Sep 2005; Aron Griffis <agriffis@gentoo.org> nut-2.0.0-r1.ebuild:
+ Mark 2.0.0-r1 stable on alpha
+
+ 12 Jul 2005; Simon Stelling <blubb@gentoo.org> nut-2.0.0-r1.ebuild:
+ stable on amd64
+
+*nut-2.0.1_pre4 (17 Feb 2005)
+
+ 17 Feb 2005; Robin H. Johnson <robbat2@gentoo.org> +nut-2.0.1_pre4.ebuild:
+ Bug #82382: bump.
+
+*nut-2.0.0-r1 (13 Feb 2005)
+
+ 13 Feb 2005; Robin H. Johnson <robbat2@gentoo.org> -files/upsd-init,
+ +files/upsdrv.rc6-r1, -files/upsmon-init, +nut-2.0.0-r1.ebuild:
+ Bug #47482. Move stuff away from the root filesystem where it wouldn't work
+ anyway.
+
+ 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+ 12 Nov 2004; Simon Stelling <blubb@gentoo.org> nut-2.0.0.ebuild:
+ added ~amd64
+
+ 08 Nov 2004; Michael Sterrett <mr_bones_@gentoo.org> nut-2.0.0.ebuild:
+ fix media-libs/gd dep per bug #69959; clean out nut-1
+
+ 28 Sep 2004; Bryan Østergaard,,, <kloeri@gentoo.org> nut-2.0.0.ebuild:
+ Add ~alpha.
+
+ 18 Sep 2004; Jason Wever <weeve@gentoo.org> nut-2.0.0.ebuild:
+ Stable on sparc.
+
+ 05 Sep 2004; Sven Wegener <swegener@gentoo.org> :
+ Fixed ChangeLog header.
+
+ 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> nut-2.0.0.ebuild:
+ Masked nut-2.0.0.ebuild stable for ppc
+
+ 31 Aug 2004; David Holm <dholm@gentoo.org> nut-2.0.0.ebuild:
+ Added to ~ppc.
+
+*nut-1.2.2 (15 Aug 2004)
+
+ 15 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+ +files/upsd-init, +files/upsd.rc6, +files/upsdrv.rc6, +files/upsmon-init,
+ +files/upsmon.rc6, +nut-1.2.2.ebuild, +nut-1.4.1.ebuild, +nut-1.5.12.ebuild,
+ +nut-2.0.0.ebuild:
+ Moved from net-misc/nut to www-apps/nut.
+
+ 18 May 2004; Robin Johnson,,604-339-5621,604-298-8414 <robbat2@gentoo.org>
+ nut-2.0.0.ebuild:
+ stable now on x86. upgrade with care!
+
+ 26 Apr 2004; Aron Griffis <agriffis@gentoo.org> nut-1.4.1.ebuild,
+ nut-1.5.12.ebuild, nut-2.0.0.ebuild:
+ Add die following econf for bug 48950
+
+ 25 Apr 2004; Jon Hood <squinky86@gentoo.org> nut-1.4.1.ebuild,
+ nut-1.5.12.ebuild:
+ added "die"
+
+ 07 Apr 2004; Robin Johnson,,604-339-5621,604-298-8414 <robbat2@gentoo.org>
+ nut-1.0.0.ebuild, nut-1.2.1-r1.ebuild, nut-1.2.1.ebuild, nut-1.2.2.ebuild,
+ nut-1.3.6.ebuild, nut-1.4.0-r3.ebuild, nut-1.4.0.ebuild, nut-1.5.1.ebuild,
+ nut-1.5.6-r2.ebuild, nut-1.5.7.ebuild, nut-1.5.8-r1.ebuild,
+ nut-1.5.8.ebuild:
+ remove a pile of old ebuilds, keeping just the stable heads of recent trees.
+
+*nut-2.0.0 (31 Mar 2004)
+
+ 31 Mar 2004; Robin H. Johnson <robbat2@gentoo.org> nut-2.0.0.ebuild,
+ files/upsmon.rc6:
+ fix bug #46079. add in new version 2.0.0 from upstream, bug #45928.
+
+ 15 Mar 2004; Max Kalika <max@gentoo.org> nut-1.4.1.ebuild:
+ Bump to stable x86.
+
+*nut-1.4.1 (08 Mar 2004)
+*nut-1.5.12 (08 Mar 2004)
+
+ 08 Mar 2004; Robin H. Johnson <robbat2@gentoo.org> files/upsd.rc6:
+ bug #42883, nut snmp-ups support. bug #42195, version bump. bug #43551, catch
+ nut problems with leftover pidfile.
+
+ 05 Dec 2003; Robin H. Johnson <robbat2@gentoo.org> nut-1.2.1-r1.ebuild,
+ nut-1.2.1.ebuild, nut-1.2.2.ebuild, nut-1.3.6.ebuild, nut-1.4.0.ebuild,
+ nut-1.5.1.ebuild:
+ fix chown . to : as per bug #35127
+
+*nut-1.5.8-r1 (23 Nov 2003)
+
+ 23 Nov 2003; Robin H. Johnson <robbat2@gentoo.org> nut-1.5.8-r1.ebuild:
+ fix bugs from #34174, partially based on submitted patch
+
+*nut-1.5.8 (20 Nov 2003)
+
+ 20 Nov 2003; Robin H. Johnson <robbat2@gentoo.org> nut-1.5.8.ebuild:
+ version bump
+
+*nut-1.5.7 (29 Oct 2003)
+*nut-1.5.6-r2 (29 Oct 2003)
+*nut-1.4.0-r3 (29 Oct 2003)
+
+ 29 Oct 2003; Max Kalika <max@gentoo.org> nut-1.4.0-r1.ebuild,
+ nut-1.4.0-r2.ebuild, nut-1.4.0-r3.ebuild, nut-1.5.6-r1.ebuild,
+ nut-1.5.6-r2.ebuild, nut-1.5.6.ebuild, nut-1.5.7.ebuild, files/upsd.rc6,
+ files/upsdrv.rc6, files/upsmon.rc6:
+ Bump to version 1.5.7. Cleanup Move drivers to /lib/nut and link control to
+ /sbin for halt.sh to work properly. Fix pid file handling in startup scripts.
+ Fixes all of bug 31665.
+
+ 21 Oct 2003; Max Kalika <max@gentoo.org> files/upsd.rc6:
+ Fix pid path.
+
+*nut-1.5.6-r1 (20 Oct 2003)
+*nut-1.4.0-r2 (20 Oct 2003)
+
+ 20 Oct 2003; Robin H. Johnson <robbat2@gentoo.org> nut-1.4.0-r2.ebuild,
+ nut-1.5.6-r1.ebuild, files/upsd.rc6, files/upsdrv.rc6, files/upsmon.rc6:
+ add seperate upsdrv init script, make sure it gets called properly, fixes bug
+ #31572
+
+*nut-1.5.6 (17 Oct 2003)
+
+ 17 Oct 2003; Preston A. Elder <prez@gentoo.org> nut-1.5.6.ebuild :
+ New development tree version.
+
+*nut-1.4.0-r1 (16 Oct 2003)
+
+ 16 Oct 2003; Max Kalika <max@gentoo.org> metadata.xml, nut-1.4.0-r1.ebuild,
+ files/upsd.rc6, files/upsmon.rc6:
+ Major cleanup.
+
+*nut-1.5.1 (10 Aug 2003)
+
+ 10 Aug 2003; Preston A. Elder <prez@gentoo.org> nut-1.5.1.ebuild :
+ New development tree version.
+
+*nut-1.4.0 (29 Jul 2003)
+
+ 29 Jul 2003; Robin Johnson <robbat2@gentoo.org> nut-1.4.0.ebuild:
+ Version bump as 1.4 is now the stable series.
+
+*nut-1.3.6 (09 May 2003)
+
+ 09 May 2003; Robin Johnson <robbat2@gentoo.org> nut-1.3.6.ebuild :
+ Added in apache2 support instead of just apache1.
+ Add this new version for the insane folk that want to try it out.
+ In unstable only.
+
+*nut-1.2.2 (20 Apr 2003)
+
+ 28 Apr 2003; Preston A. Elder <prez@gentoo.org> nut-1.2.2.ebuild :
+ Used better way to add cgi-bin depenancy, and unmasked.
+
+ 20 Apr 2003; Preston A. Elder <prez@gentoo.org> nut-1.2.2.ebuild :
+ New stable version
+
+*nut-1.2.1-r1 (24 Feb 2003)
+
+ 24 Feb 2003; Jared Hudson <jhhudso@gentoo.org> : Added hiddev driver support.
+ Used by several USB based UPSs.
+
+*nut-1.2.1 (27 Jan 2003)
+
+ 27 Jan 2003; Donny Davies <woodchip@gentoo.org> : New testing release.
+ Fixed SRC_URI, half-of #12947, (the other half is commited to rc-scripts
+ CVS). Fixed #10745. Thanks btowe@gbis.com, and
+ tdickenson@geminidataloggers.com.
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*nut-1.0.0 (26 Aug 2002)
+
+ 12 Oct 2002; Donny Davies <woodchip@gentoo.org> nut-1.0.0.ebuild :
+ Added sparc sparc64 KEYWORDS. Old ebuilds have busted SRC_URI's.
+
+ 26 Aug 2002; Donny Davies <woodchip@gentoo.org> nut-1.0.0.ebuild :
+ Glorious timing; nut went 1.0 and as of baselayout-1.8.2, halt.sh
+ support is merged.
+
+*nut-0.50.1 (3 Aug 2002)
+
+ 3 Aug 2002; Donny Davies <woodchip@gentoo.org> nut-0.50.1.ebuild,
+ upsd-init, upsmon-init :
+ This release adds proper initscripts, the USE cgi-bin option
+ for building the web monitoring programs, and proper shutdown
+ sequence merged into the baselayout halt.sh shutdown script.
+ Pending release of a new baselayout, this package is masked.
+
+*nut-0.44.1-r1 (12 Apr 2002)
+
+ 11 Aug 2002; phoen][x <phoenix@gentoo.org> nut-0.44.1-r1.ebuild :
+ Fixed src_install() (This closes bug 5827)
+
+ 09 Jul 2002; phoen][x <phoenix@gentoo.org> nut-0.44.1-r1.ebuild :
+ Added KEYWORDS, LICENSE, SLOT.
+
+ 12 Apr 2002; Spider <spider@gentoo.org>
+ libpng update, remove RPEND tag, unnecessary. (or typo;)
diff --git a/sys-power/nut/Manifest b/sys-power/nut/Manifest
new file mode 100644
index 000000000000..796131d291a2
--- /dev/null
+++ b/sys-power/nut/Manifest
@@ -0,0 +1,47 @@
+AUX upsd.rc6 585 RMD160 f8b217dd5f83629be94cb08dde3d889c494f8e50 SHA1 151eb11006ee5b7793c13b802c535595207f1815 SHA256 3268cea4aa879b0c85289522c758ed476afa474c89d244fa8f09b2207ebe7f49 size 585
+MD5 057b35a5ced412ebf01c952b55d2e4db files/upsd.rc6 585
+RMD160 f8b217dd5f83629be94cb08dde3d889c494f8e50 files/upsd.rc6 585
+SHA256 3268cea4aa879b0c85289522c758ed476afa474c89d244fa8f09b2207ebe7f49 files/upsd.rc6 585
+AUX upsdrv.rc6 477 RMD160 762f2669cbdc7f7f039371d7e83126ececd0f36d SHA1 e9c67c651ae699846e867451801dc453beb305f2 SHA256 3208671122757de29f1ffd7b7127613230165dedb28be38eb8d1303a1fd537b8 size 477
+MD5 d369e7d9bf8a83e47b0a958ec30baf43 files/upsdrv.rc6 477
+RMD160 762f2669cbdc7f7f039371d7e83126ececd0f36d files/upsdrv.rc6 477
+SHA256 3208671122757de29f1ffd7b7127613230165dedb28be38eb8d1303a1fd537b8 files/upsdrv.rc6 477
+AUX upsdrv.rc6-r1 489 RMD160 b2a23dae41744733f6fb2bc3e365c01a244ba41f SHA1 c1445e093ca82fea39e59eff44d32d0c2e38db33 SHA256 f5b04e99633cd9b04c0e5ce319c9f2f8b1fb41c284db9eb4546e7d73b2060875 size 489
+MD5 2d1326c3eefc364c474ea2f191810bfc files/upsdrv.rc6-r1 489
+RMD160 b2a23dae41744733f6fb2bc3e365c01a244ba41f files/upsdrv.rc6-r1 489
+SHA256 f5b04e99633cd9b04c0e5ce319c9f2f8b1fb41c284db9eb4546e7d73b2060875 files/upsdrv.rc6-r1 489
+AUX upsmon.rc6 471 RMD160 970a547f269727a0adec9f7ed46df76fe94a8270 SHA1 d47562ce83e47d382ba00bbd5e199d63ec368222 SHA256 12fe8fa4666b3e7488b91253deb5323978b5e767464ca0b3eb697948f71fe1e0 size 471
+MD5 5962635c2a91e3df315cc69f5aa52f6a files/upsmon.rc6 471
+RMD160 970a547f269727a0adec9f7ed46df76fe94a8270 files/upsmon.rc6 471
+SHA256 12fe8fa4666b3e7488b91253deb5323978b5e767464ca0b3eb697948f71fe1e0 files/upsmon.rc6 471
+DIST nut-2.0.0.tar.gz 530492 RMD160 7f36296b61b79fe13d78c65a66aa034b60e1c0d2 SHA256 5015eda31ffae1e899c6b80d9c0c943e24fae1934591a50018f01e2622ebf9b8 size 530492
+DIST nut-2.0.1-pre4.tar.gz 563526 RMD160 5b0a3ab8a400e70f308471aa7b1fbcaa8052f739 SHA256 6a374f34e155ef2f09c10c046ef34a628fe4cb9970973c88c57cbca16d78624f size 563526
+EBUILD nut-2.0.0-r1.ebuild 3200 RMD160 5648db5a0d0b9e1f1e1a0b0e2d3c0cba972e0989 SHA1 76d888989b7ce4761f35f76b797e57b115bd10d4 SHA256 9b6784f284c508c0bcdbec67b6cdb17cf7446dea16fe00d0c0ed1285f2e2d11f size 3200
+MD5 5c23a2aae3035c601f76f5bf23ad8e24 nut-2.0.0-r1.ebuild 3200
+RMD160 5648db5a0d0b9e1f1e1a0b0e2d3c0cba972e0989 nut-2.0.0-r1.ebuild 3200
+SHA256 9b6784f284c508c0bcdbec67b6cdb17cf7446dea16fe00d0c0ed1285f2e2d11f nut-2.0.0-r1.ebuild 3200
+EBUILD nut-2.0.0.ebuild 3174 RMD160 74970a7730d1b986b3bfe44549d7d284a6d36df3 SHA1 301ec5e3a275039c81d2d6c345425e3c399755e8 SHA256 f4120a65127bfed95dac2c4ae330548dcf5d124033fea0d7e918ca11d92bc3cc size 3174
+MD5 b227faab7e9c151e60317e2198a75da1 nut-2.0.0.ebuild 3174
+RMD160 74970a7730d1b986b3bfe44549d7d284a6d36df3 nut-2.0.0.ebuild 3174
+SHA256 f4120a65127bfed95dac2c4ae330548dcf5d124033fea0d7e918ca11d92bc3cc nut-2.0.0.ebuild 3174
+EBUILD nut-2.0.1_pre4.ebuild 3259 RMD160 1f5ef1533e5710ba75b213d6a93ca24da14a55f5 SHA1 c557f6c4d49187bc990022fa1752e9cc0d53a1a7 SHA256 906631c56e2c59654e08c590a927d855993847555881575781ec30cd126cd2b3 size 3259
+MD5 0af6ee1e6c18490423d66203f60eb633 nut-2.0.1_pre4.ebuild 3259
+RMD160 1f5ef1533e5710ba75b213d6a93ca24da14a55f5 nut-2.0.1_pre4.ebuild 3259
+SHA256 906631c56e2c59654e08c590a927d855993847555881575781ec30cd126cd2b3 nut-2.0.1_pre4.ebuild 3259
+MISC ChangeLog 7682 RMD160 fa57b947d404ef9f919ed398ef747fab6727ebcc SHA1 ba6aa78c098b6bae828859b042c5996c58e15e75 SHA256 e1918aa7de3198fe1844e0d78f0a99407f32701d2a01e264ef30ab9d6bbf6dd7 size 7682
+MD5 fb4e76627c7a9f9709eedcb0aec88a9e ChangeLog 7682
+RMD160 fa57b947d404ef9f919ed398ef747fab6727ebcc ChangeLog 7682
+SHA256 e1918aa7de3198fe1844e0d78f0a99407f32701d2a01e264ef30ab9d6bbf6dd7 ChangeLog 7682
+MISC metadata.xml 219 RMD160 7737543ce33cd412792e332121aa1c6ed452adfc SHA1 6c360930b80d6f4168ba1a486a25ad176505ea63 SHA256 8b2ef93d0d6f03a1ad115651dc46a7752e7775a62a32a7046c3294e50b14725b size 219
+MD5 a961228140ef319b2ddba54d99b6e401 metadata.xml 219
+RMD160 7737543ce33cd412792e332121aa1c6ed452adfc metadata.xml 219
+SHA256 8b2ef93d0d6f03a1ad115651dc46a7752e7775a62a32a7046c3294e50b14725b metadata.xml 219
+MD5 3a97398adb3755eecc42c2a4127956f4 files/digest-nut-2.0.0 229
+RMD160 126dc7d964ea57bccfff1c9d897adbed4e7a1813 files/digest-nut-2.0.0 229
+SHA256 26d7796b5c899ee0d07325b0c27578a14843ec27a510806e941ed83decbaf71f files/digest-nut-2.0.0 229
+MD5 3a97398adb3755eecc42c2a4127956f4 files/digest-nut-2.0.0-r1 229
+RMD160 126dc7d964ea57bccfff1c9d897adbed4e7a1813 files/digest-nut-2.0.0-r1 229
+SHA256 26d7796b5c899ee0d07325b0c27578a14843ec27a510806e941ed83decbaf71f files/digest-nut-2.0.0-r1 229
+MD5 e6a7669f1606c70c25f83573bc75ad22 files/digest-nut-2.0.1_pre4 244
+RMD160 f5ea2b7e207be7589eff32656404d7da1a42c35e files/digest-nut-2.0.1_pre4 244
+SHA256 4866c4f95b4b98a1189f00ea4e5d3447f4f7ee5bfff71dd9c59f6c25b4bf73ca files/digest-nut-2.0.1_pre4 244
diff --git a/sys-power/nut/files/digest-nut-2.0.0 b/sys-power/nut/files/digest-nut-2.0.0
new file mode 100644
index 000000000000..783df5868fa7
--- /dev/null
+++ b/sys-power/nut/files/digest-nut-2.0.0
@@ -0,0 +1,3 @@
+MD5 84649ad95809737b5ffc19efdd9e9952 nut-2.0.0.tar.gz 530492
+RMD160 7f36296b61b79fe13d78c65a66aa034b60e1c0d2 nut-2.0.0.tar.gz 530492
+SHA256 5015eda31ffae1e899c6b80d9c0c943e24fae1934591a50018f01e2622ebf9b8 nut-2.0.0.tar.gz 530492
diff --git a/sys-power/nut/files/digest-nut-2.0.0-r1 b/sys-power/nut/files/digest-nut-2.0.0-r1
new file mode 100644
index 000000000000..783df5868fa7
--- /dev/null
+++ b/sys-power/nut/files/digest-nut-2.0.0-r1
@@ -0,0 +1,3 @@
+MD5 84649ad95809737b5ffc19efdd9e9952 nut-2.0.0.tar.gz 530492
+RMD160 7f36296b61b79fe13d78c65a66aa034b60e1c0d2 nut-2.0.0.tar.gz 530492
+SHA256 5015eda31ffae1e899c6b80d9c0c943e24fae1934591a50018f01e2622ebf9b8 nut-2.0.0.tar.gz 530492
diff --git a/sys-power/nut/files/digest-nut-2.0.1_pre4 b/sys-power/nut/files/digest-nut-2.0.1_pre4
new file mode 100644
index 000000000000..137dd0b8c5d2
--- /dev/null
+++ b/sys-power/nut/files/digest-nut-2.0.1_pre4
@@ -0,0 +1,3 @@
+MD5 399f79406e07aa2a689bc6a119b0fcad nut-2.0.1-pre4.tar.gz 563526
+RMD160 5b0a3ab8a400e70f308471aa7b1fbcaa8052f739 nut-2.0.1-pre4.tar.gz 563526
+SHA256 6a374f34e155ef2f09c10c046ef34a628fe4cb9970973c88c57cbca16d78624f nut-2.0.1-pre4.tar.gz 563526
diff --git a/sys-power/nut/files/upsd.rc6 b/sys-power/nut/files/upsd.rc6
new file mode 100755
index 000000000000..ebe6414b06e7
--- /dev/null
+++ b/sys-power/nut/files/upsd.rc6
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsd.rc6,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+depend() {
+ need net upsdrv
+ before upsmon
+}
+
+start() {
+ ebegin "Starting upsd"
+ # clean up first
+ pkill -u root -x upsd
+ sleep 1s
+ rm -f /var/state/nut/upsd.pid
+ # now start up
+ start-stop-daemon --start --quiet --exec /usr/sbin/upsd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping upsd"
+ start-stop-daemon --stop --quiet --pidfile /var/lib/nut/upsd.pid
+ eend $?
+}
diff --git a/sys-power/nut/files/upsdrv.rc6 b/sys-power/nut/files/upsdrv.rc6
new file mode 100755
index 000000000000..85a0c84debad
--- /dev/null
+++ b/sys-power/nut/files/upsdrv.rc6
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsdrv.rc6,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+depend() {
+ need net
+ before upsd
+}
+
+start() {
+ ebegin "Starting UPS drivers"
+ /sbin/upsdrvctl start
+ eend $? "Failed to start UPS drivers!"
+}
+
+stop() {
+ ebegin "Stopping UPS drivers"
+ /sbin/upsdrvctl stop
+ eend $? "Failed to stop UPS drivers!"
+}
diff --git a/sys-power/nut/files/upsdrv.rc6-r1 b/sys-power/nut/files/upsdrv.rc6-r1
new file mode 100755
index 000000000000..fef39d17ac91
--- /dev/null
+++ b/sys-power/nut/files/upsdrv.rc6-r1
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsdrv.rc6-r1,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+depend() {
+ need net
+ before upsd
+}
+
+start() {
+ ebegin "Starting UPS drivers"
+ /usr/sbin/upsdrvctl start
+ eend $? "Failed to start UPS drivers!"
+}
+
+stop() {
+ ebegin "Stopping UPS drivers"
+ /usr/sbin/upsdrvctl stop
+ eend $? "Failed to stop UPS drivers!"
+}
diff --git a/sys-power/nut/files/upsmon.rc6 b/sys-power/nut/files/upsmon.rc6
new file mode 100755
index 000000000000..ba488c7d8ce5
--- /dev/null
+++ b/sys-power/nut/files/upsmon.rc6
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsmon.rc6,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting upsmon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/upsmon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping upsmon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/upsmon.pid
+ eend $?
+}
diff --git a/sys-power/nut/metadata.xml b/sys-power/nut/metadata.xml
new file mode 100644
index 000000000000..25a38732ed2b
--- /dev/null
+++ b/sys-power/nut/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer><email>robbat2@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/sys-power/nut/nut-2.0.0-r1.ebuild b/sys-power/nut/nut-2.0.0-r1.ebuild
new file mode 100644
index 000000000000..98f4410f54e4
--- /dev/null
+++ b/sys-power/nut/nut-2.0.0-r1.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/nut-2.0.0-r1.ebuild,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+inherit eutils fixheadtails
+
+DESCRIPTION="Network-UPS Tools"
+HOMEPAGE="http://www.networkupstools.org/"
+SRC_URI="mirror://nut/source/${PV%.*}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
+IUSE="cgi snmp usb"
+
+RDEPEND="cgi? ( media-libs/gd )
+ snmp? ( net-analyzer/net-snmp )"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4
+ >=sys-devel/autoconf-2.58"
+
+pkg_setup() {
+ enewgroup nut 84
+ enewuser nut 84 -1 /var/state/nut nut
+}
+
+src_unpack() {
+ unpack ${A} && cd "${S}"
+
+ sed -e "s/install: install-dirs/install: install-dirs install-conf/" \
+ -i Makefile.in || die "sed failed"
+
+ ht_fix_file configure.in
+
+ sed -e "s:GD_LIBS.*=.*-L/usr/X11R6/lib \(.*\) -lXpm -lX11:GD_LIBS=\"\1:" \
+ -i configure.in || die "sed failed"
+
+ ebegin "Recreating configure"
+ WANT_AUTOCONF=2.5 autoconf || die "autoconf failed"
+ eend $?
+}
+
+src_compile() {
+ local myconf
+ myconf="${myconf} `use_with cgi` `use_with cgi cgipath /usr/share/nut`"
+
+ if [ -n "${NUT_DRIVERS}" ]; then
+ myconf="${myconf} --with-drivers=${NUT_DRIVERS// /,}"
+ fi
+
+ econf \
+ --with-user=nut \
+ --with-group=nut \
+ --with-drvpath=/usr/lib/nut \
+ --sysconfdir=/etc/nut \
+ --with-logfacility=LOG_DAEMON \
+ --with-statepath=/var/lib/nut \
+ ${myconf} || die "econf failed"
+
+ emake || die "compile problem"
+
+ if use snmp; then
+ emake snmp || die "snmp compile problem"
+ fi
+
+ if use usb; then
+ emake usb || die "snmp compile problem"
+ fi
+
+ if use cgi; then
+ emake cgi || die "compile cgi problem"
+ fi
+}
+
+src_install() {
+ make DESTDIR="${D}" install install-lib || die "make install failed"
+
+ dodir /usr/sbin
+ dosym /usr/lib/nut/upsdrvctl /usr/sbin/upsdrvctl
+
+ for i in "${D}"/etc/nut/*.sample ; do
+ mv "${i}" "${i/.sample/}"
+ done
+
+ if use snmp; then
+ make DESTDIR="${D}" install-snmp || die "make install-snmp failed"
+ fi
+
+ if use usb; then
+ make DESTDIR="${D}" install-usb || die "make install-usb failed"
+ fi
+
+ if use cgi; then
+ make DESTDIR="${D}" install-cgi || die "make install-cgi failed"
+ einfo "CGI monitoring scripts are installed in /usr/share/nut,"
+ einfo "copy them to your web server's ScriptPath to activate."
+ fi
+
+ dodoc CHANGES COPYING CREDITS INSTALL MAINTAINERS NEWS README UPGRADING \
+ docs/{FAQ,*.txt}
+
+ newdoc lib/README README.lib
+
+ docinto cables
+ dodoc docs/cables/*
+
+
+ exeinto /etc/init.d
+ newexe "${FILESDIR}/upsd.rc6" upsd
+ newexe "${FILESDIR}/upsdrv.rc6-r1" upsdrv
+ newexe "${FILESDIR}/upsmon.rc6" upsmon
+
+ keepdir /var/lib/nut
+
+ fperms 0700 /var/lib/nut
+ fperms 0640 /etc/nut/{upsd.conf,upsd.users,upsmon.conf}
+ fowners nut:nut /var/lib/nut
+ fowners root:nut /etc/nut/{upsd.conf,upsd.users,upsmon.conf}
+}
+
+pkg_postinst() {
+ # this is to ensure that everybody that installed old versions still has correct
+ # permissions
+ chown nut:nut ${ROOT}/var/lib/nut 2>/dev/null
+ chmod 0700 ${ROOT}/var/lib/nut 2>/dev/null
+ chown root:nut ${ROOT}/etc/nut/{upsd.conf,upsd.users,upsmon.conf} 2>/dev/null
+ chmod 0640 ${ROOT}/etc/nut/{upsd.conf,upsd.users,upsmon.conf} 2>/dev/null
+}
diff --git a/sys-power/nut/nut-2.0.0.ebuild b/sys-power/nut/nut-2.0.0.ebuild
new file mode 100644
index 000000000000..a89e83f73322
--- /dev/null
+++ b/sys-power/nut/nut-2.0.0.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/nut-2.0.0.ebuild,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+inherit eutils fixheadtails
+
+DESCRIPTION="Network-UPS Tools"
+HOMEPAGE="http://www.networkupstools.org/"
+SRC_URI="mirror://nut/source/${PV%.*}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ppc sparc x86"
+IUSE="cgi snmp usb"
+
+RDEPEND="cgi? ( media-libs/gd )
+ snmp? ( net-analyzer/net-snmp )"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4
+ >=sys-devel/autoconf-2.58"
+
+pkg_setup() {
+ enewgroup nut 84
+ enewuser nut 84 -1 /var/state/nut nut
+}
+
+src_unpack() {
+ unpack ${A} && cd "${S}"
+
+ sed -e "s/install: install-dirs/install: install-dirs install-conf/" \
+ -i Makefile.in || die "sed failed"
+
+ ht_fix_file configure.in
+
+ sed -e "s:GD_LIBS.*=.*-L/usr/X11R6/lib \(.*\) -lXpm -lX11:GD_LIBS=\"\1:" \
+ -i configure.in || die "sed failed"
+
+ ebegin "Recreating configure"
+ WANT_AUTOCONF=2.5 autoconf || die "autoconf failed"
+ eend $?
+}
+
+src_compile() {
+ local myconf
+ myconf="${myconf} `use_with cgi` `use_with cgi cgipath /usr/share/nut`"
+
+ if [ -n "${NUT_DRIVERS}" ]; then
+ myconf="${myconf} --with-drivers=${NUT_DRIVERS// /,}"
+ fi
+
+ econf \
+ --with-user=nut \
+ --with-group=nut \
+ --with-drvpath=/lib/nut \
+ --sysconfdir=/etc/nut \
+ --with-logfacility=LOG_DAEMON \
+ --with-statepath=/var/lib/nut \
+ ${myconf} || die "econf failed"
+
+ emake || die "compile problem"
+
+ if use snmp; then
+ emake snmp || die "snmp compile problem"
+ fi
+
+ if use usb; then
+ emake usb || die "snmp compile problem"
+ fi
+
+ if use cgi; then
+ emake cgi || die "compile cgi problem"
+ fi
+}
+
+src_install() {
+ make DESTDIR="${D}" install install-lib || die "make install failed"
+
+ dodir /sbin
+ dosym /lib/nut/upsdrvctl /sbin/upsdrvctl
+
+ for i in "${D}"/etc/nut/*.sample ; do
+ mv "${i}" "${i/.sample/}"
+ done
+
+ if use snmp; then
+ make DESTDIR="${D}" install-snmp || die "make install-snmp failed"
+ fi
+
+ if use usb; then
+ make DESTDIR="${D}" install-usb || die "make install-usb failed"
+ fi
+
+ if use cgi; then
+ make DESTDIR="${D}" install-cgi || die "make install-cgi failed"
+ einfo "CGI monitoring scripts are installed in /usr/share/nut,"
+ einfo "copy them to your web server's ScriptPath to activate."
+ fi
+
+ dodoc CHANGES COPYING CREDITS INSTALL MAINTAINERS NEWS README UPGRADING \
+ docs/{FAQ,*.txt}
+
+ newdoc lib/README README.lib
+
+ docinto cables
+ dodoc docs/cables/*
+
+
+ exeinto /etc/init.d
+ newexe "${FILESDIR}/upsd.rc6" upsd
+ newexe "${FILESDIR}/upsdrv.rc6" upsdrv
+ newexe "${FILESDIR}/upsmon.rc6" upsmon
+
+ keepdir /var/lib/nut
+
+ fperms 0700 /var/lib/nut
+ fperms 0640 /etc/nut/{upsd.conf,upsd.users,upsmon.conf}
+ fowners nut:nut /var/lib/nut
+ fowners root:nut /etc/nut/{upsd.conf,upsd.users,upsmon.conf}
+}
+
+pkg_postinst() {
+ # this is to ensure that everybody that installed old versions still has correct
+ # permissions
+ chown nut:nut ${ROOT}/var/lib/nut 2>/dev/null
+ chmod 0700 ${ROOT}/var/lib/nut 2>/dev/null
+ chown root:nut ${ROOT}/etc/nut/{upsd.conf,upsd.users,upsmon.conf} 2>/dev/null
+ chmod 0640 ${ROOT}/etc/nut/{upsd.conf,upsd.users,upsmon.conf} 2>/dev/null
+}
diff --git a/sys-power/nut/nut-2.0.1_pre4.ebuild b/sys-power/nut/nut-2.0.1_pre4.ebuild
new file mode 100644
index 000000000000..c4afad918e24
--- /dev/null
+++ b/sys-power/nut/nut-2.0.1_pre4.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/nut-2.0.1_pre4.ebuild,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+inherit eutils fixheadtails
+
+MY_P="${P/_/-}"
+
+DESCRIPTION="Network-UPS Tools"
+HOMEPAGE="http://www.networkupstools.org/"
+SRC_URI="mirror://nut/source/2.0/testing/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="cgi snmp usb"
+
+RDEPEND="cgi? ( media-libs/gd )
+ snmp? ( net-analyzer/net-snmp )"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4
+ >=sys-devel/autoconf-2.58"
+
+S=${WORKDIR}/${MY_P/-pre4//}
+
+pkg_setup() {
+ enewgroup nut 84
+ enewuser nut 84 -1 /var/state/nut nut
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+
+ sed -e "s/install: install-dirs/install: install-dirs install-conf/" \
+ -i Makefile.in || die "sed failed"
+
+ ht_fix_file configure.in
+
+ sed -e "s:GD_LIBS.*=.*-L/usr/X11R6/lib \(.*\) -lXpm -lX11:GD_LIBS=\"\1:" \
+ -i configure.in || die "sed failed"
+
+ ebegin "Recreating configure"
+ WANT_AUTOCONF=2.5 autoconf || die "autoconf failed"
+ eend $?
+}
+
+src_compile() {
+ local myconf
+ myconf="${myconf} `use_with cgi` `use_with cgi cgipath /usr/share/nut`"
+
+ if [ -n "${NUT_DRIVERS}" ]; then
+ myconf="${myconf} --with-drivers=${NUT_DRIVERS// /,}"
+ fi
+
+ econf \
+ --with-user=nut \
+ --with-group=nut \
+ --with-drvpath=/usr/lib/nut \
+ --sysconfdir=/etc/nut \
+ --with-logfacility=LOG_DAEMON \
+ --with-statepath=/var/lib/nut \
+ ${myconf} || die "econf failed"
+
+ emake || die "compile problem"
+
+ if use snmp; then
+ emake snmp || die "snmp compile problem"
+ fi
+
+ if use usb; then
+ emake usb || die "snmp compile problem"
+ fi
+
+ if use cgi; then
+ emake cgi || die "compile cgi problem"
+ fi
+}
+
+src_install() {
+ make DESTDIR="${D}" install install-lib || die "make install failed"
+
+ dodir /usr/sbin
+ dosym /usr/lib/nut/upsdrvctl /usr/sbin/upsdrvctl
+
+ for i in "${D}"/etc/nut/*.sample ; do
+ mv "${i}" "${i/.sample/}"
+ done
+
+ if use snmp; then
+ make DESTDIR="${D}" install-snmp || die "make install-snmp failed"
+ fi
+
+ if use usb; then
+ make DESTDIR="${D}" install-usb || die "make install-usb failed"
+ fi
+
+ if use cgi; then
+ make DESTDIR="${D}" install-cgi || die "make install-cgi failed"
+ einfo "CGI monitoring scripts are installed in /usr/share/nut,"
+ einfo "copy them to your web server's ScriptPath to activate."
+ fi
+
+ dodoc CHANGES COPYING CREDITS INSTALL MAINTAINERS NEWS README UPGRADING \
+ docs/{FAQ,*.txt}
+
+ newdoc lib/README README.lib
+
+ docinto cables
+ dodoc docs/cables/*
+
+
+ exeinto /etc/init.d
+ newexe "${FILESDIR}/upsd.rc6" upsd
+ newexe "${FILESDIR}/upsdrv.rc6-r1" upsdrv
+ newexe "${FILESDIR}/upsmon.rc6" upsmon
+
+ keepdir /var/lib/nut
+
+ fperms 0700 /var/lib/nut
+ fperms 0640 /etc/nut/{upsd.conf,upsd.users,upsmon.conf}
+ fowners nut:nut /var/lib/nut
+ fowners root:nut /etc/nut/{upsd.conf,upsd.users,upsmon.conf}
+}
+
+pkg_postinst() {
+ # this is to ensure that everybody that installed old versions still has
+ # correct permissions
+ chown nut:nut ${ROOT}/var/lib/nut 2>/dev/null
+ chmod 0700 ${ROOT}/var/lib/nut 2>/dev/null
+ chown root:nut ${ROOT}/etc/nut/{upsd.conf,upsd.users,upsmon.conf} 2>/dev/null
+ chmod 0640 ${ROOT}/etc/nut/{upsd.conf,upsd.users,upsmon.conf} 2>/dev/null
+}