Commit 506b981e authored by Martin Pitt's avatar Martin Pitt Committed by Jeremy Bicha

Import Debian changes 2.1.0-3

sysfsutils (2.1.0-3) unstable; urgency=low

  * debian/sysfsutils.init: Fix Default-Stop LSB header to not run in any
    level, since 'stop' does not do anything. (Closes: #458272, #427033)
  * debian/sysfsutils.init: Use LSB output commands. (Closes: #457662)
  * debian/sysfsutils.README.Debian: Fix script name. (Closes: #453312)
  * Bump Standards-Version (no changes necessary).
  * debian/control: Replace obsolete ${Source-Version} with ${binary:Version}.
  * debian/rules: Drop pointless rpath from systool binary. Add chrpath build
    dependency.
parent 1b3156ba
sysfsutils (2.1.0-3) unstable; urgency=low
* debian/sysfsutils.init: Fix Default-Stop LSB header to not run in any
level, since 'stop' does not do anything. (Closes: #458272, #427033)
* debian/sysfsutils.init: Use LSB output commands. (Closes: #457662)
* debian/sysfsutils.README.Debian: Fix script name. (Closes: #453312)
* Bump Standards-Version (no changes necessary).
* debian/control: Replace obsolete ${Source-Version} with ${binary:Version}.
* debian/rules: Drop pointless rpath from systool binary. Add chrpath build
dependency.
-- Martin Pitt <mpitt@debian.org> Sun, 30 Dec 2007 21:23:06 +0100
sysfsutils (2.1.0-2) unstable; urgency=low
* Bump libsysfs2 priority to 'important', since pcmciautils depends on it.
......
......@@ -2,14 +2,14 @@ Source: sysfsutils
Section: libs
Priority: extra
Maintainer: Martin Pitt <mpitt@debian.org>
Build-Depends: cdbs, debhelper (>= 5.0.22)
Standards-Version: 3.7.2
Build-Depends: cdbs, debhelper (>= 5.0.22), chrpath
Standards-Version: 3.7.3
Package: libsysfs-dev
Section: libdevel
Priority: optional
Architecture: any
Depends: libsysfs2 (= ${Source-Version})
Depends: libsysfs2 (= ${binary:Version})
Description: interface library to sysfs - development files
Sysfs is a virtual file system in Linux kernel 2.5+ that provides a
tree of system devices. libsysfs provides a stable programming
......
......@@ -13,3 +13,6 @@ DEB_DH_MAKESHLIBS_ARGS_libsysfs2 := --add-udeb="libsysfs2-udeb"
install/libsysfs2-udeb::
cp -L debian/tmp/lib/libsysfs.so.? debian/$(cdbs_curpkg)/lib
chmod 644 $(DEB_DESTDIR)/lib/*.so
binary-fixup/sysfsutils::
chrpath -d debian/$(cdbs_curpkg)/usr/bin/*
sysfsutils for Debian
=====================
This package now comes with an init script /etc/init.d/sysfs to conveniently
configure and set sysfs variables at boot, as specified in the configuration
file /etc/sysfs.conf.
This package now comes with an init script /etc/init.d/sysfsutils to
conveniently configure and set sysfs variables at boot, as specified
in the configuration file /etc/sysfs.conf.
-- Martin Pitt <mpitt@debian.org>
......@@ -5,7 +5,7 @@
# Required-Start: mountkernfs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Default-Stop:
# Short-Description: Set sysfs variables from /etc/sysfs.conf
# Description: Similarly to /etc/init.d/procps.sh, you can configure
# values for sysfs variables (such as power management
......@@ -20,9 +20,11 @@ CONFFILE=/etc/sysfs.conf
[ -r "$CONFFILE" ] || exit 0
. /lib/lsb/init-functions
case "$1" in
start|restart|force-reload)
echo -n "Setting sysfs variables..."
log_begin_msg "Setting sysfs variables..."
sed 's/#.*$//; /^[[:space:]]*$/d;
s/^[[:space:]]*\([^=[:space:]]*\)[[:space:]]*\([^=[:space:]]*\)[[:space:]]*=[[:space:]]*\(.*\)/\1 \2 \3/' \
......@@ -32,28 +34,29 @@ case "$1" in
if [ -f "/sys/$f2" ]; then
chmod "$f3" "/sys/$f2"
else
echo "unknown attribute $f2"
log_failure_msg "unknown attribute $f2"
fi
elif [ "$f1" = "owner" -a -n "$f2" -a -n "$f3" ]; then
if [ -f "/sys/$f2" ]; then
chown "$f3" "/sys/$f2"
else
echo "unknown attribute $f2"
log_failure_msg "unknown attribute $f2"
fi
elif [ "$f1" -a -n "$f2" -a -z "$f3" ]; then
if [ -f "/sys/$f1" ]; then
echo -n "$f2" > "/sys/$f1"
else
echo "unknown attribute $f1"
log_failure_msg "unknown attribute $f1"
fi
else
echo "syntax error in $CONFFILE: '$f1' '$f2' '$f3'"
log_failure_msg "syntax error in $CONFFILE: '$f1' '$f2' '$f3'"
log_end_msg 1
exit 1
fi
done
}
echo "done."
log_end_msg 0
;;
stop)
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment