Jan 05, 2016 This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register. By continuing to use this site, you are consenting to our use of cookies.
CCcam-2.3.0.ebuild
# Copyright 1999-2014 Gentoo Foundation |
# Distributed under the terms of the GNU General Public License v2 |
# $Header: |
EAPI=4 |
inherit eutils linux-info multilib systemd |
DESCRIPTION='The CCcam emulator for cardsharing' |
HOMEPAGE='http://www.cccam.co/' |
SRC_URI='http://dvb.oppserver.net/cams/cccam/${P}.zip' |
LICENSE='' |
SLOT='0' |
KEYWORDS='~amd64 ~arm ~ppc ~x86' |
IUSE='-oscam -systemd' |
RESTRICT='nomirror' |
DEPEND='oscam? ( media-tv/oscam ) |
systemd? ( sys-apps/gentoo-systemd-integration |
>=sys-apps/systemd-204-r1 )' |
RDEPEND='>=app-arch/unzip-6.0-r3' |
CCCAM_CONF='/var/etc' |
CCCAM_KEYS='/var/keys' |
CCCAM_PREFIX='/usr/bin' |
src_unpack() { |
unpack ${A} |
cd'${S}' |
} |
pkg_setup() { |
if use systemd ;then |
if! linux_config_exists;then |
eerror 'Kernel configuration file doesn't exist' |
elif! linux_chkconfig_present GENTOO_LINUX_INIT_SYSTEMD;then |
eerror 'WARNING : GENTOO_LINUX_INIT_SYSTEMD not enabled in kernel' |
fi |
fi |
} |
src_install () { |
einfo |
if use amd64 && has_multilib_profile ;then |
einfo 'Install x86 binary (On amd64 multilib)' |
dobin CCcam.x86 || die 'dobin failed !' |
dosym ${CCCAM_PREFIX}/CCcam.x86 ${CCCAM_PREFIX}/${PN} |
fi |
if use arm ;then |
einfo 'Install arm binary' |
dobin CCcam.armeb || die 'dobin failed !' |
dosym ${CCCAM_PREFIX}/CCcam.armeb ${CCCAM_PREFIX}/${PN} |
fi |
if use ppc ;then |
einfo 'Install ppc binary' |
dobin CCcam.ppc || die 'dobin failed !' |
dosym ${CCCAM_PREFIX}/CCcam.ppc ${CCCAM_PREFIX}/${PN} |
fi |
if use x86 ;then |
einfo 'Install x86 binary' |
dobin CCcam.x86 || die 'dobin failed !' |
dosym ${CCCAM_PREFIX}/CCcam.x86 ${CCCAM_PREFIX}/${PN} |
fi |
einfo 'Copying configuration files' |
insinto ${CCCAM_CONF} |
doins CCcam.cfg || die 'doins failed !' |
einfo 'Copying ChangeLog' |
dodoc ChangeLog || die 'dodoc failed !' |
einfo 'Creating folder for keys' |
dodir ${CCCAM_KEYS}|| die 'dodir failed !' |
if use systemd ;then |
einfo 'Install systemd unit' |
systemd_dounit '${FILESDIR}/${PN}.service'|| die 'dounit failed !' |
else |
einfo 'Install init runscript' |
doinitd '${FILESDIR}/${PN}'|| die 'doinitd failed !' |
fi |
einfo |
} |
pkg_postinst() { |
einfo |
einfo 'CCcam version ${PV} was successfully installed !' |
einfo |
} |
![Cccam Cccam](https://ae01.alicdn.com/kf/HTB1ohVszAyWBuNjy0Fpq6yssXXaB.jpg)
![Cccam V2 3 0 Download Diya Cccam V2 3 0 Download Diya](/uploads/1/2/5/7/125759402/658629498.jpg)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment