From e9d044d4b9b71200a96adfa280848858c0f468c9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Nov 2021 13:10:00 +0000 Subject: gentoo resync : 13.11.2021 --- www-misc/Manifest.gz | Bin 3089 -> 3090 bytes www-misc/urlwatch/Manifest | 2 + www-misc/urlwatch/urlwatch-2.24.ebuild | 74 +++++++++++++ www-misc/xxv/Manifest | 4 +- www-misc/xxv/files/xxvd-logrotate | 6 +- www-misc/xxv/xxv-1.6.1-r2.ebuild | 190 --------------------------------- www-misc/xxv/xxv-1.6.1-r3.ebuild | 190 +++++++++++++++++++++++++++++++++ 7 files changed, 271 insertions(+), 195 deletions(-) create mode 100644 www-misc/urlwatch/urlwatch-2.24.ebuild delete mode 100644 www-misc/xxv/xxv-1.6.1-r2.ebuild create mode 100644 www-misc/xxv/xxv-1.6.1-r3.ebuild (limited to 'www-misc') diff --git a/www-misc/Manifest.gz b/www-misc/Manifest.gz index 5b5b369188fa..0a99d54e9e1e 100644 Binary files a/www-misc/Manifest.gz and b/www-misc/Manifest.gz differ diff --git a/www-misc/urlwatch/Manifest b/www-misc/urlwatch/Manifest index d2c6d1642c56..3d9cf8b5bf19 100644 --- a/www-misc/urlwatch/Manifest +++ b/www-misc/urlwatch/Manifest @@ -1,5 +1,7 @@ DIST urlwatch-2.22.tar.gz 136306 BLAKE2B e7f10872e5d7f42ec0ac1073783431c4b0e4fcdcf40884a9f7f52aee36705fbdbaaf5f9e671223715040c6f68cc580f531ba753c9326a2b1380d2fb707f66f1c SHA512 f2c1e0d279689d1e5761203ba139614b972c6266c30877262d59759b0ce63342a820a063f001039848427ea4af4325505c636762cdedb3dc60ebd09e859914f4 DIST urlwatch-2.23.tar.gz 137917 BLAKE2B 330c52cad62985d24b2cc4c7345156abe9d5d369f8b3f4402856eb96a98f75422de49045bc10910e5cc81306744aad2dce7c05667a6f4eeb22b2bba47869f260 SHA512 e54f8fe2d8307ca9f2f222e6a2082d517a330db60e410b7c991283a2bf88aa861306965b23ca644811aa69425ec2281f7f48d5e34047b808c0897f45ffc7fcbc +DIST urlwatch-2.24.tar.gz 141175 BLAKE2B 7868ba757493c97ef65136d3da67ef3bb6b0d62e52ab150e169d66adea420872990527a622d305bd14923ff367041d615dcea1495871258040ec2cbb73ee7613 SHA512 ed84cb69ecd8894851c3be0165edfa1dfee92a0b49ea1383e4cfd7c31eb0604f99b1a90d9508753064b58bdd8fc4c0369d817303858d07562b37c3f2ac4cae52 EBUILD urlwatch-2.22.ebuild 2027 BLAKE2B ab0672d343860d9f5b5127bf3462d71261a1ea32ddf1af10dc034d247d5709cdd51f935f952c55ed916301c5e2c2a6230487461cc207a317f199e11574162157 SHA512 ae6dd63fdda75ff22f5fbe288816634826378c06f9ac066a41148e08f69ee1260b62c8e60b55e8f021bf6add09516d0c650b9a50f9f5c92ea45fa9d6f90cf5de EBUILD urlwatch-2.23.ebuild 2226 BLAKE2B e31161870ad1cccec96f8523fc13db58e6e10e8cf3fecfaa0519026ebd4f6b108fa20469f2b603eeff277c07249571dd5a553956f95fb8678d1d6bca22484627 SHA512 6cc6fd3fe7c347b9242c21d77da9d53fac3d6e091b48a5cc7cb3212adb736a4a7ef4c6ad84112e7adfcadd9abef3e7040e6044b0ee28181c9c4c1441580d3b61 +EBUILD urlwatch-2.24.ebuild 2433 BLAKE2B 982a6e5ba8f7904961dd3daf91cbd44cc15c3dc55029dc97960c096eadf8e8613a5302605f0858412de3a50d6ac52978199d91b15a7e05c4f600b625793a2ffd SHA512 80469a5f2b8c74f4f0361a30023e8be74ef9603b002a459406dab3c5d74cfdb16c49b68a84e069c4ee78049b4a88c650a090722c7194a6dee98425041d7f3eba MISC metadata.xml 541 BLAKE2B f4518dac79cafa9a225d87e125b1fbb3e090c7d3ea1d90a307d8b881379b809112fdc0bd3da6a229daf228aa5660fd130a048fefc63c9a19743987a4c94e528d SHA512 86cf47f19a24fb11c4b1a02b1fe9490a5c171c77b4237a1d0557ce553b1b97ef05f1849f4d745aa0c86f27b2c74f646898f94484ecf75848379b3a02f4157170 diff --git a/www-misc/urlwatch/urlwatch-2.24.ebuild b/www-misc/urlwatch/urlwatch-2.24.ebuild new file mode 100644 index 000000000000..ceff0e2189e5 --- /dev/null +++ b/www-misc/urlwatch/urlwatch-2.24.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="A tool for monitoring webpages for updates" +HOMEPAGE="https://thp.io/2008/urlwatch/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/cssselect[${PYTHON_USEDEP}] + dev-python/keyring[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/minidb[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/jq[${PYTHON_USEDEP}] + ) +" + +DOCS=( CHANGELOG.md README.md ) + +distutils_enable_sphinx docs/source dev-python/alabaster +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Require the pdftotext module + "lib/urlwatch/tests/test_filter_documentation.py::test_url[https://example.net/pdf-test.pdf-job12]" + "lib/urlwatch/tests/test_filter_documentation.py::test_url[https://example.net/pdf-test-password.pdf-job13]" + # Requires the pytesseract module + "lib/urlwatch/tests/test_filter_documentation.py::test_url[https://example.net/ocr-test.png-job28]" + # Fail because of argv parsing: https://github.com/thp/urlwatch/issues/677 + "lib/urlwatch/tests/test_handler.py::test_run_watcher" + "lib/urlwatch/tests/test_handler.py::test_number_of_tries_in_cache_is_increased" + "lib/urlwatch/tests/test_handler.py::test_report_error_when_out_of_tries" + "lib/urlwatch/tests/test_handler.py::test_reset_tries_to_zero_when_successful" + # Skip code quality check + "lib/urlwatch/tests/test_handler.py::test_pep8_conformance" +) + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + if ! has_version dev-python/chump; then + elog "Install 'dev-python/chump' to enable Pushover" \ + "notifications support" + fi + if ! has_version dev-python/jq; then + elog "Install 'dev-python/jq' to enable jq filtering support" + fi + if ! has_version dev-python/pushbullet-py; then + elog "Install 'dev-python/pushbullet-py' to enable" \ + "Pushbullet notifications support" + fi + elog "HTML parsing can be improved by installing one of the following packages" + elog "and changing the html2text subfilter parameter:" + elog "dev-python/beautifulsoup4" + elog "app-text/html2text" + elog "dev-python/html2text" + elog "www-client/lynx" + fi +} diff --git a/www-misc/xxv/Manifest b/www-misc/xxv/Manifest index 8e5f20f00644..2256b33b0101 100644 --- a/www-misc/xxv/Manifest +++ b/www-misc/xxv/Manifest @@ -1,6 +1,6 @@ AUX xxv.utf8-v5 2006 BLAKE2B efaaee155d84782a756e81e23a60129698fa1ae4d20e6e534eb39190c5fa890df7351e3ba975b378b9ccf2f49a0454cd714ceb4373e7e5cedfe08d3c29293e10 SHA512 049045e65f653701e4642cadce259eb73855f2a13364d89a8d0f4b08e41d1feac3096d9e339398add4587a0d6ca9be86051f7c7fa0d30b8807c0b1d2b0871a29 AUX xxvd-1.0.cfg 2257 BLAKE2B 16e83bc63415f658c1dca638b8ab8d7d62a3f5b64fa0d9d260482490da7ddd2b5524709cdca705c8999398dab74a719f9bf3f963159708e0598a4024ca8a0fe6 SHA512 b1507123e680b7766e07a1d45234f2769dc1bedb0a8a2eceb9162c82fb5f888c2963f9f432c6de4591da047ba48ac3ade1e2b0c67ddb7ed86d761fbb4f948646 -AUX xxvd-logrotate 367 BLAKE2B ede5967e1868dbd53eb81b6216598b7d15a890ed5914f4581b654bd5c0cd965475fe2837fb7640d68917c6c42de188e47cb840779995157e043b36f7fa63ba3e SHA512 b10918d478a42f90a9f24e3b358fc8af7fd8366146a42291ea6c5bed258414d834348dd58688f260aecc69c4f76af362c881ebd5a4abef52c1244310a8751c0e +AUX xxvd-logrotate 364 BLAKE2B 90e1d821ab8c62b4bef10a96f8e158152219fce4f587e5d3c2d876d0535428613598ae4e16a972ab3b5a0af8c29ee0db55c3b2e46bd975249f4f7639bab3edd0 SHA512 563fb2590add490f1f8949f29b99cbe86bd1bd3fcd8951402b1f8c9543b31aaac673f9ea85a9ddfa339803cf9f1e1e8a5c34d0c10fbc4f406fd166e525a0396d DIST xxv-1.6.1.tgz 992065 BLAKE2B 9c0b9d2575f412a677a84b1fe0417042f74c4ee4225181a14447e996a8fad46d0fdb4f5ada57fc02ff875be3a7602cf2e8976416b0fd5596b3adb1061ddc8f4a SHA512 e5171ea02d00d7c07d0faf5361a5261bf882d3c5a996b864593216a941c35f823b09431579341f43cf75f87dd42a1635275e8a24b393d407c83c7eb299095566 -EBUILD xxv-1.6.1-r2.ebuild 4656 BLAKE2B ba4adccf1b4fbb9825b8d6a2ae580be14951eb3aaff58b88ea93978fce4b7837354f5de8e2328abb4e9354d788558c88c9e285f935985f6206b019aa269098f1 SHA512 30c1221b34d0e6eb24c35d824bed80bb6edd81d4db12278bfde0e184c68f0f88d1d62ece1a674b2a4f42dbc0104c2473e4a0da045418074fa27e6cfd256de6c6 +EBUILD xxv-1.6.1-r3.ebuild 4656 BLAKE2B ba4adccf1b4fbb9825b8d6a2ae580be14951eb3aaff58b88ea93978fce4b7837354f5de8e2328abb4e9354d788558c88c9e285f935985f6206b019aa269098f1 SHA512 30c1221b34d0e6eb24c35d824bed80bb6edd81d4db12278bfde0e184c68f0f88d1d62ece1a674b2a4f42dbc0104c2473e4a0da045418074fa27e6cfd256de6c6 MISC metadata.xml 270 BLAKE2B 02855ed1ad1e75ef286958b2f3c0573c0a6a4c297ab89cc45fbcb5b7e4757e97b201187eac09ee9fdf7ba3d8837a3943be90486d2bb8a6876401157ddc670e3f SHA512 d280eb3c04764965de155c038f61a16c9b51506d0567bf81f2baeb3c141e34a7ce8890ee515c468704e4e85507323c566053f1810269d73b61944bc22f93c0fc diff --git a/www-misc/xxv/files/xxvd-logrotate b/www-misc/xxv/files/xxvd-logrotate index da5bf2627a93..23854f73b086 100644 --- a/www-misc/xxv/files/xxvd-logrotate +++ b/www-misc/xxv/files/xxvd-logrotate @@ -1,4 +1,4 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 /var/log/xxv/xxvd.log { @@ -7,7 +7,7 @@ dateext maxage 365 rotate 99 - size=+4096k + size +4096k notifempty missingok copytruncate @@ -19,7 +19,7 @@ dateext maxage 365 rotate 99 - size=+4096k + size +4096k notifempty missingok copytruncate diff --git a/www-misc/xxv/xxv-1.6.1-r2.ebuild b/www-misc/xxv/xxv-1.6.1-r2.ebuild deleted file mode 100644 index 13b7f874d3a9..000000000000 --- a/www-misc/xxv/xxv-1.6.1-r2.ebuild +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit eutils - -VERSION="718" # every bump, new version - -DESCRIPTION="WWW Admin for the VDR (Video Disk Recorder)" -HOMEPAGE="https://projects.vdr-developer.org/projects/xxv" -SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz - mirror://gentoo/${P}.tgz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="mplayer themes" - -RDEPEND=">=media-video/vdr-1.2.6 - media-video/vdr2jpeg - media-fonts/corefonts - virtual/mysql - dev-perl/CGI - virtual/perl-Digest-MD5 - virtual/perl-Getopt-Long - virtual/perl-MIME-Base64 - virtual/perl-Time-HiRes - virtual/perl-IO-Compress - dev-perl/Config-Tiny - dev-perl/Date-Manip - dev-perl/DBD-mysql - dev-perl/DBI - dev-perl/Digest-HMAC - dev-perl/Encode-Detect - dev-perl/Event - dev-perl/Font-TTF - dev-perl/GD[png(+),gif(+)] - dev-perl/IO-Socket-INET6 - dev-perl/JSON - dev-perl/JSON-XS - dev-perl/Linux-Inotify2 - dev-perl/Locale-gettext - dev-perl/MP3-Info - dev-perl/Net-Amazon - dev-perl/Net-Telnet - dev-perl/Net-XMPP - dev-perl/Proc-ProcessTable - dev-perl/SOAP-Lite - dev-perl/txt2html - dev-perl/Template-GD - dev-perl/Template-Toolkit - dev-perl/XML-RSS - themes? ( >=x11-themes/${PN}-skins-1.6 )" - -PDEPEND="mplayer? ( media-video/mplayer )" - -SHAREDIR="/usr/share/${PN}" -LIBDIR="/usr/lib/${PN}" - -DB_VERS="32" - -db_update_check() { - - DB_VERS_OLD="`cat /var/db/pkg/www-misc/xxv-*/xxv-*.ebuild | grep DB_VERS | head -n 1 | cut -c10-11`" - - if [ "${DB_VERS_OLD}" -lt "${DB_VERS}" ]; then - echo - elog "An update of the XXV Database is necessary !!!" - echo - elog "\tcd ${SHAREDIR}/contrib" - echo - elog "\tIt is really important to edit the create-database.sql file first" - elog "\tdue to UTF-8 Support changes in the MySQL DB !!!" - echo - elog "\tafter this run ./update-xxv -h for more info" - echo - else - echo - elog "If this is a new install" - elog "You have to create an empty DB for XXV" - echo - elog "do this by:" - elog "cd ${SHAREDIR}/contrib" - eerror "read the README" - elog "For UTF-8 support it is really important to" - elog "edit create-database.sql file first and run" - elog "emerge --config ${PN}" - elog "afterwards" - echo - elog "Set your own language in" - elog "${SHAREDIR}/locale" - echo - elog "The default user/password is:" - elog "User/Password: xxv:xxv" - elog "You should change it immediately!" - echo - eerror "edit /etc/xxv/xxvd.cfg !" - fi -} - -pkg_setup() { - - if ! has_version "www-misc/${PN}"; then - echo - einfo "After you install xxv the very first time you should consider to read" - einfo "http://www.vdr-wiki.de/wiki/index.php/Xxv (German only)" - echo - fi - - db_update_check -} - -src_prepare() { - - sed -i "${S}"/bin/xxvd \ - -e "s:debian:Gentoo:" \ - -e "s:/var/log/xxvd.log:/var/log/xxv/xxvd.log:" \ - -e "s:/var/run/xxvd.pid:/var/run/xxv/xxvd.pid:" \ - -e "s:\$RealBin/../lib:${LIBDIR}:" \ - -e "s:\$RealBin/../locale:${SHAREDIR}/locale:" \ - -e "s:\$RealBin/../lib/XXV/MODULES:${LIBDIR}/XXV/MODULES:" \ - -e "s:\$RealBin/../etc/xxvd.cfg:/etc/xxv/xxvd.cfg:" \ - -e "s:\$RealBin/../doc:/usr/share/doc/${P}:" \ - -e "s:HTMLDIR => \"\$RealBin/../:HTMLDIR => \"${SHAREDIR}/skins:" \ - -e "s:\$RealBin/../share/vtx:${SHAREDIR}/vtx:" \ - -e "s:\$Real Bin/../lib/XXV/OUTPUT:${LIBDIR}/XXV/OUTPUT:" \ - -e "s:\$RealBin/../share/news:${SHAREDIR}/news:" \ - -e "s:\$RealBin/../contrib:${SHAREDIR}/contrib:" \ - -e "s:\$RealBin/../share/fonts/ttf-bitstream-vera:/usr/share/fonts/corefonts:" \ - -e "s:\$RealBin/../share/xmltv:${SHAREDIR}/xmltv:" - - sed -i "s:\$RealBin/../lib:${LIBDIR}:" ./locale/xgettext.pl -} - -src_install() { - - newinitd "${FILESDIR}"/xxv.utf8-v5 xxv - - dobin bin/xxvd - - insinto /etc/"${PN}" - newins "${FILESDIR}"/xxvd-1.0.cfg xxvd.cfg - chown vdr:vdr "${D}"/etc/"${PN}"/xxvd.cfg - - insinto /etc/logrotate.d - newins "${FILESDIR}"/xxvd-logrotate xxvd - - diropts -m755 -ovdr -gvdr - keepdir /var/cache/xxv - keepdir /var/run/xxv - keepdir /var/log/xxv - - insinto "${LIBDIR}" - doins -r "${S}"/lib/* - - insinto "${SHAREDIR}" - doins -r "${S}"/share/{news,xmltv} - - insinto "${SHAREDIR}"/locale - doins -r "${S}"/locale/* - fperms 0755 "${SHAREDIR}"/locale/xgettext.pl - - insinto "${SHAREDIR}"/contrib - doins -r "${S}"/contrib/* - fperms 0755 "${SHAREDIR}"/contrib/update-xxv - - insinto "${SHAREDIR}"/skins - doins -r "${S}"/{html,wml} - doins "${S}"/doc/docu.tmpl - - cd "${S}"/doc - insinto /usr/share/doc/"${P}" - doins docu.tmpl CHANGELOG README - fowners vdr:vdr /usr/share/doc/"${P}" - - doman xxvd.1 -} - -pkg_config() { - - cd "${ROOT}"/"${SHAREDIR}" - cat ./contrib/create-database.sql | mysql -u root -p -} - -pkg_postrm() { - - einfo "Cleanup for old "${P}" files" - rm -r /usr/share/doc/"${P}" -} diff --git a/www-misc/xxv/xxv-1.6.1-r3.ebuild b/www-misc/xxv/xxv-1.6.1-r3.ebuild new file mode 100644 index 000000000000..13b7f874d3a9 --- /dev/null +++ b/www-misc/xxv/xxv-1.6.1-r3.ebuild @@ -0,0 +1,190 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils + +VERSION="718" # every bump, new version + +DESCRIPTION="WWW Admin for the VDR (Video Disk Recorder)" +HOMEPAGE="https://projects.vdr-developer.org/projects/xxv" +SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz + mirror://gentoo/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="mplayer themes" + +RDEPEND=">=media-video/vdr-1.2.6 + media-video/vdr2jpeg + media-fonts/corefonts + virtual/mysql + dev-perl/CGI + virtual/perl-Digest-MD5 + virtual/perl-Getopt-Long + virtual/perl-MIME-Base64 + virtual/perl-Time-HiRes + virtual/perl-IO-Compress + dev-perl/Config-Tiny + dev-perl/Date-Manip + dev-perl/DBD-mysql + dev-perl/DBI + dev-perl/Digest-HMAC + dev-perl/Encode-Detect + dev-perl/Event + dev-perl/Font-TTF + dev-perl/GD[png(+),gif(+)] + dev-perl/IO-Socket-INET6 + dev-perl/JSON + dev-perl/JSON-XS + dev-perl/Linux-Inotify2 + dev-perl/Locale-gettext + dev-perl/MP3-Info + dev-perl/Net-Amazon + dev-perl/Net-Telnet + dev-perl/Net-XMPP + dev-perl/Proc-ProcessTable + dev-perl/SOAP-Lite + dev-perl/txt2html + dev-perl/Template-GD + dev-perl/Template-Toolkit + dev-perl/XML-RSS + themes? ( >=x11-themes/${PN}-skins-1.6 )" + +PDEPEND="mplayer? ( media-video/mplayer )" + +SHAREDIR="/usr/share/${PN}" +LIBDIR="/usr/lib/${PN}" + +DB_VERS="32" + +db_update_check() { + + DB_VERS_OLD="`cat /var/db/pkg/www-misc/xxv-*/xxv-*.ebuild | grep DB_VERS | head -n 1 | cut -c10-11`" + + if [ "${DB_VERS_OLD}" -lt "${DB_VERS}" ]; then + echo + elog "An update of the XXV Database is necessary !!!" + echo + elog "\tcd ${SHAREDIR}/contrib" + echo + elog "\tIt is really important to edit the create-database.sql file first" + elog "\tdue to UTF-8 Support changes in the MySQL DB !!!" + echo + elog "\tafter this run ./update-xxv -h for more info" + echo + else + echo + elog "If this is a new install" + elog "You have to create an empty DB for XXV" + echo + elog "do this by:" + elog "cd ${SHAREDIR}/contrib" + eerror "read the README" + elog "For UTF-8 support it is really important to" + elog "edit create-database.sql file first and run" + elog "emerge --config ${PN}" + elog "afterwards" + echo + elog "Set your own language in" + elog "${SHAREDIR}/locale" + echo + elog "The default user/password is:" + elog "User/Password: xxv:xxv" + elog "You should change it immediately!" + echo + eerror "edit /etc/xxv/xxvd.cfg !" + fi +} + +pkg_setup() { + + if ! has_version "www-misc/${PN}"; then + echo + einfo "After you install xxv the very first time you should consider to read" + einfo "http://www.vdr-wiki.de/wiki/index.php/Xxv (German only)" + echo + fi + + db_update_check +} + +src_prepare() { + + sed -i "${S}"/bin/xxvd \ + -e "s:debian:Gentoo:" \ + -e "s:/var/log/xxvd.log:/var/log/xxv/xxvd.log:" \ + -e "s:/var/run/xxvd.pid:/var/run/xxv/xxvd.pid:" \ + -e "s:\$RealBin/../lib:${LIBDIR}:" \ + -e "s:\$RealBin/../locale:${SHAREDIR}/locale:" \ + -e "s:\$RealBin/../lib/XXV/MODULES:${LIBDIR}/XXV/MODULES:" \ + -e "s:\$RealBin/../etc/xxvd.cfg:/etc/xxv/xxvd.cfg:" \ + -e "s:\$RealBin/../doc:/usr/share/doc/${P}:" \ + -e "s:HTMLDIR => \"\$RealBin/../:HTMLDIR => \"${SHAREDIR}/skins:" \ + -e "s:\$RealBin/../share/vtx:${SHAREDIR}/vtx:" \ + -e "s:\$Real Bin/../lib/XXV/OUTPUT:${LIBDIR}/XXV/OUTPUT:" \ + -e "s:\$RealBin/../share/news:${SHAREDIR}/news:" \ + -e "s:\$RealBin/../contrib:${SHAREDIR}/contrib:" \ + -e "s:\$RealBin/../share/fonts/ttf-bitstream-vera:/usr/share/fonts/corefonts:" \ + -e "s:\$RealBin/../share/xmltv:${SHAREDIR}/xmltv:" + + sed -i "s:\$RealBin/../lib:${LIBDIR}:" ./locale/xgettext.pl +} + +src_install() { + + newinitd "${FILESDIR}"/xxv.utf8-v5 xxv + + dobin bin/xxvd + + insinto /etc/"${PN}" + newins "${FILESDIR}"/xxvd-1.0.cfg xxvd.cfg + chown vdr:vdr "${D}"/etc/"${PN}"/xxvd.cfg + + insinto /etc/logrotate.d + newins "${FILESDIR}"/xxvd-logrotate xxvd + + diropts -m755 -ovdr -gvdr + keepdir /var/cache/xxv + keepdir /var/run/xxv + keepdir /var/log/xxv + + insinto "${LIBDIR}" + doins -r "${S}"/lib/* + + insinto "${SHAREDIR}" + doins -r "${S}"/share/{news,xmltv} + + insinto "${SHAREDIR}"/locale + doins -r "${S}"/locale/* + fperms 0755 "${SHAREDIR}"/locale/xgettext.pl + + insinto "${SHAREDIR}"/contrib + doins -r "${S}"/contrib/* + fperms 0755 "${SHAREDIR}"/contrib/update-xxv + + insinto "${SHAREDIR}"/skins + doins -r "${S}"/{html,wml} + doins "${S}"/doc/docu.tmpl + + cd "${S}"/doc + insinto /usr/share/doc/"${P}" + doins docu.tmpl CHANGELOG README + fowners vdr:vdr /usr/share/doc/"${P}" + + doman xxvd.1 +} + +pkg_config() { + + cd "${ROOT}"/"${SHAREDIR}" + cat ./contrib/create-database.sql | mysql -u root -p +} + +pkg_postrm() { + + einfo "Cleanup for old "${P}" files" + rm -r /usr/share/doc/"${P}" +} -- cgit v1.2.3