Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by David Kowis (e06e7e1beed75f863c0b8b6ccb5d24075b225fb6)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: David Kowis <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by David Kowis (e06e7e1beed75f863c0b8b6ccb5d24075b225fb6)
  • Date: Fri, 17 Nov 2006 11:53:21 -0600

GIT changes to master grimoire by David Kowis <dkowis AT shlrm.org>:

ChangeLog | 5 +++++
FUNCTIONS | 13 +++++++++++++
mail/postfix/HISTORY | 3 +++
mail/postfix/INSTALL | 10 ++++++++++
4 files changed, 31 insertions(+)

New commits:
commit e06e7e1beed75f863c0b8b6ccb5d24075b225fb6
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

postfix
Adding logic to track config files installed by postfix
uses the function note_config_files
(cherry picked from df4577ba89b8a34b09e3eddbd4e8a0f047bb8e53 commit)

commit d2ebf800f53546247e8e4a931846e39eb89e076b
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

FUNCTIONS
Adding a note_config_files function to mark config files that cannot be
installed using install_config_files.

Thanks to afrayedknot.
(cherry picked from 3f4c1b8660967d148ce3e15a1a87e711eb2bbf4f commit)

diff --git a/ChangeLog b/ChangeLog
index 661c070..95f52aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-17 David Kowis <dkowis AT shlrm.org>
+ * FUNCTIONS: added a note_config_files function for spells that
install
+ their own config files as part of a make install process or
something.
+ postfix needed it, badly.
+
2006-11-16 Eric Sandall <eric AT sandall.us>
* e/e_module-eveil, e/e_module-alarm: e_module-eveil renamed to
e_module-alarm.
diff --git a/FUNCTIONS b/FUNCTIONS
index fee89fa..b3e55cd 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -467,3 +467,16 @@ function check_if_xorg_modular_server()
return 1
}

+# FUnction to tag config files that cannot be tagged by the normal
install_config_file method
+# do NOT call check_if_modified or mark_file_modified ANYWHERE ELSE!!!
+# # THIS function will go away when it migrates down from devel sorcery
+# # David Kowis - 11-17-2006
+# $1 is the full path to the config file you want tracked.
+# CALL THIS BEFORE YOU DO THE INSTALLING. You can see the postfix spell for
an example.
+declare -f note_config_files &>/dev/null ||
+function note_config_files() {
+if check_if_modified "$1"; then
+ mark_file_modified "$1"
+fi
+}
+
diff --git a/mail/postfix/HISTORY b/mail/postfix/HISTORY
index 88c02e5..4f48f9a 100644
--- a/mail/postfix/HISTORY
+++ b/mail/postfix/HISTORY
@@ -1,3 +1,6 @@
+2006-11-17 David Kowis <dkowis AT shlrm.org>
+ * INSTALL: used the new function note_config_files to make sure
postfix' config is tracked
+
2006-11-12 David Kowis <dkowis AT shlrm.org>
* DETAILS: version bumped to 2.3.4 as well as the vda patch

diff --git a/mail/postfix/INSTALL b/mail/postfix/INSTALL
index 49f935f..8e9ccda 100755
--- a/mail/postfix/INSTALL
+++ b/mail/postfix/INSTALL
@@ -1,4 +1,14 @@
if [[ $POSTFIX_PRE_EXISTING == "no" ]] ; then
+#OMG YAY fixes for stupid godamn config files!
+note_config_files /etc/postfix/main.cf &&
+note_config_files /etc/postfix/master.cf &&
+note_config_files /etc/postfix/aliases &&
+note_config_files /etc/postfix/access &&
+note_config_files /etc/postfix/canonical &&
+note_config_files /etc/postfix/generic &&
+note_config_files /etc/postfix/header_checks &&
+note_config_files /etc/postfix/relocated &&
+note_config_files /etc/postfix/transport &&
#the below are the answers to the interactive install
/bin/bash postfix-install -non-interactive \
install_root=$INSTALL_ROOT \



  • [SM-Commit] GIT changes to master grimoire by David Kowis (e06e7e1beed75f863c0b8b6ccb5d24075b225fb6), David Kowis, 11/17/2006

Archive powered by MHonArc 2.6.24.

Top of Page