Summary: Userspace daemon part of the CDemu suite Name: cdemu-daemon Version: 3.2.6 Release: 1 Group: Emulators License: GPLv2+ Url: http://cdemu.sourceforge.net/ Source0: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.xz Source1: 50-cdemud.rules BuildRequires: cmake BuildRequires: sysfsutils-devel BuildRequires: pkgconfig(libmirage) >= 3.2.1 BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(ao) BuildRequires: intltool Requires: dkms-vhba %description The daemon receives SCSI commands from kernel module and processes them, passing the requested data back to the kernel. Daemon implements the actual virtual device; one instance per each device registered by kernel module. It uses libMirage, an image access library that is part of userspace-cdemu suite, for the image access (e.g. sector reading). Daemon is controlled through methods that are exposed via D-BUS. It is written in C and based on GLib (and thus GObjects), but being controlled over D-BUS, it allows for different clients written in different languages. %files %doc README AUTHORS %{_sysconfdir}/modprobe.preload.d/cdemud.conf /lib/udev/rules.d/50-cdemud.rules %{_bindir}/cdemu-daemon #{_libexecdir}/cdemu-daemon-session.sh #{_datadir}/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service %{_datadir}/locale/*/LC_MESSAGES/cdemu-daemon.mo %{_mandir}/man8/cdemu-daemon.8* #---------------------------------------------------------------------------- %prep %autosetup -p1 %build %cmake %make_build %install %make_install -C build install -d -m755 %{buildroot}%{_libdir} install -d -m755 %{buildroot}%{_sysconfdir}/sysconfig install -d -m755 %{buildroot}%{_sysconfdir}/modprobe.preload.d install -d -m755 %{buildroot}%{_datadir}/dbus-1/services install -d -m755 %{buildroot}/lib/udev/rules.d echo "vhba" > %{buildroot}%{_sysconfdir}/modprobe.preload.d/cdemud.conf install %{SOURCE1} %{buildroot}/lib/udev/rules.d/50-cdemud.rules %find_lang %{name} %post # remove old system-wide service if [ -e %{_initrddir}/cdemud ]; then chkconfig --del cdemud fi # apply the new udev rule if module already present /sbin/modprobe --first-time vhba 2>/dev/null || /sbin/udevadm trigger --sysname-match=vhba_ctl