summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gmail.com>2012-06-03 13:55:37 +0400
committerAndrew Savchenko <bircoph@gmail.com>2012-06-03 13:55:37 +0400
commitcb0a4db4d3882ac324ed31571eb8b926298bfdbc (patch)
treeef43ce2cbf2fe7ff4867dcfc2ea8dda97f1d0999 /sys-power
parentmediastreamer-silk: fix la file (diff)
downloadbircoph-cb0a4db4d3882ac324ed31571eb8b926298bfdbc.tar.gz
bircoph-cb0a4db4d3882ac324ed31571eb8b926298bfdbc.tar.bz2
bircoph-cb0a4db4d3882ac324ed31571eb8b926298bfdbc.zip
nut: updated in portage
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/nut/ChangeLog584
-rw-r--r--sys-power/nut/Manifest11
-rw-r--r--sys-power/nut/files/lighttpd_nut.conf-2.2.023
-rwxr-xr-xsys-power/nut/files/nut-2.2.2-init.d-upsd38
-rwxr-xr-xsys-power/nut/files/nut-2.2.2-init.d-upsdrv44
-rwxr-xr-xsys-power/nut/files/nut-2.2.2-init.d-upsmon30
-rw-r--r--sys-power/nut/files/nut-2.4.1-no-libdummy.patch18
-rw-r--r--sys-power/nut/files/nut-2.6.2-lowspeed-buffer-size.patch16
-rw-r--r--sys-power/nut/files/nut.powerfail.initd49
-rw-r--r--sys-power/nut/metadata.xml8
-rw-r--r--sys-power/nut/nut-2.6.3.ebuild218
11 files changed, 0 insertions, 1039 deletions
diff --git a/sys-power/nut/ChangeLog b/sys-power/nut/ChangeLog
deleted file mode 100644
index 89e34f4..0000000
--- a/sys-power/nut/ChangeLog
+++ /dev/null
@@ -1,584 +0,0 @@
-# ChangeLog for sys-power/nut
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/ChangeLog,v 1.95 2011/12/04 10:43:19 swegener Exp $
-
- 04 Dec 2011; Sven Wegener <swegener@gentoo.org> files/nut-2.2.2-init.d-upsd,
- files/nut-2.2.2-init.d-upsdrv, files/nut-2.2.2-init.d-upsmon:
- replace opts with extra_commands
-
-*nut-2.6.2 (07 Nov 2011)
-
- 07 Nov 2011; Robin H. Johnson <robbat2@gentoo.org> +nut-2.6.2.ebuild,
- +files/nut-2.6.2-lowspeed-buffer-size.patch:
- Version bump, bug #371641.
-
- 27 Apr 2011; Raúl Porcel <armin76@gentoo.org> nut-2.6.0-r1.ebuild:
- sparc stable wrt #360739
-
- 26 Apr 2011; Kacper Kowalik <xarthisius@gentoo.org> nut-2.6.0-r1.ebuild:
- ppc/ppc64 stable wrt #360739
-
- 21 Apr 2011; Thomas Kahle <tomka@gentoo.org> nut-2.6.0-r1.ebuild:
- x86 stable per bug 360739
-
-*nut-2.6.0-r1 (02 Apr 2011)
-
- 02 Apr 2011; Samuli Suominen <ssuominen@gentoo.org> +nut-2.6.0-r1.ebuild:
- Rename @LIBSSL_LDFLAGS@ to @LIBSSL_LIBS@ in libupsclient.pc.in wrt #361685 by
- Bruno.
-
- 27 Mar 2011; Christoph Mende <angelos@gentoo.org> nut-2.6.0.ebuild:
- Stable on amd64 wrt bug #360739
-
- 27 Mar 2011; Samuli Suominen <ssuominen@gentoo.org> metadata.xml:
- Move USE="hal" description here from use.desc.
-
- 27 Mar 2011; Tobias Klausmann <klausman@gentoo.org> nut-2.6.0.ebuild:
- Stable on alpha, bug #360739
-
- 15 Mar 2011; Samuli Suominen <ssuominen@gentoo.org> nut-2.6.0.ebuild:
- Stop installing 70-nut-usbups.rules to /etc/udev/rules.d because it's
- installed by upstream Makefile to correct location at /lib/udev/rules.d.
-
-*nut-2.6.0 (13 Mar 2011)
-
- 13 Mar 2011; Samuli Suominen <ssuominen@gentoo.org> +nut-2.6.0.ebuild:
- Version bump wrt #353090. Fix multilib install wrt #338096.
-
- 25 Feb 2011; Kacper Kowalik <xarthisius@gentoo.org> nut-2.4.3-r2.ebuild:
- ppc/ppc64 stable wrt #321493
-
- 18 Sep 2010; Raúl Porcel <armin76@gentoo.org> nut-2.4.3-r2.ebuild:
- sparc stable wrt #321493
-
- 25 Jul 2010; Tobias Klausmann <klausman@gentoo.org> nut-2.4.3-r2.ebuild:
- Stable on alpha, bug #321493
-
- 14 Jul 2010; Christian Faulhammer <fauli@gentoo.org> nut-2.4.3-r2.ebuild:
- stable x86, bug 321493
-
- 10 Jul 2010; Markos Chandras <hwoarang@gentoo.org> nut-2.4.3-r2.ebuild:
- Stable on amd64 wrt bug #321493
-
- 01 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> nut-2.4.3-r2.ebuild,
- +files/nut-2.4.3-asneeded.patch:
- Fix building with -Wl,--as-needed wrt #318481 by Diego E. Pettenò.
-
- 25 Jun 2010; Robin H. Johnson <robbat2@gentoo.org>
- files/nut.powerfail.initd:
- Bug #324609: more BL1 compat.
-
- 18 Jun 2010; Diego E. Pettenò <flameeyes@gentoo.org> Manifest:
- Remove .orig file from Manifest (it's not in CVS, likely caused by a fuzzy
- patch).
-
-*nut-2.4.3-r2 (17 Jun 2010)
-
- 17 Jun 2010; Robin H. Johnson <robbat2@gentoo.org> +nut-2.4.3-r2.ebuild,
- files/nut.powerfail.initd:
- Bug #322083: avoid baselayout1 parse errors in powerfail script. Bug
- #322425: Avoid /usr and /var during shutdown as they may be gone already.
-
- 26 May 2010; Robin H. Johnson <robbat2@gentoo.org>
- files/nut-2.4.3-lowspeed-buffer-size.patch:
- Fix DOS line feeds from upstream patch.
-
-*nut-2.4.3-r1 (25 May 2010)
-
- 25 May 2010; Robin H. Johnson <robbat2@gentoo.org> +nut-2.4.3-r1.ebuild,
- +files/nut-2.4.3-lowspeed-buffer-size.patch:
- Bug #318937: Fix support for low-speed USB devices.
-
-*nut-2.4.3 (02 May 2010)
-
- 02 May 2010; Robin H. Johnson <robbat2@gentoo.org> +nut-2.4.3.ebuild:
- Bug #313883: version bump.
-
- 10 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> nut-2.4.1-r2.ebuild:
- Fix obvious typo.
-
-*nut-2.4.1-r2 (09 Jan 2010)
-
- 09 Jan 2010; Robin H. Johnson <robbat2@gentoo.org> +nut-2.4.1-r2.ebuild,
- +files/nut.powerfail.initd:
- Bug #266804: Powerfail init script so that we work on the latest openrc
- where 'halt -id'/halt.sh are no longer called.
-
- 09 Jan 2010; Robin H. Johnson <robbat2@gentoo.org> nut-2.4.1-r1.ebuild:
- Bug #283754: missing builddep on pkgconfig.
-
- 05 Sep 2009; Raúl Porcel <armin76@gentoo.org> nut-2.4.1-r1.ebuild:
- sparc stable wrt #280368
-
- 01 Sep 2009; Christian Faulhammer <fauli@gentoo.org> nut-2.4.1-r1.ebuild:
- stable x86, bug 280368
-
- 29 Aug 2009; nixnut <nixnut@gentoo.org> nut-2.4.1-r1.ebuild:
- ppc stable #280368
-
- 05 Aug 2009; <chainsaw@gentoo.org> nut-2.4.1-r1.ebuild:
- Marked stable on AMD64 as requested by Michael "Mr. Bones" Sterrett in bug
- #280368. Compile-tested on a Core2 Duo with USE="bash-completion hal snmp
- ssl usb xml -cgi", no test hardware available.
-
- 16 May 2009; Robin H. Johnson <robbat2@gentoo.org> nut-2.0.5-r2.ebuild,
- nut-2.2.2.ebuild, nut-2.4.1.ebuild, nut-2.4.1-r1.ebuild:
- Migration to virtual/libusb. Verified by code inspection.
-
-*nut-2.4.1-r1 (11 May 2009)
-
- 11 May 2009; Rajiv Aaron Manglani <rajiv@gentoo.org> +nut-2.4.1-r1.ebuild:
- fix libtool issues, bug #265964.
-
- 15 Apr 2009; Brent Baude <ranger@gentoo.org> nut-2.2.2.ebuild:
- Marking nut-2.2.2 ppc64 for bug 264897
-
-*nut-2.4.1 (12 Apr 2009)
-
- 12 Apr 2009; Robin H. Johnson <robbat2@gentoo.org>
- +files/nut-2.4.1-no-libdummy.patch, +nut-2.4.1.ebuild:
- Version bump per bug #261366. Fixes HAL support with new HAL per bug
- #195165. Fixes --as-needed compile per bug #231772.
-
- 07 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> nut-2.2.2.ebuild:
- Migrate to EAPI 2.
-
- 07 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> -nut-2.2.0.ebuild,
- -nut-2.2.1.ebuild:
- Remove old versions.
-
- 05 Jul 2008; Robin H. Johnson <robbat2@gentoo.org> nut-2.2.2.ebuild:
- Bug #229345 - do not bother with the CGI files unless USE=cgi.
-
- 05 Jul 2008; Robin H. Johnson <robbat2@gentoo.org>
- +files/nut-2.2.2-no-libdummy.patch, nut-2.2.2.ebuild:
- Bug #229443, compile-fix for newer libtool setups.
-
- 25 Jun 2008; Robin H. Johnson <robbat2@gentoo.org>
- files/nut-2.2.2-init.d-upsmon:
- Forgot cleanup bit.
-
- 25 Jun 2008; Robin H. Johnson <robbat2@gentoo.org> nut-2.0.5-r2.ebuild:
- Fix bug #226627 for autoconf usage.
-
-*nut-2.2.2 (25 Jun 2008)
-
- 25 Jun 2008; Robin H. Johnson <robbat2@gentoo.org>
- +files/nut-2.2.2-init.d-upsd, +files/nut-2.2.2-init.d-upsdrv,
- +files/nut-2.2.2-init.d-upsmon, +nut-2.2.2.ebuild:
- Version bump per bug #226157. Fix bugs #177887, #211505 for baselayout2.
- Provide better support for multiple UPS per bug #149687. Please read the
- postinst about upsdrv!.
-
- 25 Jun 2008; Robin H. Johnson <robbat2@gentoo.org> nut-2.2.1.ebuild:
- Add warning about shell expansions.
-
-*nut-2.2.1 (09 Mar 2008)
-
- 09 Mar 2008; Rajiv Aaron Manglani <rajiv@gentoo.org> +nut-2.2.1.ebuild:
- version bump, bug #203034.
-
- 19 Feb 2008; Brent Baude <ranger@gentoo.org> nut-2.2.0.ebuild:
- Marking nut-2.2.0 ~ppc64 for bug 195165
-
- 17 Feb 2008; Daniel Black <dragonheart@gentoo.org> nut-2.2.0.ebuild:
- added check for gd with png support as per patch bug RB in bug #208872
-
- 09 Oct 2007; Robin H. Johnson <robbat2@gentoo.org>
- -files/upsstats-upsset-link-2.0.4.patch, -files/upsdrv.rc6,
- -files/upsstats-upsset-link.patch:
- Remove old patches.
-
-*nut-2.2.0 (09 Oct 2007)
-
- 09 Oct 2007; Robin H. Johnson <robbat2@gentoo.org>
- +files/lighttpd_nut.conf-2.2.0, +nut-2.2.0.ebuild:
- Bug #184595, version bump to new major version. Read the UPGRADING file
- provided by upstream, there is a strong chance you need to change your
- config files.
-
- 09 Oct 2007; Robin H. Johnson <robbat2@gentoo.org> -nut-2.0.0.ebuild,
- -nut-2.0.0-r1.ebuild, -nut-2.0.1_pre4.ebuild, -nut-2.0.3.ebuild,
- -nut-2.0.3-r1.ebuild, -nut-2.0.4.ebuild, -nut-2.0.4-r1.ebuild,
- -nut-2.0.5.ebuild, -nut-2.0.5-r1.ebuild, nut-2.0.5-r2.ebuild:
- Clean up old ebuilds and fix quoting in present latest version.
-
- 09 Oct 2007; Robin H. Johnson <robbat2@gentoo.org> files/upsd.rc6:
- Fix bug #195125 for pidfile locations.
-
- 01 Jul 2007; Raúl Porcel <armin76@gentoo.org> nut-2.0.5-r2.ebuild:
- Add ~alpha keyword as some user requested it
-
- 29 Jun 2007; Raúl Porcel <armin76@gentoo.org> nut-2.0.0.ebuild,
- nut-2.0.0-r1.ebuild, nut-2.0.1_pre4.ebuild, nut-2.0.3.ebuild,
- nut-2.0.3-r1.ebuild, nut-2.0.4.ebuild, nut-2.0.4-r1.ebuild,
- nut-2.0.5.ebuild, nut-2.0.5-r1.ebuild, nut-2.0.5-r2.ebuild:
- Drop alpha keyword as nobody can't test this
-
- 16 Jun 2007; Tobias Scherbaum <dertobi123@gentoo.org> nut-2.0.5-r2.ebuild:
- ppc stable, bug #178018
-
- 14 May 2007; Markus Ullmann <jokey@gentoo.org> nut-2.0.5-r2.ebuild:
- Stable on x86 wrt bug #178018
-
- 12 May 2007; Markus Rothe <corsair@gentoo.org> nut-2.0.5-r2.ebuild:
- Stable on ppc64; bug #178018
-
- 12 May 2007; Steve Dibb <beandog@gentoo.org> nut-2.0.5-r2.ebuild:
- amd64 stable, bug 178018
-
- 11 May 2007; Gustavo Zacarias <gustavoz@gentoo.org> nut-2.0.5-r2.ebuild:
- Stable on sparc wrt #178018
-
-*nut-2.0.5-r2 (11 May 2007)
-
- 11 May 2007; Robin H. Johnson <robbat2@gentoo.org> +nut-2.0.5-r2.ebuild:
- Bug #177767, nut now needs to be in the uucp group instead of the tty group
- due to changes in udev.
-
- 28 Apr 2007; Torsten Veller <tove@gentoo.org> nut-2.0.0.ebuild,
- nut-2.0.0-r1.ebuild, nut-2.0.1_pre4.ebuild, nut-2.0.3.ebuild,
- nut-2.0.3-r1.ebuild, nut-2.0.4.ebuild, nut-2.0.4-r1.ebuild,
- nut-2.0.5.ebuild, nut-2.0.5-r1.ebuild:
- Fix *initd, *confd and *envd calls (#173884, #174266)
-
- 25 Apr 2007; Daniel Black <dragonheart@gentoo.org> files/upsd.rc6:
- added reload to upsd init script. bug #175928
-
- 22 Apr 2007; Tobias Scherbaum <dertobi123@gentoo.org> nut-2.0.5-r1.ebuild:
- ppc stable, bug #173878
-
- 19 Apr 2007; Gustavo Zacarias <gustavoz@gentoo.org> nut-2.0.5-r1.ebuild:
- Stable on sparc wrt #173878
-
- 11 Apr 2007; Markus Rothe <corsair@gentoo.org> nut-2.0.5-r1.ebuild:
- Stable on ppc64; bug #173878
-
- 09 Apr 2007; Raúl Porcel <armin76@gentoo.org> nut-2.0.5-r1.ebuild:
- x86 stable wrt bug 173878
-
- 09 Apr 2007; Peter Weller <welp@gentoo.org> nut-2.0.5-r1.ebuild:
- Stable on amd64 wrt bug 173878
-
- 18 Mar 2007; Steve Dibb <beandog@gentoo.org> nut-2.0.4-r1.ebuild:
- amd64 stable, bug 148013
-
- 02 Mar 2007; nixnut <nixnut@gentoo.org> nut-2.0.4-r1.ebuild:
- Stable on ppc wrt bug 148013
-
-*nut-2.0.5-r1 (25 Feb 2007)
-
- 25 Feb 2007; Robin H. Johnson <robbat2@gentoo.org>
- +files/nut-2.0.5-bcmxcp-3phase.patch, +nut-2.0.5-r1.ebuild:
- Patch from upstream for a bug with the bcmxcp driver.
-
- 25 Feb 2007; Robin H. Johnson <robbat2@gentoo.org> nut-2.0.5.ebuild:
- Fix bug #157069.
-
-*nut-2.0.5 (25 Feb 2007)
-
- 25 Feb 2007; Robin H. Johnson <robbat2@gentoo.org>
- +files/upsstats-upsset-link-2.0.5.patch, +nut-2.0.5.ebuild:
- Version bump, bug #162657.
-
- 26 Oct 2006; <blubb@gentoo.org> nut-2.0.4-r1.ebuild:
- back to ~amd64 because libusb was de-keyworded as well; bug 148013 comment
- 13 and bug 131756
-
- 05 Oct 2006; Joseph Jezak <josejx@gentoo.org> nut-2.0.4-r1.ebuild:
- Made the change back to ~ppc, I'm not sure what happened with wormo's commit.
-
- 03 Oct 2006; Stephanie Lockwood-Childs <wormo@gentoo.org>
- nut-2.0.4-r1.ebuild:
- back to ~ppc due to libusb-0.1.12 non-root scanning problems (Bug #131756)
-
- 30 Sep 2006; Daniel Gryniewicz <dang@gentoo.org> nut-2.0.4-r1.ebuild:
- Marked stable on amd64 for bug #148013
-
- 28 Sep 2006; Stephanie Lockwood-Childs <wormo@gentoo.org>
- nut-2.0.4-r1.ebuild:
- stable on ppc (Bug #148013)
-
- 28 Sep 2006; Jason Wever <weeve@gentoo.org> nut-2.0.4-r1.ebuild:
- Stable on SPARC wrt bug #148013.
-
- 28 Sep 2006; Brent Baude <ranger@gentoo.org> nut-2.0.4-r1.ebuild:
- Marking nut-2.0.4-r1 ppc64 stable per bug 148013
-
- 28 Sep 2006; Fernando J. Pereda <ferdy@gentoo.org> nut-2.0.4-r1.ebuild:
- Stable on alpha as per bug #148013
-
- 28 Sep 2006; Joshua Jackson <tsunam@gentoo.org> nut-2.0.4-r1.ebuild:
- Stable x86; bug #148013
-
- 15 Sep 2006; Robin H. Johnson <robbat2@gentoo.org> nut-2.0.4-r1.ebuild:
- Add gpasswd usage to ensure tty group.
-
-*nut-2.0.4-r1 (13 Aug 2006)
-
- 13 Aug 2006; Robin H. Johnson <robbat2@gentoo.org> +nut-2.0.4-r1.ebuild:
- Bug #143813, force usage of a new version of libusb to avoid problems with
- newhidups.
-
-*nut-2.0.4 (30 Jul 2006)
-
- 30 Jul 2006; Robin H. Johnson <robbat2@gentoo.org>
- +files/upsstats-upsset-link-2.0.4.patch, +nut-2.0.4.ebuild:
- Bug #141897, version bump.
-
- 22 Jul 2006; Robin H. Johnson <robbat2@gentoo.org> nut-2.0.3-r1.ebuild:
- As per bug #138389, add a warning message.
-
- 07 Jul 2006; Joshua Jackson <tsunam@gentoo.org> nut-2.0.3-r1.ebuild:
- Stable x86; bug #138389
-
- 03 Jul 2006; Simon Stelling <blubb@gentoo.org> nut-2.0.3-r1.ebuild:
- stable on amd64
-
- 02 Jul 2006; Lars Weiler <pylon@gentoo.org> nut-2.0.3-r1.ebuild:
- Stable on ppc; bug #138389.
-
- 28 Jun 2006; Jason Wever <weeve@gentoo.org> nut-2.0.3-r1.ebuild:
- Stable on SPARC wrt bug #138389.
-
- 28 Jun 2006; Brent Baude <ranger@gentoo.org> nut-2.0.3-r1.ebuild:
- Marking nut-2.0.3-r1 ppc64 stable for bug #138389
-
- 27 May 2006; Robin H. Johnson <robbat2@gentoo.org> nut-2.0.3-r1.ebuild:
- Bug #133827, support for the fbsd/2.4 users.
-
- 20 May 2006; Diego Pettenò <flameeyes@gentoo.org> nut-2.0.3-r1.ebuild:
- Add ~x86-fbsd keyword.
-
-*nut-2.0.3-r1 (18 May 2006)
-
- 18 May 2006; Robin H. Johnson <robbat2@gentoo.org>
- +files/lighttpd_nut.conf, +files/upsstats-upsset-link.patch,
- +nut-2.0.3-r1.ebuild:
- Clean up permissions code, add lighttpd config, and patch for upsset.cgi
- link from upsstats.cgi.
-
-*nut-2.0.3 (18 May 2006)
-
- 18 May 2006; Robin H. Johnson <robbat2@gentoo.org> +nut-2.0.3.ebuild:
- Version bump and clean up of Nut (bug #85296), resolving bugs for SSL, GD
- (bug #62745), USB (bug #73074), and moving portions to /sbin and /lib/nut to
- allow for poweroff where /usr is a seperate partition (bug #88832). Also add
- udev rules for new USB devices.
-
- 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 <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 <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
deleted file mode 100644
index 8b3ea7b..0000000
--- a/sys-power/nut/Manifest
+++ /dev/null
@@ -1,11 +0,0 @@
-AUX lighttpd_nut.conf-2.2.0 971 RMD160 745f65fac2b33e0f2baef7213c2d745c4ebb3dd5 SHA1 62f0bc9d331728023382befb3fc395dc71db032d SHA256 f0b1b3e574766557dbf92704eb4cf81b166bb4db68ddecee581cb8b0b6638f65
-AUX nut-2.2.2-init.d-upsd 790 RMD160 10e977b7dc2593ddef022397d2e0d8d69d899c38 SHA1 f6a7ebc55107e85c997b8c726488c44cb82430ab SHA256 81b0b82850d528d682544b452599159510dd93ba43e2c6133d0c9aab0b4c0210
-AUX nut-2.2.2-init.d-upsdrv 979 RMD160 a87cdd8779977d0affce5373fff57f0dd832e75f SHA1 97c1cb381f6de1fa6993caa6a93cad8dfc98adac SHA256 72f41864cef57aea0617f75cc6478c1c8cffc979e0e4136d179dcf665915fa0d
-AUX nut-2.2.2-init.d-upsmon 675 RMD160 bb8d89daeaf0f4ee7debf05756162a9c14663878 SHA1 daa18b2f0ac2b83adc2a61b705f277ebc3b3cc8a SHA256 9aa62b0275df64c29ddbb5e987d237c0bfa0b41a0fed1c6776a387fe6709fe0d
-AUX nut-2.4.1-no-libdummy.patch 791 RMD160 2a8ed4c000b3bd2a271e1e169486a0cd1cbdb809 SHA1 a48e71e06bb590cb296b7deead51b7b31420d68b SHA256 c9cf34980e79a4b9f07c338d10bc4ef4e90608ee7543cbc483898ee4f3f4f2a4
-AUX nut-2.6.2-lowspeed-buffer-size.patch 534 RMD160 f9b61a7bd309d2516729cd060a39dc227893be7e SHA1 af3b47519f338a5d7a95e9d81ca932023d4ed490 SHA256 77bc0f996d2eb9c3d7d0cf68f5053108df54a6ce6baf2d7b3edfd1f2cfafd41b
-AUX nut.powerfail.initd 1395 RMD160 46b06189163777fc7f944efe8647b11df90f01db SHA1 a0f776ed02cf733dcdc566e58e63ccfe88352d37 SHA256 3ef933724169dbe08645fed19674a1576ced5f54a88985b5b32baf2a9c178ae7
-DIST nut-2.6.3.tar.gz 1952115 RMD160 c9067d68b3fb3347fa058933af0cd9a327a2083f SHA1 d97aea279bea65714a0c492d13fb6b2d4b5b43df SHA256 34913b729d2032faaf6f31e800a400bcd874f1f4daacae6fe0d388bd235b633a
-EBUILD nut-2.6.3.ebuild 6866 RMD160 c86cb52a4ba61cd2142ed13d9cd1844d1f8edae6 SHA1 41ee2d8598efd849bc5c884b809bacfdb9a955cf SHA256 6df1ca98b63510f08d2f8540ac72dd5250f1b92c22cf8b24e7d614143e449ed3
-MISC ChangeLog 20975 RMD160 a66efc29239d6f314e3c6864893b9f80fec864ee SHA1 79c4e358a7b0e66e3ac75e0c0845f28b48f865aa SHA256 64d823601435d4c19f0e71d5259066518c3043443a344ccbe612605f85c76d45
-MISC metadata.xml 242 RMD160 a29da25198f8b2a4ab073a371a3562c331c1fe56 SHA1 45059b47e69d8b5313ccfede532e6729fb6d428a SHA256 e82b2cc8fc830e2925c899d4b88c444b0b52e2de9f1bc28d5e08b545a195854f
diff --git a/sys-power/nut/files/lighttpd_nut.conf-2.2.0 b/sys-power/nut/files/lighttpd_nut.conf-2.2.0
deleted file mode 100644
index 958ac4d..0000000
--- a/sys-power/nut/files/lighttpd_nut.conf-2.2.0
+++ /dev/null
@@ -1,23 +0,0 @@
-###############################################################################
-# Lighttpd configuration for using NUT under Gentoo Linux.
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/lighttpd_nut.conf-2.2.0,v 1.1 2007/10/09 00:48:44 robbat2 Exp $
-###############################################################################
-
-# Simple copy this to /etc/lighttpd/ and include it in your lighttpd.conf.
-# It will make NUT available at http://$HOST/nut/
-
-server.modules += ("mod_cgi")
-
-# If you want to limit it to some host, uncomment the host check and modify it to your needs.
-# $HTTP["host"] == "www2.example.org" {
-alias.url += ( "/nut/" => "/usr/share/nut/cgi/" )
-$HTTP["url"] =~ "^/nut/" {
- dir-listing.activate = "disable"
- cgi.assign = ( ".cgi" => "" )
- index-file.names = ( "upsstats.cgi" )
-}
-# }
-
-# vim: set ft=conf foldmethod=marker et :
diff --git a/sys-power/nut/files/nut-2.2.2-init.d-upsd b/sys-power/nut/files/nut-2.2.2-init.d-upsd
deleted file mode 100755
index 8f89539..0000000
--- a/sys-power/nut/files/nut-2.2.2-init.d-upsd
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/nut-2.2.2-init.d-upsd,v 1.2 2011/12/04 10:43:19 swegener Exp $
-
-extra_started_commands="reload"
-
-pidfile=/var/lib/nut/upsd.pid
-bin=/usr/sbin/upsd
-
-depend() {
- need net
- before upsmon
- after upsdrv
-}
-
-start() {
- ebegin "Starting upsd"
- # clean up first
- pkill -u root,nut -x ${bin}
- sleep 1s
- rm -f ${pidfile}
- # now start up
- start-stop-daemon --start --quiet --exec ${bin}
- eend $?
-}
-
-stop() {
- ebegin "Stopping upsd"
- start-stop-daemon --stop --quiet --pidfile ${pidfile}
- eend $?
-}
-
-reload() {
- ebegin "Reloading upsd"
- start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile ${pidfile}
- eend $?
-}
diff --git a/sys-power/nut/files/nut-2.2.2-init.d-upsdrv b/sys-power/nut/files/nut-2.2.2-init.d-upsdrv
deleted file mode 100755
index 5cbae7f..0000000
--- a/sys-power/nut/files/nut-2.2.2-init.d-upsdrv
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/nut-2.2.2-init.d-upsdrv,v 1.2 2011/12/04 10:43:19 swegener Exp $
-
-extra_commands="stopall startall"
-
-UPSNAME=${SVCNAME#*.}
-msgtext="drivers"
-[ "${UPSNAME}" == "${SVCNAME}" ] && UPSNAME=''
-[ -n "$UPSNAME" ] && msgtext="driver for $UPSNAME"
-
-depend() {
- before upsd
- [ "${UPSNAME}" != '' ] && provide upsdrv
-}
-
-start() {
- _dostart "$UPSNAME" "$msgtext"
-}
-stop() {
- _dostop "$UPSNAME" "$msgtext"
-}
-
-startall() {
- _dostart "" "$msgtext"
-}
-stopall() {
- _dostop "" "$msgtext"
-}
-
-_dostart() {
- ebegin "Starting UPS $msgtext"
- /usr/sbin/upsdrvctl start $UPSNAME
- eend $? "Failed to start UPS $msgtext!"
-}
-
-_dostop() {
- # The pidfile names depend on the actual UPS name
- # Not in our control at all
- ebegin "Stopping UPS $msgtext"
- /usr/sbin/upsdrvctl stop $UPSNAME
- eend $? "Failed to stop UPS $msgtext!"
-}
diff --git a/sys-power/nut/files/nut-2.2.2-init.d-upsmon b/sys-power/nut/files/nut-2.2.2-init.d-upsmon
deleted file mode 100755
index 4aefba0..0000000
--- a/sys-power/nut/files/nut-2.2.2-init.d-upsmon
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/nut-2.2.2-init.d-upsmon,v 1.3 2011/12/04 10:43:19 swegener Exp $
-
-extra_started_commands="reload"
-
-pidfile=/var/run/upsmon.pid
-bin=/usr/sbin/upsmon
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting upsmon"
- start-stop-daemon --start --quiet --exec ${bin}
- eend $?
-}
-
-stop() {
- ebegin "Stopping upsmon"
- start-stop-daemon --stop --quiet --pidfile ${pidfile}
- eend $?
-}
-reload() {
- ebegin "Reloading upsd"
- start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile ${pidfile}
- eend $?
-}
diff --git a/sys-power/nut/files/nut-2.4.1-no-libdummy.patch b/sys-power/nut/files/nut-2.4.1-no-libdummy.patch
deleted file mode 100644
index 31a8e73..0000000
--- a/sys-power/nut/files/nut-2.4.1-no-libdummy.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff -Nuar nut-2.4.1.orig/drivers/Makefile.am nut-2.4.1/drivers/Makefile.am
---- nut-2.4.1.orig/drivers/Makefile.am 2008-07-04 20:12:38.201211819 -0700
-+++ nut-2.4.1/drivers/Makefile.am 2008-07-04 20:12:59.829462787 -0700
-@@ -211,10 +211,12 @@
- upscode2.h victronups.h powerpanel.h powerp-bin.h powerp-txt.h \
- upshandler.h netxml-ups.h mge-xml.h
-
-+EXTRA_LIBRARIES =
-+
- # Define a dummy library so that Automake builds rules for the
- # corresponding object files. This library is not actually built,
--EXTRA_LIBRARIES = libdummy.a
--libdummy_a_SOURCES = main.c dstate.c serial.c
-+#EXTRA_LIBRARIES += libdummy.a
-+#libdummy_a_SOURCES = main.c dstate.c serial.c
-
- # the nuthalmain library combines the code for main-hal.c and
- # dstate-hal.c. It is necessary for Automake-technical reasons,
diff --git a/sys-power/nut/files/nut-2.6.2-lowspeed-buffer-size.patch b/sys-power/nut/files/nut-2.6.2-lowspeed-buffer-size.patch
deleted file mode 100644
index 9806d07..0000000
--- a/sys-power/nut/files/nut-2.6.2-lowspeed-buffer-size.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-http://bugs.gentoo.org/show_bug.cgi?id=318937
-http://boxster.ghz.cc/projects/nut/changeset/2407
-
-Respun from nut-2.4.3-lowspeed-buffer-size.patch
-
-Index: /trunk/drivers/libhid.c
-===================================================================
---- /trunk/drivers/libhid.c (revision 2336)
-+++ /trunk/drivers/libhid.c (revision 2407)
-@@ -142,5 +142,5 @@
- int id = pData->ReportID;
- int r;
-- unsigned char buf[SMALLBUF];
-+ unsigned char buf[8]; /* Maximum size for low-speed USB devices */
-
- if (rbuf->ts[id] + age > time(NULL)) {
diff --git a/sys-power/nut/files/nut.powerfail.initd b/sys-power/nut/files/nut.powerfail.initd
deleted file mode 100644
index 2765c46..0000000
--- a/sys-power/nut/files/nut.powerfail.initd
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/nut.powerfail.initd,v 1.3 2010/06/25 17:21:03 robbat2 Exp $
-
-description='Signal the UPS to kill power in a power failure condition'
-
-depend() {
- # This is only for baselayout2
- if [ -f /etc/init.d/sysfs ]; then
- keyword -jail -lxc -openvz -prefix -uml -vserver -xenu -timeout
- need mount-ro
- fi
-}
-
-start() {
- if [ ! -f /etc/init.d/sysfs ]; then
- eerror "The $SVCNAME init-script is written for baselayout-2!"
- eerror "Please do not use it with baselayout-1!".
- return 1
- fi
- local UPS_CTL UPS_POWERDOWN
-
- if [ -f /etc/killpower ]; then
- UPS_CTL=/sbin/upsdrvctl
- UPS_POWERDOWN="${UPS_CTL} shutdown"
- elif [ -f /etc/apcupsd/powerfail ]; then
- UPS_CTL=/sbin/apcupsd
- UPS_POWERDOWN="${UPS_CTL} --killpower"
- else
- ewarn "UPS powerfail script scheduled, but no poweroff commands found."
- return 0
- fi
-
- if [ -f "${UPS_CTL}" -a -x "${UPS_CTL}" ]; then
- ebegin 'Signaling UPS to kill power'
- ${UPS_POWERDOWN}
- eend $?
-
- ebegin 'Halt system and wait for the UPS to kill our power'
- /sbin/halt -id
- # If the sleep gets hit, something is wrong...
- # do NOT restart the system.
- while [ 1 ]; do sleep 60; done
- else
- ewarn "UPS powerfail script scheduled, and flags found, but ${UPS_CTL} missing."
- fi
-}
-
diff --git a/sys-power/nut/metadata.xml b/sys-power/nut/metadata.xml
deleted file mode 100644
index 557ca51..0000000
--- a/sys-power/nut/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer>
- <email>robbat2@gentoo.org</email>
- <name>Robin H. Johnson</name>
- </maintainer>
-</pkgmetadata>
diff --git a/sys-power/nut/nut-2.6.3.ebuild b/sys-power/nut/nut-2.6.3.ebuild
deleted file mode 100644
index d1d9118..0000000
--- a/sys-power/nut/nut-2.6.3.ebuild
+++ /dev/null
@@ -1,218 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/nut-2.6.2.ebuild,v 1.1 2011/11/07 23:28:29 robbat2 Exp $
-
-EAPI=2
-inherit autotools bash-completion-r1 eutils fixheadtails multilib
-
-MY_P=${P/_/-}
-
-DESCRIPTION="Network-UPS Tools"
-HOMEPAGE="http://www.networkupstools.org/"
-# Nut mirrors are presently broken
-SRC_URI="http://random.networkupstools.org/source/${PV%.*}/${MY_P}.tar.gz
- http://www.networkupstools.org/source/${PV%.*}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE="cgi snmp usb ssl tcpd xml"
-
-RDEPEND="cgi? ( >=media-libs/gd-2[png] )
- snmp? ( net-analyzer/net-snmp )
- usb? ( virtual/libusb:0 )
- ssl? ( >=dev-libs/openssl-1 )
- tcpd? ( sys-apps/tcp-wrappers )
- xml? ( >=net-libs/neon-0.25.0 )
- >=sys-fs/udev-114"
-DEPEND="$RDEPEND
- >=sys-apps/sed-4
- virtual/pkgconfig"
-
-S=${WORKDIR}/${MY_P}
-
-# public files should be 644 root:root
-NUT_PUBLIC_FILES="/etc/nut/{ups,upssched}.conf"
-# private files should be 640 root:nut - readable by nut, writeable by root,
-NUT_PRIVATE_FILES="/etc/nut/{upsd.conf,upsd.users,upsmon.conf}"
-# public files should be 644 root:root, only installed if USE=cgi
-NUT_CGI_FILES="/etc/nut/{{hosts,upsset}.conf,upsstats{,-single}.html}"
-
-pkg_setup() {
- enewgroup nut 84
- enewuser nut 84 -1 /var/lib/nut nut,uucp
- # As of udev-104, NUT must be in uucp and NOT in tty.
- gpasswd -d nut tty 2>/dev/null
- gpasswd -a nut uucp 2>/dev/null
- # in some cases on old systems it wasn't in the nut group either!
- gpasswd -a nut nut 2>/dev/null
- warningmsg ewarn
-}
-
-src_prepare() {
- ht_fix_file configure.in
-
- epatch "${FILESDIR}"/${PN}-2.4.1-no-libdummy.patch
- epatch "${FILESDIR}"/${PN}-2.6.2-lowspeed-buffer-size.patch
-
- sed -e "s:GD_LIBS.*=.*-L/usr/X11R6/lib \(.*\) -lXpm -lX11:GD_LIBS=\"\1:" \
- -i configure.in || die
-
- sed -e "s:52.nut-usbups.rules:70-nut-usbups.rules:" \
- -i scripts/udev/Makefile.am || die
-
- rm -f ltmain.sh m4/lt* m4/libtool.m4
-
- sed -i \
- -e 's:@LIBSSL_LDFLAGS@:@LIBSSL_LIBS@:' \
- lib/libupsclient{.pc,-config}.in || die #361685
-
- eautoreconf
-}
-
-src_configure() {
- local myconf
-
- if [ -n "${NUT_DRIVERS}" ]; then
- myconf="${myconf} --with-drivers=${NUT_DRIVERS// /,}"
- fi
-
- use cgi && myconf="${myconf} --with-cgipath=/usr/share/nut/cgi"
-
- # TODO: USE flag for sys-power/powerman
- econf \
- --sysconfdir=/etc/nut \
- --datarootdir=/usr/share/nut \
- --datadir=/usr/share/nut \
- --disable-static \
- --with-dev \
- $(use_with usb) \
- --without-hal \
- $(use_with snmp) \
- $(use_with xml neon) \
- --without-powerman \
- $(use_with ssl) \
- $(use_with tcpd wrap) \
- $(use_with cgi) \
- --with-statepath=/var/lib/nut \
- --with-drvpath=/$(get_libdir)/nut \
- --with-htmlpath=/usr/share/nut/html \
- --with-user=nut \
- --with-group=nut \
- --with-logfacility=LOG_DAEMON \
- ${myconf}
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
-
- find "${D}" -name '*.la' -exec rm -f {} +
-
- dodir /sbin
- dosym /$(get_libdir)/nut/upsdrvctl /sbin/upsdrvctl
- # This needs to exist for the scripts
- dosym /$(get_libdir)/nut/upsdrvctl /usr/sbin/upsdrvctl
-
- if use cgi; then
- elog "CGI monitoring scripts are installed in /usr/share/nut/cgi."
- elog "copy them to your web server's ScriptPath to activate (this is a"
- elog "change from the old location)."
- elog "If you use lighttpd, see lighttpd_nut.conf in the documentation."
- fi
-
- # this must be done after all of the install phases
- for i in "${D}"/etc/nut/*.sample ; do
- mv "${i}" "${i/.sample/}"
- done
-
- dodoc AUTHORS ChangeLog docs/*.txt MAINTAINERS NEWS README TODO UPGRADING || die
-
- newdoc lib/README README.lib || die
- newdoc "${FILESDIR}"/lighttpd_nut.conf-2.2.0 lighttpd_nut.conf || die
-
- docinto cables
- dodoc docs/cables/* || die
-
- newinitd "${FILESDIR}"/nut-2.2.2-init.d-upsd upsd || die
- newinitd "${FILESDIR}"/nut-2.2.2-init.d-upsdrv upsdrv || die
- newinitd "${FILESDIR}"/nut-2.2.2-init.d-upsmon upsmon || die
- newinitd "${FILESDIR}"/nut.powerfail.initd nut.powerfail || die
-
- keepdir /var/lib/nut
-
- einfo "Setting up permissions on files and directories"
- fperms 0700 /var/lib/nut
- fowners nut:nut /var/lib/nut
-
- # Do not remove eval here, because the variables contain shell expansions.
- eval fperms 0640 ${NUT_PRIVATE_FILES}
- eval fowners root:nut ${NUT_PRIVATE_FILES}
-
- # Do not remove eval here, because the variables contain shell expansions.
- eval fperms 0644 ${NUT_PUBLIC_FILES}
- eval fowners root:root ${NUT_PUBLIC_FILES}
-
- # Do not remove eval here, because the variables contain shell expansions.
- if use cgi; then
- eval fperms 0644 ${NUT_CGI_FILES}
- eval fowners root:root ${NUT_CGI_FILES}
- fi
-
- # this is installed for 2.4 and fbsd guys
- if ! has_version sys-fs/udev; then
- einfo "Installing non-udev hotplug support"
- insinto /etc/hotplug/usb
- insopts -m 755
- doins scripts/hotplug/nut-usbups.hotplug
- fi
-
- newbashcomp "${S}"/scripts/misc/nut.bash_completion ${PN}
-}
-
-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
-
- # Do not remove eval here, because the variables contain shell expansions.
- eval chown root:nut "${ROOT}"${NUT_PRIVATE_FILES} 2>/dev/null
- eval chmod 0640 "${ROOT}"${NUT_PRIVATE_FILES} 2>/dev/null
-
- # Do not remove eval here, because the variables contain shell expansions.
- eval chown root:root "${ROOT}"${NUT_PUBLIC_FILES} 2>/dev/null
- eval chmod 0644 "${ROOT}"${NUT_PUBLIC_FILES} 2>/dev/null
-
- # Do not remove eval here, because the variables contain shell expansions.
- if use cgi; then
- eval chown root:root "${ROOT}"${NUT_CGI_FILES} 2>/dev/null
- eval chmod 0644 "${ROOT}"${NUT_CGI_FILES} 2>/dev/null
- fi
-
- warningmsg elog
-}
-
-warningmsg() {
- msgfunc="$1"
- [ -z "$msgfunc" ] && die "msgfunc not specified in call to warningmsg!"
- ${msgfunc} "Please note that NUT now runs under the 'nut' user."
- ${msgfunc} "NUT is in the uucp group for access to RS-232 UPS."
- ${msgfunc} "However if you use a USB UPS you may need to look at the udev or"
- ${msgfunc} "hotplug rules that are installed, and alter them suitably."
- ${msgfunc} ''
- ${msgfunc} "You are strongly advised to read the UPGRADING file provided by upstream."
- ${msgfunc} ''
- ${msgfunc} "Please note that upsdrv is NOT automatically started by upsd anymore."
- ${msgfunc} "If you have multiple UPS units, you can use their NUT names to"
- ${msgfunc} "have a service per UPS:"
- ${msgfunc} "ln -s /etc/init.d/upsdrv /etc/init.d/upsdrv.\$UPSNAME"
- ${msgfunc} ''
- ${msgfunc} 'If you want apcupsd to power off your UPS when it'
- ${msgfunc} 'shuts down your system in a power failure, you must'
- ${msgfunc} 'add nut.powerfail to your shutdown runlevel:'
- ${msgfunc} ''
- ${msgfunc} 'rc-update add nut.powerfail shutdown'
- ${msgfunc} ''
-
-}