parent
77822a1105
commit
30ae9c4356
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit fdo-mime gnome2-utils qmake-utils
|
||||
|
||||
DESCRIPTION="A fullscreen and distraction-free word processor"
|
||||
HOMEPAGE="http://gottcode.org/focuswriter/"
|
||||
SRC_URI="http://gottcode.org/${PN}/${P}-src.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-3 GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
app-text/hunspell:=
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtmultimedia:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtsingleapplication[qt5,X]
|
||||
dev-qt/qtwidgets:5
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-qt/qtconcurrent:5
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( ChangeLog CREDITS NEWS README )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-1.6.0-unbundle-qtsingleapplication.patch" )
|
||||
|
||||
src_configure() {
|
||||
eqmake5 PREFIX="${EPREFIX}/usr"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -1,4 +1,2 @@
|
||||
DIST q4wine-1.0-r3.tar.bz2 889308 SHA256 9f1319dd0baff3834a3938e0a048c1529cb9ea521158370176b706fce0d4d2ff SHA512 df10a2fbf6874f4c4e02dd9c43031453a46c76f03d83321f2d6e9544d0540dd07da1bc9246767c5c91ce17d67d5d236227294efaed9de09f3d5a18afbd60b224 WHIRLPOOL 51b5b4cfc157da6b99154269ef4ef9f38ff91f861864158b789352505af485d8b523a21c6d4b59544804ed3c15cb1c6c756db3f3203c8e3ba55c8396c3630df3
|
||||
DIST q4wine-1.2-r2.tar.bz2 690922 SHA256 44bac78060233504d0db945533e5da4a92bf8b4ca4ef87928032d14451e42160 SHA512 c47fc3adc756ea4bc33dc10f6de03e0a0e72258d1b4b238930136653a7938869d221ce08f6fcafcd5f012583b28227cf827505a59ee5322e9ab90c2c819fd7cb WHIRLPOOL 564eb944097528248f340ac59462f63bec22211d554ad26f125d46382a30ee2a8b7c8d00dd8874fabe92ae939f6bcf13665158957e0e8dad26e077018e495c0d
|
||||
DIST q4wine-1.3.1.tar.bz2 2863956 SHA256 ba890c8b049cffa261dc0db54ace4d983adcec21cab972e54afb60d9f4fb5ea9 SHA512 ec21d5f05fe322d9632013952c57731a10779fcd578293a7be7515eb3e83bd30bfb3252f795d25cd9da6d4abed54a5de28a32ebea9b300b8eacb39cdea5fd0ef WHIRLPOOL 78d2f2915bd58e0e45b92b6449f670e27ae1eae88de650330292b92cfa794250c27e890c8e042b0464aec9b11d8b40e2bcbb4012ce3c5bad5f4d97e882887442
|
||||
DIST q4wine-1.3.tar.bz2 2819219 SHA256 bb6c0f936cbbb9158982596fb82c2e7a228f07d81af430245197f64c0702423a SHA512 e38cd8c389ec9eb2915b4efb786ba799d61e6c95ec042a746165a2f50de2fc545be2798afe98223aa8410b76ed77e267c99f0ff8f9366f010d2b145ccd8ed34a WHIRLPOOL 581d460f6d84e2ec7ce272352d4db3ae22f06befefbf34bfef72e8bb77cd18c8d8056bcf53389e4f7c1c9265d42c13a6f84704b9a1c8b34977f7d47076084594
|
||||
DIST q4wine-1.3.3.tar.bz2 2863508 SHA256 7f821dea698f122277062878743759d1f7adec289311ac30d2b40c28f184bb14 SHA512 95c98bd3eed14550e1215b84b5fc8f3b493329390fb942b3029331ea93cbff58eb9ed3100be1cb70aa02505ba5c4a91092f8f18347ed75d2112668925a0f4c28 WHIRLPOOL df7eaae98edf85f487770f165d627820e45f5ce465876405a2adcac234c06770113d821efba01d81d4b0bb39eb9e484786e963c514ed0125e5290751f779cd3f
|
||||
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
LANGS="cs de en es fa he it ru uk pl pt af"
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Qt4 GUI configuration tool for Wine"
|
||||
HOMEPAGE="http://q4wine.brezblock.org.ua/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PN}/${PN}%20${PV}/${PF}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="debug +icoutils +wineappdb -dbus gnome kde"
|
||||
|
||||
for x in ${LANGS}; do
|
||||
IUSE+=" linguas_${x}"
|
||||
done
|
||||
|
||||
DEPEND="dev-qt/qtgui:4
|
||||
dev-qt/qtsql:4[sqlite]
|
||||
dev-util/cmake"
|
||||
|
||||
RDEPEND="dev-qt/qtgui:4
|
||||
dev-qt/qtsql:4[sqlite]
|
||||
app-admin/sudo
|
||||
app-emulation/wine
|
||||
>=sys-apps/which-2.19
|
||||
icoutils? ( >=media-gfx/icoutils-0.26.0 )
|
||||
sys-fs/fuseiso
|
||||
kde? ( kde-apps/kdesu:4 )
|
||||
gnome? ( x11-libs/gksu )
|
||||
dbus? ( dev-qt/qtdbus:4 )"
|
||||
|
||||
DOCS="README AUTHORS ChangeLog"
|
||||
|
||||
S="${WORKDIR}/${PF}"
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs="${mycmakeargs} \
|
||||
$(cmake-utils_use debug DEBUG) \
|
||||
$(cmake-utils_use_with icoutils ICOUTILS) \
|
||||
$(cmake-utils_use_with wineappdb WINEAPPDB) \
|
||||
$(cmake-utils_use_with dbus DBUS)"
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
for x in ${LANGS}; do
|
||||
if ! has ${x} ${LINGUAS}; then
|
||||
find "${D}" -name "${PN}_${x}*.qm" -exec rm {} \;
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,74 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PLOCALES="af_ZA cs_CZ de_DE en_US es_ES fa_IR he_IL it_IT pl_PL pt_BR ru_RU uk_UA"
|
||||
PLOCALE_BACKUP="en_US"
|
||||
|
||||
inherit cmake-utils l10n
|
||||
|
||||
DESCRIPTION="Qt4 GUI configuration tool for Wine"
|
||||
HOMEPAGE="http://q4wine.brezblock.org.ua/"
|
||||
|
||||
# Upstream names the package PV-rX. We change that to
|
||||
# PV_pX so we can use portage revisions.
|
||||
MY_PV="${PV/_p/-r}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PN}/${PN}%20${MY_PV}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+dbus debug +icoutils qt5 +wineappdb"
|
||||
|
||||
DEPEND="
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtsingleapplication[qt5(+),X]
|
||||
dev-qt/qtsql:5[sqlite]
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtxml:5
|
||||
dbus? ( dev-qt/qtdbus:5 )
|
||||
)
|
||||
!qt5? (
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
dev-qt/qtsingleapplication[qt4(+),X]
|
||||
dev-qt/qtsql:4[sqlite]
|
||||
dbus? ( dev-qt/qtdbus:4 )
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
app-admin/sudo
|
||||
app-emulation/wine
|
||||
>=sys-apps/which-2.19
|
||||
sys-fs/fuseiso
|
||||
icoutils? ( >=media-gfx/icoutils-0.26.0 )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog README )
|
||||
|
||||
src_configure() {
|
||||
local enabled_linguas
|
||||
construct_LINGUAS() {
|
||||
local current_locale="$(echo ${1} | tr '[:upper:]' '[:lower:]')"
|
||||
enabled_linguas="${enabled_linguas};${current_locale}"
|
||||
}
|
||||
l10n_for_each_locale_do construct_LINGUAS
|
||||
local mycmakeargs=(
|
||||
-DLINGUAS="${enabled_linguas}"
|
||||
-DWITH_SYSTEM_SINGLEAPP=ON
|
||||
$(cmake-utils_use debug)
|
||||
$(cmake-utils_use qt5)
|
||||
$(cmake-utils_use_with dbus)
|
||||
$(cmake-utils_use_with icoutils)
|
||||
$(cmake-utils_use_with wineappdb)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
--- a/sip/QtCore/QtCoremod.sip
|
||||
+++ b/sip/QtCore/QtCoremod.sip
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
%Module(name=PyQt5.QtCore, call_super_init=True, default_VirtualErrorHandler=PyQt5, keyword_arguments="Optional", version=1)
|
||||
|
||||
-%Timeline {Qt_5_0_0 Qt_5_0_1 Qt_5_0_2 Qt_5_1_0 Qt_5_1_1 Qt_5_2_0 Qt_5_2_1 Qt_5_3_0 Qt_5_3_1 Qt_5_3_2 Qt_5_4_0 Qt_5_4_1 Qt_5_4_2 Qt_5_5_0 Qt_5_5_1 Qt_5_6_0 Qt_5_6_1 Qt_5_7_0}
|
||||
+%Timeline {Qt_5_0_0 Qt_5_0_1 Qt_5_0_2 Qt_5_1_0 Qt_5_1_1 Qt_5_2_0 Qt_5_2_1 Qt_5_3_0 Qt_5_3_1 Qt_5_3_2 Qt_5_4_0 Qt_5_4_1 Qt_5_4_2 Qt_5_5_0 Qt_5_5_1 Qt_5_6_0 Qt_5_6_1 Qt_5_6_2 Qt_5_7_0}
|
||||
|
||||
%Platforms {WS_X11 WS_WIN WS_MACX}
|
||||
|
@ -0,0 +1,457 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
# Subslot: libavutil major.libavcodec major.libavformat major
|
||||
# Since FFmpeg ships several libraries, subslot is kind of limited here.
|
||||
# Most consumers will use those three libraries, if a "less used" library
|
||||
# changes its soname, consumers will have to be rebuilt the old way
|
||||
# (preserve-libs).
|
||||
# If, for example, a package does not link to libavformat and only libavformat
|
||||
# changes its ABI then this package will be rebuilt needlessly. Hence, such a
|
||||
# package is free _not_ to := depend on FFmpeg but I would strongly encourage
|
||||
# doing so since such a case is unlikely.
|
||||
FFMPEG_SUBSLOT=55.57.57
|
||||
|
||||
SCM=""
|
||||
if [ "${PV#9999}" != "${PV}" ] ; then
|
||||
SCM="git-r3"
|
||||
EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
|
||||
fi
|
||||
|
||||
inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
|
||||
|
||||
DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
|
||||
HOMEPAGE="http://ffmpeg.org/"
|
||||
if [ "${PV#9999}" != "${PV}" ] ; then
|
||||
SRC_URI=""
|
||||
elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
else # Release
|
||||
SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
|
||||
fi
|
||||
FFMPEG_REVISION="${PV#*_p}"
|
||||
|
||||
SLOT="0/${FFMPEG_SUBSLOT}"
|
||||
LICENSE="
|
||||
!gpl? ( LGPL-2.1 )
|
||||
gpl? ( GPL-2 )
|
||||
amr? (
|
||||
gpl? ( GPL-3 )
|
||||
!gpl? ( LGPL-3 )
|
||||
)
|
||||
gmp? (
|
||||
gpl? ( GPL-3 )
|
||||
!gpl? ( LGPL-3 )
|
||||
)
|
||||
encode? (
|
||||
amrenc? (
|
||||
gpl? ( GPL-3 )
|
||||
!gpl? ( LGPL-3 )
|
||||
)
|
||||
)
|
||||
samba? ( GPL-3 )
|
||||
"
|
||||
if [ "${PV#9999}" = "${PV}" ] ; then
|
||||
KEYWORDS="~amd64 ~mips ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
||||
fi
|
||||
|
||||
# Options to use as use_enable in the foo[:bar] form.
|
||||
# This will feed configure with $(use_enable foo bar)
|
||||
# or $(use_enable foo foo) if no :bar is set.
|
||||
# foo is added to IUSE.
|
||||
FFMPEG_FLAG_MAP=(
|
||||
+bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp
|
||||
+gpl +hardcoded-tables +iconv lzma +network openssl +postproc
|
||||
samba:libsmbclient sdl:ffplay sdl:sdl2 vaapi vdpau X:xlib xcb:libxcb
|
||||
xcb:libxcb-shm xcb:libxcb-xfixes +zlib
|
||||
# libavdevice options
|
||||
cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
|
||||
opengl
|
||||
# indevs
|
||||
libv4l:libv4l2 pulseaudio:libpulse
|
||||
# decoders
|
||||
amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
|
||||
jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
|
||||
mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh
|
||||
schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
|
||||
zvbi:libzvbi
|
||||
# libavfilter options
|
||||
bs2b:libbs2b chromaprint ebur128:libebur128 flite:libflite frei0r
|
||||
fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype
|
||||
rubberband:librubberband zimg:libzimg
|
||||
# libswresample options
|
||||
libsoxr
|
||||
# Threads; we only support pthread for now but ffmpeg supports more
|
||||
+threads:pthreads
|
||||
)
|
||||
|
||||
# Same as above but for encoders, i.e. they do something only with USE=encode.
|
||||
FFMPEG_ENCODER_FLAG_MAP=(
|
||||
amrenc:libvo-amrwbenc mp3:libmp3lame
|
||||
kvazaar:libkvazaar nvenc:nvenc
|
||||
openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame
|
||||
wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid
|
||||
)
|
||||
|
||||
IUSE="
|
||||
alsa doc +encode jack oss pic static-libs test v4l
|
||||
${FFMPEG_FLAG_MAP[@]%:*}
|
||||
${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
|
||||
"
|
||||
|
||||
# Strings for CPU features in the useflag[:configure_option] form
|
||||
# if :configure_option isn't set, it will use 'useflag' as configure option
|
||||
ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
|
||||
MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
|
||||
PPC_CPU_FEATURES=( altivec )
|
||||
X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext aes:aesni avx:avx avx2:avx2 fma3:fma3 fma4:fma4 mmx:mmx mmxext:mmxext sse:sse sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4 sse4_2:sse42 xop:xop )
|
||||
X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
|
||||
X86_CPU_REQUIRED_USE="
|
||||
cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
|
||||
cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
|
||||
cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
|
||||
cpu_flags_x86_xop? ( cpu_flags_x86_avx )
|
||||
cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
|
||||
cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 )
|
||||
cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
|
||||
cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
|
||||
cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
|
||||
cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
|
||||
cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
|
||||
cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
|
||||
cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
|
||||
cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
|
||||
cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
|
||||
"
|
||||
|
||||
IUSE="${IUSE}
|
||||
${ARM_CPU_FEATURES[@]%:*}
|
||||
${MIPS_CPU_FEATURES[@]%:*}
|
||||
${PPC_CPU_FEATURES[@]%:*}
|
||||
${X86_CPU_FEATURES[@]%:*}
|
||||
"
|
||||
|
||||
CPU_REQUIRED_USE="
|
||||
${X86_CPU_REQUIRED_USE}
|
||||
"
|
||||
|
||||
# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
|
||||
# $(tc-arch).
|
||||
CPU_FEATURES_MAP="
|
||||
arm:ARM
|
||||
arm64:ARM
|
||||
mips:MIPS
|
||||
ppc:PPC
|
||||
ppc64:PPC
|
||||
x86:X86
|
||||
amd64:X86
|
||||
"
|
||||
|
||||
FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
|
||||
IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
|
||||
|
||||
RDEPEND="
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
|
||||
amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
|
||||
bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
|
||||
bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
|
||||
bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
|
||||
cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
|
||||
celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
|
||||
chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] )
|
||||
ebur128? ( >=media-libs/libebur128-1.1.0[${MULTILIB_USEDEP}] )
|
||||
encode? (
|
||||
amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
|
||||
kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] )
|
||||
mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
|
||||
nvenc? ( media-video/nvidia_video_sdk )
|
||||
openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] )
|
||||
snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
|
||||
theora? (
|
||||
>=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
|
||||
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
|
||||
wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
|
||||
webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
|
||||
x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
|
||||
x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
|
||||
xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
|
||||
flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
|
||||
fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
|
||||
frei0r? ( media-plugins/frei0r-plugins )
|
||||
fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
|
||||
gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] )
|
||||
gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
|
||||
gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] )
|
||||
gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
|
||||
gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
|
||||
iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
|
||||
iec61883? (
|
||||
>=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
|
||||
)
|
||||
ieee1394? (
|
||||
>=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
|
||||
)
|
||||
jack? ( virtual/jack[${MULTILIB_USEDEP}] )
|
||||
jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] )
|
||||
libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
|
||||
libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
|
||||
libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] )
|
||||
libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
|
||||
libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
|
||||
lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
|
||||
mmal? ( media-libs/raspberrypi-userland )
|
||||
modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
|
||||
openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
|
||||
opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
|
||||
openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
|
||||
opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
|
||||
pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
|
||||
librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
|
||||
rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] )
|
||||
samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
|
||||
schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
|
||||
sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] )
|
||||
speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
|
||||
ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
|
||||
truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
|
||||
vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
|
||||
vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
|
||||
vorbis? (
|
||||
>=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
|
||||
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] )
|
||||
X? (
|
||||
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
|
||||
!xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
|
||||
>=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
|
||||
)
|
||||
xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
|
||||
zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] )
|
||||
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
|
||||
zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
|
||||
!media-video/qt-faststart
|
||||
postproc? ( !media-libs/libpostproc )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/make-3.81
|
||||
doc? ( sys-apps/texinfo )
|
||||
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
||||
ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
|
||||
cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
|
||||
test? ( net-misc/wget sys-devel/bc )
|
||||
v4l? ( sys-kernel/linux-headers )
|
||||
"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
|
||||
!app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
|
||||
|
||||
# Code requiring FFmpeg to be built under gpl license
|
||||
GPL_REQUIRED_USE="
|
||||
postproc? ( gpl )
|
||||
frei0r? ( gpl )
|
||||
cdio? ( gpl )
|
||||
samba? ( gpl )
|
||||
encode? (
|
||||
x264? ( gpl )
|
||||
x265? ( gpl )
|
||||
xvid? ( gpl )
|
||||
X? ( !xcb? ( gpl ) )
|
||||
)
|
||||
"
|
||||
REQUIRED_USE="
|
||||
libv4l? ( v4l )
|
||||
fftools_cws2fws? ( zlib )
|
||||
test? ( encode )
|
||||
${GPL_REQUIRED_USE}
|
||||
${CPU_REQUIRED_USE}"
|
||||
RESTRICT="
|
||||
gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${P/_/-}
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/libavutil/avconfig.h
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
|
||||
export revision=git-N-${FFMPEG_REVISION}
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=( ${EXTRA_FFMPEG_CONF} )
|
||||
|
||||
local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
|
||||
use openssl && use gpl && myconf+=( --enable-nonfree )
|
||||
use samba && myconf+=( --enable-version3 )
|
||||
|
||||
# Encoders
|
||||
if use encode ; then
|
||||
ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
|
||||
|
||||
# Licensing.
|
||||
if use amrenc ; then
|
||||
myconf+=( --enable-version3 )
|
||||
fi
|
||||
else
|
||||
myconf+=( --disable-encoders )
|
||||
fi
|
||||
|
||||
# Indevs
|
||||
use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
|
||||
for i in alsa oss jack ; do
|
||||
use ${i} || myconf+=( --disable-indev=${i} )
|
||||
done
|
||||
use xcb || ffuse+=( X:x11grab )
|
||||
|
||||
# Outdevs
|
||||
for i in alsa oss sdl ; do
|
||||
use ${i} || myconf+=( --disable-outdev=${i} )
|
||||
done
|
||||
|
||||
# Decoders
|
||||
use amr && myconf+=( --enable-version3 )
|
||||
use gmp && myconf+=( --enable-version3 )
|
||||
use fdk && use gpl && myconf+=( --enable-nonfree )
|
||||
|
||||
for i in "${ffuse[@]#+}" ; do
|
||||
myconf+=( $(use_enable ${i%:*} ${i#*:}) )
|
||||
done
|
||||
|
||||
# (temporarily) disable non-multilib deps
|
||||
if ! multilib_is_native_abi; then
|
||||
for i in frei0r ; do
|
||||
myconf+=( --disable-${i} )
|
||||
done
|
||||
fi
|
||||
|
||||
# CPU features
|
||||
for i in ${CPU_FEATURES_MAP} ; do
|
||||
if [ "$(tc-arch)" = "${i%:*}" ] ; then
|
||||
local var="${i#*:}_CPU_FEATURES[@]"
|
||||
for j in ${!var} ; do
|
||||
use ${j%:*} || myconf+=( --disable-${j#*:} )
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
if use pic ; then
|
||||
myconf+=( --enable-pic )
|
||||
# disable asm code if PIC is required
|
||||
# as the provided asm decidedly is not PIC for x86.
|
||||
[[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
|
||||
fi
|
||||
[[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
|
||||
|
||||
# Try to get cpu type based on CFLAGS.
|
||||
# Bug #172723
|
||||
# We need to do this so that features of that CPU will be better used
|
||||
# If they contain an unknown CPU it will not hurt since ffmpeg's configure
|
||||
# will just ignore it.
|
||||
for i in $(get-flag mcpu) $(get-flag march) ; do
|
||||
[[ ${i} = native ]] && i="host" # bug #273421
|
||||
myconf+=( --cpu=${i} )
|
||||
break
|
||||
done
|
||||
|
||||
# LTO support, bug #566282
|
||||
is-flagq "-flto*" && myconf+=( "--enable-lto" )
|
||||
|
||||
# Mandatory configuration
|
||||
myconf=(
|
||||
--enable-avfilter
|
||||
--enable-avresample
|
||||
--disable-stripping
|
||||
"${myconf[@]}"
|
||||
)
|
||||
|
||||
# cross compile support
|
||||
if tc-is-cross-compiler ; then
|
||||
myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
|
||||
case ${CHOST} in
|
||||
*freebsd*)
|
||||
myconf+=( --target-os=freebsd )
|
||||
;;
|
||||
*mingw32*)
|
||||
myconf+=( --target-os=mingw32 )
|
||||
;;
|
||||
*linux*)
|
||||
myconf+=( --target-os=linux )
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# doc
|
||||
myconf+=(
|
||||
$(multilib_native_use_enable doc)
|
||||
$(multilib_native_use_enable doc htmlpages)
|
||||
$(multilib_native_enable manpages)
|
||||
)
|
||||
|
||||
set -- "${S}/configure" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--shlibdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}/html" \
|
||||
--mandir="${EPREFIX}/usr/share/man" \
|
||||
--enable-shared \
|
||||
--cc="$(tc-getCC)" \
|
||||
--cxx="$(tc-getCXX)" \
|
||||
--ar="$(tc-getAR)" \
|
||||
--optflags="${CFLAGS}" \
|
||||
$(use_enable static-libs static) \
|
||||
"${myconf[@]}"
|
||||
echo "${@}"
|
||||
"${@}" || die
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake V=1
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
for i in "${FFTOOLS[@]}" ; do
|
||||
if use fftools_${i} ; then
|
||||
emake V=1 tools/${i}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake V=1 DESTDIR="${D}" install install-doc
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
for i in "${FFTOOLS[@]}" ; do
|
||||
if use fftools_${i} ; then
|
||||
dobin tools/${i}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
|
||||
[ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
LD_LIBRARY_PATH="${BUILD_DIR}/libpostproc:${BUILD_DIR}/libswscale:${BUILD_DIR}/libswresample:${BUILD_DIR}/libavcodec:${BUILD_DIR}/libavdevice:${BUILD_DIR}/libavfilter:${BUILD_DIR}/libavformat:${BUILD_DIR}/libavutil:${BUILD_DIR}/libavresample" \
|
||||
emake V=1 fate
|
||||
}
|
@ -0,0 +1,347 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs
|
||||
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
: ${EGIT_REPO_URI:="git://git.libav.org/libav.git"}
|
||||
if [[ ${PV%9999} != "" ]] ; then
|
||||
: ${EGIT_BRANCH:="release/${PV%.9999}"}
|
||||
fi
|
||||
inherit git-r3
|
||||
fi
|
||||
|
||||
DESCRIPTION="Complete solution to record, convert and stream audio and video"
|
||||
HOMEPAGE="https://libav.org/"
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
SRC_URI=""
|
||||
elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot
|
||||
SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz"
|
||||
else # Official release
|
||||
SRC_URI="https://libav.org/releases/${P}.tar.xz"
|
||||
fi
|
||||
# 9999 does not have fate-*.tar.xz
|
||||
[[ ${PV%9999} != "" ]] && SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV%%.*}.tar.xz )"
|
||||
|
||||
LICENSE="LGPL-2.1 gpl? ( GPL-3 )"
|
||||
SLOT="0/11"
|
||||
[[ ${PV} == *9999 ]] || \
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="aac alsa amr bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk
|
||||
frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k libressl mp3
|
||||
+network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl
|
||||
static-libs test theora threads tools truetype twolame v4l vaapi vdpau vorbis vpx X
|
||||
wavpack webp x264 x265 xvid +zlib"
|
||||
|
||||
# String for CPU features in the useflag[:configure_option] form
|
||||
# if :configure_option isn't set, it will use 'useflag' as configure option
|
||||
CPU_FEATURES="altivec armv5te armv6 armv6t2 armvfp:vfp neon"
|
||||
X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext mmx mmxext sse sse2 sse3 ssse3 sse4_1:sse4 sse4_2:sse42 avx xop fma3 fma4 avx2"
|
||||
for i in ${X86_CPU_FEATURES} ; do
|
||||
CPU_FEATURES+=" cpu_flags_x86_${i%:*}:${i#*:}"
|
||||
done
|
||||
for i in ${CPU_FEATURES} ; do
|
||||
IUSE+=" ${i%:*}"
|
||||
done
|
||||
|
||||
RDEPEND="
|
||||
!media-video/ffmpeg:0
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
|
||||
amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
|
||||
bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
|
||||
bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
|
||||
cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
|
||||
encode? (
|
||||
aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
|
||||
amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
|
||||
faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
|
||||
mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
|
||||
theora? (
|
||||
>=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
|
||||
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
|
||||
vorbis? (
|
||||
>=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
|
||||
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
|
||||
wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
|
||||
x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
|
||||
x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] )
|
||||
xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] )
|
||||
frei0r? ( media-plugins/frei0r-plugins )
|
||||
gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
|
||||
ieee1394? (
|
||||
>=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
|
||||
)
|
||||
jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] )
|
||||
jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
|
||||
opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
|
||||
pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
|
||||
rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
|
||||
ssl? (
|
||||
openssl? (
|
||||
!libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
|
||||
libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
!openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
|
||||
schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
|
||||
speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
|
||||
truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
|
||||
fontconfig? ( >=media-libs/fontconfig-2.10[${MULTILIB_USEDEP}] )
|
||||
vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
|
||||
vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
|
||||
vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] )
|
||||
X? (
|
||||
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}]
|
||||
)
|
||||
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/make-3.81
|
||||
doc? ( app-text/texi2html )
|
||||
ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
|
||||
cpu_flags_x86_mmx? ( dev-lang/yasm )
|
||||
rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
|
||||
schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
|
||||
ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
|
||||
test? ( sys-devel/bc )
|
||||
truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
|
||||
fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
|
||||
v4l? ( sys-kernel/linux-headers )
|
||||
"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
|
||||
!app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
|
||||
|
||||
# faac can't be binary distributed
|
||||
# openssl support marked as nonfree
|
||||
# faac and aac are concurent implementations
|
||||
# amr and aac require at least lgpl3
|
||||
# x264 requires gpl2
|
||||
REQUIRED_USE="
|
||||
rtmp? ( network )
|
||||
amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl ) x265? ( gpl )
|
||||
test? ( encode zlib )
|
||||
fontconfig? ( truetype )
|
||||
"
|
||||
RESTRICT="faac? ( bindist ) fdk? ( bindist ) openssl? ( bindist )"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/libavutil/avconfig.h
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
[[ ${PV} == *9999 ]] && git-r3_src_unpack
|
||||
# 9999 does not have fate-*.tar.xz
|
||||
[[ ${PV%9999} != "" ]] && default_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
|
||||
epatch "${FILESDIR}"/libav-11.3-libvpx-1.5.0.patch #565696
|
||||
|
||||
# if we have snapshot then we need to hardcode the version
|
||||
if [[ ${PV%_p*} != ${PV} ]]; then
|
||||
sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die
|
||||
fi
|
||||
|
||||
TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher )
|
||||
use zlib && TOOLS+=( cws2fws )
|
||||
|
||||
MAKEOPTS+=" V=1"
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=( ${EXTRA_LIBAV_CONF} )
|
||||
local uses i
|
||||
|
||||
# 9999 does not have fate-*.tar.xz
|
||||
[[ ${PV%9999} != "" ]] && use test && myconf+=( --samples="${WORKDIR}/fate" )
|
||||
|
||||
myconf+=(
|
||||
$(use_enable gpl)
|
||||
$(use_enable gpl version3)
|
||||
# It is a security concern and removed in the next version
|
||||
--disable-protocol=concat
|
||||
)
|
||||
|
||||
# enabled by default
|
||||
uses="debug doc network zlib"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=( --disable-${i} )
|
||||
done
|
||||
use bzip2 || myconf+=( --disable-bzlib )
|
||||
use sdl || myconf+=( --disable-avplay )
|
||||
|
||||
if use ssl; then
|
||||
use openssl && myconf+=( --enable-openssl --enable-nonfree ) \
|
||||
|| myconf+=( --enable-gnutls )
|
||||
fi
|
||||
|
||||
use custom-cflags && myconf+=( --disable-optimizations )
|
||||
use cpudetection && myconf+=( --enable-runtime-cpudetect )
|
||||
|
||||
use vdpau || myconf+=( --disable-vdpau )
|
||||
|
||||
use vaapi && myconf+=( --enable-vaapi )
|
||||
|
||||
# Encoders
|
||||
if use encode; then
|
||||
use faac && myconf+=( --enable-nonfree )
|
||||
use mp3 && myconf+=( --enable-libmp3lame )
|
||||
use amr && myconf+=( --enable-libvo-amrwbenc )
|
||||
use aac && myconf+=( --enable-libvo-aacenc )
|
||||
uses="faac theora twolame vorbis wavpack webp x264 x265 xvid"
|
||||
for i in ${uses}; do
|
||||
use ${i} && myconf+=( --enable-lib${i} )
|
||||
done
|
||||
else
|
||||
myconf+=( --disable-encoders )
|
||||
fi
|
||||
|
||||
# libavdevice options
|
||||
use cdio && myconf+=( --enable-libcdio )
|
||||
use ieee1394 && myconf+=( --enable-libdc1394 )
|
||||
use pulseaudio && myconf+=( --enable-libpulse )
|
||||
|
||||
# Indevs
|
||||
# v4l1 is gone since linux-headers-2.6.38
|
||||
myconf+=( --disable-indev=v4l )
|
||||
use v4l || myconf+=( --disable-indev=v4l2 )
|
||||
for i in alsa oss jack; do
|
||||
use ${i} || myconf+=( --disable-indev=${i} )
|
||||
done
|
||||
use X && myconf+=( --enable-x11grab )
|
||||
# Outdevs
|
||||
for i in alsa oss ; do
|
||||
use ${i} || myconf+=( --disable-outdev=${i} )
|
||||
done
|
||||
# libavfilter options
|
||||
use bs2b && myconf+=( --enable-libbs2b )
|
||||
multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r )
|
||||
use truetype && myconf+=( --enable-libfreetype )
|
||||
use fontconfig && myconf+=( --enable-libfontconfig )
|
||||
|
||||
# Threads; we only support pthread for now
|
||||
use threads && myconf+=( --enable-pthreads )
|
||||
|
||||
# Decoders
|
||||
use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb )
|
||||
use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac )
|
||||
uses="gsm opus rtmp schroedinger speex vpx"
|
||||
for i in ${uses}; do
|
||||
use ${i} && myconf+=( --enable-lib${i} )
|
||||
done
|
||||
use jpeg2k && myconf+=( --enable-libopenjpeg )
|
||||
|
||||
# CPU features
|
||||
for i in ${CPU_FEATURES}; do
|
||||
use ${i%:*} || myconf+=( --disable-${i#*:} )
|
||||
done
|
||||
|
||||
# pass the right -mfpu as extra
|
||||
use neon && append-cflags -mfpu=neon
|
||||
|
||||
# disable mmx accelerated code if PIC is required
|
||||
# as the provided asm decidedly is not PIC for x86.
|
||||
if use pic && [[ ${ABI} == x86 ]]; then
|
||||
myconf+=( --disable-mmx --disable-mmxext )
|
||||
fi
|
||||
|
||||
# Option to force building pic
|
||||
use pic && myconf+=( --enable-pic )
|
||||
|
||||
# cross compile support
|
||||
if tc-is-cross-compiler ; then
|
||||
myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
|
||||
case ${CHOST} in
|
||||
*freebsd*)
|
||||
myconf+=( --target-os=freebsd )
|
||||
;;
|
||||
mingw32*)
|
||||
myconf+=( --target-os=mingw32 )
|
||||
;;
|
||||
*linux*)
|
||||
myconf+=( --target-os=linux )
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Misc stuff
|
||||
use hardcoded-tables && myconf+=( --enable-hardcoded-tables )
|
||||
|
||||
# Specific workarounds for too-few-registers arch...
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS}
|
||||
filter-flags -fforce-addr -momit-leaf-frame-pointer
|
||||
append-flags -fomit-frame-pointer
|
||||
is-flag -O? || append-flags -O2
|
||||
if use debug; then
|
||||
# no need to warn about debug if not using debug flag
|
||||
ewarn ""
|
||||
ewarn "Debug information will be almost useless as the frame pointer is omitted."
|
||||
ewarn "This makes debugging harder, so crashes that has no fixed behavior are"
|
||||
ewarn "difficult to fix. Please have that in mind."
|
||||
ewarn ""
|
||||
fi
|
||||
fi
|
||||
|
||||
set -- "${S}"/configure \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--shlibdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--enable-shared \
|
||||
--cc="$(tc-getCC)" \
|
||||
--ar="$(tc-getAR)" \
|
||||
--optflags="${CFLAGS}" \
|
||||
--extra-cflags="${CFLAGS}" \
|
||||
$(use_enable static-libs static) \
|
||||
"${myconf[@]}"
|
||||
echo "${@}"
|
||||
"${@}" || die
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake
|
||||
|
||||
if use tools; then
|
||||
tc-export CC
|
||||
|
||||
emake ${TOOLS[@]/#/tools/}
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install install-man
|
||||
use doc && dodoc doc/*.html
|
||||
|
||||
if use tools; then
|
||||
dobin ${TOOLS[@]/#/tools/}
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
dodoc Changelog README.md INSTALL
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
local _libs="$(for i in lib*/;do echo -n "${BUILD_DIR}/${i%/}:";done)"
|
||||
einfo "LD_LIBRARY_PATH is set to \"${_libs}\""
|
||||
LD_LIBRARY_PATH="${_libs}" emake -k -j1 fate
|
||||
}
|
@ -1 +1 @@
|
||||
Fri, 28 Oct 2016 10:43:57 +0000
|
||||
Fri, 28 Oct 2016 13:43:22 +0000
|
||||
|
@ -1 +1 @@
|
||||
Fri, 28 Oct 2016 10:43:57 +0000
|
||||
Fri, 28 Oct 2016 13:43:22 +0000
|
||||
|
@ -0,0 +1,12 @@
|
||||
DEFINED_PHASES=configure install postinst postrm preinst
|
||||
DEPEND=app-text/hunspell:= dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtmultimedia:5 dev-qt/qtprintsupport:5 dev-qt/qtsingleapplication[qt5,X] dev-qt/qtwidgets:5 sys-libs/zlib dev-qt/qtconcurrent:5 virtual/pkgconfig >=sys-apps/sed-4
|
||||
DESCRIPTION=A fullscreen and distraction-free word processor
|
||||
EAPI=6
|
||||
HOMEPAGE=http://gottcode.org/focuswriter/
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=LGPL-3 GPL-3
|
||||
RDEPEND=app-text/hunspell:= dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtmultimedia:5 dev-qt/qtprintsupport:5 dev-qt/qtsingleapplication[qt5,X] dev-qt/qtwidgets:5 sys-libs/zlib
|
||||
SLOT=0
|
||||
SRC_URI=http://gottcode.org/focuswriter/focuswriter-1.6.2-src.tar.bz2
|
||||
_eclasses_=eutils b83a2420b796f7c6eff682679d08fe25 fdo-mime 92d07846ea8ea54172f8c0112a47ae3d gnome2-utils c6dcdf3a2c22b578b16adb945dc85c35 multilib 165fc17c38d1b11dac2008280dab6e80 qmake-utils 0a242e7177789b0028b4045f336dd4db toolchain-funcs 1b1da0c45c555989dc5d832b54880783 xdg-utils e2b2bd56125ce8cf59ce30c642b59d48
|
||||
_md5_=e2582b77b7eb104ec1c0dc9cdb186d5c
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=dev-qt/qtgui:4 dev-qt/qtsql:4[sqlite] dev-util/cmake sys-devel/make >=dev-util/cmake-2.8.12
|
||||
DESCRIPTION=Qt4 GUI configuration tool for Wine
|
||||
EAPI=4
|
||||
HOMEPAGE=http://q4wine.brezblock.org.ua/
|
||||
IUSE=debug +icoutils +wineappdb -dbus gnome kde linguas_cs linguas_de linguas_en linguas_es linguas_fa linguas_he linguas_it linguas_ru linguas_uk linguas_pl linguas_pt linguas_af
|
||||
KEYWORDS=amd64 x86
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=dev-qt/qtgui:4 dev-qt/qtsql:4[sqlite] app-admin/sudo app-emulation/wine >=sys-apps/which-2.19 icoutils? ( >=media-gfx/icoutils-0.26.0 ) sys-fs/fuseiso kde? ( kde-apps/kdesu:4 ) gnome? ( x11-libs/gksu ) dbus? ( dev-qt/qtdbus:4 )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/q4wine/q4wine/q4wine%201.0/q4wine-1.0-r3.tar.bz2
|
||||
_eclasses_=cmake-utils f3d38665b0a86e08ba3a5473cdbfafd3 eutils b83a2420b796f7c6eff682679d08fe25 flag-o-matic 8632fcd33a047954f007dee9a137bdcc multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=d25affbca7e488c28da15f5e4fd44369
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtsingleapplication[qt5(+),X] dev-qt/qtsql:5[sqlite] dev-qt/qtwidgets:5 dev-qt/qtxml:5 dbus? ( dev-qt/qtdbus:5 ) ) !qt5? ( dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtsingleapplication[qt4(+),X] dev-qt/qtsql:4[sqlite] dbus? ( dev-qt/qtdbus:4 ) ) sys-devel/make >=dev-util/cmake-2.8.12
|
||||
DESCRIPTION=Qt4 GUI configuration tool for Wine
|
||||
EAPI=5
|
||||
HOMEPAGE=http://q4wine.brezblock.org.ua/
|
||||
IUSE=+dbus debug +icoutils qt5 +wineappdb linguas_af_ZA linguas_cs_CZ linguas_de_DE linguas_en_US linguas_es_ES linguas_fa_IR linguas_he_IL linguas_it_IT linguas_pl_PL linguas_pt_BR linguas_ru_RU linguas_uk_UA
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtsingleapplication[qt5(+),X] dev-qt/qtsql:5[sqlite] dev-qt/qtwidgets:5 dev-qt/qtxml:5 dbus? ( dev-qt/qtdbus:5 ) ) !qt5? ( dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtsingleapplication[qt4(+),X] dev-qt/qtsql:4[sqlite] dbus? ( dev-qt/qtdbus:4 ) ) app-admin/sudo app-emulation/wine >=sys-apps/which-2.19 sys-fs/fuseiso icoutils? ( >=media-gfx/icoutils-0.26.0 )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/q4wine/q4wine/q4wine%201.2-r2/q4wine-1.2-r2.tar.bz2
|
||||
_eclasses_=cmake-utils f3d38665b0a86e08ba3a5473cdbfafd3 eutils b83a2420b796f7c6eff682679d08fe25 flag-o-matic 8632fcd33a047954f007dee9a137bdcc l10n e26ea0642846685782f1813642e7ff0f multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=c7f89134f9fd889990d442692de53730
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtsingleapplication[qt5,X] dev-qt/qtsql:5[sqlite] dev-qt/qtwidgets:5 dev-qt/qtxml:5 dbus? ( dev-qt/qtdbus:5 ) ) !qt5? ( dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtsingleapplication[qt4,X] dev-qt/qtsql:4[sqlite] dbus? ( dev-qt/qtdbus:4 ) ) qt5? ( dev-qt/linguist-tools:5 ) sys-devel/make >=dev-util/cmake-2.8.12
|
||||
DESCRIPTION=Qt GUI configuration tool for Wine
|
||||
EAPI=6
|
||||
HOMEPAGE=http://q4wine.brezblock.org.ua/
|
||||
IUSE=+dbus debug +ico +iso qt5 +wineappdb
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtsingleapplication[qt5,X] dev-qt/qtsql:5[sqlite] dev-qt/qtwidgets:5 dev-qt/qtxml:5 dbus? ( dev-qt/qtdbus:5 ) ) !qt5? ( dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtsingleapplication[qt4,X] dev-qt/qtsql:4[sqlite] dbus? ( dev-qt/qtdbus:4 ) ) app-admin/sudo >=sys-apps/which-2.19 ico? ( >=media-gfx/icoutils-0.26.0 ) iso? ( sys-fs/fuseiso )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/q4wine/q4wine-1.3.tar.bz2
|
||||
_eclasses_=cmake-utils f3d38665b0a86e08ba3a5473cdbfafd3 eutils b83a2420b796f7c6eff682679d08fe25 flag-o-matic 8632fcd33a047954f007dee9a137bdcc multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=36ebead6e420478980fca7391a6bde45
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install postinst postrm preinst prepare test
|
||||
DEPEND=dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtsingleapplication[qt5,X] dev-qt/qtsql:5[sqlite] dev-qt/qtwidgets:5 dev-qt/qtxml:5 dbus? ( dev-qt/qtdbus:5 ) dev-qt/linguist-tools:5 sys-devel/make >=dev-util/cmake-2.8.12 >=sys-apps/sed-4
|
||||
DESCRIPTION=Qt GUI configuration tool for Wine
|
||||
EAPI=6
|
||||
HOMEPAGE=http://q4wine.brezblock.org.ua/
|
||||
IUSE=+dbus debug +ico +iso +wineappdb
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtsingleapplication[qt5,X] dev-qt/qtsql:5[sqlite] dev-qt/qtwidgets:5 dev-qt/qtxml:5 dbus? ( dev-qt/qtdbus:5 ) app-admin/sudo >=sys-apps/which-2.19 ico? ( >=media-gfx/icoutils-0.26.0 ) iso? ( sys-fs/fuseiso )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/q4wine/q4wine-1.3.3.tar.bz2
|
||||
_eclasses_=cmake-utils f3d38665b0a86e08ba3a5473cdbfafd3 eutils b83a2420b796f7c6eff682679d08fe25 fdo-mime 92d07846ea8ea54172f8c0112a47ae3d flag-o-matic 8632fcd33a047954f007dee9a137bdcc gnome2-utils c6dcdf3a2c22b578b16adb945dc85c35 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c xdg-utils e2b2bd56125ce8cf59ce30c642b59d48
|
||||
_md5_=d2de4b3c8eabc7c6db4afed5fb2c7fc6
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=install prepare setup
|
||||
DEPEND=|| ( virtual/jre:1.8 virtual/jre:1.7 )
|
||||
DESCRIPTION=A high-throughput distributed messaging system
|
||||
EAPI=5
|
||||
HOMEPAGE=http://kafka.apache.org/
|
||||
IUSE=internal-zookeeper
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=Apache-2.0
|
||||
RDEPEND=|| ( virtual/jre:1.8 virtual/jre:1.7 )
|
||||
RESTRICT=mirror
|
||||
SLOT=0
|
||||
SRC_URI=mirror://apache/kafka/0.10.1.0/kafka_2.11-0.10.1.0.tgz
|
||||
_eclasses_=eutils b83a2420b796f7c6eff682679d08fe25 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 user 80aaa71614ced86f02ee1a513821dc87
|
||||
_md5_=744d3f84ca3729a50e8649f95462eb4d
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=install postinst postrm prepare setup
|
||||
DEPEND=|| ( =dev-lang/python-2.7* =dev-lang/python-2.6* ) || ( =dev-lang/python-2.7*[sqlite] =dev-lang/python-2.6*[sqlite] )
|
||||
DESCRIPTION=Binary newsgrabber with web-interface
|
||||
EAPI=4
|
||||
HOMEPAGE=http://www.sabnzbd.org/
|
||||
IUSE=+rar +ssl unzip +yenc
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=GPL-2 BSD LGPL-2 MIT BSD-1
|
||||
RDEPEND=>=app-arch/par2cmdline-0.4 >=dev-python/cheetah-2.0.1 dev-python/configobj dev-python/feedparser dev-python/gntp dev-python/pythonutils net-misc/wget rar? ( || ( app-arch/unrar app-arch/rar ) ) ssl? ( dev-python/pyopenssl ) unzip? ( >=app-arch/unzip-5.5.2 ) yenc? ( dev-python/yenc ) || ( =dev-lang/python-2.7* =dev-lang/python-2.6* ) || ( =dev-lang/python-2.7*[sqlite] =dev-lang/python-2.6*[sqlite] )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/sabnzbdplus/SABnzbd-0.7.16-src.tar.gz
|
||||
_eclasses_=eutils b83a2420b796f7c6eff682679d08fe25 multilib 165fc17c38d1b11dac2008280dab6e80 python efc1c55fc44c5b7272fc2ffba73c3e6f toolchain-funcs 1b1da0c45c555989dc5d832b54880783 user 80aaa71614ced86f02ee1a513821dc87
|
||||
_md5_=8c0347179d69dbb9e9e5a9258d29173b
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=install postinst postrm prepare setup
|
||||
DEPEND=|| ( =dev-lang/python-2.7* =dev-lang/python-2.6* ) || ( =dev-lang/python-2.7*[sqlite] =dev-lang/python-2.6*[sqlite] )
|
||||
DESCRIPTION=Binary newsgrabber with web-interface
|
||||
EAPI=4
|
||||
HOMEPAGE=http://www.sabnzbd.org/
|
||||
IUSE=+rar +ssl unzip +yenc
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=GPL-2 BSD LGPL-2 MIT BSD-1
|
||||
RDEPEND=>=app-arch/par2cmdline-0.4 >=dev-python/cheetah-2.0.1 dev-python/configobj dev-python/feedparser dev-python/gntp dev-python/pythonutils net-misc/wget rar? ( || ( app-arch/unrar app-arch/rar ) ) ssl? ( dev-python/pyopenssl ) unzip? ( >=app-arch/unzip-5.5.2 ) yenc? ( dev-python/yenc ) || ( =dev-lang/python-2.7* =dev-lang/python-2.6* ) || ( =dev-lang/python-2.7*[sqlite] =dev-lang/python-2.6*[sqlite] )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/sabnzbdplus/SABnzbd-0.7.17-src.tar.gz
|
||||
_eclasses_=eutils b83a2420b796f7c6eff682679d08fe25 multilib 165fc17c38d1b11dac2008280dab6e80 python efc1c55fc44c5b7272fc2ffba73c3e6f toolchain-funcs 1b1da0c45c555989dc5d832b54880783 user 80aaa71614ced86f02ee1a513821dc87
|
||||
_md5_=8c0347179d69dbb9e9e5a9258d29173b
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=install postinst postrm prepare setup
|
||||
DEPEND=|| ( =dev-lang/python-2.7* =dev-lang/python-2.6* ) || ( =dev-lang/python-2.7*[sqlite] =dev-lang/python-2.6*[sqlite] )
|
||||
DESCRIPTION=Binary newsgrabber with web-interface
|
||||
EAPI=4
|
||||
HOMEPAGE=http://www.sabnzbd.org/
|
||||
IUSE=+rar +ssl unzip +yenc
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=GPL-2 BSD LGPL-2 MIT BSD-1
|
||||
RDEPEND=>=app-arch/par2cmdline-0.4 >=dev-python/cheetah-2.0.1 dev-python/configobj dev-python/feedparser dev-python/gntp dev-python/pythonutils net-misc/wget rar? ( || ( app-arch/unrar app-arch/rar ) ) ssl? ( dev-python/pyopenssl ) unzip? ( >=app-arch/unzip-5.5.2 ) yenc? ( dev-python/yenc ) || ( =dev-lang/python-2.7* =dev-lang/python-2.6* ) || ( =dev-lang/python-2.7*[sqlite] =dev-lang/python-2.6*[sqlite] )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/sabnzbdplus/SABnzbd-0.7.18-src.tar.gz
|
||||
_eclasses_=eutils b83a2420b796f7c6eff682679d08fe25 multilib 165fc17c38d1b11dac2008280dab6e80 python efc1c55fc44c5b7272fc2ffba73c3e6f toolchain-funcs 1b1da0c45c555989dc5d832b54880783 user 80aaa71614ced86f02ee1a513821dc87
|
||||
_md5_=8c0347179d69dbb9e9e5a9258d29173b
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=install postinst postrm prepare setup
|
||||
DEPEND=|| ( =dev-lang/python-2.7* =dev-lang/python-2.6* ) || ( =dev-lang/python-2.7*[sqlite] =dev-lang/python-2.6*[sqlite] )
|
||||
DESCRIPTION=Binary newsgrabber with web-interface
|
||||
EAPI=4
|
||||
HOMEPAGE=http://www.sabnzbd.org/
|
||||
IUSE=+rar +ssl unzip +yenc
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=GPL-2 BSD LGPL-2 MIT BSD-1
|
||||
RDEPEND=>=app-arch/par2cmdline-0.4 >=dev-python/cheetah-2.0.1 dev-python/configobj dev-python/feedparser dev-python/gntp dev-python/pythonutils net-misc/wget rar? ( || ( app-arch/unrar app-arch/rar ) ) ssl? ( dev-python/pyopenssl ) unzip? ( >=app-arch/unzip-5.5.2 ) yenc? ( dev-python/yenc ) || ( =dev-lang/python-2.7* =dev-lang/python-2.6* ) || ( =dev-lang/python-2.7*[sqlite] =dev-lang/python-2.6*[sqlite] )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/sabnzbdplus/SABnzbd-0.7.19-src.tar.gz
|
||||
_eclasses_=eutils b83a2420b796f7c6eff682679d08fe25 multilib 165fc17c38d1b11dac2008280dab6e80 python efc1c55fc44c5b7272fc2ffba73c3e6f toolchain-funcs 1b1da0c45c555989dc5d832b54880783 user 80aaa71614ced86f02ee1a513821dc87
|
||||
_md5_=8c0347179d69dbb9e9e5a9258d29173b
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=install postinst postrm prepare setup
|
||||
DEPEND=|| ( =dev-lang/python-2.7* =dev-lang/python-2.6* ) || ( =dev-lang/python-2.7*[sqlite] =dev-lang/python-2.6*[sqlite] ) virtual/pkgconfig
|
||||
DESCRIPTION=Binary newsgrabber with web-interface
|
||||
EAPI=4
|
||||
HOMEPAGE=http://www.sabnzbd.org/
|
||||
IUSE=+rar +ssl unzip +yenc
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=GPL-2 BSD LGPL-2 MIT BSD-1
|
||||
RDEPEND=>=app-arch/par2cmdline-0.4 >=dev-python/cheetah-2.0.1 dev-python/configobj dev-python/feedparser dev-python/gntp dev-python/pythonutils net-misc/wget rar? ( || ( app-arch/unrar app-arch/rar ) ) ssl? ( dev-python/pyopenssl ) unzip? ( >=app-arch/unzip-5.5.2 ) yenc? ( dev-python/yenc ) || ( =dev-lang/python-2.7* =dev-lang/python-2.6* ) || ( =dev-lang/python-2.7*[sqlite] =dev-lang/python-2.6*[sqlite] )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/sabnzbdplus/SABnzbd-0.7.20-src.tar.gz
|
||||
_eclasses_=eutils b83a2420b796f7c6eff682679d08fe25 multilib 165fc17c38d1b11dac2008280dab6e80 python efc1c55fc44c5b7272fc2ffba73c3e6f systemd 5b6ca8b2fc1307ca593223f327342c96 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 user 80aaa71614ced86f02ee1a513821dc87
|
||||
_md5_=de29aeba236b447afec95685e940c9a2
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=install postinst postrm prepare setup
|
||||
DEPEND==dev-lang/python-2.7* =dev-lang/python-2.7*[sqlite] virtual/pkgconfig
|
||||
DESCRIPTION=Binary newsgrabber with web-interface
|
||||
EAPI=4
|
||||
HOMEPAGE=http://www.sabnzbd.org/
|
||||
IUSE=+rar +ssl unzip +yenc
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=GPL-2 BSD LGPL-2 MIT BSD-1
|
||||
RDEPEND=>=app-arch/par2cmdline-0.4 >=dev-python/cheetah-2.0.1 dev-python/configobj dev-python/feedparser dev-python/gntp dev-python/pythonutils dev-python/rarfile net-misc/wget rar? ( || ( app-arch/unrar app-arch/rar ) ) ssl? ( dev-python/pyopenssl ) unzip? ( >=app-arch/unzip-5.5.2 ) yenc? ( dev-python/yenc ) =dev-lang/python-2.7* =dev-lang/python-2.7*[sqlite]
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/sabnzbdplus/SABnzbd-1.0.3-src.tar.gz
|
||||
_eclasses_=eutils b83a2420b796f7c6eff682679d08fe25 multilib 165fc17c38d1b11dac2008280dab6e80 python efc1c55fc44c5b7272fc2ffba73c3e6f systemd 5b6ca8b2fc1307ca593223f327342c96 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 user 80aaa71614ced86f02ee1a513821dc87 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=cadd2d64799b711121d27cd200a9f979
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile install postinst postrm preinst setup test unpack
|
||||
DEPEND=!build? ( sys-apps/sed >=sys-devel/binutils-2.11.90.0.31 )
|
||||
DESCRIPTION=Full sources including the Gentoo patchset for the 4.1 kernel tree
|
||||
EAPI=5
|
||||
HOMEPAGE=https://dev.gentoo.org/~mpagano/genpatches
|
||||
IUSE=experimental symlink build
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 -hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86
|
||||
LICENSE=GPL-2 freedist
|
||||
RDEPEND=!build? ( >=sys-libs/ncurses-5.2 sys-devel/make dev-lang/perl sys-devel/bc )
|
||||
RESTRICT=binchecks strip
|
||||
SLOT=4.1.35
|
||||
SRC_URI=mirror://kernel/linux/kernel/v4.x/linux-4.1.tar.xz mirror://gentoo/genpatches-4.1-40.base.tar.xz mirror://gentoo/genpatches-4.1-40.extras.tar.xz experimental? ( mirror://gentoo/genpatches-4.1-40.experimental.tar.xz )
|
||||
_eclasses_=eutils b83a2420b796f7c6eff682679d08fe25 kernel-2 f31f3b95b5d8f120e14f0b7aafbd8b47 multilib 165fc17c38d1b11dac2008280dab6e80 python-any-r1 1c20f9b800324335a8e3b137363362e8 python-utils-r1 d142329ab093dd20c1dd0edb5f094108 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=cb717e73ef81e0a27b33a1efa28d3c1d
|
@ -1 +1 @@
|
||||
Fri, 28 Oct 2016 10:43:57 +0000
|
||||
Fri, 28 Oct 2016 13:43:22 +0000
|
||||
|
@ -1 +1 @@
|
||||
Fri Oct 28 10:39:46 UTC 2016
|
||||
Fri Oct 28 13:39:32 UTC 2016
|
||||
|
@ -1 +1 @@
|
||||
Fri, 28 Oct 2016 11:00:01 +0000
|
||||
Fri, 28 Oct 2016 14:00:01 +0000
|
||||
|
@ -1 +1 @@
|
||||
1477651201 Fri 28 Oct 2016 10:40:01 AM UTC
|
||||
1477662001 Fri 28 Oct 2016 01:40:01 PM UTC
|
||||
|
@ -1 +1 @@
|
||||
Fri, 28 Oct 2016 10:43:57 +0000
|
||||
Fri, 28 Oct 2016 13:43:22 +0000
|
||||
|
@ -0,0 +1,12 @@
|
||||
# Configuration variables for the zabbix jmx proxy
|
||||
|
||||
|
||||
# LISTEN_IP="0.0.0.0"
|
||||
# LISTEN_PORT=10052
|
||||
# START_POLLERS=5
|
||||
# TIMEOUT=3
|
||||
|
||||
# uncomment to enable remote monitoring of the standard JMX objects on the Zabbix Java Gateway itself
|
||||
# JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=12345
|
||||
# -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
|
||||
|
@ -0,0 +1,33 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
LISTEN_IP=${LISTEN_IP:-127.0.0.1}
|
||||
LISTEN_PORT=${LISTEN_PORT:-10052}
|
||||
START_POLLERS=${START_POLLERS:-5}
|
||||
TIMEOUT=${TIMEOUT:-3}
|
||||
|
||||
PID_FILE="/run/zabbix-jmx-proxy"
|
||||
|
||||
|
||||
start() {
|
||||
ZABBIX_OPTIONS="-Dzabbix.pidFile=$PID_FILE \
|
||||
-Dzabbix.listenIP=$LISTEN_IP \
|
||||
-Dzabbix.listenPort=$LISTEN_PORT \
|
||||
-Dzabbix.startPollers=$START_POLLERS \
|
||||
-Dzabbix.timeout=$TIMEOUT \
|
||||
-Dsun.rmi.transport.tcp.responseTimeout=${TIMEOUT}000"
|
||||
|
||||
JAVA_OPTIONS="-server $JAVA_OPTIONS -Dlogback.configurationFile=logback-console.xml"
|
||||
|
||||
cd /opt/zabbix_java
|
||||
|
||||
CLASSPATH="lib"
|
||||
for jar in lib/*.jar bin/*.jar; do
|
||||
CLASSPATH="$CLASSPATH:$jar"
|
||||
done
|
||||
|
||||
start-stop-daemon -m --background --pidfile $PID_FILE -- java $JAVA_OPTIONS -classpath $CLASSPATH $ZABBIX_OPTIONS com.zabbix.gateway.JavaGateway
|
||||
}
|
||||
|
||||
stop() {
|
||||
start-stop-daemon --stop --pidfile $PID_FILE
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="A high-throughput distributed messaging system"
|
||||
HOMEPAGE="http://kafka.apache.org/"
|
||||
|
||||
# pick recommended scala version
|
||||
SCALA_VERSION=2.11
|
||||
MY_PN="kafka"
|
||||
MY_P="${MY_PN}_${SCALA_VERSION}-${PV}"
|
||||
SRC_URI="mirror://apache/kafka/${PV}/${MY_P}.tgz"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="internal-zookeeper"
|
||||
|
||||
RDEPEND="
|
||||
|| ( virtual/jre:1.8 virtual/jre:1.7 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
INSTALL_DIR="/opt/${MY_PN}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup kafka
|
||||
enewuser kafka -1 /bin/sh /var/lib/kafka kafka
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:/tmp/zookeeper:/var/lib/kafka/zookeeper:' "config/zookeeper.properties" || die
|
||||
sed -i -e 's:/tmp/kafka-logs:/var/lib/kafka/logs:' "config/server.properties" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/kafka
|
||||
doins config/zookeeper.properties config/server.properties
|
||||
if use "internal-zookeeper"; then
|
||||
keepdir /var/lib/kafka/zookeeper
|
||||
newinitd "${FILESDIR}/${MY_PN}-zookeeper.init.d" "${MY_PN}-zookeeper"
|
||||
fi
|
||||
|
||||
keepdir /var/lib/kafka
|
||||
fowners -R kafka:kafka /var/lib/kafka
|
||||
|
||||
keepdir /var/log/kafka
|
||||
fowners -R kafka:kafka /var/log/kafka
|
||||
|
||||
newinitd "${FILESDIR}/${MY_PN}.init.d" "${MY_PN}"
|
||||
|
||||
dodir "${INSTALL_DIR}"
|
||||
cp -pRP bin config libs "${ED}/${INSTALL_DIR}" || die
|
||||
keepdir "${INSTALL_DIR}/logs"
|
||||
fowners -R kafka:kafka "${INSTALL_DIR}"
|
||||
}
|
@ -1,7 +1 @@
|
||||
DIST SABnzbd-0.7.16-src.tar.gz 2275768 SHA256 2c50496c8be81ac4498944a5209b2c6b3bdfecc48cf4e0df54552c5d985e5772 SHA512 ae97f093c34a100ab92949eb25a48db4c7d7d06c1fc082d3e8390d84e15dbdbbe4e682f47532cb84571039caab9aed377957522fa07b6a0f49c368eb77d66144 WHIRLPOOL 470f300f9f7b5f833d14c8170aee8690cddcfb9e442c3d9a6d108b155d6b2f7afab19010a7bf650c31e4ade5ca680433245a9c226948b52d8301861f5dc35965
|
||||
DIST SABnzbd-0.7.17-src.tar.gz 2310300 SHA256 a501517dbaf161deab2153118ff3b44512ee1d8984c3603bf17c593cf080eb09 SHA512 5f8ad391f698f5c8c069ea9a4be59124096ebd24793889db215cbc678dfd572c974083acd0d21b8b776d55cb9ebd8553952147ec2cd1768f3aab66cfba4ebaf3 WHIRLPOOL 6ec6a531c683607d36b533a1ae078ef87e5afdaa02e08588c8b5f045e735a1aa64c234e71c5d7218d15fed0eb64ef12f1a280ef65ed208b0d7a5e1408997fbca
|
||||
DIST SABnzbd-0.7.18-src.tar.gz 2317137 SHA256 aa05697d901b3e334e92f274b2e8788973059840be656a1545e8f2a4b070b014 SHA512 db7606be913fc89cdea0c037594b614c16f3887b32d1133c5f7a6c92f3dac5bec2250972e35941cd462e65bb29e91db2a43ff1e6624d827223afb957ec7922fe WHIRLPOOL 313e74425555af3dc86e111440974fefef42531018faad14a2a39649cef21a2b2d1d5a917c4ec13089ef9a46a2c31fe56b544ae0fa72628497782be756e8014f
|
||||
DIST SABnzbd-0.7.19-src.tar.gz 2386744 SHA256 31ad0ae24db3873011db816e1b100f4429734b2260f4c669b7261d2f85717487 SHA512 383788d87a3ee4e69ba818f6614f6929aa328d1153b746e04736868de598ee35e556a07cced7c74bc89c54fe77c1e52c4cdde8ed37d536a09bd1c605c551b9e7 WHIRLPOOL fbf1ab129a403011bd6957272d348fd745621e9c13f46f3988362bb8bb7a6ceb26b57253978ec5f5ae97c2ea942ba80ff1cab0ca1d1f99d33a1c55fc03b0dad9
|
||||
DIST SABnzbd-0.7.20-src.tar.gz 2389762 SHA256 20b3a4613a0ecdede4fdfeb628ae806e458ac1a6fb684306328dd4ed1faf8742 SHA512 51ea888fcb7b49156cb719cb4fe75725d69acd726097d8b2526d6af87d0404bf08d0ab4b82f25dae7ac9a52d6c639e57a145bf5af6005fa435ad31f239a716d5 WHIRLPOOL 2686160be649c051ac1186481dae1e876650fbc91fe3ea1ab2d1569baea51f0ab7d0be6c7942b9facd6e5f856ab24ab36d1dc2f55dc645f06be275b2e43abb4b
|
||||
DIST SABnzbd-1.0.3-src.tar.gz 2975111 SHA256 cf87d3f17fc03e8b3a4b3010261115c2ad7e2f773b5ede95a80025b340dbbd35 SHA512 6213cb73f6d2127133c5ab292e5ac2bcf6f4c780b5345b54b91459271c1acad6c6c95c4ba1ebc1e34341d5dc09d14e4806b84b977fc90f5ff0a49725b08a77e9 WHIRLPOOL 021a864f8d2b90481da5f4d1b3b1a5a5478230c3a61af2c30ba2be65594224863a48d58d475fc2e79986274e48e5ad83b5d13a6bc0a7829e99552062fdf185a7
|
||||
DIST SABnzbd-1.1.0-src.tar.gz 2736977 SHA256 3e86a897dea1c276c54ee38667a980f644f16d57df75612fe9eefa84b339ce9a SHA512 4fd4304253ec66c7bc6038fe8eb7bc08f0133cc4eda9efb28349242574744f262369fe43786da5a22eb90664cfa7fb91356941174787c4faef7d7624751a86d2 WHIRLPOOL f5ef42a01cd1c79f28bbd42c6970b9a1b66846af266c027354494cd103d03d14d2914a3d2b88b1aef740a6e849b9e3216c639323f41146553c5f2dcdeef182aa
|
||||
|
@ -1,52 +0,0 @@
|
||||
From 75608455ab239c8dd05280e858f10026a31a5eac Mon Sep 17 00:00:00 2001
|
||||
From: Justin Bronder <jsbronder@gmail.com>
|
||||
Date: Thu, 3 Jan 2013 04:10:37 -0500
|
||||
Subject: [PATCH 1/4] use system configobj and feedparser
|
||||
|
||||
---
|
||||
sabnzbd/config.py | 4 +++-
|
||||
sabnzbd/rss.py | 3 ++-
|
||||
2 files changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/sabnzbd/config.py b/sabnzbd/config.py
|
||||
index 3bf777a..3e6551a 100644
|
||||
--- a/sabnzbd/config.py
|
||||
+++ b/sabnzbd/config.py
|
||||
@@ -24,10 +24,12 @@ import re
|
||||
import logging
|
||||
import threading
|
||||
import shutil
|
||||
+
|
||||
+import configobj
|
||||
+
|
||||
import sabnzbd.misc
|
||||
from sabnzbd.constants import CONFIG_VERSION, NORMAL_PRIORITY, DEFAULT_PRIORITY, MAX_WIN_DFOLDER
|
||||
from sabnzbd.utils import listquote
|
||||
-from sabnzbd.utils import configobj
|
||||
from sabnzbd.decorators import synchronized
|
||||
|
||||
CONFIG_LOCK = threading.Lock()
|
||||
diff --git a/sabnzbd/rss.py b/sabnzbd/rss.py
|
||||
index 67ff94b..8b7d8c1 100644
|
||||
--- a/sabnzbd/rss.py
|
||||
+++ b/sabnzbd/rss.py
|
||||
@@ -26,6 +26,8 @@ import threading
|
||||
import urllib
|
||||
import os
|
||||
|
||||
+import feedparser
|
||||
+
|
||||
import sabnzbd
|
||||
from sabnzbd.constants import *
|
||||
from sabnzbd.decorators import synchronized
|
||||
@@ -36,7 +38,6 @@ from sabnzbd.misc import cat_convert, sanitize_foldername, wildcard_to_re, cat_t
|
||||
import sabnzbd.emailer as emailer
|
||||
from sabnzbd.encoding import unicoder, xml_name
|
||||
|
||||
-import sabnzbd.utils.feedparser as feedparser
|
||||
|
||||
__RSS = None # Global pointer to RSS-scanner instance
|
||||
|
||||
--
|
||||
2.4.10
|
||||
|
@ -1,31 +0,0 @@
|
||||
From 14eabdcd495be61bb14ecc8152058f92bd71a2db Mon Sep 17 00:00:00 2001
|
||||
From: Justin Bronder <jsbronder@gmail.com>
|
||||
Date: Mon, 24 Jun 2013 19:03:17 -0400
|
||||
Subject: [PATCH 2/4] growler: support >=gntp-1.0
|
||||
|
||||
Fixes Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=474540
|
||||
---
|
||||
sabnzbd/growler.py | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/sabnzbd/growler.py b/sabnzbd/growler.py
|
||||
index 34d73c4..cd1ce91 100644
|
||||
--- a/sabnzbd/growler.py
|
||||
+++ b/sabnzbd/growler.py
|
||||
@@ -37,7 +37,12 @@ import sabnzbd.cfg
|
||||
from sabnzbd.encoding import unicoder
|
||||
from sabnzbd.constants import NOTIFY_KEYS
|
||||
|
||||
-from gntp import GNTPRegister
|
||||
+try:
|
||||
+ # <= version 0.6
|
||||
+ from gntp import GNTPRegister
|
||||
+except ImportError:
|
||||
+ # >= version 1.0
|
||||
+ from gntp.core import GNTPRegister
|
||||
from gntp.notifier import GrowlNotifier
|
||||
try:
|
||||
import Growl
|
||||
--
|
||||
2.4.10
|
||||
|
@ -1,34 +0,0 @@
|
||||
From 93f2759ce13c3e93e4fe64bf632249d96eddb41b Mon Sep 17 00:00:00 2001
|
||||
From: Justin Bronder <jsbronder@gmail.com>
|
||||
Date: Tue, 14 Jun 2016 08:38:54 -0400
|
||||
Subject: [PATCH 3/4] cfg: disable growl by default
|
||||
|
||||
---
|
||||
sabnzbd/cfg.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/sabnzbd/cfg.py b/sabnzbd/cfg.py
|
||||
index 9d362df..a90cc03 100644
|
||||
--- a/sabnzbd/cfg.py
|
||||
+++ b/sabnzbd/cfg.py
|
||||
@@ -286,7 +286,7 @@ acenter_prio_queue_done = OptionBool('acenter', 'acenter_prio_queue_done', True)
|
||||
acenter_prio_other = OptionBool('acenter', 'acenter_prio_other', False)
|
||||
|
||||
# [ntfosd]
|
||||
-ntfosd_enable = OptionBool('ntfosd', 'ntfosd_enable', not sabnzbd.WIN32 and not sabnzbd.DARWIN)
|
||||
+ntfosd_enable = OptionBool('ntfosd', 'ntfosd_enable', False)
|
||||
ntfosd_prio_startup = OptionBool('ntfosd', 'ntfosd_prio_startup', True)
|
||||
ntfosd_prio_download = OptionBool('ntfosd', 'ntfosd_prio_download', False)
|
||||
ntfosd_prio_pp = OptionBool('ntfosd', 'ntfosd_prio_pp', False)
|
||||
@@ -299,7 +299,7 @@ ntfosd_prio_queue_done = OptionBool('ntfosd', 'ntfosd_prio_queue_done', True)
|
||||
ntfosd_prio_other = OptionBool('ntfosd', 'ntfosd_prio_other', False)
|
||||
|
||||
# [growl]
|
||||
-growl_enable = OptionBool('growl', 'growl_enable', sabnzbd.DARWIN and sabnzbd.DARWIN_VERSION < 8)
|
||||
+growl_enable = OptionBool('growl', 'growl_enable', False)
|
||||
growl_server = OptionStr('growl', 'growl_server')
|
||||
growl_password = OptionPassword('growl', 'growl_password')
|
||||
growl_prio_startup = OptionBool('growl', 'growl_prio_startup', True)
|
||||
--
|
||||
2.4.10
|
||||
|
@ -1,68 +0,0 @@
|
||||
From 33ce1a3e3cce21feedc88cddf708173f826c57cb Mon Sep 17 00:00:00 2001
|
||||
From: Justin Bronder <jsbronder@gmail.com>
|
||||
Date: Tue, 14 Jun 2016 08:43:37 -0400
|
||||
Subject: [PATCH 4/4] use system rarfile
|
||||
|
||||
---
|
||||
sabnzbd/assembler.py | 3 ++-
|
||||
sabnzbd/dirscanner.py | 3 ++-
|
||||
sabnzbd/newsunpack.py | 3 ++-
|
||||
3 files changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/sabnzbd/assembler.py b/sabnzbd/assembler.py
|
||||
index 7c4beb8..142678d 100644
|
||||
--- a/sabnzbd/assembler.py
|
||||
+++ b/sabnzbd/assembler.py
|
||||
@@ -34,6 +34,8 @@ except:
|
||||
import md5
|
||||
new_md5 = md5.new
|
||||
|
||||
+from rarfile import RarFile, is_rarfile
|
||||
+
|
||||
import sabnzbd
|
||||
from sabnzbd.misc import get_filepath, sanitize_filename, get_unique_filename, renamer, \
|
||||
set_permissions, flag_file, long_path, clip_path
|
||||
@@ -42,7 +44,6 @@ import sabnzbd.cfg as cfg
|
||||
from sabnzbd.articlecache import ArticleCache
|
||||
from sabnzbd.postproc import PostProcessor
|
||||
import sabnzbd.downloader
|
||||
-from sabnzbd.utils.rarfile import RarFile, is_rarfile
|
||||
from sabnzbd.encoding import unicoder, is_utf8
|
||||
from sabnzbd.rating import Rating
|
||||
|
||||
diff --git a/sabnzbd/dirscanner.py b/sabnzbd/dirscanner.py
|
||||
index 6ada4bf..7a31920 100644
|
||||
--- a/sabnzbd/dirscanner.py
|
||||
+++ b/sabnzbd/dirscanner.py
|
||||
@@ -27,9 +27,10 @@ import gzip
|
||||
import bz2
|
||||
import threading
|
||||
|
||||
+from rarfile import RarFile, is_rarfile
|
||||
+
|
||||
import sabnzbd
|
||||
from sabnzbd.constants import *
|
||||
-from sabnzbd.utils.rarfile import is_rarfile, RarFile
|
||||
from sabnzbd.newsunpack import is_sevenfile, SevenZip
|
||||
import sabnzbd.nzbstuff as nzbstuff
|
||||
import sabnzbd.misc as misc
|
||||
diff --git a/sabnzbd/newsunpack.py b/sabnzbd/newsunpack.py
|
||||
index 6906aed..940879f 100644
|
||||
--- a/sabnzbd/newsunpack.py
|
||||
+++ b/sabnzbd/newsunpack.py
|
||||
@@ -28,10 +28,11 @@ from time import time
|
||||
import binascii
|
||||
import shutil
|
||||
|
||||
+from rarfile import RarFile, is_rarfile
|
||||
+
|
||||
import sabnzbd
|
||||
from sabnzbd.encoding import TRANS, UNTRANS, unicode2local, name_fixer, \
|
||||
reliable_unpack_names, unicoder, platform_encode, deunicode
|
||||
-from sabnzbd.utils.rarfile import RarFile, is_rarfile
|
||||
from sabnzbd.misc import format_time_string, find_on_path, make_script_path, int_conv, \
|
||||
flag_file, real_path, globber, globber_full, short_path
|
||||
from sabnzbd.tvsort import SeriesSorter
|
||||
--
|
||||
2.4.10
|
||||
|
@ -1,15 +0,0 @@
|
||||
diff --git a/sabnzbd/cfg.py b/sabnzbd/cfg.py
|
||||
index 39e418b..509a962 100644
|
||||
--- a/sabnzbd/cfg.py
|
||||
+++ b/sabnzbd/cfg.py
|
||||
@@ -238,8 +238,8 @@ no_ipv6 = OptionBool('misc', 'no_ipv6', False)
|
||||
|
||||
growl_server = OptionStr('growl', 'growl_server')
|
||||
growl_password = OptionPassword('growl', 'growl_password')
|
||||
-growl_enable = OptionBool('growl', 'growl_enable', not sabnzbd.DARWIN_ML)
|
||||
-ntfosd_enable = OptionBool('growl', 'ntfosd_enable', not sabnzbd.WIN32 and not sabnzbd.DARWIN)
|
||||
+growl_enable = OptionBool('growl', 'growl_enable', 0)
|
||||
+ntfosd_enable = OptionBool('growl', 'ntfosd_enable', 0)
|
||||
ncenter_enable = OptionBool('growl', 'ncenter_enable', sabnzbd.DARWIN)
|
||||
notify_classes = OptionList('growl', 'notify_classes', NOTIFY_KEYS)
|
||||
|
@ -1,33 +0,0 @@
|
||||
From 96b4891d2323cb44f479bc94d1410348b1468298 Mon Sep 17 00:00:00 2001
|
||||
From: Justin Bronder <jsbronder@gmail.com>
|
||||
Date: Mon, 24 Jun 2013 19:03:17 -0400
|
||||
Subject: [PATCH] growler: support >=gntp-1.0
|
||||
|
||||
Fixes Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=474540
|
||||
---
|
||||
sabnzbd/growler.py | 9 ++++++++-
|
||||
1 file changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/sabnzbd/growler.py b/sabnzbd/growler.py
|
||||
index d250703..f39bb44 100644
|
||||
--- a/sabnzbd/growler.py
|
||||
+++ b/sabnzbd/growler.py
|
||||
@@ -31,7 +31,14 @@ import sabnzbd
|
||||
import sabnzbd.cfg
|
||||
from sabnzbd.encoding import unicoder, latin1
|
||||
from sabnzbd.constants import NOTIFY_KEYS
|
||||
-from gntp import GNTPRegister
|
||||
+
|
||||
+try:
|
||||
+ # <= version 0.6
|
||||
+ from gntp import GNTPRegister
|
||||
+except ImportError:
|
||||
+ # >= version 1.0
|
||||
+ from gntp.core import GNTPRegister
|
||||
+
|
||||
from gntp.notifier import GrowlNotifier
|
||||
try:
|
||||
import Growl
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,12 +0,0 @@
|
||||
--- sabnzbd/newsunpack.py.orig 2013-07-07 13:29:12.000000000 +0200
|
||||
+++ sabnzbd/newsunpack.py 2013-08-02 20:16:22.286697000 +0200
|
||||
@@ -966,7 +966,7 @@
|
||||
|
||||
# Append the wildcard for this set
|
||||
wildcard = '%s*' % os.path.join(os.path.split(parfile)[0], setname)
|
||||
- if single or len(globber(wildcard, None)) < 2:
|
||||
+ if len(globber(wildcard, None)) < 2:
|
||||
# Support bizarre naming conventions
|
||||
wildcard = os.path.join(os.path.split(parfile)[0], '*')
|
||||
command.append(wildcard)
|
||||
|
@ -1,99 +1,71 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
RUNDIR=/var/run/sabnzbd
|
||||
PIDFILE="/run/sabnzbd/sabnzbd.pid"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
need net
|
||||
}
|
||||
|
||||
get_var() {
|
||||
echo $(sed -n \
|
||||
'/^\[misc]/,/^'$1'/ s/^'$1' = \([[:alnum:].]\+\)[\r|\n|\r\n]*$/\1/p' \
|
||||
"${SABNZBD_CONFIGFILE}")
|
||||
grep -P -o -m 1 "(?<=^${1} = ).*" "${SABNZBD_CONFIGFILE}" || echo 0
|
||||
}
|
||||
|
||||
get_port() {
|
||||
if [ "$(get_var 'enable_https')" -eq 1 ]; then
|
||||
echo $(get_var 'https_port')
|
||||
else
|
||||
echo $(get_var 'port')
|
||||
fi
|
||||
start() {
|
||||
ebegin "Starting SABnzbd"
|
||||
|
||||
checkpath -q -d -o ${SABNZBD_USER}:${SABNZBD_GROUP} -m 0770 "$(dirname "${PIDFILE}")"
|
||||
|
||||
start-stop-daemon \
|
||||
--quiet \
|
||||
--start \
|
||||
--user ${SABNZBD_USER} \
|
||||
--group ${SABNZBD_GROUP} \
|
||||
--pidfile "${PIDFILE}" \
|
||||
--wait 1000 \
|
||||
--exec /usr/bin/sabnzbd \
|
||||
-- \
|
||||
--config-file "${SABNZBD_CONFIGFILE}" \
|
||||
--logging "${SABNZBD_LOGGING}" \
|
||||
--daemon \
|
||||
--pidfile "${PIDFILE}"
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
||||
get_addr() {
|
||||
local host=$(get_var 'host')
|
||||
local protocol='http'
|
||||
stop() {
|
||||
local protocol="http"
|
||||
local host="$(get_var "host")"
|
||||
local port="$(get_var "port")"
|
||||
|
||||
[ "${host}" == "0.0.0.0" ] && host=localhost
|
||||
[ "$(get_var 'enable_https')" -eq 1 ] && protocol='https'
|
||||
if [ $(get_var "enable_https") -eq 1 ]; then
|
||||
protocol="https"
|
||||
port="$(get_var "https_port")"
|
||||
fi
|
||||
|
||||
echo "${protocol}://${host}:$(get_port)"
|
||||
}
|
||||
case "${host}" in
|
||||
*:*) host="[${host}]" ;;
|
||||
esac
|
||||
|
||||
get_pidfile() {
|
||||
echo "${RUNDIR}/sabnzbd-$(get_port).pid"
|
||||
}
|
||||
local url="${protocol}://${host}:${port}/sabnzbd/api?mode=shutdown"
|
||||
|
||||
start() {
|
||||
ebegin "Starting SABnzbd"
|
||||
|
||||
checkpath -q -d -o ${SABNZBD_USER}:${SABNZBD_GROUP} -m 0770 "${RUNDIR}"
|
||||
|
||||
start-stop-daemon \
|
||||
--quiet \
|
||||
--start \
|
||||
--user ${SABNZBD_USER} \
|
||||
--group ${SABNZBD_GROUP} \
|
||||
--name sabnzbd \
|
||||
--background \
|
||||
--pidfile "$(get_pidfile)" \
|
||||
--exec /usr/bin/sabnzbd \
|
||||
-- \
|
||||
--config-file "${SABNZBD_CONFIGFILE}" \
|
||||
--logging "${SABNZBD_LOGGING}" \
|
||||
--daemon \
|
||||
--pid "${RUNDIR}"
|
||||
|
||||
eend $?
|
||||
}
|
||||
if [ $(get_var "disable_api_key") -eq 0 ]; then
|
||||
url="${url}&apikey=$(get_var "api_key")"
|
||||
fi
|
||||
|
||||
start_pre() {
|
||||
if [ "$RC_CMD" == "restart" ]; then
|
||||
local pidfile=$(get_pidfile)
|
||||
while [ -e ${pidfile} ]; do
|
||||
sleep 1
|
||||
done
|
||||
fi
|
||||
local signals="TERM/1/KILL/1"
|
||||
|
||||
return 0
|
||||
}
|
||||
ebegin "Stopping SABnzbd"
|
||||
|
||||
stop() {
|
||||
local api_key=$(get_var 'api_key')
|
||||
local addr=$(get_addr)
|
||||
local rc=1
|
||||
|
||||
ebegin "Stopping SABnzbd @ ${addr}"
|
||||
# This can only work if we have enabled the API
|
||||
if [ -n "${api_key}" -a "$(get_var 'disable_api_key')" -ne 1 ]; then
|
||||
local ret
|
||||
einfo "Attempting web-based shutdown @ ${addr}"
|
||||
|
||||
# SABnzbd will return "ok" if shutdown is successful
|
||||
ret=$(/usr/bin/curl -k -s "${addr}/sabnzbd/api?mode=shutdown&apikey=${api_key}")
|
||||
[ "${ret}" == "ok" ] && rc=0
|
||||
fi
|
||||
|
||||
if [ "${rc}" -ne 0 ]; then
|
||||
einfo "Falling back to SIGTERM, this may not work if you restarted via the web interface"
|
||||
start-stop-daemon \
|
||||
--stop \
|
||||
--pidfile $(get_pidfile) \
|
||||
--retry SIGTERM/1/SIGKILL/5
|
||||
rc=$?
|
||||
fi
|
||||
|
||||
eend ${rc}
|
||||
if [ "$(wget -q -t 1 -O - -T 10 "${url}")" = "ok" ]; then
|
||||
signals="CONT/5/${signals}"
|
||||
fi
|
||||
|
||||
start-stop-daemon \
|
||||
--stop \
|
||||
--pidfile "${PIDFILE}" \
|
||||
--retry "${signals}"
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
@ -1,44 +0,0 @@
|
||||
From 89cb8b86fb087bc4706478ce4ec3ad5fd19602e6 Mon Sep 17 00:00:00 2001
|
||||
From: Justin Bronder <jsbronder@gmail.com>
|
||||
Date: Thu, 3 Jan 2013 04:10:37 -0500
|
||||
Subject: [PATCH] use system configobj and feedparser
|
||||
|
||||
---
|
||||
sabnzbd/config.py | 4 +++-
|
||||
sabnzbd/rss.py | 2 +-
|
||||
2 files changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/sabnzbd/config.py b/sabnzbd/config.py
|
||||
index c3fc54c..cce2b14 100644
|
||||
--- a/sabnzbd/config.py
|
||||
+++ b/sabnzbd/config.py
|
||||
@@ -23,10 +23,12 @@ import os
|
||||
import logging
|
||||
import threading
|
||||
import shutil
|
||||
+
|
||||
+import configobj
|
||||
+
|
||||
import sabnzbd.misc
|
||||
from sabnzbd.constants import CONFIG_VERSION, NORMAL_PRIORITY, DEFAULT_PRIORITY
|
||||
from sabnzbd.utils import listquote
|
||||
-from sabnzbd.utils import configobj
|
||||
from sabnzbd.decorators import synchronized
|
||||
|
||||
CONFIG_LOCK = threading.Lock()
|
||||
diff --git a/sabnzbd/rss.py b/sabnzbd/rss.py
|
||||
index 6fe6f5b..19a5d0f 100644
|
||||
--- a/sabnzbd/rss.py
|
||||
+++ b/sabnzbd/rss.py
|
||||
@@ -35,7 +35,7 @@ from sabnzbd.misc import cat_convert, sanitize_foldername, wildcard_to_re, cat_t
|
||||
import sabnzbd.emailer as emailer
|
||||
from sabnzbd.encoding import latin1, unicoder, xml_name
|
||||
|
||||
-import sabnzbd.utils.feedparser as feedparser
|
||||
+import feedparser
|
||||
|
||||
__RSS = None # Global pointer to RSS-scanner instance
|
||||
|
||||
--
|
||||
1.7.3.4
|
||||
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
# Require python-2 with sqlite USE flag
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
|
||||
inherit eutils python user
|
||||
|
||||
MY_P="${P/sab/SAB}"
|
||||
|
||||
DESCRIPTION="Binary newsgrabber with web-interface"
|
||||
HOMEPAGE="http://www.sabnzbd.org/"
|
||||
SRC_URI="mirror://sourceforge/sabnzbdplus/${MY_P}-src.tar.gz"
|
||||
|
||||
# Sabnzbd is GPL-2 but bundles software with the following licenses.
|
||||
LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+rar +ssl unzip +yenc"
|
||||
|
||||
# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not
|
||||
# be in python's sitedir. See: http://wiki.sabnzbd.org/unix-packaging
|
||||
|
||||
# TODO: still bundled but not in protage:
|
||||
# kronos, rarfile, rsslib, ssmtplib, listquote, json-py, msgfmt
|
||||
# pynewsleecher
|
||||
#
|
||||
# Also note that cherrypy is still bundled. It's near impossible to find
|
||||
# out where the bundled and heavily patched version came from (pulled from
|
||||
# cherrypy subversion, patched somewhere, then imported to sabnzbd and patched
|
||||
# further. Upstream is planning on making this easier with 0.8.0.
|
||||
# https://github.com/sabnzbd/sabnzbd/issues/47
|
||||
|
||||
RDEPEND="
|
||||
>=app-arch/par2cmdline-0.4
|
||||
>=dev-python/cheetah-2.0.1
|
||||
dev-python/configobj
|
||||
dev-python/feedparser
|
||||
dev-python/gntp
|
||||
dev-python/pythonutils
|
||||
net-misc/wget
|
||||
rar? ( || ( app-arch/unrar app-arch/rar ) )
|
||||
ssl? ( dev-python/pyopenssl )
|
||||
unzip? ( >=app-arch/unzip-5.5.2 )
|
||||
yenc? ( dev-python/yenc )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
HOMEDIR="/var/lib/${PN}"
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
# Create sabnzbd group
|
||||
enewgroup ${PN}
|
||||
# Create sabnzbd user, put in sabnzbd group
|
||||
enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/use-system-configobj-and-feedparser.patch
|
||||
epatch "${FILESDIR}"/growler-support-gntp-1.0.patch
|
||||
epatch "${FILESDIR}"/par2cmdline.patch
|
||||
|
||||
# remove bundled modules
|
||||
rm -r sabnzbd/utils/{feedparser,configobj}.py || die
|
||||
rm -r gntp || die
|
||||
rm licenses/License-{feedparser,configobj,gntp}.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d
|
||||
|
||||
dodir /usr/share/${PN}/sabnzbd
|
||||
insinto /usr/share/${PN}/
|
||||
doins SABnzbd.py
|
||||
fperms +x /usr/share/${PN}/SABnzbd.py
|
||||
dobin "${FILESDIR}"/sabnzbd
|
||||
|
||||
for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
|
||||
insinto /usr/share/${PN}/${d}
|
||||
doins -r ${d}/*
|
||||
done
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
|
||||
diropts -o ${PN} -g ${PN}
|
||||
dodir /etc/${PN}
|
||||
dodir /var/log/${PN}
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
insopts -m 0600 -o ${PN} -g ${PN}
|
||||
doins "${FILESDIR}/${PN}.ini"
|
||||
|
||||
dodoc {ABOUT,CHANGELOG,ISSUES,README}.txt Sample-PostProc.sh licenses/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize /usr/share/${PN}
|
||||
|
||||
einfo "Default directory: ${HOMEDIR}"
|
||||
einfo ""
|
||||
einfo "Run: gpasswd -a <user> sabnzbd"
|
||||
einfo "to add a user to the sabnzbd group so it can edit sabnzbd files"
|
||||
einfo ""
|
||||
einfo "By default sabnzbd will listen on 127.0.0.1:8080"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/share/${PN}
|
||||
}
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
# Require python-2 with sqlite USE flag
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
|
||||
inherit eutils python user
|
||||
|
||||
MY_P="${P/sab/SAB}"
|
||||
|
||||
DESCRIPTION="Binary newsgrabber with web-interface"
|
||||
HOMEPAGE="http://www.sabnzbd.org/"
|
||||
SRC_URI="mirror://sourceforge/sabnzbdplus/${MY_P}-src.tar.gz"
|
||||
|
||||
# Sabnzbd is GPL-2 but bundles software with the following licenses.
|
||||
LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+rar +ssl unzip +yenc"
|
||||
|
||||
# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not
|
||||
# be in python's sitedir. See: http://wiki.sabnzbd.org/unix-packaging
|
||||
|
||||
# TODO: still bundled but not in protage:
|
||||
# kronos, rarfile, rsslib, ssmtplib, listquote, json-py, msgfmt
|
||||
# pynewsleecher
|
||||
#
|
||||
# Also note that cherrypy is still bundled. It's near impossible to find
|
||||
# out where the bundled and heavily patched version came from (pulled from
|
||||
# cherrypy subversion, patched somewhere, then imported to sabnzbd and patched
|
||||
# further. Upstream is planning on making this easier with 0.8.0.
|
||||
# https://github.com/sabnzbd/sabnzbd/issues/47
|
||||
|
||||
RDEPEND="
|
||||
>=app-arch/par2cmdline-0.4
|
||||
>=dev-python/cheetah-2.0.1
|
||||
dev-python/configobj
|
||||
dev-python/feedparser
|
||||
dev-python/gntp
|
||||
dev-python/pythonutils
|
||||
net-misc/wget
|
||||
rar? ( || ( app-arch/unrar app-arch/rar ) )
|
||||
ssl? ( dev-python/pyopenssl )
|
||||
unzip? ( >=app-arch/unzip-5.5.2 )
|
||||
yenc? ( dev-python/yenc )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
HOMEDIR="/var/lib/${PN}"
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
# Create sabnzbd group
|
||||
enewgroup ${PN}
|
||||
# Create sabnzbd user, put in sabnzbd group
|
||||
enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/use-system-configobj-and-feedparser.patch
|
||||
epatch "${FILESDIR}"/growler-support-gntp-1.0.patch
|
||||
epatch "${FILESDIR}"/par2cmdline.patch
|
||||
|
||||
# remove bundled modules
|
||||
rm -r sabnzbd/utils/{feedparser,configobj}.py || die
|
||||
rm -r gntp || die
|
||||
rm licenses/License-{feedparser,configobj,gntp}.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d
|
||||
|
||||
dodir /usr/share/${PN}/sabnzbd
|
||||
insinto /usr/share/${PN}/
|
||||
doins SABnzbd.py
|
||||
fperms +x /usr/share/${PN}/SABnzbd.py
|
||||
dobin "${FILESDIR}"/sabnzbd
|
||||
|
||||
for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
|
||||
insinto /usr/share/${PN}/${d}
|
||||
doins -r ${d}/*
|
||||
done
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
|
||||
diropts -o ${PN} -g ${PN}
|
||||
dodir /etc/${PN}
|
||||
dodir /var/log/${PN}
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
insopts -m 0600 -o ${PN} -g ${PN}
|
||||
doins "${FILESDIR}/${PN}.ini"
|
||||
|
||||
dodoc {ABOUT,CHANGELOG,ISSUES,README}.txt Sample-PostProc.sh licenses/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize /usr/share/${PN}
|
||||
|
||||
einfo "Default directory: ${HOMEDIR}"
|
||||
einfo ""
|
||||
einfo "Run: gpasswd -a <user> sabnzbd"
|
||||
einfo "to add a user to the sabnzbd group so it can edit sabnzbd files"
|
||||
einfo ""
|
||||
einfo "By default sabnzbd will listen on 127.0.0.1:8080"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/share/${PN}
|
||||
}
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
# Require python-2 with sqlite USE flag
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
|
||||
inherit eutils python user
|
||||
|
||||
MY_P="${P/sab/SAB}"
|
||||
|
||||
DESCRIPTION="Binary newsgrabber with web-interface"
|
||||
HOMEPAGE="http://www.sabnzbd.org/"
|
||||
SRC_URI="mirror://sourceforge/sabnzbdplus/${MY_P}-src.tar.gz"
|
||||
|
||||
# Sabnzbd is GPL-2 but bundles software with the following licenses.
|
||||
LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+rar +ssl unzip +yenc"
|
||||
|
||||
# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not
|
||||
# be in python's sitedir. See: http://wiki.sabnzbd.org/unix-packaging
|
||||
|
||||
# TODO: still bundled but not in protage:
|
||||
# kronos, rarfile, rsslib, ssmtplib, listquote, json-py, msgfmt
|
||||
# pynewsleecher
|
||||
#
|
||||
# Also note that cherrypy is still bundled. It's near impossible to find
|
||||
# out where the bundled and heavily patched version came from (pulled from
|
||||
# cherrypy subversion, patched somewhere, then imported to sabnzbd and patched
|
||||
# further. Upstream is planning on making this easier with 0.8.0.
|
||||
# https://github.com/sabnzbd/sabnzbd/issues/47
|
||||
|
||||
RDEPEND="
|
||||
>=app-arch/par2cmdline-0.4
|
||||
>=dev-python/cheetah-2.0.1
|
||||
dev-python/configobj
|
||||
dev-python/feedparser
|
||||
dev-python/gntp
|
||||
dev-python/pythonutils
|
||||
net-misc/wget
|
||||
rar? ( || ( app-arch/unrar app-arch/rar ) )
|
||||
ssl? ( dev-python/pyopenssl )
|
||||
unzip? ( >=app-arch/unzip-5.5.2 )
|
||||
yenc? ( dev-python/yenc )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
HOMEDIR="/var/lib/${PN}"
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
# Create sabnzbd group
|
||||
enewgroup ${PN}
|
||||
# Create sabnzbd user, put in sabnzbd group
|
||||
enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/use-system-configobj-and-feedparser.patch
|
||||
epatch "${FILESDIR}"/growler-support-gntp-1.0.patch
|
||||
epatch "${FILESDIR}"/par2cmdline.patch
|
||||
|
||||
# remove bundled modules
|
||||
rm -r sabnzbd/utils/{feedparser,configobj}.py || die
|
||||
rm -r gntp || die
|
||||
rm licenses/License-{feedparser,configobj,gntp}.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d
|
||||
|
||||
dodir /usr/share/${PN}/sabnzbd
|
||||
insinto /usr/share/${PN}/
|
||||
doins SABnzbd.py
|
||||
fperms +x /usr/share/${PN}/SABnzbd.py
|
||||
dobin "${FILESDIR}"/sabnzbd
|
||||
|
||||
for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
|
||||
insinto /usr/share/${PN}/${d}
|
||||
doins -r ${d}/*
|
||||
done
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
|
||||
diropts -o ${PN} -g ${PN}
|
||||
dodir /etc/${PN}
|
||||
dodir /var/log/${PN}
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
insopts -m 0600 -o ${PN} -g ${PN}
|
||||
doins "${FILESDIR}/${PN}.ini"
|
||||
|
||||
dodoc {ABOUT,CHANGELOG,ISSUES,README}.txt Sample-PostProc.sh licenses/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize /usr/share/${PN}
|
||||
|
||||
einfo "Default directory: ${HOMEDIR}"
|
||||
einfo ""
|
||||
einfo "Run: gpasswd -a <user> sabnzbd"
|
||||
einfo "to add a user to the sabnzbd group so it can edit sabnzbd files"
|
||||
einfo ""
|
||||
einfo "By default sabnzbd will listen on 127.0.0.1:8080"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/share/${PN}
|
||||
}
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
# Require python-2 with sqlite USE flag
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
|
||||
inherit eutils python user
|
||||
|
||||
MY_P="${P/sab/SAB}"
|
||||
|
||||
DESCRIPTION="Binary newsgrabber with web-interface"
|
||||
HOMEPAGE="http://www.sabnzbd.org/"
|
||||
SRC_URI="mirror://sourceforge/sabnzbdplus/${MY_P}-src.tar.gz"
|
||||
|
||||
# Sabnzbd is GPL-2 but bundles software with the following licenses.
|
||||
LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+rar +ssl unzip +yenc"
|
||||
|
||||
# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not
|
||||
# be in python's sitedir. See: http://wiki.sabnzbd.org/unix-packaging
|
||||
|
||||
# TODO: still bundled but not in protage:
|
||||
# kronos, rarfile, rsslib, ssmtplib, listquote, json-py, msgfmt
|
||||
# pynewsleecher
|
||||
#
|
||||
# Also note that cherrypy is still bundled. It's near impossible to find
|
||||
# out where the bundled and heavily patched version came from (pulled from
|
||||
# cherrypy subversion, patched somewhere, then imported to sabnzbd and patched
|
||||
# further. Upstream is planning on making this easier with 0.8.0.
|
||||
# https://github.com/sabnzbd/sabnzbd/issues/47
|
||||
|
||||
RDEPEND="
|
||||
>=app-arch/par2cmdline-0.4
|
||||
>=dev-python/cheetah-2.0.1
|
||||
dev-python/configobj
|
||||
dev-python/feedparser
|
||||
dev-python/gntp
|
||||
dev-python/pythonutils
|
||||
net-misc/wget
|
||||
rar? ( || ( app-arch/unrar app-arch/rar ) )
|
||||
ssl? ( dev-python/pyopenssl )
|
||||
unzip? ( >=app-arch/unzip-5.5.2 )
|
||||
yenc? ( dev-python/yenc )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
HOMEDIR="/var/lib/${PN}"
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
# Create sabnzbd group
|
||||
enewgroup ${PN}
|
||||
# Create sabnzbd user, put in sabnzbd group
|
||||
enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/use-system-configobj-and-feedparser.patch
|
||||
epatch "${FILESDIR}"/growler-support-gntp-1.0.patch
|
||||
epatch "${FILESDIR}"/par2cmdline.patch
|
||||
|
||||
# remove bundled modules
|
||||
rm -r sabnzbd/utils/{feedparser,configobj}.py || die
|
||||
rm -r gntp || die
|
||||
rm licenses/License-{feedparser,configobj,gntp}.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d
|
||||
|
||||
dodir /usr/share/${PN}/sabnzbd
|
||||
insinto /usr/share/${PN}/
|
||||
doins SABnzbd.py
|
||||
fperms +x /usr/share/${PN}/SABnzbd.py
|
||||
dobin "${FILESDIR}"/sabnzbd
|
||||
|
||||
for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
|
||||
insinto /usr/share/${PN}/${d}
|
||||
doins -r ${d}/*
|
||||
done
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
|
||||
diropts -o ${PN} -g ${PN}
|
||||
dodir /etc/${PN}
|
||||
dodir /var/log/${PN}
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
insopts -m 0600 -o ${PN} -g ${PN}
|
||||
doins "${FILESDIR}/${PN}.ini"
|
||||
|
||||
dodoc {ABOUT,CHANGELOG,ISSUES,README}.txt Sample-PostProc.sh licenses/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize /usr/share/${PN}
|
||||
|
||||
einfo "Default directory: ${HOMEDIR}"
|
||||
einfo ""
|
||||
einfo "Run: gpasswd -a <user> sabnzbd"
|
||||
einfo "to add a user to the sabnzbd group so it can edit sabnzbd files"
|
||||
einfo ""
|
||||
einfo "By default sabnzbd will listen on 127.0.0.1:8080"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/share/${PN}
|
||||
}
|
@ -1,122 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
# Require python-2 with sqlite USE flag
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
|
||||
inherit eutils python user systemd
|
||||
|
||||
MY_P="${P/sab/SAB}"
|
||||
|
||||
DESCRIPTION="Binary newsgrabber with web-interface"
|
||||
HOMEPAGE="http://www.sabnzbd.org/"
|
||||
SRC_URI="mirror://sourceforge/sabnzbdplus/${MY_P}-src.tar.gz"
|
||||
|
||||
# Sabnzbd is GPL-2 but bundles software with the following licenses.
|
||||
LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+rar +ssl unzip +yenc"
|
||||
|
||||
# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not
|
||||
# be in python's sitedir. See: http://wiki.sabnzbd.org/unix-packaging
|
||||
|
||||
# TODO: still bundled but not in protage:
|
||||
# kronos, rarfile, rsslib, ssmtplib, listquote, json-py, msgfmt
|
||||
# pynewsleecher
|
||||
#
|
||||
# Also note that cherrypy is still bundled. It's near impossible to find
|
||||
# out where the bundled and heavily patched version came from (pulled from
|
||||
# cherrypy subversion, patched somewhere, then imported to sabnzbd and patched
|
||||
# further. Upstream is planning on making this easier with 0.8.0.
|
||||
# https://github.com/sabnzbd/sabnzbd/issues/47
|
||||
|
||||
RDEPEND="
|
||||
>=app-arch/par2cmdline-0.4
|
||||
>=dev-python/cheetah-2.0.1
|
||||
dev-python/configobj
|
||||
dev-python/feedparser
|
||||
dev-python/gntp
|
||||
dev-python/pythonutils
|
||||
net-misc/wget
|
||||
rar? ( || ( app-arch/unrar app-arch/rar ) )
|
||||
ssl? ( dev-python/pyopenssl )
|
||||
unzip? ( >=app-arch/unzip-5.5.2 )
|
||||
yenc? ( dev-python/yenc )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
HOMEDIR="/var/lib/${PN}"
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
# Create sabnzbd group
|
||||
enewgroup ${PN}
|
||||
# Create sabnzbd user, put in sabnzbd group
|
||||
enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/use-system-configobj-and-feedparser.patch
|
||||
epatch "${FILESDIR}"/growler-support-gntp-1.0.patch
|
||||
epatch "${FILESDIR}"/par2cmdline.patch
|
||||
epatch "${FILESDIR}"/disable_growl_by_default.patch
|
||||
|
||||
# remove bundled modules
|
||||
rm -r sabnzbd/utils/{feedparser,configobj}.py || die
|
||||
rm -r gntp || die
|
||||
rm licenses/License-{feedparser,configobj,gntp}.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d
|
||||
|
||||
dodir /usr/share/${PN}/sabnzbd
|
||||
insinto /usr/share/${PN}/
|
||||
doins SABnzbd.py
|
||||
fperms +x /usr/share/${PN}/SABnzbd.py
|
||||
dobin "${FILESDIR}"/sabnzbd
|
||||
|
||||
for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
|
||||
insinto /usr/share/${PN}/${d}
|
||||
doins -r ${d}/*
|
||||
done
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
|
||||
diropts -o ${PN} -g ${PN}
|
||||
dodir /etc/${PN}
|
||||
dodir /var/log/${PN}
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
insopts -m 0600 -o ${PN} -g ${PN}
|
||||
doins "${FILESDIR}/${PN}.ini"
|
||||
|
||||
dodoc {ABOUT,CHANGELOG,ISSUES,README}.txt Sample-PostProc.sh licenses/*
|
||||
|
||||
systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service'
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize /usr/share/${PN}
|
||||
|
||||
einfo "Default directory: ${HOMEDIR}"
|
||||
einfo ""
|
||||
einfo "Run: gpasswd -a <user> sabnzbd"
|
||||
einfo "to add a user to the sabnzbd group so it can edit sabnzbd files"
|
||||
einfo ""
|
||||
einfo "By default sabnzbd will listen on 127.0.0.1:8080"
|
||||
einfo "As growl isn't default notification system on gentoo we disable it."
|
||||
einfo "By default notifications are forwarded to the 23053 port(gntp)."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/share/${PN}
|
||||
}
|
@ -1,134 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
# Require python-2 with sqlite USE flag
|
||||
PYTHON_DEPEND="2:2.7"
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
|
||||
inherit eutils python user systemd versionator
|
||||
|
||||
MY_P="${P/sab/SAB}"
|
||||
|
||||
DESCRIPTION="Binary newsgrabber with web-interface"
|
||||
HOMEPAGE="http://www.sabnzbd.org/"
|
||||
SRC_URI="mirror://sourceforge/sabnzbdplus/${MY_P}-src.tar.gz"
|
||||
|
||||
# Sabnzbd is GPL-2 but bundles software with the following licenses.
|
||||
LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+rar +ssl unzip +yenc"
|
||||
|
||||
# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not
|
||||
# be in python's sitedir. See: http://wiki.sabnzbd.org/unix-packaging
|
||||
|
||||
# TODO: still bundled but not in protage:
|
||||
# kronos, rsslib, ssmtplib, listquote, json-py, msgfmt
|
||||
# pynewsleecher
|
||||
#
|
||||
# Also note that cherrypy is still bundled. It's near impossible to find
|
||||
# out where the bundled and heavily patched version came from (pulled from
|
||||
# cherrypy subversion, patched somewhere, then imported to sabnzbd and patched
|
||||
# further. Upstream is planning on making this easier with 0.8.0.
|
||||
# https://github.com/sabnzbd/sabnzbd/issues/47
|
||||
|
||||
RDEPEND="
|
||||
>=app-arch/par2cmdline-0.4
|
||||
>=dev-python/cheetah-2.0.1
|
||||
dev-python/configobj
|
||||
dev-python/feedparser
|
||||
dev-python/gntp
|
||||
dev-python/pythonutils
|
||||
dev-python/rarfile
|
||||
net-misc/wget
|
||||
rar? ( || ( app-arch/unrar app-arch/rar ) )
|
||||
ssl? ( dev-python/pyopenssl )
|
||||
unzip? ( >=app-arch/unzip-5.5.2 )
|
||||
yenc? ( dev-python/yenc )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
HOMEDIR="/var/lib/${PN}"
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
# Create sabnzbd group
|
||||
enewgroup ${PN}
|
||||
# Create sabnzbd user, put in sabnzbd group
|
||||
enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/1.x/0001-use-system-configobj-and-feedparser.patch
|
||||
epatch "${FILESDIR}"/1.x/0002-growler-support-gntp-1.0.patch
|
||||
epatch "${FILESDIR}"/1.x/0003-cfg-disable-growl-by-default.patch
|
||||
epatch "${FILESDIR}"/1.x/0004-use-system-rarfile.patch
|
||||
|
||||
# remove bundled modules
|
||||
rm -r sabnzbd/utils/{feedparser,configobj,rarfile}.py || die
|
||||
rm -r gntp || die
|
||||
rm licenses/License-{feedparser,configobj,gntp,rarfile}.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d
|
||||
|
||||
dodir /usr/share/${PN}/sabnzbd
|
||||
insinto /usr/share/${PN}/
|
||||
doins SABnzbd.py
|
||||
fperms +x /usr/share/${PN}/SABnzbd.py
|
||||
dobin "${FILESDIR}"/sabnzbd
|
||||
|
||||
for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
|
||||
insinto /usr/share/${PN}/${d}
|
||||
doins -r ${d}/*
|
||||
done
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
|
||||
diropts -o ${PN} -g ${PN}
|
||||
dodir /etc/${PN}
|
||||
dodir /var/log/${PN}
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
insopts -m 0600 -o ${PN} -g ${PN}
|
||||
doins "${FILESDIR}/${PN}.ini"
|
||||
|
||||
dodoc {ABOUT,ISSUES,README}.txt licenses/*
|
||||
|
||||
systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service'
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize /usr/share/${PN}
|
||||
|
||||
einfo "Default directory: ${HOMEDIR}"
|
||||
einfo ""
|
||||
einfo "Run: gpasswd -a <user> sabnzbd"
|
||||
einfo "to add a user to the sabnzbd group so it can edit sabnzbd files"
|
||||
einfo ""
|
||||
einfo "By default sabnzbd will listen on 127.0.0.1:8080"
|
||||
einfo "As growl isn't default notification system on gentoo we disable it."
|
||||
einfo "By default notifications are forwarded to the 23053 port(gntp)."
|
||||
|
||||
local replacing
|
||||
for replacing in ${REPLACING_VERSIONS}; do
|
||||
if [ "$(get_major_version ${replacing})" == "0" ]; then
|
||||
echo
|
||||
ewarn "Upgrading from ${PN}-0.x.y to ${PN}-1.x.y introduces incompatible changes"
|
||||
ewarn "See http://wiki.sabnzbd.org/introducing-1-0-0."
|
||||
ewarn "In particular, you need to let your queue complete before restarting ${PN}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/share/${PN}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
ETYPE="sources"
|
||||
K_WANT_GENPATCHES="base extras experimental"
|
||||
K_GENPATCHES_VER="40"
|
||||
|
||||
inherit kernel-2
|
||||
detect_version
|
||||
detect_arch
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 -hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches"
|
||||
IUSE="experimental"
|
||||
|
||||
DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
|
||||
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}"
|
||||
|
||||
pkg_postinst() {
|
||||
kernel-2_pkg_postinst
|
||||
einfo "For more info on this patchset, and how to report problems, see:"
|
||||
einfo "${HOMEPAGE}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
kernel-2_pkg_postrm
|
||||
}
|
Loading…
Reference in new issue