Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by quinq (de2ced34c99b33cfd66c9215735bdcb2af4f74bf)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: quinq <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by quinq (de2ced34c99b33cfd66c9215735bdcb2af4f74bf)
  • Date: Wed, 17 Mar 2010 22:48:23 -0500

GIT changes to master grimoire by quinq <quinq AT willow.quinq.eu.org>:

http/surf/CONFIGURE | 3 +++
http/surf/HISTORY | 8 ++++++--
http/surf/INSTALL | 5 +++++
http/surf/PRE_BUILD | 12 +++++++++++-
4 files changed, 25 insertions(+), 3 deletions(-)

New commits:
commit de2ced34c99b33cfd66c9215735bdcb2af4f74bf
Author: quinq <quinq AT willow.quinq.eu.org>
Commit: quinq <quinq AT willow.quinq.eu.org>

http/surf: added support for configuration, corrected install path

diff --git a/http/surf/CONFIGURE b/http/surf/CONFIGURE
new file mode 100755
index 0000000..8e62fc0
--- /dev/null
+++ b/http/surf/CONFIGURE
@@ -0,0 +1,3 @@
+message 'surf does not use a config file, you might want to customize it
now' &&
+message "Your custom config will be saved to
${INSTALL_ROOT}/usr/share/doc/surf/" &&
+config_query SURF_CONFIG 'Do you wish to use a custom config.def.h?' n
diff --git a/http/surf/HISTORY b/http/surf/HISTORY
index e997265..f1103d0 100644
--- a/http/surf/HISTORY
+++ b/http/surf/HISTORY
@@ -1,3 +1,7 @@
+2010-03-18 Quentin Rameau <quinq AT sourcemage.org>
+ * CONFIGURE, PRE_BUILD, INSTALL: added support for
+ configuration via config.def.h, corrected install path
+
2009-10-31 Quentin Rameau <quinq AT sourcemage.org>
* DETAILS: updated to version 0.3
* DEPENDS: added dependency on xprop
@@ -9,6 +13,6 @@
* DETAILS: added stable version 0.1.2

2009-07-22 Quentin Rameau <quinq AT sourcemage.org>
- * PREPARE, DEPENDS, DETAILS,
- DOWNLOAD, PRE_BUILD, BUILD, HISTORY: created this spell
+ * PREPARE, DEPENDS, DETAILS, DOWNLOAD, PRE_BUILD,
+ BUILD, HISTORY: created this spell

diff --git a/http/surf/INSTALL b/http/surf/INSTALL
new file mode 100755
index 0000000..bbd8ef6
--- /dev/null
+++ b/http/surf/INSTALL
@@ -0,0 +1,5 @@
+default_install &&
+if [[ "$SURF_CONFIG" == 'y' ]]; then
+ mkdir -p ${INSTALL_ROOT}/usr/share/doc/surf &&
+ cp config.def.h ${INSTALL_ROOT}/usr/share/doc/surf
+fi
diff --git a/http/surf/PRE_BUILD b/http/surf/PRE_BUILD
index a1a4cfe..13e5708 100755
--- a/http/surf/PRE_BUILD
+++ b/http/surf/PRE_BUILD
@@ -1,3 +1,13 @@
default_pre_build &&
cd ${SOURCE_DIRECTORY} &&
-sedit 's:^PREFIX = /usr/local$:PREFIX = /usr:' config.mk
+sedit "s:^PREFIX = /usr/local$:PREFIX = ${INSTALL_ROOT}/usr:" config.mk
+
+if [[ "$SURF_CONFIG" == 'y' ]]; then
+ if [[ -e ${INSTALL_ROOT}/usr/share/doc/surf/config.def.h ]]; then
+ cp ${INSTALL_ROOT}/usr/share/doc/surf/config.def.h ./
+ fi &&
+ if query 'Do you want to edit your config now?' n
+ then
+ ${EDITOR} config.def.h
+ fi
+fi



  • [SM-Commit] GIT changes to master grimoire by quinq (de2ced34c99b33cfd66c9215735bdcb2af4f74bf), quinq, 03/17/2010

Archive powered by MHonArc 2.6.24.

Top of Page