Accepting request 120796 from home:jengelh:dev
cdemu suite OBS-URL: https://build.opensuse.org/request/show/120796 OBS-URL: https://build.opensuse.org/package/show/filesystems/cdemu-daemon?expand=0&rev=1
This commit is contained in:
commit
40c599cca7
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
3
cdemu-daemon-1.5.0.tar.bz2
Normal file
3
cdemu-daemon-1.5.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d0e122c7769ba11b640bb140657d1f31dc827904578437ac1d5aa84dcc88a74f
|
||||||
|
size 133865
|
1
cdemu-daemon-rpmlintrc
Normal file
1
cdemu-daemon-rpmlintrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
setBadness("suse-dbus-unauthorized-service", 0)
|
4
cdemu-daemon.changes
Normal file
4
cdemu-daemon.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 8 22:39:47 UTC 2012 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Initial package for build.opensuse.org
|
9
cdemu-daemon.service
Normal file
9
cdemu-daemon.service
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Virtual CD-ROM drive daemon
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/cdemud-launch -b system
|
||||||
|
EnvironmentFile=/etc/sysconfig/cdemu-daemon
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
112
cdemu-daemon.spec
Normal file
112
cdemu-daemon.spec
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
#
|
||||||
|
# spec file for package cdemu-daemon
|
||||||
|
#
|
||||||
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
Name: cdemu-daemon
|
||||||
|
Version: 1.5.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Device daemon for cdemu, a virtual CD-ROM device emulator
|
||||||
|
License: GPL-2.0+
|
||||||
|
Group: System/Daemons
|
||||||
|
Url: http://cdemu.sf.net/
|
||||||
|
|
||||||
|
Source: http://downloads.sf.net/cdemu/%name-%version.tar.bz2
|
||||||
|
Source2: %name-rpmlintrc
|
||||||
|
Source3: cdemu-daemon.sysconfig
|
||||||
|
Source4: cdemu-daemon.service
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
#BuildRequires: autoconf >= 2.59
|
||||||
|
BuildRequires: pkgconfig pkgconfig(glib-2.0) >= 2.28
|
||||||
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.28 pkgconfig(gmodule-2.0) >= 2.28
|
||||||
|
BuildRequires: pkgconfig(gthread-2.0) >= 2.28, pkgconfig(gio-2.0) >= 2.28
|
||||||
|
BuildRequires: pkgconfig(ao) >= 0.8.0, pkgconfig(libmirage) >= 1.5.0
|
||||||
|
%if 0%{?suse_version} >= 1210
|
||||||
|
BuildRequires: systemd
|
||||||
|
%systemd_requires
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
cdemu-daemon receives SCSI commands from kernel module thorugh the
|
||||||
|
VHBA module and processes them, passing the requested data back to
|
||||||
|
the kernel. The daemon implements the actual virtual device; one
|
||||||
|
instance per each device registered by kernel module. It uses
|
||||||
|
libmirage for the image access (e.g. sector reading).
|
||||||
|
|
||||||
|
The daemon registers itself on D-BUS's system or session bus
|
||||||
|
(depending on the options passed to it) where it exposes an interface
|
||||||
|
that can be used by clients to control it.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
make %{?_smp_mflags};
|
||||||
|
|
||||||
|
%install
|
||||||
|
b="%buildroot";
|
||||||
|
make install DESTDIR="$b";
|
||||||
|
mkdir -p "$b/%_sbindir";
|
||||||
|
cat >"$b/%_sbindir/cdemud-launch" <<-EOF;
|
||||||
|
#!/bin/sh
|
||||||
|
modprobe -q sg;
|
||||||
|
modprobe -q vhba;
|
||||||
|
exec /usr/bin/cdemud "$@";
|
||||||
|
EOF
|
||||||
|
chmod a+x "$b/%_sbindir/cdemud-launch";
|
||||||
|
mkdir -p "$b/%_localstatedir/adm/fillup-templates";
|
||||||
|
install -pm0644 "%{S:3}" "$b/%_localstatedir/adm/fillup-templates/sysconfig.cdemu-daemon";
|
||||||
|
%if %{?_unitdir:1}
|
||||||
|
mkdir -p "$b/%_unitdir";
|
||||||
|
install -pm0644 "%{S:4}" "$b/%_unitdir/";
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{?_unitdir:1}
|
||||||
|
%pre
|
||||||
|
%service_add_pre cdemu-daemon.service
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post
|
||||||
|
%fillup_and_insserv -i
|
||||||
|
%if %{?_unitdir:1}
|
||||||
|
%service_add_post cdemu-daemon.service
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{?_unitdir:1}
|
||||||
|
%preun
|
||||||
|
%service_del_preun cdemu-daemon.service
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{?_unitdir:1}
|
||||||
|
%postun
|
||||||
|
%service_del_postun cdemu-daemon.service
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %_sysconfdir/dbus-1
|
||||||
|
%dir %_sysconfdir/dbus-1/system.d
|
||||||
|
%config %_sysconfdir/dbus-1/system.d/cdemud-dbus.conf
|
||||||
|
%_bindir/cdemud
|
||||||
|
%_sbindir/cdemud-launch
|
||||||
|
%_libexecdir/cdemu-daemon-*.sh
|
||||||
|
%_datadir/dbus-1
|
||||||
|
%_mandir/man8/cdemud.8*
|
||||||
|
%_localstatedir/adm/fillup-templates/sysconfig.cdemu-daemon
|
||||||
|
%if %{?_unitdir:1}
|
||||||
|
%_unitdir/*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
11
cdemu-daemon.sysconfig
Normal file
11
cdemu-daemon.sysconfig
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Module to insert
|
||||||
|
MODULE=vhba
|
||||||
|
|
||||||
|
# Number of devices
|
||||||
|
DEVICES=1
|
||||||
|
|
||||||
|
# Control device
|
||||||
|
CTL_DEVICE=/dev/vhba_ctl
|
||||||
|
|
||||||
|
# Audio backend: pulse, alsa, oss, null (any driver supported by libao)
|
||||||
|
AUDIO_BACKEND=null
|
Loading…
Reference in New Issue
Block a user