[packages/suspend-utils/DEVEL] - rel 1; make default config with comments only

arekm arekm at pld-linux.org
Tue Jul 2 22:12:51 CEST 2013


commit 69eeac14057793e9191815a8c967c9237f9056e1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jul 2 22:12:48 2013 +0200

    - rel 1; make default config with comments only

 suspend-utils-build.patch | 12 ++++++++++++
 suspend-utils-conf.patch  | 11 +++++++++++
 suspend-utils.spec        |  7 ++++++-
 3 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/suspend-utils.spec b/suspend-utils.spec
index c601a1c..2e74439 100644
--- a/suspend-utils.spec
+++ b/suspend-utils.spec
@@ -9,7 +9,7 @@
 %undefine with_dietlibc
 %endif
 
-%define		rel		0.1
+%define		rel		1
 %define		subver	g668c5f7
 Summary:	Suspend to RAM/Disk/Both
 Summary(de.UTF-8):	Einfrieren in den Systemspeicher
@@ -26,6 +26,8 @@ Source1:	get-source.sh
 Patch0:		suspend-sys-file-range-write.patch
 Patch1:		suspend-fadvise.patch
 Patch2:		suspend-diet.patch
+Patch3:		suspend-utils-conf.patch
+Patch4:		suspend-utils-build.patch
 URL:		http://sourceforge.net/projects/suspend
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -41,6 +43,7 @@ BuildRequires:	lzo-static >= 2.02
 BuildRequires:	libx86-static
 %endif
 BuildRequires:	pciutils-devel
+BuildRequires:	perl-Switch
 BuildRequires:	pkgconfig
 BuildRequires:	sed >= 4.0
 %if %{with splashy}
@@ -89,6 +92,8 @@ Zamrażanie w RAM/Dysku/Jedno i drugie - program resume dla initrd.
 %patch0 -p1
 %patch1 -p2
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 cat > syscalltest.c <<EOF
 #include <stdio.h>
diff --git a/suspend-utils-build.patch b/suspend-utils-build.patch
new file mode 100644
index 0000000..8585e66
--- /dev/null
+++ b/suspend-utils-build.patch
@@ -0,0 +1,12 @@
+diff -urN suspend-utils-1.0.g668c5f7.org/configure.ac suspend-utils-1.0.g668c5f7/configure.ac
+--- suspend-utils-1.0.g668c5f7.org/configure.ac	2012-09-15 22:23:44.000000000 +0200
++++ suspend-utils-1.0.g668c5f7/configure.ac	2013-07-02 22:05:30.884207944 +0200
+@@ -9,7 +9,7 @@
+ AC_PREREQ([2.59])
+ AC_INIT([suspend-utils], [1.0])
+ AM_INIT_AUTOMAKE([${PACKAGE_NAME}], [${PACKAGE_VERSION}])
+-AM_CONFIG_HEADER([config.h])
++AC_CONFIG_HEADERS([config.h])
+ AC_CONFIG_SRCDIR([suspend.c])
+ AC_CONFIG_MACRO_DIR([m4])
+ 
diff --git a/suspend-utils-conf.patch b/suspend-utils-conf.patch
new file mode 100644
index 0000000..b5d97f0
--- /dev/null
+++ b/suspend-utils-conf.patch
@@ -0,0 +1,11 @@
+diff -urN suspend-utils-1.0.g668c5f7.org/conf/suspend.conf suspend-utils-1.0.g668c5f7/conf/suspend.conf
+--- suspend-utils-1.0.g668c5f7.org/conf/suspend.conf	2012-09-15 22:23:44.000000000 +0200
++++ suspend-utils-1.0.g668c5f7/conf/suspend.conf	2013-07-02 22:01:04.681619040 +0200
+@@ -1,5 +1,5 @@
+-snapshot device = /dev/snapshot
+-resume device = <path_to_resume_device_file>
++#snapshot device = /dev/snapshot
++#resume device = <path_to_resume_device_file>
+ #image size = 350000000
+ #suspend loglevel = 2
+ #compute checksum = y
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/suspend-utils.git/commitdiff/69eeac14057793e9191815a8c967c9237f9056e1



More information about the pld-cvs-commit mailing list