[Lunar-commits] r15899 - in moonbase/trunk/utils/lunar-tools: . plugin.d
Auke Kok
sofar at lunar-linux.org
Wed Jul 27 11:02:27 UTC 2005
Author: sofar
Date: 2005-07-27 11:02:24 +0000 (Wed, 27 Jul 2005)
New Revision: 15899
Added:
moonbase/trunk/utils/lunar-tools/plugin.d/
moonbase/trunk/utils/lunar-tools/plugin.d/lids.plugin
Modified:
moonbase/trunk/utils/lunar-tools/DETAILS
Log:
Bumping lunar-tools, also introducing a integrated permission checker that creates/checks the permission of installed items (lunar set USE_LIDS on)
Modified: moonbase/trunk/utils/lunar-tools/DETAILS
===================================================================
--- moonbase/trunk/utils/lunar-tools/DETAILS 2005-07-27 10:34:43 UTC (rev 15898)
+++ moonbase/trunk/utils/lunar-tools/DETAILS 2005-07-27 11:02:24 UTC (rev 15899)
@@ -1,12 +1,12 @@
MODULE=lunar-tools
- VERSION=2005.2
+ VERSION=2005.4
SOURCE=$MODULE-$VERSION.tar.bz2
SOURCE_URL=http://lunar-linux.org/lunar/
- SOURCE_VFY=sha1:cf4d78321b50175a3b67d5d17b4b75e6922c4ea9
+ SOURCE_VFY=sha1:ca3de8f938097e97f4e8ed0f7c6302443bea2f38
MAINTAINER=sofar at lunar-linux.org
WEB_SITE=http://lunar-linux.org/
ENTERED=20041029
- UPDATED=20050527
+ UPDATED=20050727
SHORT="A collection of lunar tools"
cat << EOF
Lunar-tools is a package with non-vital tools that help you perform
Added: moonbase/trunk/utils/lunar-tools/plugin.d/lids.plugin
===================================================================
--- moonbase/trunk/utils/lunar-tools/plugin.d/lids.plugin 2005-07-27 10:34:43 UTC (rev 15898)
+++ moonbase/trunk/utils/lunar-tools/plugin.d/lids.plugin 2005-07-27 11:02:24 UTC (rev 15899)
@@ -0,0 +1,52 @@
+#!/bin/bash
+#############################################################
+# #
+# lids plugin - file permissions checking of modules #
+# #
+#############################################################
+# #
+# Copyright 2005 by Auke Kok under GPLv2 #
+# #
+#############################################################
+
+
+plugin_lids_pre_remove()
+{
+ debug_msg "plugin_lids_pre_remove($@)"
+ if [ -f /var/log/lunar/permissions/$MODULE-$VERSION ] ; then
+ rm -f /var/log/lunar/permissions/$MODULE-$VERSION
+ fi
+}
+
+
+plugin_lids_post_install()
+{
+ debug_msg "plugin_lids_post_install($@)"
+ if [ "$USE_LIDS" != "on" ]; then
+ return 2
+ else
+ /usr/sbin/lids create $MODULE
+ fi
+}
+
+
+plugin_module_check_lids()
+{
+ debug_msg "plugin_module_check_lids($@)"
+ if [ "$USE_LIDS" != "on" ]; then
+ return 2
+ else
+ if [ -f /var/log/lunar/permissions/$MODULE-$VERSION ] ; then
+ if /usr/sbin/lids check $MODULE; then
+ return 2
+ fi
+ else
+ return 2
+ fi
+ fi
+}
+
+
+plugin_register BUILD_PRE_REMOVE plugin_lids_pre_remove
+plugin_register BUILD_POST_INSTALL plugin_lids_post_install
+plugin_register MODULE_CHECK plugin_module_check_lids
More information about the Lunar-commits
mailing list