From f4a9a935f2c1435a3dc52e32f59731ef90fc1735 Mon Sep 17 00:00:00 2001 From: Jiri Skala Date: Feb 25 2010 21:44:18 +0000 Subject: - latest upstream version - removed spare umask - fixes missing headers --- diff --git a/acpid-2.0.2-headers.patch b/acpid-2.0.2-headers.patch new file mode 100644 index 0000000..0a8c672 --- /dev/null +++ b/acpid-2.0.2-headers.patch @@ -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 ++#include ++#include + #include + #include + #include +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 ++#include ++#include + #include + #include + #include diff --git a/acpid-2.0.2-no_umask.patch b/acpid-2.0.2-no_umask.patch new file mode 100644 index 0000000..e3705a5 --- /dev/null +++ b/acpid-2.0.2-no_umask.patch @@ -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) { diff --git a/acpid.spec b/acpid.spec index f67b06e..3a49630 100644 --- a/acpid.spec +++ b/acpid.spec @@ -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 - 2.0.2-1 - latest upstream version +- removed spare umask +- fixes missing headers * Fri Jul 24 2009 Fedora Release Engineering - 1.0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild