Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=interim.git;a=commitdiff;h=1a2371d8dfc82aea0b6454188e018322d5ceed95

commit 1a2371d8dfc82aea0b6454188e018322d5ceed95
Author: crazy <[EMAIL PROTECTED]>
Date:   Tue Jul 22 00:01:45 2008 +0200

apmd-3.0.2-8-x86_64
* rebuilt with glibc
* added and patch to fix :
- incompatible implicit declaration of built-in function 'exit' , warnings

diff --git a/source/base/apmd/FrugalBuild b/source/base/apmd/FrugalBuild
index b81eac3..1836873 100644
--- a/source/base/apmd/FrugalBuild
+++ b/source/base/apmd/FrugalBuild
@@ -3,33 +3,34 @@

pkgname=apmd
pkgver=3.0.2
-pkgrel=7
+pkgrel=8
pkgdesc="Set of tools for managing notebook power consumption"
url="http://alumnit.ca/~apenwarr/apmd/";
-depends=('glibc>=2.7-3')
+depends=('glibc>=2.8-3')
makedepends=('libx11' 'libxaw')
groups=('base')
archs=('i686' 'x86_64')
up2date="lynx -dump  http://alumnit.ca/~apenwarr/apmd |grep current|tr -s ' 
'|sed 's/\. / /'|cut -d ' ' -f 9"
source=(http://alumnit.ca/~apenwarr/apmd/$pkgname-$pkgver.tar.gz \
rc.apmd rc.apmd-{de,hu}.po $pkgname-$pkgver-gcc3.diff \
-       apmd-26fixes.patch)
+       apmd-26fixes.patch missing-stdlib.h-includes.patch)
sha1sums=('d1e9809a3c2d550baabd8d38368ad7116af99124' \
'4085175a31c88a080c27e8e9ca073da82021915e' \
'bf3e49c81a5bab6b12f628bc1887c6fc7734cdaf' \
'7bf2bae24a92b14a8181f1bc6339f5251219fff1' \
'ffbd02433d66828b6a31686457b4f4b2344a3a42' \
-          '05b60e95da06f3b58cf3351b21089e0682c57533')
+          '05b60e95da06f3b58cf3351b21089e0682c57533' \
+          '71cb427bbbe76bba8859b799444109bd8fae375f')

build()
{
Fcd $pkgname
-       Fpatchall || return 1
+       Fpatchall
Fsed '-I/usr/src/linux/include' '-I/usr/include' Makefile
Fsed '-Vt' '' Makefile
Fsed '/X11R6' '' Makefile
Fsed '-O' "$CFLAGS" Makefile
-       Fmake || return 1
+       Fmake
Fmkdir /etc /usr
Fmakeinstall PREFIX=$Fdestdir/usr APMD_PROXY_DIR=$Fdestdir/etc
Frcd2
diff --git a/source/base/apmd/missing-stdlib.h-includes.patch 
b/source/base/apmd/missing-stdlib.h-includes.patch
new file mode 100644
index 0000000..82bd107
--- /dev/null
+++ b/source/base/apmd/missing-stdlib.h-includes.patch
@@ -0,0 +1,22 @@
+diff -Naur apmd/apmsleep.c apmd-p/apmsleep.c
+--- apmd/apmsleep.c    2001-05-11 22:30:08.000000000 +0200
++++ apmd-p/apmsleep.c  2008-07-21 23:58:20.000000000 +0200
+@@ -43,6 +43,7 @@
+  */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <linux/version.h>
+
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2,2,0)
+diff -Naur apmd/xapm.c apmd-p/xapm.c
+--- apmd/xapm.c        1999-06-05 23:00:42.000000000 +0200
++++ apmd-p/xapm.c      2008-07-21 23:58:03.000000000 +0200
+@@ -24,6 +24,7 @@
+  */
+ #include <stdio.h>
+ #include <getopt.h>
++#include <stdlib.h>
+ #include <X11/Intrinsic.h>
+ #include <X11/StringDefs.h>
+ #include <X11/cursorfont.h>
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to