diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2002-08-05 15:33:59 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2002-08-05 15:33:59 +0000 |
commit | 1095ced0b091633adfd62c65fa10227ba1aa96b0 (patch) | |
tree | 1dd44f1c47c039c02c5955822d45b9fcf8182092 /app-admin/powertweak | |
parent | tweaked description (diff) | |
download | historical-1095ced0b091633adfd62c65fa10227ba1aa96b0.tar.gz historical-1095ced0b091633adfd62c65fa10227ba1aa96b0.tar.bz2 historical-1095ced0b091633adfd62c65fa10227ba1aa96b0.zip |
Version bump, closes #5693.
Diffstat (limited to 'app-admin/powertweak')
-rw-r--r-- | app-admin/powertweak/ChangeLog | 7 | ||||
-rw-r--r-- | app-admin/powertweak/files/digest-powertweak-0.99.4 | 1 | ||||
-rw-r--r-- | app-admin/powertweak/files/powertweak-0.99.4-gentoo.diff | 92 | ||||
-rw-r--r-- | app-admin/powertweak/files/powertweakd.rc6 | 18 | ||||
-rw-r--r-- | app-admin/powertweak/powertweak-0.99.4.ebuild | 62 |
5 files changed, 179 insertions, 1 deletions
diff --git a/app-admin/powertweak/ChangeLog b/app-admin/powertweak/ChangeLog index 944cc9adff33..f2fd80beca43 100644 --- a/app-admin/powertweak/ChangeLog +++ b/app-admin/powertweak/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-admin/powertweak # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/powertweak/ChangeLog,v 1.1 2002/07/14 20:51:08 lostlogic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/powertweak/ChangeLog,v 1.2 2002/08/05 15:33:59 aliz Exp $ + +*powertweak-0.99.4 (05 Aug 2002) + + 05 Aug 2002; Daniel Ahlberg <aliz@gentoo.org> powertweak-0.99.4.ebuild: + Version bump. Closes #5693. *powertweak-0.1.17-r2 (14 Jul 2002) diff --git a/app-admin/powertweak/files/digest-powertweak-0.99.4 b/app-admin/powertweak/files/digest-powertweak-0.99.4 new file mode 100644 index 000000000000..3fd360bfa156 --- /dev/null +++ b/app-admin/powertweak/files/digest-powertweak-0.99.4 @@ -0,0 +1 @@ +MD5 2b939a0689d3be7fc5eeec2d07b3477d powertweak-0.99.4.tar.bz2 486168 diff --git a/app-admin/powertweak/files/powertweak-0.99.4-gentoo.diff b/app-admin/powertweak/files/powertweak-0.99.4-gentoo.diff new file mode 100644 index 000000000000..49ec186851b0 --- /dev/null +++ b/app-admin/powertweak/files/powertweak-0.99.4-gentoo.diff @@ -0,0 +1,92 @@ +--- powertweak-0.99.4.orig/src/libpowertweak/profile.c ++++ powertweak-0.99.4/src/libpowertweak/profile.c +@@ -11,7 +11,7 @@ + #include <stdlib.h> + #include <assert.h> + #include <string.h> +-#include <parser.h> /* libxml */ ++#include <libxml/parser.h> /* libxml */ + + + #include <powertweak.h> + +--- powertweak-0.99.4.orig/src/backends/PCI/xml.c ++++ powertweak-0.99.4/src/backends/PCI/xml.c +@@ -13,7 +13,7 @@ + #include <assert.h> + #include <powertweak.h> + #include <string.h> +-#include <parser.h> ++#include <libxml/parser.h> + + #include "pci.h" + +--- powertweak-0.99.4.orig/src/backends/CPU/x86/xml.c ++++ powertweak-0.99.4/src/backends/CPU/x86/xml.c +@@ -17,7 +17,7 @@ + #include <assert.h> + + #include <powertweak.h> +-#include <parser.h> /* libxml */ ++#include <libxml/parser.h> /* libxml */ + #include <libxmlcompat.h> + + #include <sys/types.h> /* for readdir() */ + +--- powertweak-0.99.4.orig/src/backends/PCI/pcitweaks.c ++++ powertweak-0.99.4/src/backends/PCI/pcitweaks.c +@@ -21,7 +21,7 @@ + #include "pci.h" + #include "PCILIB/pciutils.h" + +-#include <tree.h> ++#include <libxml/tree.h> + + extern int xmlDoValidityCheckingDefaultValue; + +--- powertweak-0.99.4.orig/src/backends/proc/xml.c ++++ powertweak-0.99.4/src/backends/proc/xml.c +@@ -20,7 +20,7 @@ + #include <dirent.h> /* for readdir() */ + + #include <powertweak.h> +-#include <parser.h> /* libxml */ ++#include <libxml/parser.h> /* libxml */ + #include <libxmlcompat.h> + + #include "proc.h" +--- powertweak-0.99.4.orig/src/backends/proc/proctweaks.c ++++ powertweak-0.99.4/src/backends/proc/proctweaks.c +@@ -18,7 +18,7 @@ + #include <config.h> + #include <string.h> + #include "proc.h" +-#include <tree.h> ++#include <libxml/tree.h> + #include <libxmlcompat.h> + + +--- powertweak-0.99.4.orig/src/include/libxmlcompat.h ++++ powertweak-0.99.4/src/include/libxmlcompat.h +@@ -12,7 +12,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <assert.h> +-#include <tree.h> /* libxml */ ++#include <libxml/tree.h> /* libxml */ + + /* Check if this is 1.8 or 2.x */ + #ifdef LIBXML_VERSION_NUMBER + +--- powertweak-0.99.4.orig/src/backends/CPU/x86/cputweaks.c Tue Aug 6 20:39:01 2002 ++++ powertweak-0.99.4/src/backends/CPU/x86cputweaks.c Tue Aug 6 20:39:09 2002 +@@ -13,7 +13,7 @@ + #include <powertweak.h> + #include <config.h> + #include <string.h> +-#include <tree.h> ++#include <libxml/tree.h> + #include <libxmlcompat.h> + + /* for readdir/stat and friends */ + diff --git a/app-admin/powertweak/files/powertweakd.rc6 b/app-admin/powertweak/files/powertweakd.rc6 new file mode 100644 index 000000000000..b7c2622b8135 --- /dev/null +++ b/app-admin/powertweak/files/powertweakd.rc6 @@ -0,0 +1,18 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/app-admin/powertweak/files/powertweakd.rc6,v 1.1 2002/08/05 15:33:59 aliz Exp $ + +start() { + checkconfig || return 1 + ebegin "Starting proftpd" + start-stop-daemon --start --quiet --exec /usr/sbin/powertweakd -- -d -p /var/run/powertweakd.pid + eend $? +} + +stop() { + ebegin "Stopping proftpd" + start-stop-daemon --stop --quiet --pidfile /var/run/powertweakd.pid + eend $? +} + diff --git a/app-admin/powertweak/powertweak-0.99.4.ebuild b/app-admin/powertweak/powertweak-0.99.4.ebuild new file mode 100644 index 000000000000..e57a4ff607d4 --- /dev/null +++ b/app-admin/powertweak/powertweak-0.99.4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/app-admin/powertweak/powertweak-0.99.4.ebuild,v 1.1 2002/08/05 15:33:59 aliz Exp $ + +S=${WORKDIR}/${PN} +DESCRIPTION="Powertweak" +SRC_URI="mirror://sourceforge/powertweak/${P}.tar.bz2" +HOMEPAGE="http://powertweak.sourceforge.net" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86" + +DEPEND="gtk? ( =x11-libs/gtk+-1.2* ) + >=dev-libs/libxml-1.8.10 + sys-devel/autoconf + sys-devel/automake" + +RDEPEND=">=sys-apps/pciutils-2.1.0 + gtk? ( =x11-libs/gtk+-1.2* )" + +inherit libtool + +src_unpack() { + unpack ${A} + + cd ${S} ; patch -l -p1 < ${FILESDIR}/${P}-gentoo.diff + + for FILE in `find . -iname "Makefile*"`;do + sed -e "s:\(^CFLAGS =.*\):\1 ${CFLAGS}:" \ + -e "s:\(^CPPFLAGS =.*\):\1 ${CPPFLAGS}:" \ + ${FILE} > ${FILE}.hacked || die "Hack failed" + mv ${FILE}.hacked ${FILE} + done +} + +src_compile() { + elibtoolize + + use gtk || myconf="--disable-gtktest" + + CFLAGS="${CPPFLAGS} -Wno-error" + CPPFLAGS="${CPPFLAGS} -Wno-deprecated" + + econf ${myconf} || die + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README + docinto Documentation + dodoc Documentation/* Documentation/Hackers/* + + use gtk || rm ${D}/usr/bin/gpowertweak + + exeinto /etc/init.d ; newexe ${FILESDIR}/powertweakd.rc6 powertweakd +} + +pkg_postins() { + einfo "This version adds powertweakd to be run at boot to apply changes to system" +} |