Added remnants from mediacenter-overlay

This commit is contained in:
layman 2020-06-05 13:25:37 +02:00
parent 0397d0b615
commit 45a8543369
8 changed files with 234 additions and 0 deletions

10
app-crypt/oscam/ChangeLog Normal file
View File

@ -0,0 +1,10 @@
# ChangeLog for app-crypt/oscam
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*oscam-9999 (30 Oct 2012)
30 Oct 2012; Torsten Kurbad <gentoo@tk-webart.de> +oscam-9999.ebuild,
+metadata.xml, +files/oscam.confd, +files/oscam.initd:
initial ebuild

6
app-crypt/oscam/Manifest Normal file
View File

@ -0,0 +1,6 @@
AUX oscam.confd 56 BLAKE2B ce7446a5b7520ef4b11e403e14b4be8710e00ba8031bceb21634da36d601f2c1e4e7af71c604f064c3288f50cb40ce9f1df56cd1489e483a9995bf654077bb5d SHA512 a8b637c8e88e93cc0f12b73b9bb3bedf8709c316c041cb42aa157e75a48a66bc0edc1704d5296a7f57f4f7a38b3ba4416d7a8034fafd2c29a1c16335633a1d51
AUX oscam.initd 372 BLAKE2B e11b74fdde6dd0b86d5a7ec7f5043fb885ae9a2306321ee565c8a7b8cc850b857325cffe3f74af8ca0491ec9daf2eb13e07bfecc04e0c1ba3369301e0286f938 SHA512 6b386e04255b422aac39fc0e0ddd683e20ec066fc7b85d4ceeb25f4901c7003e59ba3d62746915987f3be7cfbc52e36fa9aade5449b84b4da56d41adf20cfebe
AUX oscam.service 245 BLAKE2B c93430b8ce3e798d01bd350cf7a255a42cdb5ded8a9b418b5632d0c6f198acb32bf5fd1af38e80bc97aaea59edd538cc0c3ce48fa214f5d169e6346b2512a09b SHA512 7b9893962793c56dc0f402dbb9938bd81231204bcf430a3e537fc4b3196f67ec86d0f280b16d7b588c95b10c59747cb8e5b72a082148790533bfa4526bbe67e5
EBUILD oscam-9999.ebuild 6322 BLAKE2B ce00f4e9274abd554a7fe4ebc63546369ef69d867fdc89191f300364f5fcd4bb200eb544524c3a5faab291ad3eb3bf1d40a8ccd9253138519f90c57fa5b07e75 SHA512 7b7797d6cbf9e9baad6727462f5c8d428e437cf00fb1b64e7a8fcc931dc9c2e40fc6b7ab2bedad96a8d3cdfdc9bda0dcf9c70bc61dec9fef39523e401ac588df
MISC ChangeLog 290 BLAKE2B 36fb20456d44d71117d2845d45868cab61dd7e309fad1c3622e9895cfb0279827690117a9220a44695031d9637ff07628b9b2ef0d0ba6d84f9dd21f9bc42723b SHA512 e7c4c74bc75e3e08ac360f5ee2451054a314309d80e15029ce13c4b11407963e0721a11185c0dc21f4fe1816dde9355392dd01f4f37d4b2b86a8d9554a61ebe1
MISC metadata.xml 249 BLAKE2B 81f45d16793b7a445e3aca417c1209366f9025b0285ec8324c8b5b9a3dc5bbe3b84513057f16bcd900d89b9d678d4467631bc1c9978e5c670eaf9c0e8595931d SHA512 62e5924d69c6499ee7b5e6629714ae2f546534016044e1505132b542c96ebc6cfde60c439864389b03a0522eb7e42e21c1e2c577e0d6a1c887b4018e1871a279

View File

@ -0,0 +1,2 @@
# Options to pass to oscam (s. man oscam)
OSCAM_OPTS=""

View File

@ -0,0 +1,20 @@
#!/sbin/openrc-run
depend() {
before tvheadend
}
start() {
ebegin "Starting OSCAM"
start-stop-daemon --start --quiet --background \
--make-pidfile --pidfile /var/run/oscam.pid \
--exec /usr/bin/oscam -- ${OSCAM_OPTS}
eend $?
}
stop() {
ebegin "Stopping OSCAM"
start-stop-daemon --stop --quiet --pidfile /var/run/oscam.pid \
--exec /usr/bin/oscam
eend $?
}

View File

@ -0,0 +1,13 @@
[Unit]
Description=OSCAM TV Descrambler
After=network.target
[Service]
Type=forking
PIDFile=/run/oscam.pid
ExecStart=/usr/bin/oscam --restart 0 --pidfile /run/oscam.pid --daemon
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>crypto</herd>
<maintainer>
<email>gentoo@tk-webart.de</email>
<name>Torsten Kurbad</name>
</maintainer>
</pkgmetadata>

View File

@ -0,0 +1,173 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="6"
inherit eutils cmake-utils flag-o-matic systemd
if [[ ${PV} == "9999" ]] ; then
ESVN_REPO_URI="http://streamboard.tv/svn/oscam/trunk"
#ESVN_REPO_URI="http://www.oscam.cc/svn/oscam-mirror/trunk"
inherit subversion
#inherit git-r3
#EGIT_REPO_URI="https://repo.or.cz/oscam.git"
KEYWORDS=""
else
SRC_URI=""
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="OSCam is an Open Source Conditional Access Module software"
HOMEPAGE="http://oscam.to/"
LICENSE="GPL-3"
SLOT="0"
IUSE="cacheex +debug doc ipv6 +ssl systemd"
IUSE_OSCAM_ADDONS="
webif touch dvbapi clockfix irdeto_guess anticasc lb cyclecheck
lcd led"
IUSE_OSCAM_CARDREADERS="
phoenix internal mp35 sc8in1 smargo db2com stinger drecas
pcsc smart"
IUSE_OSCAM_MODULES="
monitor camd33 camd35 camd35_tcp newcamd cccam cccshare gbox
radegast serial constcw pandora ghttp scam"
IUSE_OSCAM_READERS="
nagra irdeto conax cryptoworks seca viaccess videoguard dre
tongfang bulcrypt griffin dgcrypt"
for addon in ${IUSE_OSCAM_ADDONS}; do
IUSE="${IUSE} oscam_addons_${addon}"
done
for cardreader in ${IUSE_OSCAM_CARDREADERS} ; do
if [ "${cardreader}" == "smart" ] ; then
IUSE="${IUSE} +oscam_cardreaders_${cardreader}"
else
IUSE="${IUSE} oscam_cardreaders_${cardreader}"
fi
done
for module in ${IUSE_OSCAM_MODULES} ; do
IUSE="${IUSE} oscam_modules_${module}"
done
for reader in ${IUSE_OSCAM_READERS} ; do
IUSE="${IUSE} oscam_readers_${reader}"
done
DEPEND="oscam_cardreaders_pcsc? ( sys-apps/pcsc-lite )
oscam_cardreaders_smart? ( >=dev-libs/libusb-1.0 )
ssl? ( dev-libs/openssl )"
RDEPEND="${DEPEND}"
src_configure() {
my_options=""
# Generic options
use cacheex && my_options="${my_options} CS_CACHEEX"
use debug && my_options="${my_options} WITH_DEBUG"
use ipv6 && my_options="${my_options} IPV6SUPPORT"
use ssl && my_options="${my_options} WITH_SSL"
# Addons
use oscam_addons_webif && my_options="${my_options} WEBIF WEBIF_LIVELOG WEBIF_JQUERY"
use oscam_addons_touch && my_options="${my_options} TOUCH"
use oscam_addons_dvbapi && my_options="${my_options} HAVE_DVBAPI"
use oscam_addons_clockfix && my_options="${my_options} CLOCKFIX"
use oscam_addons_irdeto_guess && my_options="${my_options} IRDETO_GUESSING"
use oscam_addons_anticasc && my_options="${my_options} CS_ANTICASC"
use oscam_addons_lb && my_options="${my_options} WITH_LB"
use oscam_addons_cyclecheck && my_options="${my_options} CW_CYCLE_CHECK"
use oscam_addons_lcd && my_options="${my_options} LCDSUPPORT"
use oscam_addons_led && my_options="${my_options} LEDSUPPORT"
# Modules
use oscam_modules_monitor && my_options="${my_options} MODULE_MONITOR"
use oscam_modules_camd33 && my_options="${my_options} MODULE_CAMD33"
use oscam_modules_camd35 && my_options="${my_options} MODULE_CAMD35"
use oscam_modules_camd35_tcp && my_options="${my_options} MODULE_CAMD35_TCP"
use oscam_modules_newcamd && my_options="${my_options} MODULE_NEWCAMD"
use oscam_modules_cccam && my_options="${my_options} MODULE_CCCAM"
use oscam_modules_cccshare && my_options="${my_options} MODULE_CCCSHARE"
use oscam_modules_gbox && my_options="${my_options} MODULE_GBOX"
use oscam_modules_radegast && my_options="${my_options} MODULE_RADEGAST"
use oscam_modules_serial && my_options="${my_options} MODULE_SERIAL"
use oscam_modules_constcw && my_options="${my_options} MODULE_CONSTCW"
use oscam_modules_pandora && my_options="${my_options} MODULE_PANDORA"
use oscam_modules_ghttp && my_options="${my_options} MODULE_GHTTP"
use oscam_modules_scam && my_options="${my_options} MODULE_SCAM"
# Cardreaders
use oscam_cardreaders_phoenix && my_options="${my_options} CARDREADER_PHOENIX"
use oscam_cardreaders_internal && my_options="${my_options} CARDREADER_INTERNAL"
use oscam_cardreaders_mp35 && my_options="${my_options} CARDREADER_MP35"
use oscam_cardreaders_sc8in1 && my_options="${my_options} CARDREADER_SC8IN1"
use oscam_cardreaders_smargo && my_options="${my_options} CARDREADER_SMARGO"
use oscam_cardreaders_db2com && my_options="${my_options} CARDREADER_DB2COM"
use oscam_cardreaders_stinger && my_options="${my_options} CARDREADER_STINGER"
use oscam_cardreaders_drecas && my_options="${my_options} CARDREADER_DRECAS"
# Smart and PCSC are detected automatically
use oscam_cardreaders_smart && my_options="${my_options}"
use oscam_cardreaders_pcsc && my_options="${my_options}"
# Readers
use oscam_readers_nagra && my_options="${my_options} READER_NAGRA"
use oscam_readers_irdeto && my_options="${my_options} READER_IRDETO"
use oscam_readers_conax && my_options="${my_options} READER_CONAX"
use oscam_readers_cryptoworks && my_options="${my_options} READER_CRYPTOWORKS"
use oscam_readers_seca && my_options="${my_options} READER_SECA"
use oscam_readers_viaccess && my_options="${my_options} READER_VIACCESS"
use oscam_readers_videoguard && my_options="${my_options} READER_VIDEOGUARD"
use oscam_readers_dre && my_options="${my_options} READER_DRE"
use oscam_readers_tongfang && my_options="${my_options} READER_TONGFANG"
use oscam_readers_bulcrypt && my_options="${my_options} READER_BULCRYPT"
use oscam_readers_griffin && my_options="${my_options} READER_GRIFFIN"
use oscam_readers_dgcrypt && my_options="${my_options} READER_DGCRYPT"
"${S}"/config.sh --disable all --enable ${my_options}
# Set default config dir to /etc/oscam
MYCMAKEARGS="-DCS_CONFDIR=/etc/oscam"
cmake-utils_src_configure
}
src_install() {
# Binaries
exeinto /usr/bin
doexe "${CMAKE_BUILD_DIR}/oscam" "${CMAKE_BUILD_DIR}/utils/list_smargo"
# Init scripts
newinitd "${FILESDIR}/oscam.initd" oscam
newconfd "${FILESDIR}/oscam.confd" oscam
use systemd &&
systemd_dounit "${FILESDIR}"/oscam.service
# Create directory for logfiles
dodir /var/log/oscam
# Example configuration
insinto /etc/oscam
doins Distribution/doc/example/*
# Manpages
doman Distribution/doc/man/*
# 'Repair' oscam.ac.5 manpage
cp -a ${D}/usr/share/man/ac/man5/oscam.5 \
${D}/usr/share/man/man5/oscam.ac.5
rm -rf ${D}/usr/share/man/ac/
# Documentation files
dodoc README README.build README.config
# HTML documentation
if use doc ; then
dohtml -r Distribution/doc/html/*
fi
# Monitor examples
docinto monitor
dodoc Distribution/monitor/*
}

1
profiles/make.defaults Normal file
View File

@ -0,0 +1 @@
USE_EXPAND="${USE_EXPAND} OSCAM_ADDONS OSCAM_CARDREADERS OSCAM_MODULES OSCAM_READERS"