2011-04-10 11:42:58 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-05-20 00:12:58 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2010-05-22 06:07:29 +08:00
|
|
|
|
|
|
|
pkgname=cdemu-daemon
|
2012-08-29 15:31:09 +08:00
|
|
|
pkgver=1.5.0
|
2012-09-04 19:16:39 +08:00
|
|
|
pkgrel=7
|
2010-05-22 06:07:29 +08:00
|
|
|
pkgdesc="CD/DVD-ROM device emulator daemon"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
backup=('etc/conf.d/cdemud'
|
|
|
|
'etc/dbus-1/system.d/cdemud-dbus.conf')
|
|
|
|
url="http://cdemu.sourceforge.net/"
|
|
|
|
license=('GPL')
|
2012-08-29 15:31:09 +08:00
|
|
|
depends=('glib2' 'dbus' 'dbus-glib' 'libdaemon' 'vhba-module' "libmirage=$pkgver" 'libao' 'systemd-units')
|
2012-05-20 00:12:58 +08:00
|
|
|
optdepends=('alsa-lib: to enable the ALSA audio driver'
|
|
|
|
'pulseaudio: to enable the PA audio driver')
|
2012-09-03 15:10:55 +08:00
|
|
|
install="${pkgname}.install"
|
2012-08-29 15:31:09 +08:00
|
|
|
source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
|
2012-07-21 00:26:41 +08:00
|
|
|
'cdemud.conf'
|
|
|
|
'cdemud.rc'
|
2012-09-03 15:10:55 +08:00
|
|
|
'cdemu-daemon.service'
|
|
|
|
'system.patch'
|
|
|
|
'cdemud-dbus.conf')
|
2012-08-29 15:31:09 +08:00
|
|
|
md5sums=('5ba780caa26d855942512b5b3c22405a'
|
2012-09-04 07:53:56 +08:00
|
|
|
'e320740fca36de66074de7192221aac9'
|
2012-09-04 19:16:39 +08:00
|
|
|
'1c3d8d346ca2d7f9413ee5e2391104a6'
|
2012-09-03 15:10:55 +08:00
|
|
|
'be9a8f50da3f42129c0a0e3dea8cd56c'
|
|
|
|
'658fba359ec02386d79e115a6ff9741d'
|
|
|
|
'5a80d05f58f0fb5e6b9a7f9d61bb2622')
|
2011-04-10 11:42:58 +08:00
|
|
|
|
2010-05-22 06:07:29 +08:00
|
|
|
build() {
|
2012-09-03 15:10:55 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
# make things Chakra-friendly
|
|
|
|
patch -Np1 -i "$srcdir/system.patch"
|
|
|
|
|
2012-08-29 15:31:09 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libexecdir=/usr/lib/$pkgname
|
2011-09-15 02:08:41 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-09-03 15:10:55 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
# Custom dbus policy, tightening security to console and 'cdemu' group
|
|
|
|
install -m644 "$srcdir/cdemud-dbus.conf" \
|
|
|
|
"$pkgdir/etc/dbus-1/system.d/cdemud-dbus.conf"
|
|
|
|
|
2012-07-21 00:26:41 +08:00
|
|
|
install -Dm644 "$srcdir/cdemud.conf" "$pkgdir/etc/conf.d/cdemud"
|
|
|
|
install -Dm755 "$srcdir/cdemud.rc" "$pkgdir/etc/rc.d/cdemud"
|
2012-06-13 01:44:48 +08:00
|
|
|
install -d "$pkgdir/usr/lib/modules-load.d"
|
|
|
|
echo "vhba" > "$pkgdir/usr/lib/modules-load.d/cdemu.conf"
|
2011-04-10 11:42:58 +08:00
|
|
|
|
2012-07-21 00:26:41 +08:00
|
|
|
# for systemd
|
|
|
|
install -Dm644 "$srcdir/cdemu-daemon.service" \
|
|
|
|
"$pkgdir/usr/lib/systemd/system/cdemu-daemon.service"
|
|
|
|
echo "SystemdService=cdemu-daemon.service" >> \
|
|
|
|
"$pkgdir/usr/share/dbus-1/system-services/net.sf.cdemu.CDEMUD_Daemon.service"
|
|
|
|
|
2010-05-22 06:07:29 +08:00
|
|
|
}
|
2012-08-29 15:31:09 +08:00
|
|
|
|