diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2003-11-21 04:49:48 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2003-11-21 04:49:48 +0000 |
commit | 18b0f6d1abfd74a1cc05853973beaab87241372d (patch) | |
tree | 63d76d5961e765ca719d0979be30a3468dd17a68 /net-misc/nut | |
parent | version bump (diff) | |
download | gentoo-2-18b0f6d1abfd74a1cc05853973beaab87241372d.tar.gz gentoo-2-18b0f6d1abfd74a1cc05853973beaab87241372d.tar.bz2 gentoo-2-18b0f6d1abfd74a1cc05853973beaab87241372d.zip |
version bump
Diffstat (limited to 'net-misc/nut')
-rw-r--r-- | net-misc/nut/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/nut/Manifest | 4 | ||||
-rw-r--r-- | net-misc/nut/files/digest-nut-1.5.8 | 1 | ||||
-rw-r--r-- | net-misc/nut/nut-1.5.8.ebuild | 89 |
4 files changed, 98 insertions, 3 deletions
diff --git a/net-misc/nut/ChangeLog b/net-misc/nut/ChangeLog index 79a267803f84..b4df58bc78b3 100644 --- a/net-misc/nut/ChangeLog +++ b/net-misc/nut/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/nut # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nut/ChangeLog,v 1.22 2003/10/29 23:57:26 max Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/nut/ChangeLog,v 1.23 2003/11/21 04:49:45 robbat2 Exp $ + +*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) diff --git a/net-misc/nut/Manifest b/net-misc/nut/Manifest index 7b376851da59..880dcd20127d 100644 --- a/net-misc/nut/Manifest +++ b/net-misc/nut/Manifest @@ -1,13 +1,13 @@ MD5 2c9fa39986df9dcb14d2f67dcbf0234b nut-1.4.0.ebuild 3361 MD5 310e9a3f33c9e15939745e45489556bc nut-1.0.0.ebuild 2526 -MD5 13de4d6527b26cd3b8e6459ca61fa366 nut-1.5.8.ebuild 2266 +MD5 aeaf199b8f011b0656e33d7840fd95ef nut-1.5.8.ebuild 2270 MD5 fa6914c5f0e8bd3bdf5cb180cda1a7db nut-1.2.1.ebuild 2920 MD5 78a59e58e70f1e9bfe6aa60ca169f4ed nut-1.3.6.ebuild 3361 MD5 2609435c9197d13e9aa41608ddad8f78 nut-1.5.7.ebuild 2284 MD5 b0b485ebdd80433949e448f5687a57e4 nut-1.2.2.ebuild 3282 MD5 47bd3e43bdb0b893d2ae0801abc2296a nut-1.4.0-r3.ebuild 2283 MD5 47b88ec6b9c1a051634d18ab1f8aeb5e nut-1.2.1-r1.ebuild 3236 -MD5 d6520aa79105d81405785b56591083da ChangeLog 3609 +MD5 13fc8ac12e6c2c3c6e2344a695d97255 ChangeLog 3726 MD5 5b93ea4cc6824bb99a84599be7f8c67e nut-1.5.1.ebuild 3365 MD5 d8794a3445cecff78d520364e47a9138 nut-1.5.6-r2.ebuild 2287 MD5 91a159b983332d5ed0fb985cc1fe1b80 metadata.xml 330 diff --git a/net-misc/nut/files/digest-nut-1.5.8 b/net-misc/nut/files/digest-nut-1.5.8 new file mode 100644 index 000000000000..5537ba164580 --- /dev/null +++ b/net-misc/nut/files/digest-nut-1.5.8 @@ -0,0 +1 @@ +MD5 a40d106bf20d193258842adfc3843bfb nut-1.5.8.tar.gz 488558 diff --git a/net-misc/nut/nut-1.5.8.ebuild b/net-misc/nut/nut-1.5.8.ebuild new file mode 100644 index 000000000000..c73c65c4fd16 --- /dev/null +++ b/net-misc/nut/nut-1.5.8.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/nut/nut-1.5.8.ebuild,v 1.1 2003/11/21 04:49:45 robbat2 Exp $ + +DESCRIPTION="Network-UPS Tools." +SRC_URI="http://www.exploits.org/nut/development/${PV%.*}/${P}.tar.gz" +HOMEPAGE="http://www.exploits.org/nut/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~sparc" +IUSE="cgi" + +DEPEND=">=sys-apps/sed-4 + cgi? ( =media-libs/libgd-1* )" + +src_unpack() { + unpack ${A} && cd "${S}" + + 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=1 autoconf || die "autoconf failed" + eend $? +} + +src_compile() { + local myconf + myconf="${myconf} `use_with cgi` `use_with cgi cgipath /usr/share/nut`" + + econf \ + --with-user=nut \ + --with-group=nut \ + --with-drvpath=/lib/nut \ + --sysconfdir=/etc/nut \ + --with-logfacility=LOG_DAEMON \ + --with-statepath=/var/lib/nut \ + --with-linux-hiddev \ + ${myconf} + + sed -e "s:= bestups:= hidups bestups:" \ + -i drivers/Makefile || die "sed failed" + sed -e "s:= powercom.8:= hidups.8 powercom.8:" \ + -i man/Makefile || "sed failed" + + emake || die "compile problem" + + if use cgi; then + emake cgi || die "compile cgi problem" + fi +} + +src_install() { + make DESTDIR="${D}" install || 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 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,driver.list} + + 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 +} + +pkg_postinst() { + chown nut:nut ${ROOT}/var/lib/nut + chmod 0700 ${ROOT}/var/lib/nut + chown root:nut ${ROOT}/etc/nut/{upsd.conf,upsd.users,upsmon.conf} + chmod 0640 ${ROOT}/etc/nut/{upsd.conf,upsd.users,upsmon.conf} +} |