- latest upstream version
- removed spare umask - fixes missing headers
This commit is contained in:
parent
52da7a924d
commit
f4a9a935f2
24
acpid-2.0.2-headers.patch
Normal file
24
acpid-2.0.2-headers.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -up acpid-2.0.2/acpid.c.headers acpid-2.0.2/acpid.c
|
||||
--- acpid-2.0.2/acpid.c.headers 2010-02-25 22:35:49.625058306 +0100
|
||||
+++ acpid-2.0.2/acpid.c 2010-02-25 22:37:40.512063316 +0100
|
||||
@@ -21,6 +21,8 @@
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
diff -up acpid-2.0.2/sock.c.headers acpid-2.0.2/sock.c
|
||||
--- acpid-2.0.2/sock.c.headers 2010-02-25 22:35:55.644052326 +0100
|
||||
+++ acpid-2.0.2/sock.c 2010-02-25 22:37:29.592075611 +0100
|
||||
@@ -21,6 +21,8 @@
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
11
acpid-2.0.2-no_umask.patch
Normal file
11
acpid-2.0.2-no_umask.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -up acpid-2.0.2/acpid.c.no_umask acpid-2.0.2/acpid.c
|
||||
--- acpid-2.0.2/acpid.c.no_umask 2010-02-25 22:19:13.273274011 +0100
|
||||
+++ acpid-2.0.2/acpid.c 2010-02-25 22:20:11.398023662 +0100
|
||||
@@ -370,7 +370,6 @@ daemonize(void)
|
||||
|
||||
/* disconnect */
|
||||
setsid();
|
||||
- umask(0);
|
||||
|
||||
/* get outta the way */
|
||||
if (chdir("/") < 0) {
|
@ -9,7 +9,11 @@ Source1: acpid.init
|
||||
Source2: acpid.video.conf
|
||||
Source3: acpid.power.conf
|
||||
Source4: acpid.power.sh
|
||||
|
||||
Patch1: acpid-2.0.2-makefile.patch
|
||||
Patch2: acpid-2.0.2-no_umask.patch
|
||||
Patch3: acpid-2.0.2-headers.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
ExclusiveArch: ia64 x86_64 %{ix86}
|
||||
URL: http://tedfelix.com/linux/acpid-netlink.html
|
||||
@ -26,6 +30,8 @@ acpid is a daemon that dispatches ACPI events to user-space programs.
|
||||
%setup -q
|
||||
|
||||
%patch1 -p1 -b .makefile
|
||||
%patch2 -p1 -b .no_umask
|
||||
%patch3 -p1 -b .headers
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
@ -84,6 +90,8 @@ fi
|
||||
%changelog
|
||||
* Thu Feb 25 2010 Jiri Skala <jskala@redhat.com> - 2.0.2-1
|
||||
- latest upstream version
|
||||
- removed spare umask
|
||||
- fixes missing headers
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
Loading…
Reference in New Issue
Block a user