Hi,
I'm working on adding suspend to Gentoo Linux. Here is a patch which
allows more of the build to be customised by the build system, without
modifying any of the defaults.
I also enabled CONFIG_UDEV by default as this seems sensible.
Compile and install will be done by the ebuild with:
src_compile() {
emake CC=$(tc-getCC) CC_FLAGS= LD_FLAGS=
}
src_install() {
emake install SUSPEND_DIR=/usr/sbin DESTDIR=${D} || die
dodoc ChangeLog HOWTO README README.s2ram-whitelist ReleaseNotes TODO
}
Any packaging style comments welcome.
--
Daniel Drake
Brontes Technologies, A 3M Company
From: Daniel Drake <[EMAIL PROTECTED]>
Index: suspend/Makefile
===================================================================
--- suspend.orig/Makefile
+++ suspend/Makefile
@@ -1,14 +1,14 @@
#CONFIG_COMPRESS=yes
#CONFIG_ENCRYPT=yes
#CONFIG_SPLASHY=yes
-#CONFIG_UDEV=yes
+CONFIG_UDEV=yes
ARCH:=$(shell uname -m)
-CC_FLAGS=-I/usr/local/include
-LD_FLAGS=-L/usr/local/lib
+CC_FLAGS?=-I/usr/local/include
+LD_FLAGS?=-L/usr/local/lib
-CFLAGS := -O2 -Wall
+CFLAGS ?= -O2 -Wall
ifdef CONFIG_COMPRESS
CC_FLAGS += -DCONFIG_COMPRESS
@@ -22,7 +22,7 @@ CC_FLAGS += $(GCRYPT_CC_FLAGS)
LD_FLAGS += $(GCRYPT_LD_FLAGS)
endif
-SUSPEND_DIR=/usr/local/sbin
+SUSPEND_DIR?=/usr/local/sbin
CONFIG_DIR=/etc
RESUME_DEVICE=<path_to_resume_device_file>
BOOT_DIR=/boot
@@ -31,7 +31,7 @@ S2BOTH=s2both
S2DISK=s2disk
CONFIGFILE=suspend.conf
-ifndef CONFIG_UDEV
+ifneq ($(CONFIG_UDEV), yes)
SNAPSHOT=$(DESTDIR)/dev/snapshot
endif
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel