diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-02-17 19:17:33 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-02-17 19:17:33 +0000 |
commit | fd8f95615df92a3edbc2ddcd5b4ec862cc9301f9 (patch) | |
tree | 796308b8425483f6a943b2b9bb7cea53fce62f32 /www-apps | |
parent | Stable ppc-macos (diff) | |
download | gentoo-2-fd8f95615df92a3edbc2ddcd5b4ec862cc9301f9.tar.gz gentoo-2-fd8f95615df92a3edbc2ddcd5b4ec862cc9301f9.tar.bz2 gentoo-2-fd8f95615df92a3edbc2ddcd5b4ec862cc9301f9.zip |
Bug #82382: bump.
(Portage version: 2.0.51.16)
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/nut/ChangeLog | 7 | ||||
-rw-r--r-- | www-apps/nut/Manifest | 15 | ||||
-rw-r--r-- | www-apps/nut/files/digest-nut-2.0.1_pre4 | 1 | ||||
-rw-r--r-- | www-apps/nut/nut-2.0.1_pre4.ebuild | 129 |
4 files changed, 139 insertions, 13 deletions
diff --git a/www-apps/nut/ChangeLog b/www-apps/nut/ChangeLog index a2a9d0dc96c4..f73ea1f39699 100644 --- a/www-apps/nut/ChangeLog +++ b/www-apps/nut/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-apps/nut # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/nut/ChangeLog,v 1.10 2005/02/14 07:57:16 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/nut/ChangeLog,v 1.11 2005/02/17 19:17:33 robbat2 Exp $ + +*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) diff --git a/www-apps/nut/Manifest b/www-apps/nut/Manifest index d591717763dc..b829fee14854 100644 --- a/www-apps/nut/Manifest +++ b/www-apps/nut/Manifest @@ -1,21 +1,12 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 b7de3d9347689621cbbdddb62e1e10ca nut-2.0.0.ebuild 3082 +MD5 40f854d794b02f979bab7a34331f6465 nut-2.0.1_pre4.ebuild 3163 MD5 3d7be545111c419f078947ee2b19d4f1 nut-2.0.0-r1.ebuild 3104 -MD5 439da7c205ddba803e35b36c37348e52 ChangeLog 6771 +MD5 73f3828e817025bcb025fd0f4d1ddc88 ChangeLog 6900 MD5 91a159b983332d5ed0fb985cc1fe1b80 metadata.xml 330 MD5 891b50cff5827a4e77573ee8f2f40e48 files/digest-nut-2.0.0 61 MD5 2d1326c3eefc364c474ea2f191810bfc files/upsdrv.rc6-r1 489 MD5 057b35a5ced412ebf01c952b55d2e4db files/upsd.rc6 585 MD5 d369e7d9bf8a83e47b0a958ec30baf43 files/upsdrv.rc6 477 +MD5 23c9faa5fc009d873bac5c36b1d02b4e files/digest-nut-2.0.1_pre4 66 MD5 891b50cff5827a4e77573ee8f2f40e48 files/digest-nut-2.0.0-r1 61 MD5 5962635c2a91e3df315cc69f5aa52f6a files/upsmon.rc6 471 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.6 (GNU/Linux) -Comment: Robbat2 @ Orbis-Terrarum Networks - -iD8DBQFCEFnnPpIsIjIzwiwRAoZ1AJsEF2h5ODhZnwV6Yv2RFvomoNRFkQCg4QWJ -Aqd+n1andiinVFHThzP5q/I= -=UFhe ------END PGP SIGNATURE----- diff --git a/www-apps/nut/files/digest-nut-2.0.1_pre4 b/www-apps/nut/files/digest-nut-2.0.1_pre4 new file mode 100644 index 000000000000..890f606ffcfa --- /dev/null +++ b/www-apps/nut/files/digest-nut-2.0.1_pre4 @@ -0,0 +1 @@ +MD5 399f79406e07aa2a689bc6a119b0fcad nut-2.0.1-pre4.tar.gz 563526 diff --git a/www-apps/nut/nut-2.0.1_pre4.ebuild b/www-apps/nut/nut-2.0.1_pre4.ebuild new file mode 100644 index 000000000000..83d38ef8d5eb --- /dev/null +++ b/www-apps/nut/nut-2.0.1_pre4.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/nut/nut-2.0.1_pre4.ebuild,v 1.1 2005/02/17 19:17:33 robbat2 Exp $ + +inherit 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" + +S=${WORKDIR}/${MY_P/-pre4//} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64" +IUSE="cgi snmp usb" + +RDEPEND="cgi? ( media-libs/gd ) + snmp? ( virtual/snmp )" +DEPEND="$RDEPEND + >=sys-apps/sed-4 + >=sys-devel/autoconf-2.58" + +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 +} |