Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (64dccf563fb6ede6f81f08e71d7850689f7faa58)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (64dccf563fb6ede6f81f08e71d7850689f7faa58)
  • Date: Thu, 14 Jul 2011 03:12:00 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

libs/glibc/DETAILS | 2 +-
libs/glibc/HISTORY | 6 ++++++
libs/glibc/INSTALL | 5 +++++
libs/glibc/init.d/nscd | 16 ++++++++++++++++
libs/glibc/init.d/nscd.conf | 5 +++++
5 files changed, 33 insertions(+), 1 deletion(-)

New commits:
commit 64dccf563fb6ede6f81f08e71d7850689f7faa58
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

glibc: added ability to clean up cache for nscd

diff --git a/libs/glibc/DETAILS b/libs/glibc/DETAILS
index 1aed58f..e632641 100755
--- a/libs/glibc/DETAILS
+++ b/libs/glibc/DETAILS
@@ -42,7 +42,7 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
SOURCE_GPG=glibc.gpg:$SOURCE.sig:UPSTREAM_KEY
SOURCE2_IGNORE=signature
SECURITY_PATCH=1
- PATCHLEVEL=0
+ PATCHLEVEL=1
fi
if [[ $GLIBC_SANITIZE_HEADERS == n ]]; then
HEADERS_VERSION=2.6.38
diff --git a/libs/glibc/HISTORY b/libs/glibc/HISTORY
index 5965ca4..a843fff 100644
--- a/libs/glibc/HISTORY
+++ b/libs/glibc/HISTORY
@@ -1,3 +1,9 @@
+2011-07-14 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS: PATCHLEVEL=1
+ * INSTALL: install default nscd config if init script is installed
+ * init.d/nscd: added reload() function for cleaning up cache
+ * init.d/nscd.conf: added option to select cache tables
+
2011-05-10 Eric Sandall <sandalle AT sourcemage.org>
* DETAILS: Updated default kernel headers to 2.6.38

diff --git a/libs/glibc/INSTALL b/libs/glibc/INSTALL
index 59b434d..b880dde 100755
--- a/libs/glibc/INSTALL
+++ b/libs/glibc/INSTALL
@@ -53,5 +53,10 @@ if ! grep -q "/usr/lib" $INSTALL_ROOT/etc/ld.so.conf;
then
echo "/usr/lib" >> $INSTALL_ROOT/etc/ld.so.conf
fi &&

+if [[ $INIT_INSTALLED ]]; then
+ install_config_file "$SPELL_DIRECTORY/init.d/nscd.conf" \
+ "$INSTALL_ROOT/etc/sysconfig/nscd"
+fi &&
+
install_config_file $SOURCE_DIRECTORY/nscd/nscd.conf \
$INSTALL_ROOT/etc/nscd.conf
diff --git a/libs/glibc/init.d/nscd b/libs/glibc/init.d/nscd
index 02b6eab..39007c1 100755
--- a/libs/glibc/init.d/nscd
+++ b/libs/glibc/init.d/nscd
@@ -26,6 +26,22 @@ stop()
evaluate_retval
}

+reload()
+{
+ echo "Cleaning up cache..."
+ for table in $TABLES; do
+ $PROGRAM --invalidate $table
+ [[ $? -eq 0 ]] || error=$?
+ done
+
+ if [ ! -z $error ]; then
+ print_status failure
+ exit $error
+ fi
+
+ evaluate_retval
+}
+
status()
{
$PROGRAM --statistics
diff --git a/libs/glibc/init.d/nscd.conf b/libs/glibc/init.d/nscd.conf
index 69f37af..1b3d70b 100644
--- a/libs/glibc/init.d/nscd.conf
+++ b/libs/glibc/init.d/nscd.conf
@@ -3,3 +3,8 @@
# (Default "4")
#
NTHREADS="4"
+
+#
+# Tables for cleaning up cache
+#
+TABLES="passwd group hosts services"



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (64dccf563fb6ede6f81f08e71d7850689f7faa58), Vlad Glagolev, 07/14/2011

Archive powered by MHonArc 2.6.24.

Top of Page