debian/0000775000000000000000000000000012253506232007170 5ustar debian/libsysfs2-udeb.dirs0000664000000000000000000000000412034304447012703 0ustar lib debian/local/0000775000000000000000000000000012034304447010263 5ustar debian/local/libsysfs.pc0000664000000000000000000000030412034304447012442 0ustar prefix=/usr exec_prefix=${prefix} libdir=/lib includedir=${prefix}/include/sysfs/ Name: libsysfs Description: interface to sysfs Version: 2.1.0 Libs: -L${libdir} -lsysfs Cflags: -I${includedir} debian/source/0000775000000000000000000000000012034304447010471 5ustar debian/source/format0000664000000000000000000000001412034304447011677 0ustar 3.0 (quilt) debian/copyright0000664000000000000000000000414312034304447011126 0ustar This package was debianized by Martin Pitt on Wed, 6 Nov 2003 11:29:18 +0100. Upstream URL: http://linux-diag.sourceforge.net/Sysfsutils.html Upstream Authors: Ananth Mavinakayanahalli Daniel Stekloff Copyright (C) IBM Corp. 2003 License for systool and lsbus (package sysfsutils): This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. On Debian systems, the complete text of the GNU General Public License can be found in '/usr/share/common-licenses/GPL'. License for libsysfs (packages libsysfs0, libsysfs-dev): This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU Lesser General Public License can be found in '/usr/share/common-licenses/LGPL'. debian/libsysfs-dev.install0000664000000000000000000000014512034304447013173 0ustar usr/include docs/libsysfs.txt usr/share/doc/libsysfs-dev/ debian/local/libsysfs.pc usr/lib/pkgconfig debian/compat0000664000000000000000000000000212034304447010367 0ustar 7 debian/sysfsutils.dirs0000664000000000000000000000001512140510307012270 0ustar /etc/sysfs.d debian/sysfsutils.install0000664000000000000000000000007412034304447013012 0ustar usr/bin/systool usr/share/man/man1/ debian/sysfs.conf etc/ debian/README.Examples0000664000000000000000000000071512034304447011631 0ustar libsysfs examples ----------------- This directory contains the test programs for libsysfs as examples how to use this library. They have to be linked against libsysfs, so compile them with e. g. gcc `pkg-config --cflags --libs libsysfs` -o get_device get_device.c The official and extensive documentation of libsysfs' API can be found in /usr/share/doc/libsysfs-dev/libsysfs.txt.gz. -- Martin Pitt , Thu, 06 Nov 2003 12:29:18 +0100 debian/libsysfs-dev.examples0000664000000000000000000000006612034304447013345 0ustar test/dlist_test.c test/get_*.c debian/README.Examples debian/changelog0000664000000000000000000002556112253505735011062 0ustar sysfsutils (2.1.0+repack-3ubuntu1) trusty; urgency=medium * Build with dh-autoreconf for new libtool. -- William Grant Mon, 16 Dec 2013 16:12:50 +1100 sysfsutils (2.1.0+repack-3) unstable; urgency=low * QA upload. * Add init script support for manipulating sysfs using fragments in /etc/sysfs.d. (closes: #575459) -- Chris Boot Thu, 02 May 2013 17:36:19 +0100 sysfsutils (2.1.0+repack-2) unstable; urgency=low * Orphan package. -- Martin Pitt Sun, 07 Oct 2012 15:51:14 +0200 sysfsutils (2.1.0+repack-1.2) unstable; urgency=low * Non-maintainer upload. * Support multi-arch: (closes: #663040) - Mark libsysfs2 as same. - Mark sysfsutils as foreign. - Adjust debhelper and cdbs build-dependencies. - Fixup -dev installation. -- Bastian Blank Sat, 16 Jun 2012 17:18:46 +0000 sysfsutils (2.1.0+repack-1.1) unstable; urgency=low * Non-maintainer upload. * debian/sysfsutils.init: - add support for changing permissions of folders too. closes: #658365 * debian/control: - fix typo in long description. - add build-dep on autotools-dev to replace ancient autotools helpers. - update standards version to 3.9.3. -- Yves-Alexis Perez Fri, 01 Jun 2012 09:34:05 +0200 sysfsutils (2.1.0+repack-1) unstable; urgency=low * Drop tarball.mk and tar-in-tar packaging and use upstream tarball as orig.tar.gz now. This style is obsolete, we have much better tools now. * Switch to dh compat 7. * Add bzr-builddeb configuration (merge mode). * debian/control: Add Vcs-Bzr:. * Switch to 3.0 (quilt) source format, drop simple-patchsys.mk. * debian/control: Add missing ${misc:Depends}. * debian/control: Bump Standards-Version to 3.9.1. * debian/sysfsutils.init: Start after cpufrequtils, to make sure that a governor is selected and set up. Thanks Mario Holbe! (Closes: #590143) -- Martin Pitt Fri, 06 Aug 2010 19:14:59 +0200 sysfsutils (2.1.0-6) unstable; urgency=low * debian/sysfsutils.init: Make sure the init.d script runs after udev, module-init-tools and loadcpufreq, to avoid trying to set kernel parameters for kernel modules not yet loaded. Thanks to Petter Reinholdtsen! (Closes: #539755) * Bump Standards-Version to 3.8.3 (no changes necessary). -- Martin Pitt Sun, 23 Aug 2009 20:05:02 +0200 sysfsutils (2.1.0-5) unstable; urgency=low * debian/rules: Fix dh_installinit call to not install stop symlinks. The init script does not need to be called on stop. This also makes the update-rc.d links consistent to the LSB header "Should-Stop" which insserv complained about. (Closes: #497905) * debian/libsysfs-dev.doc-base: Fix section name, thanks lintian. * debian/control: Bump Standards-Version (no changes necessary). -- Martin Pitt Sat, 06 Sep 2008 10:36:59 +0200 sysfsutils (2.1.0-4) unstable; urgency=low * debian/sysfsutils.init: Some attributes in sysfs need a terminating newline, some don't, so try both. Thanks to Stefan Monnier for the patch! (Closes: #459240, LP: #184783) -- Martin Pitt Tue, 01 Apr 2008 16:53:02 +0200 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 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. * debian/control: Bump standards version. * debian/copyright: Update FSF address. * debian/control: Drop the "Provides: libsysfs2" from the udeb, as per request from Frans Pop. Closes: #419610 * debian/sysfsutils.init: Add LSB header. -- Martin Pitt Wed, 02 May 2007 23:43:03 +0200 sysfsutils (2.1.0-1) unstable; urgency=low * New upstream version. Closes: #385639 - Add sysfs_open_link_list(). - Add sysfs_open_device_tree(). - Add C++ compilation suport. - Add subsystem in sysfs_device. * Add watch file. * debian/sysfs.conf: Consistently use whitespace in examples. Closes: #382437 * Add debian/local/libsysfs.pc: Provide a pkg-config data file and install it into libsysfs-dev. Closes: #385742 * debian/README.Examples: Use pkg-config in build instructions. -- Martin Pitt Sun, 29 Oct 2006 18:15:24 +0100 sysfsutils (2.0.0-7) unstable; urgency=low * Raise libsysfs{2,-dev} to priority optional, since reverse dependencies are optional. -- Martin Pitt Fri, 12 May 2006 09:32:20 +0200 sysfsutils (2.0.0-6) unstable; urgency=low * debian/rules: Generate shlibs for udev files. Thanks to Frans Pop! Closes: #355965 * debian/control: Bump debhelper dependency to >= 5.0.22. -- Martin Pitt Thu, 9 Mar 2006 08:53:44 +0100 sysfsutils (2.0.0-5) unstable; urgency=medium * Urgency medium since this only fixes two RC bugs and libsysfs blocks move to testing for other packages. * debian/rules: Fix installation of library into the udeb. Closes: #355385 * Add debian/patches/get_mnt_path_check.patch: - sysfs_get_mnt_path(): Check that sysfs is actually mounted and fail if not. Fixes behavioural breakage compared to 1.3. - Closes: #355540 -- Martin Pitt Mon, 6 Mar 2006 19:08:56 +0100 sysfsutils (2.0.0-4) unstable; urgency=low * Upload to unstable. -- Martin Pitt Wed, 22 Feb 2006 12:32:27 +0100 sysfsutils (2.0.0-3) experimental; urgency=low * Install .so symlink in /usr/lib, not in /lib. (See #346582) * libsysfs-dev: Do not install the .la file, it just confuses libtool. (See #347901) -- Martin Pitt Fri, 13 Jan 2006 17:17:03 +0100 sysfsutils (2.0.0-2) experimental; urgency=low * debian/libsysfs-dev: Install static library into /usr/lib. (See #344067) -- Martin Pitt Tue, 20 Dec 2005 13:35:09 +0100 sysfsutils (2.0.0-1) experimental; urgency=low * New upstream version. * SONAME change, now build libsysfs2. -- Martin Pitt Fri, 16 Dec 2005 10:05:03 +0100 sysfsutils (1.3.0-7) unstable; urgency=low * Install .so symlink in /usr/lib, not in /lib. Closes: #346582 * Do not install the .la file, it just confuses libtool. Closes: #347901 -- Martin Pitt Fri, 13 Jan 2006 17:00:00 +0100 sysfsutils (1.3.0-6) unstable; urgency=low * debian/libsysfs-dev.install: Install static library into /usr/lib. Closes: #344067 -- Martin Pitt Tue, 20 Dec 2005 13:31:33 +0100 sysfsutils (1.3.0-5) unstable; urgency=low * libsysfs1-udeb: Ship the actual library as libsysfs.so.1 instead of a SONAME symlink and .so.1.0.3. This unbreaks library handling in the installer. -- Martin Pitt Mon, 5 Dec 2005 15:55:48 +0100 sysfsutils (1.3.0-4) unstable; urgency=low * debian/sysfsutils.init: - Use -n "$variable" instead of naked "$variable" in test invocations since the latter breaks with values that start with a dash. - Thanks to Henrique de Moraes Holschuh for making me aware of this issue. - Closes: #341060 -- Martin Pitt Fri, 2 Dec 2005 17:13:53 +0100 sysfsutils (1.3.0-3) unstable; urgency=low * Add a libsysfs1-udeb package, for use by pcmciautils-udeb. Thanks to Colin Watson. Closes: #340300 * debian/sysfsutils.init: - Use echo -n to write values. Closes: #334586 - Now support permission setting with 'mode' and 'owner' lines. Closes: #319848 * debian/sysfs.conf: Add explanation of syntax and add mode and owner example. -- Martin Pitt Tue, 22 Nov 2005 19:23:16 +0100 sysfsutils (1.3.0-2) unstable; urgency=low * debian/sysfsutils.init: Replace $MNTPATH with hardcoded /sys since the -m option does not exist any more. Closes: #316013 -- Martin Pitt Tue, 28 Jun 2005 23:18:08 +0200 sysfsutils (1.3.0-1) unstable; urgency=low * New upstream release: - sysfs_get_device_parent() does not depend on the detach_state attribute any more, which was removed from the kernel recently. (closes: #314985) * Removed debian/patches/01_systool_mntpath.patch: Mounting sysfs under a directory other than /sys is not supported any more. -- Martin Pitt Wed, 22 Jun 2005 00:03:44 +0200 sysfsutils (1.2.0-5) unstable; urgency=low * Install the libsysfs library in /lib instead of /usr/lib. (closes: #293149) -- Martin Pitt Wed, 9 Feb 2005 18:56:17 +0100 sysfsutils (1.2.0-4) unstable; urgency=low * Bump debhelper build-dependency to >= 4.1.1. (closes: #291557) -- Martin Pitt Fri, 21 Jan 2005 16:13:31 +0100 sysfsutils (1.2.0-3) unstable; urgency=low * sysfsutils.init: Dropped bash variable substitutions, do the mangling in sed instead. Use shell sh instead of bash. (closes: #291022) * sysfs.conf: Do not allow '.' as path component separator any more since '.' appears in regular file names in sysfs. -- Martin Pitt Thu, 20 Jan 2005 10:29:03 +0100 sysfsutils (1.2.0-2) unstable; urgency=low * sysfsutils.init: Use shell bash instead of sh. (closes: #291011) -- Martin Pitt Tue, 18 Jan 2005 10:32:59 +0100 sysfsutils (1.2.0-1) unstable; urgency=low * New upstream release * Repackaged using cdbs * Adapted README.Examples * Added a proper copyright to debian/copyright (closes: #290208) * 01_systool_mntpath.patch: Add option -m to systool which prints out sysfs mount path * Updated package descriptions * Added /etc/init.d/sysfsutils to control sysfs parameters with /etc/sysfs.conf (closes: #286327) -- Martin Pitt Sun, 16 Jan 2005 22:08:00 +0100 sysfsutils (1.1.0-1) unstable; urgency=low * New upstream release -- Martin Pitt Wed, 31 Mar 2004 14:14:18 +0200 sysfsutils (1.0.0-1) unstable; urgency=low * New upstream release (closes: #230420) * Removed README.Debian since /sys is now automatically mounted by mountkernfs * Removed lsbus manpage and description (program does not exist any more, systool has all functionality lsbus had) * my contributed systool.1 man page was included upstream -- Martin Pitt Tue, 24 Feb 2004 13:29:37 +0100 sysfsutils (0.3.0-1) unstable; urgency=low * Initial Release (closes: #215257) -- Martin Pitt Thu, 6 Nov 2003 11:07:54 +0100 debian/sysfsutils.README.Debian0000664000000000000000000000040612034304447013461 0ustar sysfsutils for Debian ===================== 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 debian/libsysfs2.install0000664000000000000000000000002512034304447012476 0ustar lib/*/libsysfs.so.* debian/libsysfs-dev.doc-base0000664000000000000000000000052012034304447013177 0ustar Document: libsysfs-interface Title: Interface documentation of libsysfs Author: Daniel Stekloff, Ananth Mavinakayanahalli Abstract: This document provides an introduction to libsysfs and describes the data structures and functions of the library. Section: Programming/C Format: text Files: /usr/share/doc/libsysfs-dev/libsysfs.txt.gz debian/control0000664000000000000000000000502512253505736010605 0ustar Source: sysfsutils Section: libs Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian QA Group Build-Depends: debhelper (>= 8.1.3), cdbs (>= 0.4.93~), chrpath, dh-autoreconf Standards-Version: 3.9.3 Package: libsysfs-dev Section: libdevel Priority: optional Architecture: any Multi-Arch: same Depends: ${misc: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 interface to sysfs and eases querying system devices and their attributes. . This package provides everything that is needed for developing own programs using libsysfs: C headers, a static library, documentation and example programs. Package: libsysfs2 Architecture: any Multi-Arch: same Priority: important Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: interface library to sysfs Sysfs is a virtual file system in Linux kernel 2.5+ that provides a tree of system devices. libsysfs provides a stable programming interface to sysfs and eases querying system devices and their attributes. . The package sysfsutils contains frontend programs that use this library. Development files and C examples are provided by the package libsysfs-dev. Package: sysfsutils Section: utils Architecture: any Multi-Arch: foreign Depends: ${shlibs:Depends}, ${misc:Depends} Description: sysfs query tool and boot-time setup Sysfs is a virtual file system in Linux kernel 2.5+ that provides a tree of system devices. This package provides the program 'systool' to query it: it can list devices by bus, class, and topology. . In addition this package ships a configuration file /etc/sysfs.conf which allows one to conveniently set sysfs attributes at system bootup (in the init script /etc/init.d/sysfsutils). . If you need sysfs queries in own programs, then you may want to use the libsysfs library directly (package libsysfs-dev). Package: libsysfs2-udeb XC-Package-Type: udeb Section: debian-installer Priority: optional Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: interface library to sysfs Sysfs is a virtual file system in Linux kernel 2.5+ that provides a tree of system devices. libsysfs provides a stable programming interface to sysfs and eases querying system devices and their attributes. . This is a minimal package for use in debian-installer. debian/sysfsutils.init0000664000000000000000000000404412140507736012314 0ustar #! /bin/sh -e ### BEGIN INIT INFO # Provides: sysfsconf # Required-Start: mountkernfs # Should-Start: udev module-init-tools cpufrequtils # Required-Stop: # Default-Start: 2 3 4 5 # 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 # defaults) and /sys file permissions in /etc/sysfs.conf. ### END INIT INFO # /etc/init.d/sysfsutils: # # (c) 2005 Martin Pitt CONFFILE=/etc/sysfs.conf CONFDIR=/etc/sysfs.d [ -r "$CONFFILE" -o -d "$CONFDIR" ] || exit 0 . /lib/lsb/init-functions load_conffile() { FILE="$1" sed 's/#.*$//; /^[[:space:]]*$/d; s/^[[:space:]]*\([^=[:space:]]*\)[[:space:]]*\([^=[:space:]]*\)[[:space:]]*=[[:space:]]*\(.*\)/\1 \2 \3/' \ $FILE | { while read f1 f2 f3; do if [ "$f1" = "mode" -a -n "$f2" -a -n "$f3" ]; then if [ -f "/sys/$f2" ] || [ -d "/sys/$f2" ]; then chmod "$f3" "/sys/$f2" else 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 log_failure_msg "unknown attribute $f2" fi elif [ "$f1" -a -n "$f2" -a -z "$f3" ]; then if [ -f "/sys/$f1" ]; then # Some fields need a terminating newline, others # need the terminating newline to be absent :-( echo -n "$f2" > "/sys/$f1" 2>/dev/null || echo "$f2" > "/sys/$f1" else log_failure_msg "unknown attribute $f1" fi else log_failure_msg "syntax error in $CONFFILE: '$f1' '$f2' '$f3'" log_end_msg 1 exit 1 fi done } } case "$1" in start|restart|force-reload) log_begin_msg "Setting sysfs variables..." for file in $CONFFILE $CONFDIR/*.conf; do [ -r "$file" ] || continue load_conffile "$file" done log_end_msg 0 ;; stop) ;; *) echo "Usage: /etc/init.d/sysfsutils {start|stop|force-reload|restart}" exit 1 ;; esac debian/watch0000664000000000000000000000007512034304447010224 0ustar version=3 http://sf.net/linux-diag/ sysfsutils-(.*)\.tar\.gz debian/patches/0000775000000000000000000000000012253505712010621 5ustar debian/patches/series0000664000000000000000000000003112034304447012027 0ustar get_mnt_path_check.patch debian/patches/get_mnt_path_check.patch0000664000000000000000000000257112034304447015454 0ustar Index: sysfsutils-2.1.0+repack/lib/sysfs_utils.c =================================================================== --- sysfsutils-2.1.0+repack.orig/lib/sysfs_utils.c 2006-08-07 07:08:01.000000000 +0200 +++ sysfsutils-2.1.0+repack/lib/sysfs_utils.c 2010-08-06 19:03:58.276747000 +0200 @@ -22,6 +22,7 @@ */ #include "libsysfs.h" #include "sysfs.h" +#include /** * sysfs_remove_trailing_slash: Removes any trailing '/' in the given path @@ -53,6 +54,9 @@ { static char sysfs_path[SYSFS_PATH_MAX] = ""; const char *sysfs_path_env; + FILE *mnt; + struct mntent *mntent; + int ret; if (len == 0 || mnt_path == NULL) return -1; @@ -64,12 +68,31 @@ if (sysfs_path_env != NULL) { safestrcpymax(mnt_path, sysfs_path_env, len); sysfs_remove_trailing_slash(mnt_path); - return 0; + } else { + safestrcpymax(mnt_path, SYSFS_MNT_PATH, len); } - safestrcpymax(mnt_path, SYSFS_MNT_PATH, len); } - return 0; + /* check that mount point is indeed mounted */ + ret = -1; + if ((mnt = setmntent(SYSFS_PROC_MNTS, "r")) == NULL) { + dprintf("Error getting mount information\n"); + return -1; + } + while ((mntent = getmntent(mnt)) != NULL) { + if (strcmp(mntent->mnt_type, SYSFS_FSTYPE_NAME) == 0 && + strcmp(mntent->mnt_dir, mnt_path) == 0) { + ret = 0; + break; + } + } + + endmntent(mnt); + + if (ret < 0) + errno = ENOENT; + + return ret; } /** debian/sysfs.conf0000664000000000000000000000133112034304447011205 0ustar # # /etc/sysfs.conf - Configuration file for setting sysfs attributes. # # The sysfs mount directory is automatically prepended to the attribute paths. # # Syntax: # attribute = value # mode attribute = 0600 # (any valid argument for chmod) # owner attribute = root:wheel # (any valid argument for chown) # # Examples: # # Always use the powersave CPU frequency governor # devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave # # Use userspace CPU frequency governor and set initial speed # devices/system/cpu/cpu0/cpufreq/scaling_governor = userspace # devices/system/cpu/cpu0/cpufreq/scaling_setspeed = 600000 # # Set permissions of suspend control file # mode power/state = 0660 # owner power/state = root:power debian/rules0000775000000000000000000000151112253506232010246 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/autoreconf.mk DEB_CONFIGURE_EXTRA_FLAGS := --libdir=/lib/$(DEB_HOST_MULTIARCH) DEB_DH_MAKESHLIBS_ARGS_libsysfs2 := --add-udeb="libsysfs2-udeb" DEB_DH_INSTALLINIT_ARGS := -- start 20 2 3 4 5 . DEB_DH_AUTORECONF_ARGS = --as-needed autoreconf -- -f -i -I m4 install/libsysfs-dev:: mkdir -p debian/$(cdbs_curpkg)/usr/lib/$(DEB_HOST_MULTIARCH) ln -s /lib/$(DEB_HOST_MULTIARCH)/libsysfs.so.2 debian/$(cdbs_curpkg)/usr/lib/$(DEB_HOST_MULTIARCH)/libsysfs.so cp debian/tmp/lib/*/libsysfs.a debian/$(cdbs_curpkg)/usr/lib/$(DEB_HOST_MULTIARCH) install/libsysfs2-udeb:: cp -L debian/tmp/lib/*/libsysfs.so.2 debian/$(cdbs_curpkg)/lib binary-fixup/sysfsutils:: chrpath -d debian/$(cdbs_curpkg)/usr/bin/*