initial cdemu project
This commit is contained in:
parent
2fb1fbc7de
commit
c7a6a954f6
11 changed files with 129 additions and 0 deletions
41
exlibs/cdemu-common.exlib
Normal file
41
exlibs/cdemu-common.exlib
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
myexparam name=
|
||||||
|
myexparam -b autogen=false
|
||||||
|
|
||||||
|
exparam -v name name
|
||||||
|
exparam -v autogen autogen
|
||||||
|
|
||||||
|
WORK="${WORKBASE}/${name}-${PV}"
|
||||||
|
|
||||||
|
if [[ "${PV}" == scm ]] ; then
|
||||||
|
SCM_SUBPATH="${name}"
|
||||||
|
SCM_CHECKOUT_TO="${name}"
|
||||||
|
SCM_UNPACK_TO="${WORK}"
|
||||||
|
SCM_REPOSITORY="https://cdemu.svn.sourceforge.net/svnroot/cdemu/"
|
||||||
|
require scm-svn
|
||||||
|
|
||||||
|
${autogen} && require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.10 ] ]
|
||||||
|
else
|
||||||
|
DOWNLOADS="mirror://sourceforge/cdemu/$(exparam name)-${PV}.tar.bz2"
|
||||||
|
fi
|
||||||
|
|
||||||
|
HOMEPAGE="http://cdemu.sourceforge.net/"
|
||||||
|
|
||||||
|
if [[ "${PN}" == cdemu || "${PN}" == cdemud ]] ; then
|
||||||
|
SUMMARY="A CD/DVD-ROM device emulator."
|
||||||
|
DESCRIPTION="A CD/DVD-ROM device emulator for Linux.
|
||||||
|
It is a from-scratch rewrite of the legacy CDEmu project,
|
||||||
|
which was started by Robert Penz."
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENCES="GPL-2"
|
||||||
|
|
||||||
|
REMOTE_IDS="sourceforge:cdemu freshmeat:cdemu"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if ${autogen} ; then
|
||||||
|
./autogen.sh || die "autogen.sh failed"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
0
metadata/accounts/groups/cdemu.conf
Normal file
0
metadata/accounts/groups/cdemu.conf
Normal file
4
packages/app-emulation/cdemu/cdemu-1.2.0.exheres-0
Normal file
4
packages/app-emulation/cdemu/cdemu-1.2.0.exheres-0
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
require cdemu
|
||||||
|
|
||||||
|
PLATFORMS="~amd64"
|
||||||
|
|
4
packages/app-emulation/cdemu/cdemu-scm.exheres-0
Normal file
4
packages/app-emulation/cdemu/cdemu-scm.exheres-0
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
require cdemu
|
||||||
|
|
||||||
|
PLATFORMS="~amd64"
|
||||||
|
|
11
packages/app-emulation/cdemu/cdemu.exlib
Normal file
11
packages/app-emulation/cdemu/cdemu.exlib
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
require cdemu-common [ name=cdemu-client autogen=true ]
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build+run:
|
||||||
|
app-emulation/cdemud
|
||||||
|
dev-lang/python
|
||||||
|
dev-libs/glib
|
||||||
|
"
|
||||||
|
|
4
packages/app-emulation/cdemud/cdemud-1.2.0.exheres-0
Normal file
4
packages/app-emulation/cdemud/cdemud-1.2.0.exheres-0
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
require cdemud
|
||||||
|
|
||||||
|
PLATFORMS="~amd64"
|
||||||
|
|
4
packages/app-emulation/cdemud/cdemud-scm.exheres-0
Normal file
4
packages/app-emulation/cdemud/cdemud-scm.exheres-0
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
require cdemud
|
||||||
|
|
||||||
|
PLATFORMS="~amd64"
|
||||||
|
|
17
packages/app-emulation/cdemud/cdemud.exlib
Normal file
17
packages/app-emulation/cdemud/cdemud.exlib
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
require cdemu-common [ name=cdemu-daemon autogen=true ]
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build+run:
|
||||||
|
dev-libs/libdaemon[>=0.10]
|
||||||
|
dev-libs/libmirage[>=${PV}]
|
||||||
|
dev-libs/dbus-glib[>=0.66]
|
||||||
|
dev-libs/glib[>=2.6]
|
||||||
|
media-libs/libao[>=0.8.0]
|
||||||
|
sys-apps/dbus[>=0.60]
|
||||||
|
sys-fs/sysfsutils
|
||||||
|
run:
|
||||||
|
app-emulation/vhba-module
|
||||||
|
"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
require vhba-module
|
||||||
|
|
||||||
|
PLATFORMS="~amd64"
|
||||||
|
|
10
packages/app-emulation/vhba-module/vhba-module-scm.exheres-0
Normal file
10
packages/app-emulation/vhba-module/vhba-module-scm.exheres-0
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
require vhba-module
|
||||||
|
|
||||||
|
PLATFORMS="~amd64"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
vhba-module_src_install
|
||||||
|
|
||||||
|
find "${IMAGE}/usr/src/${PNV}" -type d -name .svn -exec rm -r {} \;
|
||||||
|
}
|
||||||
|
|
30
packages/app-emulation/vhba-module/vhba-module.exlib
Normal file
30
packages/app-emulation/vhba-module/vhba-module.exlib
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
export_exlib_phases src_install pkg_postinst
|
||||||
|
require cdemu-common [ name=vhba-module ]
|
||||||
|
|
||||||
|
SUMMARY="Kernel module for CD-ROM device emulation."
|
||||||
|
DESCRIPTION="VHBA module provides (V)irtual (SCSI) (H)ost (B)us (A)dapter, which is the link between userspace cdemu daemon and linux kernel."
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
run:
|
||||||
|
group/cdemu
|
||||||
|
"
|
||||||
|
|
||||||
|
SKIP_FUNCTIONS="compile"
|
||||||
|
|
||||||
|
vhba-module_src_install() {
|
||||||
|
dodir /usr/src
|
||||||
|
cp -pPR "${WORK}" "${IMAGE}/usr/src/${PNV}"
|
||||||
|
|
||||||
|
insinto /etc/udev/rules.d
|
||||||
|
hereins 90-vhba.rules <<EOF
|
||||||
|
KERNEL=="vhba_ctl", NAME="%k", MODE="0660", OWNER="root", GROUP="cdemu"
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
vhba-module_pkg_postinst() {
|
||||||
|
ewarn "This exheres does not build the module, you will have to do this"
|
||||||
|
ewarn "on your own. The source code has been installed to /usr/src/${PNV}"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue