diff options
Diffstat (limited to 'net-nntp')
82 files changed, 3628 insertions, 0 deletions
diff --git a/net-nntp/brag/Manifest b/net-nntp/brag/Manifest new file mode 100644 index 000000000000..9afd058a1416 --- /dev/null +++ b/net-nntp/brag/Manifest @@ -0,0 +1,5 @@ +DIST brag-1.4.3.tar.gz 18230 SHA256 f2c8110c38805c31ad181f4737c26e766dc8ecfa2bce158197b985be892cece6 SHA512 42e2601bd80be0a609acbf5bce2ea1f31a5d9420efee5e594278b394a196bfd2a52753603654f821c7a4908ce32a8495840409f1e5a4c1894a7de253a8378b2c WHIRLPOOL 22f6b8c1983ad694ff959f57909768c57a1b8b8d0844db221e356989ecb216c415ab5b4a2dafd3c06c9e3c4452406d40676434f4fcd06810320196f1c5a892ad +EBUILD brag-1.4.3.ebuild 487 SHA256 dad12244ba22c382ff09ec030e4ba3a2b25a36aeed422fee19c4709052a09020 SHA512 5e74e234a3d53bdb5370b8ce095e34937c32639d7dd40446eee7f2563489e404805a6d668a0554ce7ed4ffddad8468413910249d31d7ba20ac4968d8b98e123f WHIRLPOOL e82654e9fc9bdc98b1c71383537ab7c4520b942b2c1abaf9167b6f178a27ddf47663a5db1adc9b78b8c15eb51e163e68af9f26c0106f5e2a6949b2a03bce8108 +MISC ChangeLog 2447 SHA256 ea3278a5b2ccfe7c750312e1b96a2718cbfd4d43170170c2b681689c42ca9a13 SHA512 7ca981ec860b69d13bbad1b900ca13308229a3c0f8e90d65b4d5ca572e4defeb1b6a15156eb2f14c202dc52250c744df7ec800803d51a4b721ab52a5212f2b80 WHIRLPOOL 6741d9af27dcdc0d301653818e09cb13f6f513ae858daadce7103237b7e297334ef926f1360e6e8d8b2f41f5512dd6e53d161d2732ceb2d4e07598173369e10d +MISC ChangeLog-2015 2838 SHA256 ad0920fb0a54b7019a046c4a6bf4f3a0eb158803326641f37596b5732751975d SHA512 934e5afbb0db9a47b5cc03bfe6dce93e552148c911877803736d9efe3b34a8dbb3c3a2dab6ec57894b393ef63b8d95ccbbe7f078eda7e41cfe4ae982de5c1e04 WHIRLPOOL 2aa7baed8c7514b7e677173d0ff86053a4bf380c7a9000f2d3e1225ad52d278928205ed8aa82b84a025951026ac0d1b74ed467a26ea73ea0b5102bc4141c2fab +MISC metadata.xml 246 SHA256 d64925d8f079e24ca29553ec858a3f8b53d40cb1d5a0a548bac67a17f50a27eb SHA512 a84cef97eccefc5d2804ad24de5001dc58c179dba08537328fa4984f331f36f3c0a57e600df666f282ff7186cb35d7aa74d2785be89f64f8e5294f951a2ef97b WHIRLPOOL 9b58211cb6bc4d845205aad22593b824715cdfc372bfde349ad297340e781d58090de50980318a13ac9bbeec43ced0c60cb4f49f1f0cfae4fb0063d56579d2fa diff --git a/net-nntp/brag/brag-1.4.3.ebuild b/net-nntp/brag/brag-1.4.3.ebuild new file mode 100644 index 000000000000..961577dd3a39 --- /dev/null +++ b/net-nntp/brag/brag-1.4.3.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +DESCRIPTION="Brag collects and assembles multipart binary attachments from newsgroups" +HOMEPAGE="http://brag.sourceforge.net/" +SRC_URI="mirror://sourceforge/brag/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc x86" +IUSE="" + +RDEPEND=" + dev-lang/tcl:0 + app-text/uudeview" + +src_compile() { :; } + +src_install() { + dobin brag + dodoc CHANGES README + doman brag.1 +} diff --git a/net-nntp/brag/metadata.xml b/net-nntp/brag/metadata.xml new file mode 100644 index 000000000000..1ae86b510c5e --- /dev/null +++ b/net-nntp/brag/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">brag</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-nntp/inn/Manifest b/net-nntp/inn/Manifest new file mode 100644 index 000000000000..7998222acec1 --- /dev/null +++ b/net-nntp/inn/Manifest @@ -0,0 +1,14 @@ +AUX inn-2.5.3-ar.patch 788 SHA256 e9ab8a6fbf19f5685a69ad7c3d9a1f06c45ba6e45bfa800c6bdeaef250ab4de8 SHA512 ebe00878b159f6af9e3a378acf369bf5b2d06fcde1f4b3f7c721f8947a555d6a8f6a871e995d32cd0c83df151e338168c7dfbeaf0270b5dd8d98c5a9d2969ed3 WHIRLPOOL 6547beab0bd53ab1f410be4c435429e66150d9212c44fcef755282278b5704a07e81c37dd5104985ea704e1ad8bbc47f9a82e2b673559058bede2e6abc5a170b +AUX inn-2.5.3-tests.patch 654 SHA256 a8c46c81d287d350605c455a923990a709f01876ca76e1ef4c9642f966005645 SHA512 31a998b61c80583cd63cc3310fdf86605e5e0ce604056896d96aa255caba9ff1e3fa045b70f73e1157587fa6f3dae66789b7f6877204d6b6d4a096935ac80892 WHIRLPOOL df912dc92f26eff369341b6140fa73f5532196abfebaa16661d1bc9c140c90bfcf9273b1da6951181140210b500e1fb6be6f5db9d3199881abd86efdd8763314 +AUX innd 451 SHA256 6e6ae767ccf311e0a15b5469cef2f2ba3ba766847a7c092becd171e73dfbb88f SHA512 48539184eb549d068d07ccab999df9e2fc49cd08ecd9dd340ef6250a081f40938a11bf9535f4abbe35fd34ba757fc1c35e71e0d0f1646db77e369b02f27ce511 WHIRLPOOL fd1fd7a38136e98570cc413ce7ab6d067028984b68b7e18df7ed73e4070f220b7ccb9ae352e45ebca3d2ed471d700970db8e42d5053ae35b22e705f22942bb1e +AUX innd-r1 498 SHA256 39f4c1ac0f3e9766d6825435188091afb7f0eea4f9b0e231508650b9cd5cd7a0 SHA512 c013dee0629be01d93d981bf4c551a48f8f40b1baeef2a21a076ad12f8afba68517d2ef82712790b9f2e35b7090d18645faf7706b2b7690bcc1d665cd620d312 WHIRLPOOL b1d0bbe4f1df4b155e48f8652709c078efbc6d9aac1a17b95bc87ec367685c921da84898db96f5b9df6800d429903a3c04d97d2b909ff1a1cb84192dd04931bc +DIST inn-2.5.3.tar.gz 2412119 SHA256 60f0042b144499680cc577a4330aeaac5dac20c5994649c0e945d32b5f8dbcf1 SHA512 e579944571f0ec4fcdbf86de8458342075ce08f60df046bc8c45969b39f396ede8f5034f734542e1c64fb7792ae01c117c6a7af170fe5a43e1d0b2693f34d392 WHIRLPOOL a6d08020bfc458ad52567d225f14ef2f92fd605767c7ae4292724e3a3f49e1b42630fd787e7f79aae8a16d236479cef13b9531862eae050db839d3d0530f7999 +DIST inn-2.5.4.tar.gz 2408600 SHA256 5b62240c3074f2f38b3bcc656c343c587f2a923ec9d45e19f0d4ce269cb3f3f4 SHA512 f632599d009e8965d1b0ce7fef84dfbe48034c3a86825694a5ca4311123347647f9a4b534cff59820437f619ec09867bcff16f8f18c705e056eeea6493bc5441 WHIRLPOOL a313cb90e5dd55f4db5b70ede6b6d98561d2601f8d27e1b9b3983b90491b5ab300f0571d5fc1ac74f7892997ff6219189c863b122d569fe8673f3fcd13b0b67a +DIST inn-2.5.5.tar.gz 2419841 SHA256 4245602c2c30fd3fe38513e9403c8d0ea4eb76256961591f97da630c341053bf SHA512 aada60b15952810fa31c3b2078b4ca1b1e560cee348cc81d076e0ba1f8b785497310d60aca89b9ecc4af85a1493eefa8a2b976cb349b8ea96482c93cbcf049f1 WHIRLPOOL b931d0f6a1e60b0157fafcc269e84d4f1f6c914ca7b95799be1a99feeec5c5568e41a9c7384da122d05eac7393d457a612be9ffbb79a01122e0c37c1de76785a +EBUILD inn-2.5.3-r1.ebuild 8386 SHA256 0dd4c33da9ab19d9662803c2b11cc8124c9fc1707c33b37bfc11756c00d5a50f SHA512 921e78b54b446d5a7450cbb225d99b4878f5194d86ea1e648eb55797c6e9fb7730367a2d54090fc68c39dc2017eca5ea8af60038b4a3e8cf9cbb021c018932c5 WHIRLPOOL 1a440e2536678182b3fdab31566a55f4c631189b52293fbd8930abacba9fe7fcb502b22683a338aa83138a6a5545306dc35c27899258b99912c12c027cb839f2 +EBUILD inn-2.5.3-r3.ebuild 8581 SHA256 fb6b450386f68ecc3f4abc3d139ae4a65d2f8d4277a91f1c93cc05f766ab4f9e SHA512 58c9aaa76592a8f7c56180fd0d4c063e608846a8a3ed7a59df66c74f0ac78fda85b823e40bcd088b4e4022e054b2ab2fa6e67145597f6a65496e0be8b2be8537 WHIRLPOOL 7d7be5ea76a30ba7bd3e08b9bb10b0aeb38e12525b08a04ae8db1e108b75c4434a72ad363bd2a5314ada76c00b94326f2e3f2f3f2e8b29fdc365c5dc872b2aef +EBUILD inn-2.5.4-r1.ebuild 8595 SHA256 a2e01f05bf50a4fbc98ba47d1a2eeefcd1cde7b0aaf98c82aa12ec51758cd295 SHA512 c128b4cddb36edf2fbe82a56da63428aad03111c9250e0582acdf72abb8dee271676bb17a2e2e9dc6303a7d638c31d906afc6039b82b1d1994281ee288c254e5 WHIRLPOOL 089e8d580ed3f7c891de5d5bbfe2517744344e02647fd2eece432a0592ad0e9f0647252399cd616153283ef26fdeedab9b59319008ad5e44a3d472002706914d +EBUILD inn-2.5.5-r1.ebuild 8595 SHA256 a2e01f05bf50a4fbc98ba47d1a2eeefcd1cde7b0aaf98c82aa12ec51758cd295 SHA512 c128b4cddb36edf2fbe82a56da63428aad03111c9250e0582acdf72abb8dee271676bb17a2e2e9dc6303a7d638c31d906afc6039b82b1d1994281ee288c254e5 WHIRLPOOL 089e8d580ed3f7c891de5d5bbfe2517744344e02647fd2eece432a0592ad0e9f0647252399cd616153283ef26fdeedab9b59319008ad5e44a3d472002706914d +MISC ChangeLog 3724 SHA256 4f34b56dc2a104e58be14ddc5f3ca61aacc0f4f046a012998445d039c5129338 SHA512 31478c4703afae570a2321b3132e9713df5a03e5b95eefbb29e98a1d571b661e0ff5d6b3b2b8b7632fcb00948053130124233303b114e8564308190ab2c22ca0 WHIRLPOOL be39396911514072cbd993623233d2e445efcdef8c72724bb1affa95b28d55b69b690f9c2ac245d2b6a82a265a0c0667268a985ce1c1ee9f0eb1ac79e946f779 +MISC ChangeLog-2015 10962 SHA256 606f32e450f9448d6101ec9205a49c34c3dc7513d93cbf8742384d929434e20a SHA512 300022a35f3b597bebcc9a7cd7604a4338fc234707b04877db1a83e14e61a00181fe84c2454d4ab02661eff13a0df163ad0b6f1f92799ed317e25e24d96867d7 WHIRLPOOL 3f79b5484d1c2b949f07e5e1d5f4ecca303b66381143251d1e24c925e929d5f1d937666c6906206900ca92c0adaaa0f0aed6cc843469100d587a37a50a19c352 +MISC metadata.xml 357 SHA256 278e7d12de414acffe58af70e0d6b9f9139c6fc849a1ff78f0006fadddcea8d7 SHA512 3df88419d7abb8ed51b8b54746aa5de3e750f9666c250bdca0aef2741dcd462dd2b6bf979106a437af7c6245d8447fea2d2c2988df83d9d73379e04643634397 WHIRLPOOL 8f3435ac9a2e6494ccc36ca72c68d9e02707bfedfb1d5144216722d9e7da779e9b0b9e491c593ff93a87d05c655ad88c9572c5fb7678622879f4247420f0a753 diff --git a/net-nntp/inn/files/inn-2.5.3-ar.patch b/net-nntp/inn/files/inn-2.5.3-ar.patch new file mode 100644 index 000000000000..ac4f8158c44f --- /dev/null +++ b/net-nntp/inn/files/inn-2.5.3-ar.patch @@ -0,0 +1,37 @@ +Use system AR. + +Gentoo bug #461254. + +--- lib/Makefile ++++ lib/Makefile +@@ -53,7 +53,7 @@ + -rpath $(PATHLIB) -version-info 2:0:0 + + libinn.a: $(OBJECTS) +- ar r $@ $(OBJECTS) ++ $(AR) r $@ $(OBJECTS) + $(RANLIB) libinn.a + + .c.o .c.lo: +--- storage/Makefile ++++ storage/Makefile +@@ -55,7 +55,7 @@ + -rpath $(PATHLIB) -version-info 2:0:0 + + libstorage.a: $(OBJECTS) +- ar r $@ $(OBJECTS) ++ $(AR) r $@ $(OBJECTS) + $(RANLIB) libstorage.a + + # Make.methods is included in the distribution tarball since some non-GNU +--- history/Makefile ++++ history/Makefile +@@ -51,7 +51,7 @@ + -rpath $(PATHLIB) -version-info 2:0:0 + + libinnhist.a: $(OBJECTS) +- ar r $@ $(OBJECTS) ++ $(AR) r $@ $(OBJECTS) + $(RANLIB) libinnhist.a + + # Try to set up these rules so that buildconfig is only run once. diff --git a/net-nntp/inn/files/inn-2.5.3-tests.patch b/net-nntp/inn/files/inn-2.5.3-tests.patch new file mode 100644 index 000000000000..6511508308d6 --- /dev/null +++ b/net-nntp/inn/files/inn-2.5.3-tests.patch @@ -0,0 +1,19 @@ +Certain filesystems (such as reiserfs) cannot properly report +the number of free inodes. In this case, inndf reports an absurdly +high number instead of nothing, which standard df does. +There seems to be some confusion about which FOO_MAX is returned, +so this patch adds an actual value known to be returned. + +See bug #348490. + +--- tests/util/inndf.t ++++ tests/util/inndf.t +@@ -62,7 +62,7 @@ + real=`df -i . | sed 1d | awk '{ print $4 }'` + fi + try=`$inndf -i .` +- if [ "$try" = 4294967295 ] ; then ++ if [ "$try" = 4294967295 ] || [ "$try" = 2147483647 ] ; then + printcount "ok" + else + diff=`expr "$real" - "$try"` diff --git a/net-nntp/inn/files/innd b/net-nntp/inn/files/innd new file mode 100644 index 000000000000..c45d45b830cb --- /dev/null +++ b/net-nntp/inn/files/innd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting innd" + checkpath -d -m 0755 -o news:news /var/run/news + start-stop-daemon --start --user news --exec /usr/lib/news/bin/rc.news + eend $? +} + +stop() { + ebegin "Stopping innd" + start-stop-daemon --start --user news --exec /usr/lib/news/bin/rc.news -- stop + sleep 2 + eend $? +} diff --git a/net-nntp/inn/files/innd-r1 b/net-nntp/inn/files/innd-r1 new file mode 100644 index 000000000000..071797e50796 --- /dev/null +++ b/net-nntp/inn/files/innd-r1 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting ${SVCNAME}" + checkpath -d -m 0755 -o news:news /run/news + start-stop-daemon --start --user news --pidfile /run/news/${SVCNAME}.pid \ + --exec /usr/lib/news/bin/rc.news + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --start --user news --exec /usr/lib/news/bin/rc.news -- stop + sleep 2 + eend $? +} diff --git a/net-nntp/inn/inn-2.5.3-r1.ebuild b/net-nntp/inn/inn-2.5.3-r1.ebuild new file mode 100644 index 000000000000..48edc30bd817 --- /dev/null +++ b/net-nntp/inn/inn-2.5.3-r1.ebuild @@ -0,0 +1,281 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils multilib python-single-r1 ssl-cert + +DESCRIPTION="The Internet News daemon, fully featured NNTP server" +HOMEPAGE="https://www.isc.org/software/inn" +SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz" + +# GPL-2 only for init script +LICENSE="ISC GPL-2+ public-domain BSD-4 BSD-2 RSA BSD MIT GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="berkdb innkeywords inntaggedhash ipv6 kerberos perl python sasl ssl" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + virtual/mta + dev-perl/MIME-tools + sys-libs/pam + sys-libs/zlib + kerberos? ( virtual/krb5 ) + sasl? ( >=dev-libs/cyrus-sasl-2 ) + ssl? ( dev-libs/openssl:0= ) + python? ( ${PYTHON_DEPS} ) + berkdb? ( sys-libs/db:* ) +" +RDEPEND="${DEPEND}" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-tests.patch + + sed -e 's: -B .OLD::' -i Makefile.global.in || die + + # Do not treat LDFLAGS as if it contained libraries to link to + sed -e 's:LDFLAGS::g' -i m4/python.m4 || die + + # We do not have the biff service, but we do have comsat + sed -e 's:"biff":"comsat":g' -i tests/lib/getnameinfo-t.c || die + + eautoreconf +} + +src_configure() { + econf \ + --prefix=/usr/$(get_libdir)/news \ + --sysconfdir=/etc/news \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-control-dir=/usr/$(get_libdir)/news/bin/control \ + --with-filter-dir=/usr/$(get_libdir)/news/bin/filter \ + --with-db-dir=/var/spool/news/db \ + --with-doc-dir=/usr/share/doc/${PF} \ + --with-spool-dir=/var/spool/news \ + --with-log-dir=/var/log/news \ + --with-run-dir=/var/run/news \ + --with-tmp-dir=/var/spool/news/tmp \ + --disable-libtool \ + --with-gnu-ld \ + --enable-setgid-inews \ + --enable-uucp-rnews \ + $(use_with perl) \ + $(use_with python) \ + $(use_with kerberos kerberos /usr) \ + $(use_with sasl) \ + $(use_with ssl openssl) \ + $(use_with berkdb berkeleydb /usr) \ + $(use_enable ipv6) \ + $(use_enable !inntaggedhash largefiles) \ + $(use_enable inntaggedhash tagged-hash) \ + $(use_enable innkeywords keywords) +} + +src_install() { + emake DESTDIR="${D}/" P="" SPECIAL="" install + + chown -R root:0 \ + "${D}"/usr/$(get_libdir)/news/$(get_libdir) \ + "${D}"/usr/$(get_libdir)/news/include \ + "${D}"/usr/share/doc \ + "${D}"/usr/share/man \ + || die + chmod 644 "${D}"/etc/news/* || die + chmod 640 \ + "${D}"/etc/news/control.ctl \ + "${D}"/etc/news/expire.ctl \ + "${D}"/etc/news/incoming.conf \ + "${D}"/etc/news/nntpsend.ctl \ + "${D}"/etc/news/passwd.nntp \ + "${D}"/etc/news/readers.conf \ + || die + + # Prevent old db/* files from being overwritten + insinto /usr/share/inn/dbexamples + newins site/active.minimal active + newins site/newsgroups.minimal newsgroups + + keepdir \ + /var/log/news \ + /var/spool/news/archive \ + /var/spool/news/articles \ + /var/spool/news/db \ + /var/spool/news/incoming \ + /var/spool/news/incoming/bad \ + /var/spool/news/innfeed \ + /var/spool/news/outgoing \ + /var/spool/news/overview \ + /var/spool/news/tmp + + fowners news:news /var/log/news + + dodoc ChangeLog MANIFEST README* doc/checklist + use ipv6 && dodoc doc/IPv6-info + + # So other programs can build against INN + insinto /usr/$(get_libdir)/news/include + doins include/*.h + + doinitd "${FILESDIR}"/innd + + rm -r "${D}"/var/run +} + +pkg_postinst() { + for db_file in active newsgroups + do + [[ -f ${ROOT}/var/spool/news/db/${db_file} ]] && continue + + if [[ -f ${ROOT}/usr/share/inn/dbexamples/${db_file} ]] + then + cp "${ROOT}"/usr/share/inn/dbexamples/${db_file} \ + "${ROOT}"/var/spool/news/db/${db_file} + else + touch "${ROOT}"/var/spool/news/db/${db_file} + fi + + chown news:news "${ROOT}"/var/spool/news/db/${db_file} + chmod 664 "${ROOT}"/var/spool/news/db/${db_file} + done + + elog "Do not forget to update your cron entries, and also run" + elog "makedbz if you need to. If this is a first-time installation" + elog "a minimal active file has been installed. You will need to" + elog "touch history and run 'makedbz -i' to initialize the history" + elog "database. See INSTALL for more information." + elog + elog "You need to assign a real shell to the news user, or else" + elog "starting inn will fail. You can use 'usermod -s /bin/bash news'" + elog "for this." + + if use ssl + then + install_cert /etc/news/cert/cert + chown news:news \ + "${ROOT}"/etc/news/cert/cert.{crt,csr,key,pem} + + elog + elog "You may want to start nnrpd manually for native ssl support." + elog "If you choose to do so, automating this with a bootscript might" + elog "also be a good choice." + elog "Have a look at man nnrpd for valid parameters." + elog + elog "The certificate location in /etc/news/sasl.conf has been changed" + elog "to /etc/news/cert!" + + fi +} + +pkg_postrm() { + elog + elog "If you want your newsspool or altered configuration files" + elog "to be removed, please do so now manually." + elog +} + +pkg_config() { + NEWSSPOOL_DIR="${ROOT}/var/spool/news" + NEWS_SHELL="$( awk -F':' '/^news:/ {print $7;}' ${ROOT}/etc/passwd )" + NEWS_ERRFLAG="0" + + if [[ ${NEWS_SHELL} == /bin/false || ${NEWS_SHELL} == /dev/null ]]; then + einfo "Changing shell to /bin/bash for user news..." + usermod -s /bin/bash news + else + einfo "Shell for user news unchanged ('${NEWS_SHELL}')." + if [[ ${NEWS_SHELL} != /bin/sh && ${NEWS_SHELL} != /bin/bash ]]; then + ewarn "You might want to change it to '/bin/bash', though." + fi + fi + + if [[ ! -e ${NEWSSPOOL_DIR}/db/history ]]; then + if [[ ! -f ${NEWSSPOOL_DIR}/db/history.dir \ + && ! -f ${NEWSSPOOL_DIR}/db/history.pag \ + && ! -f ${NEWSSPOOL_DIR}/db/history.hash \ + && ! -f ${NEWSSPOOL_DIR}/db/history.index ]] + then + einfo "Building history database ..." + + touch "${NEWSSPOOL_DIR}"/db/history + chown news:news "${NEWSSPOOL_DIR}"/db/history + chmod 644 "${NEWSSPOOL_DIR}"/db/history + + einfo "Running makedbz -i ..." + su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i" + + einfo "Moving files into place ..." + [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.dir \ + "${NEWSSPOOL_DIR}"/db/history.dir + [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.pag \ + "${NEWSSPOOL_DIR}"/db/history.pag + [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.hash \ + "${NEWSSPOOL_DIR}"/db/history.hash + [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.index \ + "${NEWSSPOOL_DIR}"/db/history.index + + einfo "Running makehistory ..." + su - news -c /usr/$(get_libdir)/news/bin/makehistory + else + NEWS_ERRFLAG="1" + eerror "Your installation seems to be screwed up." + eerror "${NEWSSPOOL_DIR}/db/history does not exist, but there's" + eerror "one of the files history.dir, history.hash or history.index" + eerror "within ${NEWSSPOOL_DIR}/db." + eerror "Use your backup to restore the history database." + fi + else + einfo "${NEWSSPOOL_DIR}/db/history found." + einfo "Leaving history database as it is." + fi + + INNCFG_INODES=$( + sed /etc/news/inn.conf \ + -e '/innwatchspoolnodes/ ! d; s:[^ ]*[ ]*\([^ ]*\):\1:' + ) + INNSPOOL_INODES=$( + df -Pi ${NEWSSPOOL_DIR} | \ + sed -e 's:[^ ]*[ ]*\([^ ]*\).*:\1:; 1 d' + ) + if [[ ${INNCFG_INODES} -gt ${INNSPOOL_INODES} ]]; then + ewarn "Setting innwatchspoolinodes to zero, because the filesystem behind" + ewarn "$NEWSSPOOL_DIR works without inodes." + ewarn + cp /etc/news/inn.conf /etc/news/inn.conf.OLD + einfo "A copy of your old inn.conf has been saved to /etc/news/inn.conf.OLD." + sed -i /etc/news/inn.conf \ + -e '/innwatchspoolnodes/ s:\([^ ]*\)\([ ]*\).*:\1\20:' + chown news:news /etc/news/inn.conf + chmod 644 /etc/news/inn.conf + fi + + INNCHECK_LINES=$( + su - news -c "/usr/$(get_libdir)/news/bin/inncheck | wc -l" + ) + if [[ ${INNCHECK_LINES} -gt 0 ]]; then + NEWS_ERRFLAG="1" + ewarn "inncheck most certainly found an error." + ewarn "Please check its output:" + eerror "`su - news -c /usr/$(get_libdir)/news/bin/inncheck`" + fi + + if [[ ${NEWS_ERRFLAG} -gt 0 ]]; then + eerror "There were one or more errors/warnings checking your" + eerror "configuration. Please read inn's documentation and" + eerror "fix them accordingly." + else + einfo "INN configuration tests passed successfully." + ewarn "Please ensure you have configured inn properly." + fi +} diff --git a/net-nntp/inn/inn-2.5.3-r3.ebuild b/net-nntp/inn/inn-2.5.3-r3.ebuild new file mode 100644 index 000000000000..e356b6892f48 --- /dev/null +++ b/net-nntp/inn/inn-2.5.3-r3.ebuild @@ -0,0 +1,286 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils multilib python-single-r1 ssl-cert toolchain-funcs + +DESCRIPTION="The Internet News daemon, fully featured NNTP server" +HOMEPAGE="https://www.isc.org/software/inn" +SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz" + +# GPL-2 only for init script +LICENSE="ISC GPL-2+ public-domain BSD-4 BSD-2 RSA BSD MIT GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="berkdb innkeywords inntaggedhash ipv6 kerberos perl python sasl ssl" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + virtual/mta + dev-perl/MIME-tools + sys-libs/pam + sys-libs/zlib + kerberos? ( virtual/krb5 ) + sasl? ( >=dev-libs/cyrus-sasl-2 ) + ssl? ( dev-libs/openssl:0= ) + python? ( ${PYTHON_DEPS} ) + berkdb? ( sys-libs/db:* ) +" +RDEPEND="${DEPEND}" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-ar.patch + epatch "${FILESDIR}"/${P}-tests.patch + + sed -e 's: -B .OLD::' -i Makefile.global.in || die + + # Do not treat LDFLAGS as if it contained libraries to link to + sed -e 's:LDFLAGS::g' -i m4/python.m4 || die + + # We do not have the biff service, but we do have comsat + sed -e 's:"biff":"comsat":g' -i tests/lib/getnameinfo-t.c || die + + eautoreconf +} + +src_configure() { + tc-export AR + + econf \ + --prefix=/usr/$(get_libdir)/news \ + --sysconfdir=/etc/news \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-control-dir=/usr/$(get_libdir)/news/bin/control \ + --with-filter-dir=/usr/$(get_libdir)/news/bin/filter \ + --with-db-dir=/var/spool/news/db \ + --with-doc-dir=/usr/share/doc/${PF} \ + --with-spool-dir=/var/spool/news \ + --with-log-dir=/var/log/news \ + --with-run-dir=/run/news \ + --with-tmp-dir=/var/spool/news/tmp \ + --disable-libtool \ + --with-gnu-ld \ + --enable-setgid-inews \ + --enable-uucp-rnews \ + $(use_with perl) \ + $(use_with python) \ + $(use_with kerberos kerberos /usr) \ + $(use_with sasl) \ + $(use_with ssl openssl) \ + $(use_with berkdb berkeleydb /usr) \ + $(use_enable ipv6) \ + $(use_enable !inntaggedhash largefiles) \ + $(use_enable inntaggedhash tagged-hash) \ + $(use_enable innkeywords keywords) +} + +src_install() { + emake DESTDIR="${D}/" P="" SPECIAL="" install + + chown -R root:0 \ + "${D}"/usr/$(get_libdir)/news/$(get_libdir) \ + "${D}"/usr/$(get_libdir)/news/include \ + "${D}"/usr/share/doc \ + "${D}"/usr/share/man \ + || die + chmod 644 "${D}"/etc/news/* || die + chmod 640 \ + "${D}"/etc/news/control.ctl \ + "${D}"/etc/news/expire.ctl \ + "${D}"/etc/news/incoming.conf \ + "${D}"/etc/news/innfeed.conf \ + "${D}"/etc/news/nntpsend.ctl \ + "${D}"/etc/news/passwd.nntp \ + "${D}"/etc/news/readers.conf \ + || die + + # Prevent old db/* files from being overwritten + insinto /usr/share/inn/dbexamples + newins site/active.minimal active + newins site/newsgroups.minimal newsgroups + + keepdir \ + /var/log/news \ + /var/spool/news/archive \ + /var/spool/news/articles \ + /var/spool/news/db \ + /var/spool/news/incoming \ + /var/spool/news/incoming/bad \ + /var/spool/news/innfeed \ + /var/spool/news/outgoing \ + /var/spool/news/overview \ + /var/spool/news/tmp + + fowners news:news /var/log/news + + dodoc ChangeLog MANIFEST README* doc/checklist + use ipv6 && dodoc doc/IPv6-info + + # So other programs can build against INN + insinto /usr/$(get_libdir)/news/include + doins include/*.h + + newinitd "${FILESDIR}"/innd-r1 innd +} + +pkg_postinst() { + for db_file in active newsgroups + do + [[ -f ${ROOT}var/spool/news/db/${db_file} ]] && continue + + if [[ -f ${ROOT}usr/share/inn/dbexamples/${db_file} ]] + then + cp "${ROOT}"usr/share/inn/dbexamples/${db_file} \ + "${ROOT}"var/spool/news/db/${db_file} + else + touch "${ROOT}"var/spool/news/db/${db_file} + fi + + chown news:news "${ROOT}"var/spool/news/db/${db_file} + chmod 664 "${ROOT}"var/spool/news/db/${db_file} + done + + elog "It is recommended to run emerge --config ${CATEGORY}/${PN}" + elog "now to finish setting up this package." + elog + elog "Do not forget to update your cron entries, and also run" + elog "makedbz if you need to. If this is a first-time installation" + elog "a minimal active file has been installed. You will need to" + elog "touch history and run 'makedbz -i' to initialize the history" + elog "database. See INSTALL for more information." + elog + elog "You need to assign a real shell to the news user, or else" + elog "starting inn will fail. You can use 'usermod -s /bin/bash news'" + elog "for this." + + if use ssl + then + install_cert /etc/news/cert/cert + chown news:news \ + "${ROOT}"etc/news/cert/cert.{crt,csr,key,pem} + + elog + elog "You may want to start nnrpd manually for native ssl support." + elog "If you choose to do so, automating this with a bootscript might" + elog "also be a good choice." + elog "Have a look at man nnrpd for valid parameters." + elog + elog "The certificate location in /etc/news/sasl.conf has been changed" + elog "to /etc/news/cert!" + + fi +} + +pkg_postrm() { + elog + elog "If you want your newsspool or altered configuration files" + elog "to be removed, please do so now manually." + elog +} + +pkg_config() { + NEWSSPOOL_DIR="${ROOT}var/spool/news" + NEWS_SHELL="$( awk -F':' '/^news:/ {print $7;}' ${ROOT}etc/passwd )" + NEWS_ERRFLAG="0" + + if [[ ${NEWS_SHELL} == /bin/false || ${NEWS_SHELL} == /dev/null ]]; then + einfo "Changing shell to /bin/bash for user news..." + usermod -s /bin/bash news + else + einfo "Shell for user news unchanged ('${NEWS_SHELL}')." + if [[ ${NEWS_SHELL} != /bin/sh && ${NEWS_SHELL} != /bin/bash ]]; then + ewarn "You might want to change it to '/bin/bash', though." + fi + fi + + if [[ ! -e ${NEWSSPOOL_DIR}/db/history ]]; then + if [[ ! -f ${NEWSSPOOL_DIR}/db/history.dir \ + && ! -f ${NEWSSPOOL_DIR}/db/history.pag \ + && ! -f ${NEWSSPOOL_DIR}/db/history.hash \ + && ! -f ${NEWSSPOOL_DIR}/db/history.index ]] + then + einfo "Building history database ..." + + touch "${NEWSSPOOL_DIR}"/db/history + chown news:news "${NEWSSPOOL_DIR}"/db/history + chmod 644 "${NEWSSPOOL_DIR}"/db/history + + einfo "Running makedbz -i ..." + su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i" + + einfo "Moving files into place ..." + [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.dir \ + "${NEWSSPOOL_DIR}"/db/history.dir + [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.pag \ + "${NEWSSPOOL_DIR}"/db/history.pag + [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.hash \ + "${NEWSSPOOL_DIR}"/db/history.hash + [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.index \ + "${NEWSSPOOL_DIR}"/db/history.index + + einfo "Running makehistory ..." + su - news -c /usr/$(get_libdir)/news/bin/makehistory + else + NEWS_ERRFLAG="1" + eerror "Your installation seems to be screwed up." + eerror "${NEWSSPOOL_DIR}/db/history does not exist, but there's" + eerror "one of the files history.dir, history.hash or history.index" + eerror "within ${NEWSSPOOL_DIR}/db." + eerror "Use your backup to restore the history database." + fi + else + einfo "${NEWSSPOOL_DIR}/db/history found." + einfo "Leaving history database as it is." + fi + + INNCFG_INODES=$( + sed /etc/news/inn.conf \ + -e '/innwatchspoolnodes/ ! d; s:[^ ]*[ ]*\([^ ]*\):\1:' + ) + INNSPOOL_INODES=$( + df -Pi ${NEWSSPOOL_DIR} | \ + sed -e 's:[^ ]*[ ]*\([^ ]*\).*:\1:; 1 d' + ) + if [[ ${INNCFG_INODES} -gt ${INNSPOOL_INODES} ]]; then + ewarn "Setting innwatchspoolinodes to zero, because the filesystem behind" + ewarn "$NEWSSPOOL_DIR works without inodes." + ewarn + cp /etc/news/inn.conf /etc/news/inn.conf.OLD + einfo "A copy of your old inn.conf has been saved to /etc/news/inn.conf.OLD." + sed -i /etc/news/inn.conf \ + -e '/innwatchspoolnodes/ s:\([^ ]*\)\([ ]*\).*:\1\20:' + chown news:news /etc/news/inn.conf + chmod 644 /etc/news/inn.conf + fi + + INNCHECK_LINES=$( + su - news -c "/usr/$(get_libdir)/news/bin/inncheck | wc -l" + ) + if [[ ${INNCHECK_LINES} -gt 0 ]]; then + NEWS_ERRFLAG="1" + ewarn "inncheck most certainly found an error." + ewarn "Please check its output:" + eerror "`su - news -c /usr/$(get_libdir)/news/bin/inncheck`" + fi + + if [[ ${NEWS_ERRFLAG} -gt 0 ]]; then + eerror "There were one or more errors/warnings checking your" + eerror "configuration. Please read inn's documentation and" + eerror "fix them accordingly." + else + einfo "INN configuration tests passed successfully." + ewarn "Please ensure you have configured inn properly." + fi +} diff --git a/net-nntp/inn/inn-2.5.4-r1.ebuild b/net-nntp/inn/inn-2.5.4-r1.ebuild new file mode 100644 index 000000000000..19a769d0a7cd --- /dev/null +++ b/net-nntp/inn/inn-2.5.4-r1.ebuild @@ -0,0 +1,286 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils multilib python-single-r1 ssl-cert toolchain-funcs + +DESCRIPTION="The Internet News daemon, fully featured NNTP server" +HOMEPAGE="https://www.isc.org/software/inn" +SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz" + +# GPL-2 only for init script +LICENSE="ISC GPL-2+ public-domain BSD-4 BSD-2 RSA BSD MIT GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="berkdb innkeywords inntaggedhash ipv6 kerberos perl python sasl ssl" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + virtual/mta + dev-perl/MIME-tools + sys-libs/pam + sys-libs/zlib + kerberos? ( virtual/krb5 ) + sasl? ( >=dev-libs/cyrus-sasl-2 ) + ssl? ( dev-libs/openssl:0= ) + python? ( ${PYTHON_DEPS} ) + berkdb? ( sys-libs/db:* ) +" +RDEPEND="${DEPEND}" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.5.3-ar.patch + epatch "${FILESDIR}"/${PN}-2.5.3-tests.patch + + sed -e 's: -B .OLD::' -i Makefile.global.in || die + + # Do not treat LDFLAGS as if it contained libraries to link to + sed -e 's:LDFLAGS::g' -i m4/python.m4 || die + + # We do not have the biff service, but we do have comsat + sed -e 's:"biff":"comsat":g' -i tests/lib/getnameinfo-t.c || die + + eautoreconf +} + +src_configure() { + tc-export AR + + econf \ + --prefix=/usr/$(get_libdir)/news \ + --sysconfdir=/etc/news \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-control-dir=/usr/$(get_libdir)/news/bin/control \ + --with-filter-dir=/usr/$(get_libdir)/news/bin/filter \ + --with-db-dir=/var/spool/news/db \ + --with-doc-dir=/usr/share/doc/${PF} \ + --with-spool-dir=/var/spool/news \ + --with-log-dir=/var/log/news \ + --with-run-dir=/run/news \ + --with-tmp-dir=/var/spool/news/tmp \ + --disable-libtool \ + --with-gnu-ld \ + --enable-setgid-inews \ + --enable-uucp-rnews \ + $(use_with perl) \ + $(use_with python) \ + $(use_with kerberos kerberos /usr) \ + $(use_with sasl) \ + $(use_with ssl openssl) \ + $(use_with berkdb berkeleydb /usr) \ + $(use_enable ipv6) \ + $(use_enable !inntaggedhash largefiles) \ + $(use_enable inntaggedhash tagged-hash) \ + $(use_enable innkeywords keywords) +} + +src_install() { + emake DESTDIR="${D}/" P="" SPECIAL="" install + + chown -R root:0 \ + "${D}"/usr/$(get_libdir)/news/$(get_libdir) \ + "${D}"/usr/$(get_libdir)/news/include \ + "${D}"/usr/share/doc \ + "${D}"/usr/share/man \ + || die + chmod 644 "${D}"/etc/news/* || die + chmod 640 \ + "${D}"/etc/news/control.ctl \ + "${D}"/etc/news/expire.ctl \ + "${D}"/etc/news/incoming.conf \ + "${D}"/etc/news/innfeed.conf \ + "${D}"/etc/news/nntpsend.ctl \ + "${D}"/etc/news/passwd.nntp \ + "${D}"/etc/news/readers.conf \ + || die + + # Prevent old db/* files from being overwritten + insinto /usr/share/inn/dbexamples + newins site/active.minimal active + newins site/newsgroups.minimal newsgroups + + keepdir \ + /var/log/news \ + /var/spool/news/archive \ + /var/spool/news/articles \ + /var/spool/news/db \ + /var/spool/news/incoming \ + /var/spool/news/incoming/bad \ + /var/spool/news/innfeed \ + /var/spool/news/outgoing \ + /var/spool/news/overview \ + /var/spool/news/tmp + + fowners news:news /var/log/news + + dodoc ChangeLog MANIFEST README* doc/checklist + use ipv6 && dodoc doc/IPv6-info + + # So other programs can build against INN + insinto /usr/$(get_libdir)/news/include + doins include/*.h + + newinitd "${FILESDIR}"/innd-r1 innd +} + +pkg_postinst() { + for db_file in active newsgroups + do + [[ -f ${ROOT}var/spool/news/db/${db_file} ]] && continue + + if [[ -f ${ROOT}usr/share/inn/dbexamples/${db_file} ]] + then + cp "${ROOT}"usr/share/inn/dbexamples/${db_file} \ + "${ROOT}"var/spool/news/db/${db_file} + else + touch "${ROOT}"var/spool/news/db/${db_file} + fi + + chown news:news "${ROOT}"var/spool/news/db/${db_file} + chmod 664 "${ROOT}"var/spool/news/db/${db_file} + done + + elog "It is recommended to run emerge --config ${CATEGORY}/${PN}" + elog "now to finish setting up this package." + elog + elog "Do not forget to update your cron entries, and also run" + elog "makedbz if you need to. If this is a first-time installation" + elog "a minimal active file has been installed. You will need to" + elog "touch history and run 'makedbz -i' to initialize the history" + elog "database. See INSTALL for more information." + elog + elog "You need to assign a real shell to the news user, or else" + elog "starting inn will fail. You can use 'usermod -s /bin/bash news'" + elog "for this." + + if use ssl + then + install_cert /etc/news/cert/cert + chown news:news \ + "${ROOT}"etc/news/cert/cert.{crt,csr,key,pem} + + elog + elog "You may want to start nnrpd manually for native ssl support." + elog "If you choose to do so, automating this with a bootscript might" + elog "also be a good choice." + elog "Have a look at man nnrpd for valid parameters." + elog + elog "The certificate location in /etc/news/sasl.conf has been changed" + elog "to /etc/news/cert!" + + fi +} + +pkg_postrm() { + elog + elog "If you want your newsspool or altered configuration files" + elog "to be removed, please do so now manually." + elog +} + +pkg_config() { + NEWSSPOOL_DIR="${ROOT}var/spool/news" + NEWS_SHELL="$( awk -F':' '/^news:/ {print $7;}' ${ROOT}etc/passwd )" + NEWS_ERRFLAG="0" + + if [[ ${NEWS_SHELL} == /bin/false || ${NEWS_SHELL} == /dev/null ]]; then + einfo "Changing shell to /bin/bash for user news..." + usermod -s /bin/bash news + else + einfo "Shell for user news unchanged ('${NEWS_SHELL}')." + if [[ ${NEWS_SHELL} != /bin/sh && ${NEWS_SHELL} != /bin/bash ]]; then + ewarn "You might want to change it to '/bin/bash', though." + fi + fi + + if [[ ! -e ${NEWSSPOOL_DIR}/db/history ]]; then + if [[ ! -f ${NEWSSPOOL_DIR}/db/history.dir \ + && ! -f ${NEWSSPOOL_DIR}/db/history.pag \ + && ! -f ${NEWSSPOOL_DIR}/db/history.hash \ + && ! -f ${NEWSSPOOL_DIR}/db/history.index ]] + then + einfo "Building history database ..." + + touch "${NEWSSPOOL_DIR}"/db/history + chown news:news "${NEWSSPOOL_DIR}"/db/history + chmod 644 "${NEWSSPOOL_DIR}"/db/history + + einfo "Running makedbz -i ..." + su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i" + + einfo "Moving files into place ..." + [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.dir \ + "${NEWSSPOOL_DIR}"/db/history.dir + [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.pag \ + "${NEWSSPOOL_DIR}"/db/history.pag + [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.hash \ + "${NEWSSPOOL_DIR}"/db/history.hash + [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.index \ + "${NEWSSPOOL_DIR}"/db/history.index + + einfo "Running makehistory ..." + su - news -c /usr/$(get_libdir)/news/bin/makehistory + else + NEWS_ERRFLAG="1" + eerror "Your installation seems to be screwed up." + eerror "${NEWSSPOOL_DIR}/db/history does not exist, but there's" + eerror "one of the files history.dir, history.hash or history.index" + eerror "within ${NEWSSPOOL_DIR}/db." + eerror "Use your backup to restore the history database." + fi + else + einfo "${NEWSSPOOL_DIR}/db/history found." + einfo "Leaving history database as it is." + fi + + INNCFG_INODES=$( + sed /etc/news/inn.conf \ + -e '/innwatchspoolnodes/ ! d; s:[^ ]*[ ]*\([^ ]*\):\1:' + ) + INNSPOOL_INODES=$( + df -Pi ${NEWSSPOOL_DIR} | \ + sed -e 's:[^ ]*[ ]*\([^ ]*\).*:\1:; 1 d' + ) + if [[ ${INNCFG_INODES} -gt ${INNSPOOL_INODES} ]]; then + ewarn "Setting innwatchspoolinodes to zero, because the filesystem behind" + ewarn "$NEWSSPOOL_DIR works without inodes." + ewarn + cp /etc/news/inn.conf /etc/news/inn.conf.OLD + einfo "A copy of your old inn.conf has been saved to /etc/news/inn.conf.OLD." + sed -i /etc/news/inn.conf \ + -e '/innwatchspoolnodes/ s:\([^ ]*\)\([ ]*\).*:\1\20:' + chown news:news /etc/news/inn.conf + chmod 644 /etc/news/inn.conf + fi + + INNCHECK_LINES=$( + su - news -c "/usr/$(get_libdir)/news/bin/inncheck | wc -l" + ) + if [[ ${INNCHECK_LINES} -gt 0 ]]; then + NEWS_ERRFLAG="1" + ewarn "inncheck most certainly found an error." + ewarn "Please check its output:" + eerror "`su - news -c /usr/$(get_libdir)/news/bin/inncheck`" + fi + + if [[ ${NEWS_ERRFLAG} -gt 0 ]]; then + eerror "There were one or more errors/warnings checking your" + eerror "configuration. Please read inn's documentation and" + eerror "fix them accordingly." + else + einfo "INN configuration tests passed successfully." + ewarn "Please ensure you have configured inn properly." + fi +} diff --git a/net-nntp/inn/inn-2.5.5-r1.ebuild b/net-nntp/inn/inn-2.5.5-r1.ebuild new file mode 100644 index 000000000000..19a769d0a7cd --- /dev/null +++ b/net-nntp/inn/inn-2.5.5-r1.ebuild @@ -0,0 +1,286 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils multilib python-single-r1 ssl-cert toolchain-funcs + +DESCRIPTION="The Internet News daemon, fully featured NNTP server" +HOMEPAGE="https://www.isc.org/software/inn" +SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz" + +# GPL-2 only for init script +LICENSE="ISC GPL-2+ public-domain BSD-4 BSD-2 RSA BSD MIT GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="berkdb innkeywords inntaggedhash ipv6 kerberos perl python sasl ssl" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + virtual/mta + dev-perl/MIME-tools + sys-libs/pam + sys-libs/zlib + kerberos? ( virtual/krb5 ) + sasl? ( >=dev-libs/cyrus-sasl-2 ) + ssl? ( dev-libs/openssl:0= ) + python? ( ${PYTHON_DEPS} ) + berkdb? ( sys-libs/db:* ) +" +RDEPEND="${DEPEND}" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.5.3-ar.patch + epatch "${FILESDIR}"/${PN}-2.5.3-tests.patch + + sed -e 's: -B .OLD::' -i Makefile.global.in || die + + # Do not treat LDFLAGS as if it contained libraries to link to + sed -e 's:LDFLAGS::g' -i m4/python.m4 || die + + # We do not have the biff service, but we do have comsat + sed -e 's:"biff":"comsat":g' -i tests/lib/getnameinfo-t.c || die + + eautoreconf +} + +src_configure() { + tc-export AR + + econf \ + --prefix=/usr/$(get_libdir)/news \ + --sysconfdir=/etc/news \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-control-dir=/usr/$(get_libdir)/news/bin/control \ + --with-filter-dir=/usr/$(get_libdir)/news/bin/filter \ + --with-db-dir=/var/spool/news/db \ + --with-doc-dir=/usr/share/doc/${PF} \ + --with-spool-dir=/var/spool/news \ + --with-log-dir=/var/log/news \ + --with-run-dir=/run/news \ + --with-tmp-dir=/var/spool/news/tmp \ + --disable-libtool \ + --with-gnu-ld \ + --enable-setgid-inews \ + --enable-uucp-rnews \ + $(use_with perl) \ + $(use_with python) \ + $(use_with kerberos kerberos /usr) \ + $(use_with sasl) \ + $(use_with ssl openssl) \ + $(use_with berkdb berkeleydb /usr) \ + $(use_enable ipv6) \ + $(use_enable !inntaggedhash largefiles) \ + $(use_enable inntaggedhash tagged-hash) \ + $(use_enable innkeywords keywords) +} + +src_install() { + emake DESTDIR="${D}/" P="" SPECIAL="" install + + chown -R root:0 \ + "${D}"/usr/$(get_libdir)/news/$(get_libdir) \ + "${D}"/usr/$(get_libdir)/news/include \ + "${D}"/usr/share/doc \ + "${D}"/usr/share/man \ + || die + chmod 644 "${D}"/etc/news/* || die + chmod 640 \ + "${D}"/etc/news/control.ctl \ + "${D}"/etc/news/expire.ctl \ + "${D}"/etc/news/incoming.conf \ + "${D}"/etc/news/innfeed.conf \ + "${D}"/etc/news/nntpsend.ctl \ + "${D}"/etc/news/passwd.nntp \ + "${D}"/etc/news/readers.conf \ + || die + + # Prevent old db/* files from being overwritten + insinto /usr/share/inn/dbexamples + newins site/active.minimal active + newins site/newsgroups.minimal newsgroups + + keepdir \ + /var/log/news \ + /var/spool/news/archive \ + /var/spool/news/articles \ + /var/spool/news/db \ + /var/spool/news/incoming \ + /var/spool/news/incoming/bad \ + /var/spool/news/innfeed \ + /var/spool/news/outgoing \ + /var/spool/news/overview \ + /var/spool/news/tmp + + fowners news:news /var/log/news + + dodoc ChangeLog MANIFEST README* doc/checklist + use ipv6 && dodoc doc/IPv6-info + + # So other programs can build against INN + insinto /usr/$(get_libdir)/news/include + doins include/*.h + + newinitd "${FILESDIR}"/innd-r1 innd +} + +pkg_postinst() { + for db_file in active newsgroups + do + [[ -f ${ROOT}var/spool/news/db/${db_file} ]] && continue + + if [[ -f ${ROOT}usr/share/inn/dbexamples/${db_file} ]] + then + cp "${ROOT}"usr/share/inn/dbexamples/${db_file} \ + "${ROOT}"var/spool/news/db/${db_file} + else + touch "${ROOT}"var/spool/news/db/${db_file} + fi + + chown news:news "${ROOT}"var/spool/news/db/${db_file} + chmod 664 "${ROOT}"var/spool/news/db/${db_file} + done + + elog "It is recommended to run emerge --config ${CATEGORY}/${PN}" + elog "now to finish setting up this package." + elog + elog "Do not forget to update your cron entries, and also run" + elog "makedbz if you need to. If this is a first-time installation" + elog "a minimal active file has been installed. You will need to" + elog "touch history and run 'makedbz -i' to initialize the history" + elog "database. See INSTALL for more information." + elog + elog "You need to assign a real shell to the news user, or else" + elog "starting inn will fail. You can use 'usermod -s /bin/bash news'" + elog "for this." + + if use ssl + then + install_cert /etc/news/cert/cert + chown news:news \ + "${ROOT}"etc/news/cert/cert.{crt,csr,key,pem} + + elog + elog "You may want to start nnrpd manually for native ssl support." + elog "If you choose to do so, automating this with a bootscript might" + elog "also be a good choice." + elog "Have a look at man nnrpd for valid parameters." + elog + elog "The certificate location in /etc/news/sasl.conf has been changed" + elog "to /etc/news/cert!" + + fi +} + +pkg_postrm() { + elog + elog "If you want your newsspool or altered configuration files" + elog "to be removed, please do so now manually." + elog +} + +pkg_config() { + NEWSSPOOL_DIR="${ROOT}var/spool/news" + NEWS_SHELL="$( awk -F':' '/^news:/ {print $7;}' ${ROOT}etc/passwd )" + NEWS_ERRFLAG="0" + + if [[ ${NEWS_SHELL} == /bin/false || ${NEWS_SHELL} == /dev/null ]]; then + einfo "Changing shell to /bin/bash for user news..." + usermod -s /bin/bash news + else + einfo "Shell for user news unchanged ('${NEWS_SHELL}')." + if [[ ${NEWS_SHELL} != /bin/sh && ${NEWS_SHELL} != /bin/bash ]]; then + ewarn "You might want to change it to '/bin/bash', though." + fi + fi + + if [[ ! -e ${NEWSSPOOL_DIR}/db/history ]]; then + if [[ ! -f ${NEWSSPOOL_DIR}/db/history.dir \ + && ! -f ${NEWSSPOOL_DIR}/db/history.pag \ + && ! -f ${NEWSSPOOL_DIR}/db/history.hash \ + && ! -f ${NEWSSPOOL_DIR}/db/history.index ]] + then + einfo "Building history database ..." + + touch "${NEWSSPOOL_DIR}"/db/history + chown news:news "${NEWSSPOOL_DIR}"/db/history + chmod 644 "${NEWSSPOOL_DIR}"/db/history + + einfo "Running makedbz -i ..." + su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i" + + einfo "Moving files into place ..." + [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.dir \ + "${NEWSSPOOL_DIR}"/db/history.dir + [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.pag \ + "${NEWSSPOOL_DIR}"/db/history.pag + [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.hash \ + "${NEWSSPOOL_DIR}"/db/history.hash + [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && \ + mv -vf "${NEWSSPOOL_DIR}"/db/history.n.index \ + "${NEWSSPOOL_DIR}"/db/history.index + + einfo "Running makehistory ..." + su - news -c /usr/$(get_libdir)/news/bin/makehistory + else + NEWS_ERRFLAG="1" + eerror "Your installation seems to be screwed up." + eerror "${NEWSSPOOL_DIR}/db/history does not exist, but there's" + eerror "one of the files history.dir, history.hash or history.index" + eerror "within ${NEWSSPOOL_DIR}/db." + eerror "Use your backup to restore the history database." + fi + else + einfo "${NEWSSPOOL_DIR}/db/history found." + einfo "Leaving history database as it is." + fi + + INNCFG_INODES=$( + sed /etc/news/inn.conf \ + -e '/innwatchspoolnodes/ ! d; s:[^ ]*[ ]*\([^ ]*\):\1:' + ) + INNSPOOL_INODES=$( + df -Pi ${NEWSSPOOL_DIR} | \ + sed -e 's:[^ ]*[ ]*\([^ ]*\).*:\1:; 1 d' + ) + if [[ ${INNCFG_INODES} -gt ${INNSPOOL_INODES} ]]; then + ewarn "Setting innwatchspoolinodes to zero, because the filesystem behind" + ewarn "$NEWSSPOOL_DIR works without inodes." + ewarn + cp /etc/news/inn.conf /etc/news/inn.conf.OLD + einfo "A copy of your old inn.conf has been saved to /etc/news/inn.conf.OLD." + sed -i /etc/news/inn.conf \ + -e '/innwatchspoolnodes/ s:\([^ ]*\)\([ ]*\).*:\1\20:' + chown news:news /etc/news/inn.conf + chmod 644 /etc/news/inn.conf + fi + + INNCHECK_LINES=$( + su - news -c "/usr/$(get_libdir)/news/bin/inncheck | wc -l" + ) + if [[ ${INNCHECK_LINES} -gt 0 ]]; then + NEWS_ERRFLAG="1" + ewarn "inncheck most certainly found an error." + ewarn "Please check its output:" + eerror "`su - news -c /usr/$(get_libdir)/news/bin/inncheck`" + fi + + if [[ ${NEWS_ERRFLAG} -gt 0 ]]; then + eerror "There were one or more errors/warnings checking your" + eerror "configuration. Please read inn's documentation and" + eerror "fix them accordingly." + else + einfo "INN configuration tests passed successfully." + ewarn "Please ensure you have configured inn properly." + fi +} diff --git a/net-nntp/inn/metadata.xml b/net-nntp/inn/metadata.xml new file mode 100644 index 000000000000..c3c5f1546ad1 --- /dev/null +++ b/net-nntp/inn/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +<use> + <flag name="innkeywords">Enable automatic keyword generation support</flag> + <flag name="inntaggedhash">Use tagged hash table for history (disables large + file support)</flag> +</use> +</pkgmetadata> diff --git a/net-nntp/kwooty/Manifest b/net-nntp/kwooty/Manifest new file mode 100644 index 000000000000..9fe1b14f2fc1 --- /dev/null +++ b/net-nntp/kwooty/Manifest @@ -0,0 +1,5 @@ +DIST kwooty-1.1.0_p20150623.tar.xz 174824 SHA256 23e411a7f891a95d68b063a282199c098dbfe119c096806e40665e78a9918f56 SHA512 bca5d516ba705bed35b7834ac6d70ddb581a2de869c1ea6273aae7e13f1c7f9af5c7808003879238c9af0386a73d78e18b09951b8cfdb67011870b151887c376 WHIRLPOOL 09322411241188c42a9567b08098b0ec6ae77171de1112035140cce059bf9a4f2c0694b36cb20b0a54ef841587bf1e5ec59e6198e737f0a6cfddb3a6bb58dd57 +EBUILD kwooty-1.1.0_p20150623.ebuild 1536 SHA256 36ca4e946fe0dea07000f276d1c2cd42371eb7321707c5bd490bf03e8fe8d0a6 SHA512 5ccf27fa0bc92a7414407c6da550c5d5846242cd6dc10db699ad58246bdaa38935f3a7939de9ad4b2b0e134d2b6285a64c788e5e30fc464e1e9b0b8ed721757f WHIRLPOOL 012150ad3671fa409b08e9b04c194bef8239887df9828f3c4f9e6f5bdec5faefb58fdf4602c4bfb2ad6cbf582a967f46aaab6ada1b8fd0e6277760ba58a62860 +MISC ChangeLog 3192 SHA256 a3ed392739f35093c608fff51df46c9c4007dd3a6b86c93be385d5a6f07b17d5 SHA512 c564b89d9324d2508836d5cbc769fb28737839ebe2f27da257337bcdf5d302e1a2781c9c6c3df67215f7c1dbca627b96b8c2e2a4ed3dab27043959af96291f95 WHIRLPOOL 0eb80a0b259300e3907c4966cf0c99e34b4b2f8944ebc8605cdab61b46882b6100838658eacb81127c928cbe52c928ee57fa9c0dec009856ffd1917a0a6770c4 +MISC ChangeLog-2015 5632 SHA256 47f20442ec2fb0f8cd854ef16f2463da2bfb763065e81a9530a549e78a91e113 SHA512 64b2c196b990f49cad2b7efd9277569aa0e00734b8db300f002371f3dccb3da128e20493433f3ef3adfc9a6770a6024cf73da1c3bb760a3987bf2f3807bb7fc4 WHIRLPOOL 3990de5552e07a4e4969de5389da367cdc4d9e95610e0fb0b34548b64aa47cba25c75ecd23fc8f9225b56b6230bd0594599a270b6170240ca51821cb2a321d49 +MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c diff --git a/net-nntp/kwooty/kwooty-1.1.0_p20150623.ebuild b/net-nntp/kwooty/kwooty-1.1.0_p20150623.ebuild new file mode 100644 index 000000000000..63904060a2a8 --- /dev/null +++ b/net-nntp/kwooty/kwooty-1.1.0_p20150623.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit kde5 + +DESCRIPTION="Friendly nzb linux usenet binary client" +HOMEPAGE="https://www.linux-apps.com/content/show.php/Kwooty?content=114385" +SRC_URI="https://dev.gentoo.org/~kensington/distfiles/${P}.tar.xz" + +LICENSE="GPL-2+" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + $(add_frameworks_dep kcmutils) + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kconfigwidgets) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kdelibs4support) + $(add_frameworks_dep kguiaddons) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep kiconthemes) + $(add_frameworks_dep kio) + $(add_frameworks_dep knotifications) + $(add_frameworks_dep kservice) + $(add_frameworks_dep kwallet) + $(add_frameworks_dep kwidgetsaddons) + $(add_frameworks_dep kwindowsystem) + $(add_frameworks_dep kxmlgui) + $(add_qt_dep qtdbus) + $(add_qt_dep qtgui) + $(add_qt_dep qtnetwork) + $(add_qt_dep qtwidgets) +" +RDEPEND="${DEPEND} + !net-nntp/kwooty:4 +" + +src_prepare() { + kde5_src_prepare + + sed -i -e "/KF5DocTools/d" CMakeLists.txt || die +} + +pkg_postinst() { + kde5_pkg_postinst + + if ! has_version "app-arch/par2cmdline" ; then + elog "For automatic file repairing please install app-arch/par2cmdline." + fi + + if ! has_version "app-arch/unrar" ; then + elog "For automatic RAR archive extraction please install app-arch/unrar." + fi + + if ! has_version "app-arch/p7zip" ; then + elog "For automatic (7)zip archive extraction please install app-arch/p7zip." + fi +} diff --git a/net-nntp/kwooty/metadata.xml b/net-nntp/kwooty/metadata.xml new file mode 100644 index 000000000000..2fdbf33d963d --- /dev/null +++ b/net-nntp/kwooty/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>kde@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> +</pkgmetadata> diff --git a/net-nntp/leafnode/Manifest b/net-nntp/leafnode/Manifest new file mode 100644 index 000000000000..e4f86530e72e --- /dev/null +++ b/net-nntp/leafnode/Manifest @@ -0,0 +1,11 @@ +AUX fetchnews.cron 177 SHA256 4fc9999fb5598c5c6df96b72ca876cee5b7b485df5c86bb2f454f4a129dfe981 SHA512 b28ff182309f6e6fde2d8d64b97dd76bae6dc5b4b1f0337b23a77c49019e6194299be13fd654b2a83a6bde61f2002918bb7cf0fc1f2b79cb9701e997d090d6cf WHIRLPOOL 52c6760f568649ce6e8310522af3aca062d12f6e02389f344920df976f754c77323d961ad41e8900b578025cb588b5e95b4b04e37706244a09bb14dc07758f9b +AUX leafnode-1.11.11-checkpeerlocal_ipv6_fix.patch 607 SHA256 11bcabd2ea18de66e21645f7f2acc0787a8cb7ec69a59bd26a535e40d4445821 SHA512 eac21cb4a1af2ad7be2301c2cd882125d7d7c2027dc5d71eae781eed4e24ec153c55226b880cd0d9f3ead76d935dd124d5605c4388e3fe04c0bda0875beb3fe1 WHIRLPOOL 85d591d3d03e9aae7abfa2b0a0d51dfedcd09c729bbaa6edfba562870e186e5e308150bab55e9993b2fd7805a5c25a313ff43d5c98c5c36adce674029397129a +AUX leafnode.xinetd 230 SHA256 a8dd35146f27ad737eeab74512fb01f17ba526769d218fc4a9ff2225b0827828 SHA512 3f471eb9c4b0f9d8ba51f43bfd53477012b241ea487b1f64b3c4a7a44bc04b1867731aab46ff92ebeaeba61157a58301bcb0f64b80185dea13a33298fc34bcc6 WHIRLPOOL 8d024cd55fe9d520916087036c2c7227b49683908555d70405f94b57a06c1806ac3d54bef45c29ddd99074d6c73dcdd1252611ec1ee179afc1d12325ba07478c +AUX texpire.cron 158 SHA256 acd65f4a3b6ddbee3e1f21a4aa1ce0124e7983bfe9387bc379079c2e621f745f SHA512 a0c1089588349a4d11888a392302e1667c195933744ea4ca844eacf35e2df8d63edce1758491b947b11c35761a52e1f4a17295965a3d52103d46410332d6dc78 WHIRLPOOL fc945ae2fca56d871e43e012562ad905af354c071c6326dedaa9b9d1c17787f2f5f8699d84e0b9ef96f887356c88eec829cda4d63340717c42bcd4941db1a80b +DIST leafnode-1.11.10.tar.bz2 493480 SHA256 d75ba79961a8900b273eb74c3ad6976bf9fd64c2fa0284273e65f98190c5f2bc SHA512 efffbe9a3fe10da64ebfaff31738b66e9783923ea119e2f792bc0e7e1811d570e85c5ddec17af6787333958deeee3af9bec87d1312c37eb19e355147dfa721ae WHIRLPOOL ed47717d7c2a6d21ba0b07f0daf5a5c716ff90034ea3747d57958163142eb154778267b9c370082b0e5a8e7e35942b3334bd6ff9f9d476186e27d838e2a26897 +DIST leafnode-1.11.11.tar.bz2 500482 SHA256 3ec325216fb5ddcbca13746e3f4aab4b49be11616a321b25978ffd971747adc0 SHA512 3a476a32f2e59ed0812379efc2ad1964347094417e7fc01d93f84d0cfaed78a66b2f2f40d1ac36f8a0f8844523ab57b9a605d4bd73ea309248c0562e7c26248a WHIRLPOOL 76435a83f4f82d1832ce25e054016e6ec7090a16221575b179e6c3e923a916c9a4b1ea00747783d2988da0c447cd410ea4d9681431208444ec8b80f11e41ac48 +EBUILD leafnode-1.11.10.ebuild 1244 SHA256 bebb9b0b59d7a0f7f6779cb645f766a9283dc964c204b07b015045add0ec2ae9 SHA512 5f376dfdcf8833985976fcbc1815202f84fb2da035c7d20d98e18311169fe8c9315b2a295d942df35e238988346367ba65c4e5bc679566054d195aa00926361f WHIRLPOOL dc312d61a2a4036768177cb96e0da8d3ed908f0d3d7f62ec4b75f8e18f6ad4a99237aa1bb075e93b280aeb755ba976678ca819a426ad6a2f71a32b4070df4765 +EBUILD leafnode-1.11.11.ebuild 1325 SHA256 d852fe927c6e8704b438cf9afc254dcc29f4075bfbf8df22f98e38e83c80900b SHA512 85bdd4fed3fd3848a7be9fef9d8dd9e7f18c11a5016ed69ec3bb27b8d71a6a88fd02b0beccb04f632ab6468fe22ca06f75b6f36f3196dc35653ab0da8fa97bd0 WHIRLPOOL a8b4c54b748dbae571b86530a7c110e7bdcb8c2092cddffe553c280f79496bf0300130dc005265b14d9c0f39495bbf3d3080a73b527036d28865ab642c51da74 +MISC ChangeLog 3752 SHA256 d670e73dab0637fb9e2db96c21761b9854c70b8b89cf228f8e3faa2436c3c88b SHA512 3350b91062388c815c88363fc40203e71738fb8545450663c0d8c25be694037c8f79d72970f4e2ae4ff2dff03fb2cd7d0f71daf95e1960be3bf3ea8db965e6a0 WHIRLPOOL 823444f753a75b79c2133b49ed3472a832e3a080d512aa2efb5f7de41666a4fa9d99290e8b2947856bdf27ca865d35817c4cfb2a1de88c2d475a0949657b0105 +MISC ChangeLog-2015 15414 SHA256 331f2a4d8900e3c4de28bb02641265b6a4ab2174622c884eb3820cb3d44bd067 SHA512 caa10e627a18b4b06e878d199a4dfb3e503cd48d91b6c5d9acb54597bac4cb883a9cf9b4ccf384bbe68e1a723702667b09046b6a29e44472c33adc7c3f3cd0b5 WHIRLPOOL 6d347f6ad9c1abf7f15036f38873ba3549a3995963cf60e0f4c203b664efa5e193ec59bcd0a903840477fb1ee5281627ffedd77f00aae3b822b112c146e0a8e1 +MISC metadata.xml 299 SHA256 00669d11c55cbe22f76abe9573495d3386f981ec3a7dab5a1e492fb0194cec31 SHA512 c3b9d08a226dd447da43fcd3a09f3536004369d7b909099d79a226794ab48c9bb4325b69f13effbb14ca6c59f99de8aaf7167c5e93d934d1b4b1ae24c2bfd0f5 WHIRLPOOL c0e5a8ad2362ac783a2810b2280f5d0d4c1692b07741b9e710bdc8e39ccf3a2573e4ffcc1ee1dde195190ebed54c70896851a04cbfa6c1c30970b8d198a98216 diff --git a/net-nntp/leafnode/files/fetchnews.cron b/net-nntp/leafnode/files/fetchnews.cron new file mode 100644 index 000000000000..cd4569e6d656 --- /dev/null +++ b/net-nntp/leafnode/files/fetchnews.cron @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Uncomment the following if you want to regularly +# fetch new messages from your news server. +# +# +# This is part of the leafnode package. +# + +#/usr/sbin/fetchnews diff --git a/net-nntp/leafnode/files/leafnode-1.11.11-checkpeerlocal_ipv6_fix.patch b/net-nntp/leafnode/files/leafnode-1.11.11-checkpeerlocal_ipv6_fix.patch new file mode 100644 index 000000000000..ef215e4c1857 --- /dev/null +++ b/net-nntp/leafnode/files/leafnode-1.11.11-checkpeerlocal_ipv6_fix.patch @@ -0,0 +1,19 @@ +diff -x '*~' -purN a/checkpeerlocal.c b/checkpeerlocal.c +--- a/checkpeerlocal.c 2015-08-25 00:03:26.000000000 +0200 ++++ b/checkpeerlocal.c 2017-07-14 20:12:26.109653383 +0200 +@@ -208,6 +208,7 @@ int checkpeerlocal(int sock) + } + #endif + ++#ifdef HAVE_IPV6 + if (IN6_IS_ADDR_V4MAPPED(&addr.sin6.sin6_addr)) { + /* map to IPv4 */ + struct sockaddr_in si; +@@ -216,6 +217,7 @@ int checkpeerlocal(int sock) + memcpy(&addr.sin, &si, sizeof(struct sockaddr_in)); + D(pat(&addr.sa)); + } ++#endif + + if (getifaddrs(&ifap) != 0) { + D(printf("getifaddrs failed: %s\n", strerror(errno))); diff --git a/net-nntp/leafnode/files/leafnode.xinetd b/net-nntp/leafnode/files/leafnode.xinetd new file mode 100644 index 000000000000..fc36ecaaaa03 --- /dev/null +++ b/net-nntp/leafnode/files/leafnode.xinetd @@ -0,0 +1,12 @@ +# default: off +# description: Leafnode - accepts connections on port 119 (NNTP) + +service nntp +{ + socket_type = stream + protocol = tcp + wait = no + user = news + server = /usr/sbin/leafnode + disable = yes +} diff --git a/net-nntp/leafnode/files/texpire.cron b/net-nntp/leafnode/files/texpire.cron new file mode 100644 index 000000000000..643da1ee9000 --- /dev/null +++ b/net-nntp/leafnode/files/texpire.cron @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Uncomment the following if you want to +# clean up your news spool regularly. +# +# +# This is part of the leafnode package. +# + +#/usr/sbin/texpire diff --git a/net-nntp/leafnode/leafnode-1.11.10.ebuild b/net-nntp/leafnode/leafnode-1.11.10.ebuild new file mode 100644 index 000000000000..a5fdbeef4edf --- /dev/null +++ b/net-nntp/leafnode/leafnode-1.11.10.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +DESCRIPTION="A USENET software package designed for small sites" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +HOMEPAGE="http://leafnode.sourceforge.net/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="ipv6" + +DEPEND=">=dev-libs/libpcre-3.9" +RDEPEND="${DEPEND} + virtual/inetd" +DOCS=( CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS README-daemontools UNINSTALL-daemontools README README-MAINTAINER README-FQDN ) + +src_configure() { + econf \ + --sysconfdir=/etc/leafnode \ + --localstatedir=/var \ + --with-spooldir=/var/spool/news \ + $(use_with ipv6) +} + +src_install() { + default + + keepdir \ + /var/lock/news \ + /var/lib/news \ + /var/spool/news/{failed.postings,interesting.groups,leaf.node,out.going,temp.files} \ + /var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9} + + fowners -R news:news /var/{lib,spool}/news + + insinto /etc/xinetd.d + newins "${FILESDIR}"/leafnode.xinetd leafnode-nntp + + exeinto /etc/cron.hourly + newexe "${FILESDIR}"/fetchnews.cron fetchnews + exeinto /etc/cron.daily + newexe "${FILESDIR}"/texpire.cron texpire + + dohtml FAQ.html FAQ.xml README-FQDN.html +} diff --git a/net-nntp/leafnode/leafnode-1.11.11.ebuild b/net-nntp/leafnode/leafnode-1.11.11.ebuild new file mode 100644 index 000000000000..180b97d7c5ad --- /dev/null +++ b/net-nntp/leafnode/leafnode-1.11.11.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit epatch + +DESCRIPTION="A USENET software package designed for small sites" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +HOMEPAGE="http://leafnode.sourceforge.net/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="ipv6" + +DEPEND=">=dev-libs/libpcre-3.9" +RDEPEND="${DEPEND} + virtual/inetd" +DOCS=( CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS README-daemontools UNINSTALL-daemontools README README-MAINTAINER README-FQDN ) + +src_prepare() { + epatch "${FILESDIR}/${PN}-${PV}-checkpeerlocal_ipv6_fix.patch" +} + +src_configure() { + econf \ + --sysconfdir=/etc/leafnode \ + --localstatedir=/var \ + --with-spooldir=/var/spool/news \ + $(use_with ipv6) +} + +src_install() { + default + + keepdir \ + /var/lib/news \ + /var/spool/news/{failed.postings,interesting.groups,leaf.node,out.going,temp.files} \ + /var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9} + + fowners -R news:news /var/{lib,spool}/news + + insinto /etc/xinetd.d + newins "${FILESDIR}"/leafnode.xinetd leafnode-nntp + + exeinto /etc/cron.hourly + newexe "${FILESDIR}"/fetchnews.cron fetchnews + exeinto /etc/cron.daily + newexe "${FILESDIR}"/texpire.cron texpire + + dohtml FAQ.html FAQ.xml README-FQDN.html +} diff --git a/net-nntp/leafnode/metadata.xml b/net-nntp/leafnode/metadata.xml new file mode 100644 index 000000000000..f1a24c0e134f --- /dev/null +++ b/net-nntp/leafnode/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>graaff@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">leafnode</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-nntp/metadata.xml b/net-nntp/metadata.xml new file mode 100644 index 000000000000..fb6c7192915b --- /dev/null +++ b/net-nntp/metadata.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The net-nntp category contains NNTP (Network News Transfer Protocol) + software. + </longdescription> + <longdescription lang="de"> + Die Kategorie net-nntp enthält Software für das Network News Transfer Protocol + (NNTP). + </longdescription> + <longdescription lang="es"> + La categoría net-nntp contiene software NNTP (Network News Transfer + Protocol). + </longdescription> + <longdescription lang="ja"> + net-nntpカテゴリーにはネットワーク・ニュース・トランスファー・プロトコルの + ソフトウェアが含まれています。 + </longdescription> + <longdescription lang="nl"> + De net-nntp categorie bevat applicaties voor NNTP (Network News Transfer Protocol). + </longdescription> + <longdescription lang="vi"> + Nhóm net-nntp chứa các phần mềm NNTP (Network News Transfer Protocol). + </longdescription> + <longdescription lang="it"> + La categoria net-nntp contiene software NNTP (Network News Transfer + Protocol). + </longdescription> + <longdescription lang="pt"> + A categoria net-nntp contém programas de NNTP (Network News + Transfer Protocol). + </longdescription> + <longdescription lang="pl"> + Kategoria net-nntp zawiera oprogramowanie związane z NNTP (Network News + Transfer Protocol). + </longdescription> +</catmetadata> + diff --git a/net-nntp/newspost/Manifest b/net-nntp/newspost/Manifest new file mode 100644 index 000000000000..9a112b1aa7ee --- /dev/null +++ b/net-nntp/newspost/Manifest @@ -0,0 +1,8 @@ +AUX CAN-2005-0101.patch 284 SHA256 cfa2276d82c991d8a45a12652a8b17963121ba4e7f42354fd54e9f9f23934377 SHA512 fca2c27d94310c786ffa6b3b376c5dc04752f9c41688ac335bbbf440e972dcc06f8495090fd52bdb4f33c34009fc0536bf411809f93310f474f703d28c199dc5 WHIRLPOOL 03eb8e8df73b4ab899b45c5502064872bb26d5248fc3d224ca82a2f304d67bb81bfcfb7a983c1b340c9772eb10ed569850461d4f7e76e16e21a1aea96f4bc89f +AUX newspost-2.1.1-glibc-2.10.patch 2038 SHA256 a0be86639a3fc953e40a56a348cfe48da2fb3e4e46c4e055b3ee9ddac6018437 SHA512 6e1c9a30d282dd2e3e133571bb747d5c7b133dab54f9f464e32e23655d8534e4e1cfb388291116c8c28ef3ad7515cde5c9d7ce053407928df38bdcf014f14a2f WHIRLPOOL f09b67f1335dd5f4889f3fc9f861b2b6d67db67cb87e1635ee0b7dab26ff3b0b971c237868a3f712667b5969f8ead535b324ad023680ebe72f2180e4a7a2060a +AUX newspost-2.1.1-nntp.patch 1845 SHA256 7fae7a480aeeb55eb6c9579040d26a1de71fd60ac10736635a836f61ccf326de SHA512 c636657d1e33ba6861c1625f5798e5b98e546719331a91b455156e3af45be71873feee357d72a778da81058457299476d39a1c3674a2572185fd355f96b4f77d WHIRLPOOL 43298de8da16bfe568319de6aa0f7ba5afd64534d93e6c4bc0b1d992ff361a063edacc890ecc169a4013631d11525f0520a04f71ad477493c2c9322b948e614f +DIST newspost-2.1.1.tar.gz 61412 SHA256 bdd1ae83d7459d2cdd726115c028405fce33f9b60e71b88969f82fbc02672be7 SHA512 d7f5b583ef5619a65e87f2ce2edbad307d60da7f29e5c6bef8eaa7c757f97f82f08654409a75ea7b28e5575fd267af57cbc170f467f6737f701bfbd6bd4b2f66 WHIRLPOOL 7ab7e3a39b300ab262293be4933105b2796d85ae8af919a22adf164754bcc598abe9c75974aa99670e3037d211189b78385771128c2d4b871700f52f7bba9ad8 +EBUILD newspost-2.1.1-r3.ebuild 809 SHA256 4f979db7e103303e97a7f5dded080ec464d03a2563124f609c5ec5ef77024cda SHA512 d99701db03b744ba233177012a2be5b786bba69a4983b16820c88d16d657b46a598c27b139dd534b879acedf4b403a877df6c01176eec71e39446d7084b975b1 WHIRLPOOL 15dd27bbe66fb2d2e934cae2e08483dc79f9ab1e23cb3ae19bd9af24f8363641941f3123ba1ca601be3bbdfaf9069e66805d34fc129ba019744d20e17cd6d7ba +MISC ChangeLog 2569 SHA256 7412c9cf2675cf50286e5e22edf7fefc73ab18610592085366db28126708cd11 SHA512 0b68f482531c3fe5a354ce952c63acf214aebde373fe63dbe3679a8e5ea96a12481e06c5b60a565d25a54f562602ea742b8c9d86509d2fb73f81210e20d6eddf WHIRLPOOL 1a386763e0358feaff3661e28ab3bca0ca484f5700a4d793ec3cae71b4553863fb350479e595c436e367fa781f5a4897d3263550832ce6b180e4cebb45501c57 +MISC ChangeLog-2015 4812 SHA256 5b8167aa0447ea27f4a8ece528922adce63fae78b2c5266dd7178a15bd78503e SHA512 273bea2381014679dc51ccf9bd00ad0ced94c34acd7a5c7f30ca9f81f08c7c83f3c04a6e57d1a4bacea1182e166465696c7115a99eef8d3d9cab3cfeb05902dd WHIRLPOOL a1dd21204a97be68b45ac9a0f3d282716e6868e13f0bdf5a26169ba15ddcc8cf1e4479d72e34a1419122c8ec999d0e5303e0caee0c3b2e9b20493005faff889e +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-nntp/newspost/files/CAN-2005-0101.patch b/net-nntp/newspost/files/CAN-2005-0101.patch new file mode 100644 index 000000000000..2bfdfc2c190d --- /dev/null +++ b/net-nntp/newspost/files/CAN-2005-0101.patch @@ -0,0 +1,11 @@ +--- base/socket.c.orig Tue Jan 18 11:08:02 2005 ++++ base/socket.c Tue Jan 18 11:10:08 2005 +@@ -126,7 +126,7 @@ + + i = 0; + pi = buffer; +- while (TRUE) { ++ while (read_count < STRING_BUFSIZE - 1) { + retval = read(sockfd, pi, 1); + if(retval < 0) + ui_socket_error(errno); diff --git a/net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch b/net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch new file mode 100644 index 000000000000..fdaa78cbefb7 --- /dev/null +++ b/net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch @@ -0,0 +1,57 @@ +diff -ur newspost-2.1.1.orig/base/newspost.c newspost-2.1.1/base/newspost.c +--- newspost-2.1.1.orig/base/newspost.c 2003-04-23 18:33:23.000000000 +0300 ++++ newspost-2.1.1/base/newspost.c 2009-08-06 14:46:41.000000000 +0300 +@@ -342,7 +342,7 @@ + file = fopen(filename, "r"); + if (file != NULL) { + while (!feof(file)) { +- line = getline(line, file); ++ line = get_line(line, file); + if(line == NULL){ + text_buffer = buff_add(text_buffer, "\r\n"); + continue; +diff -ur newspost-2.1.1.orig/base/utils.c newspost-2.1.1/base/utils.c +--- newspost-2.1.1.orig/base/utils.c 2009-08-06 14:44:35.000000000 +0300 ++++ newspost-2.1.1/base/utils.c 2009-08-06 14:45:20.000000000 +0300 +@@ -43,7 +43,7 @@ + return NULL; + } + +-Buff * getline(Buff *buff, FILE *file){ ++Buff * get_line(Buff *buff, FILE *file){ + int c = fgetc(file); + buff = buff_free(buff); + while(TRUE){ +diff -ur newspost-2.1.1.orig/base/utils.h newspost-2.1.1/base/utils.h +--- newspost-2.1.1.orig/base/utils.h 2003-02-08 17:09:41.000000000 +0200 ++++ newspost-2.1.1/base/utils.h 2009-08-06 14:45:13.000000000 +0300 +@@ -26,7 +26,7 @@ + file_entry * file_entry_alloc(); + file_entry * file_entry_free(file_entry *fe); + +-Buff * getline(Buff *buff, FILE *file); ++Buff * get_line(Buff *buff, FILE *file); + Buff *buff_add(Buff *buff, char *data, ... ); + Buff * buff_free(Buff *buff); + Buff *buff_create(Buff *buff, char *data, ... ); +diff -ur newspost-2.1.1.orig/ui/options.c newspost-2.1.1/ui/options.c +--- newspost-2.1.1.orig/ui/options.c 2003-04-23 18:33:33.000000000 +0300 ++++ newspost-2.1.1/ui/options.c 2009-08-06 14:46:31.000000000 +0300 +@@ -332,7 +332,7 @@ + file = fopen(filename->data, "r"); + if (file != NULL) { + while (!feof(file)) { +- line = getline(line, file); ++ line = get_line(line, file); + linenum++; + if(line == NULL) continue; + +@@ -429,7 +429,7 @@ + linenum = 0; + while (linenum < 8) { + linenum++; +- line = getline(line, file); ++ line = get_line(line, file); + if(line == NULL) continue; + + switch (linenum) { diff --git a/net-nntp/newspost/files/newspost-2.1.1-nntp.patch b/net-nntp/newspost/files/newspost-2.1.1-nntp.patch new file mode 100644 index 000000000000..8779e8f36b47 --- /dev/null +++ b/net-nntp/newspost/files/newspost-2.1.1-nntp.patch @@ -0,0 +1,69 @@ +--- newspost-2.1.1.orig/base/nntp.c ++++ newspost-2.1.1/base/nntp.c +@@ -26,6 +26,10 @@ + *** Public Routines + **/ + ++int _nntp_post(const char *subject, newspost_data *data, ++ const char *buffer, long length, ++ boolean no_ui_updates); ++ + boolean nntp_logon(newspost_data *data) { + char buffer[STRING_BUFSIZE]; + +@@ -78,6 +82,35 @@ + int nntp_post(const char *subject, newspost_data *data, + const char *buffer, long length, + boolean no_ui_updates) { ++ int retval = _nntp_post(subject, data, buffer, length, no_ui_updates); ++ ++ if (retval == POSTING_FAILED-64) { ++ /* try log out then back in */ ++ ui_nntp_posting_retry(); ++ nntp_logoff(); ++ socket_close(); ++ sleep(5); ++ ++ /* create the socket */ ++ ui_socket_connect_start(data->address->data); ++ retval = socket_create(data->address->data, data->port); ++ if (retval < 0) ++ return retval; ++ ui_socket_connect_done(); ++ ++ ui_nntp_logon_start(data->address->data); ++ if (nntp_logon(data) == FALSE) ++ return POSTING_FAILED; ++ ui_nntp_logon_done(); ++ ++ retval = _nntp_post(subject, data, buffer, length, no_ui_updates); ++ } ++ return retval; ++} ++ ++int _nntp_post(const char *subject, newspost_data *data, ++ const char *buffer, long length, ++ boolean no_ui_updates) { + char response[STRING_BUFSIZE]; + const char *pi; + long i, chunksize; +@@ -95,7 +128,7 @@ + if (strncmp(response, NNTP_PROCEED_WITH_POST, 3) != 0) { + /* this shouldn't really happen */ + ui_nntp_unknown_response(response); +- return POSTING_FAILED; ++ return POSTING_FAILED-64; + } + + buff = buff_add(buff, "From: %s\r\n", data->from->data); +--- newspost-2.1.1.orig/base/utils.c ++++ newspost-2.1.1/base/utils.c +@@ -44,7 +44,7 @@ + } + + Buff * getline(Buff *buff, FILE *file){ +- char c = fgetc(file); ++ int c = fgetc(file); + buff = buff_free(buff); + while(TRUE){ + if((c == '\n') diff --git a/net-nntp/newspost/metadata.xml b/net-nntp/newspost/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-nntp/newspost/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/net-nntp/newspost/newspost-2.1.1-r3.ebuild b/net-nntp/newspost/newspost-2.1.1-r3.ebuild new file mode 100644 index 000000000000..2bead23b4f88 --- /dev/null +++ b/net-nntp/newspost/newspost-2.1.1-r3.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="A usenet binary autoposter for unix" +HOMEPAGE="http://newspost.unixcab.org/" +SRC_URI="http://newspost.unixcab.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +src_prepare() { + # Should fix some problems with unexpected server replies, cf. bug 185468 + epatch "${FILESDIR}"/${P}-nntp.patch + epatch "${FILESDIR}"/CAN-2005-0101.patch + epatch "${FILESDIR}"/${P}-glibc-2.10.patch + + sed -e "/-strip newspost/d" -i Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" LIBS="${LDFLAGS}" main +} + +src_install () { + dobin newspost + doman man/man1/newspost.1 + dodoc CHANGES README +} diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest new file mode 100644 index 000000000000..c3a11e073c05 --- /dev/null +++ b/net-nntp/nzbget/Manifest @@ -0,0 +1,15 @@ +AUX nzbget-14.0_pre1145-tinfo.patch 469 SHA256 76740e82b987fe9206fb44035aa69af41345089d2f8d33cfe1019b7940e4faae SHA512 b431fa3a620988fe69ff40f05f5c3ade970f2bf895cf0c6d3b8ac58b722627ee772e62a48270cab8243e043dcdac9ac2d2923579c73e24049db67fcdbbe65669 WHIRLPOOL 5f2ec9d9166edb6171d7c711801a29f9c3f61c13f6cf26e3b238ffb21a91a0cf86e8486bff04bc533c49389d7c25d6e8565da1124b6848df7168f835aeea2f47 +AUX nzbget.confd 337 SHA256 a2a305dc1ef482d82041c5261dba235f6faae229d894785f528d87c9c0e452b8 SHA512 0f9a0d62ac6ea35703ebd64ec68057596d63fd5957afa2d3bcd18b4e8db4b24e78d060dc36cf90dbd2f604b4c6f107fb8e59ff779b6865cd362e71a0666d6c56 WHIRLPOOL 220c7638c0f62f4cf4314e40b022c34c41a7124d6bf41bdf455948e2e862715413d62cc4750db63967b24f3cbf1b5d13cd3bcea4c016ee5611f5226a9f1bd750 +AUX nzbget.initd 764 SHA256 3788a716112ed8929feec56e7ee4116afca4e3edfbb961316d43d43c5dbbbf5e SHA512 731e3b2fe4bb9da9927dd15ce8f2358e391746917f3825009b58026a41beda0bb1827e6fb22a3637b7e7e3bee16ea470fef3b3d7f027d48631307f4f818006fc WHIRLPOOL 4f7bb1ff0121e3d1967a654e7e24187c32a817c93f47519a1339c70d168c20ccd9938c7885be05404b2b9ceebabaea3d979c52c9312ea88253bec248bc1d6322 +AUX nzbget.initd-r1 742 SHA256 8243c4b44d18a56d8158d8339d6a1069371c2b427ee39600e7de5ac5fc1156cf SHA512 df4965d25a221c033586da85596584a712bc5c5d9c2e0950850f96fa872f29a04571649e7add504d9fe8be3639654e5653a766a6accf4dea344ca771088b432a WHIRLPOOL f7130278050f957dbbffa3048b50d3d6cf55958f777967530dddfc304ea5ae110dc3c104f072a0cc94eaf92f0c69002da01957787a735709835d0aadf73a4047 +DIST nzbget-14.1.tar.gz 1332334 SHA256 a16b816b61f7035cc373e9b77094ca474d5b7b7f7ceff5fa8818249181db4b18 SHA512 fae938529bb3968c0161f63ec3af07f844a8128b61abf6298457a4878ac0d47541d76730c8a068509fa091b102de07c9d28dcd668a8192fcfac60980f69be56d WHIRLPOOL 9e9636b67d0af7780d2cc8f897465f5a2e23cd8695b3bd982e3e9f78d68adb34f84faf59253044c7b2f95db737cf59207b35cf312d1f1825fe4b9ecce2e4014f +DIST nzbget-19.1.tar.gz 1809849 SHA256 06df42356ac2d63bbc9f7861abe9c3216df56fa06802e09e8a50b05f4ad95ce6 SHA512 3ba7cd7f7fec28e29129be0a1ca5879a0593bc54be49e3776e84eeb7804377eec47106aa2371b31dec7d9152301d68b199ce9e66db714195defc8e15ef636532 WHIRLPOOL 157168fde3152a02d4f1d8b257998851b05b6c1dcb0a839868f0d85859ae9539ef6281035c44ccdbc981ec6f093f28f8333cc40c4871e4d7f415658a5599f5aa +DIST nzbget-20.0_pre2075.tar.gz 1817105 SHA256 0fcb83077c878db13e13590690a873d14c5ef62df777bb80ac9f105034388750 SHA512 d386b61dee32e3f30d580eba484f1431fb29ced31e63adc6135f88e603993502e3d93f2d36a3ce654492a014a51c07451361c1954c62e7ccc439d2a3fc48554f WHIRLPOOL e37b53aa596b094e3b2e783b365e4bc421d0a8b35bb8aaea5de201da55d3fd0b9c3c25122476313900ff02fa982b8a56261af0cd467a385bae7791c437ed5172 +DIST nzbget-20.0_pre2108.tar.gz 1820172 SHA256 6889079774f847334dbecf0c4e700eaab51bb61025df06c3a372947e85e0aee1 SHA512 4abdab3d45829eb5574d2cb6b532372ba0a9c62a701acdebe498b71466f7ac8c7b47aa85ed80c1132c10e86b829c48dd6df4826d20f542a7a935aaa958ba0222 WHIRLPOOL 723e3da5d6d16002539f792f3a4a78b8e3ba821839093b667470c2ae94e6b3c7ee62994a5ee8630eb7362825a04d4d16ae3100f149b8ba182cf6928fc214109c +EBUILD nzbget-14.1.ebuild 2575 SHA256 508be9c30d98e788e319108eb5c19a0cdaf92292244c07e2b0c984e11ecb4929 SHA512 a263b13e0884c4848a762d4bb739da5e8eae5b7dfac96feb5812fc4f81928d4e600d3cdb9dbf35c407dc81ed1dfa0ce1341bb595f488c4ece75c5feb967660d4 WHIRLPOOL f6601ba182c4774dde2094df62ae44cfa94adca58a7425107d37dee534963334d4e12713c737d2a0c19d41e25dacec8361001cba9fd9f968ed66880487127dd2 +EBUILD nzbget-19.1.ebuild 2992 SHA256 35fd39fcd7e1742d85360a298b6f796a5558d63c5e989fc9449cbf6d61c76bad SHA512 a8ad9f64f7520f2e2174124676cd6764ebfa063408e2c45861dbcf49919b5b1b028df4d9db2601a0399cf315637a0b297cac24f54befb878c7a78691e4f658a1 WHIRLPOOL b604ca5481b151e036a2effbe5e45773afe9f90d12445da80ef165d2c9ec81adb4d61bbeaeb15c59a5ab1891d4c81f896d163584c67f68ddcc405e6f84986830 +EBUILD nzbget-20.0_pre2075.ebuild 2992 SHA256 35fd39fcd7e1742d85360a298b6f796a5558d63c5e989fc9449cbf6d61c76bad SHA512 a8ad9f64f7520f2e2174124676cd6764ebfa063408e2c45861dbcf49919b5b1b028df4d9db2601a0399cf315637a0b297cac24f54befb878c7a78691e4f658a1 WHIRLPOOL b604ca5481b151e036a2effbe5e45773afe9f90d12445da80ef165d2c9ec81adb4d61bbeaeb15c59a5ab1891d4c81f896d163584c67f68ddcc405e6f84986830 +EBUILD nzbget-20.0_pre2108-r1.ebuild 2938 SHA256 405c7bff2fcbce3bb3089d6963dce9972f21ccfe3099c65cd4ee01541e2bd570 SHA512 617b7e19686ad09e3fd93457c764efef48bfeaeca048f5496885aac83cacdc82754748c5e11d9b3fb785e45c6b4375d78c2cd098189366ffe84eacd44a0d9cbb WHIRLPOOL d335df369d7b10bad72a9b28cb3363d338fc82d88209fa0d5fd3620e20a3754567ab0c60457a64c7d9a0f00e82fda6f3f5a82da74025ed9976b6c062b5e67776 +MISC ChangeLog 8446 SHA256 f62b61b41d42de0b4def3400945521f82f8fa9b0541e584054bf2f555e0303c6 SHA512 5d024a50de0f9bd590b0cadeb418d8cf5aa9bca80e61d67e1a527580cd4597a9c120d568265742723fb0f69430b76460937c99fe7e364970b17fcade3d294a21 WHIRLPOOL 28cd2da9f67d690c7c2aa2013556910cda3164391a54a9ffe37e1650849e3646a601994d1be7aedd19e65ec50842346eb2f16a7b3064c267e90b6f92c124dfbf +MISC ChangeLog-2015 14706 SHA256 15d07db9cc64825833ed79c7ba89033625004e7085af3572ea61697c4514ae31 SHA512 8ec273509759582f56d0adaa0c2ba046ecc50c11658e56a05afc8d63cb0eba30e2573435c245c67c901b52376107a632c7e508b9eaebc94e22cadc5575aa1caf WHIRLPOOL aae0c6bc74b61fa6415912c6828c2ac7bb4a84abef53dc2ad2928c36befb3442b19ede802fb9291cf3d5470398ec5d410e386d5caf512436d1db089ac69f38b1 +MISC metadata.xml 853 SHA256 f2eea21f51150e93ffaea82958e32bd2d20586a347457305a65795cfd52cc1a4 SHA512 c35eaebbf56d6809e91f62440fb3b4f09911d10a2798741647b063074c77aed9079a6a6d2355d229571d82eb5be9f65f21ce449547e7ea05183d583e9bcf1ae2 WHIRLPOOL a74a60f5d3b3549ace1619e0ff6503376d76716913a64014cf7c6a06d396f29d180d76c6cfcf64fd93edb0a7954c0dee097772efff032cf8390325ce7c4d313b diff --git a/net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch b/net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch new file mode 100644 index 000000000000..e6cd13f6ffc1 --- /dev/null +++ b/net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch @@ -0,0 +1,18 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -46,6 +46,7 @@ + AC_PATH_PROG(MAKE, make, $FALSE) + AC_PROG_INSTALL + ++PKG_PROG_PKG_CONFIG() + + dnl + dnl Do all tests with c++ compiler. +@@ -291,6 +292,7 @@ + if test "$FOUND" = "no"; then + AC_MSG_ERROR([Couldn't find curses headers (ncurses.h or curses.h)]) + fi ++ PKG_CHECK_MODULES(ncurses,ncurses,LIBS="$LIBS $ncurses_LIBS",) + AC_SEARCH_LIBS([refresh], [ncurses curses],, + AC_ERROR([Couldn't find curses library])) + else diff --git a/net-nntp/nzbget/files/nzbget.confd b/net-nntp/nzbget/files/nzbget.confd new file mode 100644 index 000000000000..ee8f38c1aefd --- /dev/null +++ b/net-nntp/nzbget/files/nzbget.confd @@ -0,0 +1,15 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# /etc/conf.d/nzbget +# Config file for nzbget init script + +# Which user to run nzbget as +NZBGET_USER="nzbget" +NZBGET_GROUP="nzbget" + +# Location of config file +NZBGET_CONFIGFILE="/etc/nzbgetd.conf" + +# Other options +NZBGET_OPTS="" diff --git a/net-nntp/nzbget/files/nzbget.initd b/net-nntp/nzbget/files/nzbget.initd new file mode 100644 index 000000000000..06f75596e438 --- /dev/null +++ b/net-nntp/nzbget/files/nzbget.initd @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +start() { + ebegin "Starting ${RC_SVCNAME}" + checkpath -d -m 0755 -o "${NZBGET_USER}":"${NZBGET_GROUP}" /run/nzbget + start-stop-daemon --quiet --start --user "${NZBGET_USER}" \ + --group "${NZBGET_GROUP}" --exec /usr/bin/nzbget -- \ + --configfile "${NZBGET_CONFIGFILE}" --daemon \ + ${NZBGET_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${RC_SVCNAME}" + start-stop-daemon --stop --exec /usr/bin/nzbget -- \ + --configfile "${NZBGET_CONFIGFILE}" --daemon \ + ${NZBGET_OPTS} +} + +reload() { + ebegin "Reloading ${RC_SVCNAME}" + /usr/bin/nzbget --configfile "${NZBGET_CONFIGFILE}" --reload >/dev/null + eend $? +} diff --git a/net-nntp/nzbget/files/nzbget.initd-r1 b/net-nntp/nzbget/files/nzbget.initd-r1 new file mode 100644 index 000000000000..2a9fae6c32b4 --- /dev/null +++ b/net-nntp/nzbget/files/nzbget.initd-r1 @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +description="A command-line based binary newsgrabber supporting .nzb files" +pidfile=/run/nzbget/nzbget.pid +command=/usr/bin/nzbget +command_args="--configfile \"${NZBGET_CONFIGFILE}\" \ + --daemon --option LockFile=${pidfile} \ + ${NZBGET_OPTS}" +start_stop_daemon_args="--user \"${NZBGET_USER}\" \ + --group \"${NZBGET_GROUP}\"" + +depend() { + need localmount net +} + +start_pre() { + checkpath -d -m 0755 -o "${NZBGET_USER}":"${NZBGET_GROUP}" /run/nzbget +} + +reload() { + ebegin "Reloading ${RC_SVCNAME}" + ${command} --configfile "${NZBGET_CONFIGFILE}" --reload >/dev/null + eend $? +} diff --git a/net-nntp/nzbget/metadata.xml b/net-nntp/nzbget/metadata.xml new file mode 100644 index 000000000000..b60b9c998c71 --- /dev/null +++ b/net-nntp/nzbget/metadata.xml @@ -0,0 +1,25 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>swegener@gentoo.org</email> + <name>Sven Wegener</name> + </maintainer> + <maintainer type="person"> + <email>sautier.louis@gmail.com</email> + <name>Louis Sautier</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription>A command-line based binary newsgrabber supporting .nzb files.</longdescription> + <use> + <flag name="parcheck">Enable support for checking PAR archives</flag> + </use> + <upstream> + <remote-id type="github">nzbget/nzbget</remote-id> + <bugs-to>https://github.com/nzbget/nzbget/issues</bugs-to> + <remote-id type="sourceforge">nzbget</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-nntp/nzbget/nzbget-14.1.ebuild b/net-nntp/nzbget/nzbget-14.1.ebuild new file mode 100644 index 000000000000..11b50ac963d3 --- /dev/null +++ b/net-nntp/nzbget/nzbget-14.1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils user + +MY_P=${P/_pre/-testing-r} + +DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files" +HOMEPAGE="http://nzbget.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="debug gnutls ncurses parcheck ssl zlib" + +RDEPEND="dev-libs/libxml2 + ncurses? ( sys-libs/ncurses ) + parcheck? ( + app-arch/libpar2 + dev-libs/libsigc++:2 + ) + ssl? ( + gnutls? ( net-libs/gnutls ) + !gnutls? ( dev-libs/openssl ) + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS ChangeLog README nzbget.conf ) + +S=${WORKDIR}/${P/_pre*/-testing} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-14.0_pre1145-tinfo.patch + + sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die + + sed \ + -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \ + -e 's:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \ + -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \ + -e 's:^WebDir=.*:WebDir=/usr/share/nzbget/webui:' \ + -e 's:^ConfigTemplate=.*:ConfigTemplate=/usr/share/nzbget/nzbget.conf:' \ + -e 's:^DaemonUsername=.*:DaemonUsername=nzbget:' \ + "${S}"/nzbget.conf > "${S}"/nzbgetd.conf || die + + sed -i "/^dist_doc_DATA/d" Makefile.am || die + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable ncurses curses) \ + $(use_enable parcheck) \ + $(use_enable ssl tls) \ + $(use_enable zlib gzip) \ + --with-tlslib=$(usex gnutls GnuTLS OpenSSL) +} + +src_install() { + default + + # remove unneeded service script + rm "${D}"/usr/sbin/nzbgetd || die + + insinto /etc + doins nzbget.conf + doins nzbgetd.conf + + keepdir /var/lib/nzbget/{dst,nzb,queue,tmp} + keepdir /var/log/nzbget + + newinitd "${FILESDIR}"/nzbget.initd nzbget + newconfd "${FILESDIR}"/nzbget.confd nzbget +} + +pkg_preinst() { + enewgroup nzbget + enewuser nzbget -1 -1 /var/lib/nzbget nzbget + + fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp} + fperms 750 /var/lib/nzbget/{queue,tmp} + fperms 770 /var/lib/nzbget/{dst,nzb} + + fowners nzbget:nzbget /var/log/nzbget + fperms 750 /var/log/nzbget + + fowners nzbget:nzbget /etc/nzbgetd.conf + fperms 640 /etc/nzbgetd.conf +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog + elog "Please add users that you want to be able to use the system-wide" + elog "nzbget daemon to the nzbget group. To access the daemon run nzbget" + elog "with the --configfile /etc/nzbgetd.conf option." + elog + fi +} diff --git a/net-nntp/nzbget/nzbget-19.1.ebuild b/net-nntp/nzbget/nzbget-19.1.ebuild new file mode 100644 index 000000000000..c6d86f04383d --- /dev/null +++ b/net-nntp/nzbget/nzbget-19.1.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic user + +MY_PV=${PV/_pre/-r} +MY_P=${PN}-${PV/_pre/-testing-r} + +DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files" +HOMEPAGE="https://nzbget.net/" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}-src.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="debug gnutls ncurses parcheck ssl test zlib" + +RDEPEND="dev-libs/libxml2 + ncurses? ( sys-libs/ncurses:0= ) + ssl? ( + gnutls? ( + net-libs/gnutls:= + dev-libs/nettle:= + ) + !gnutls? ( dev-libs/openssl:0= ) + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + virtual/pkgconfig" +DOCS=( ChangeLog README nzbget.conf ) + +S=${WORKDIR}/${PN}-${PV/_pre*/-testing} + +check_compiler() { + if [[ ${MERGE_TYPE} != binary ]] && ! test-flag-CXX -std=c++14; then + eerror "${P} requires a C++14-capable compiler. Your current compiler" + eerror "does not seem to support the -std=c++14 option. Please" + eerror "upgrade to gcc-4.9 or an equivalent version supporting C++14." + die "The currently active compiler does not support -std=c++14" + fi +} + +pkg_pretend() { + check_compiler +} + +pkg_setup() { + check_compiler +} + +src_prepare() { + default + eautoreconf + + sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die + + sed \ + -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \ + -e 's:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \ + -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \ + -e 's:^WebDir=.*:WebDir=/usr/share/nzbget/webui:' \ + -e 's:^ConfigTemplate=.*:ConfigTemplate=/usr/share/nzbget/nzbget.conf:' \ + -e 's:^DaemonUsername=.*:DaemonUsername=nzbget:' \ + nzbget.conf > nzbgetd.conf || die +} + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable ncurses curses) \ + $(use_enable parcheck) \ + $(use_enable ssl tls) \ + $(use_enable zlib gzip) \ + $(use_enable test tests) \ + --with-tlslib=$(usex gnutls GnuTLS OpenSSL) +} + +src_test() { + ./nzbget --tests || die "Tests failed" +} + +src_install() { + default + + insinto /etc + doins nzbget.conf + doins nzbgetd.conf + + keepdir /var/lib/nzbget/{dst,nzb,queue,tmp} + keepdir /var/log/nzbget + + newinitd "${FILESDIR}"/nzbget.initd nzbget + newconfd "${FILESDIR}"/nzbget.confd nzbget +} + +pkg_preinst() { + enewgroup nzbget + enewuser nzbget -1 -1 /var/lib/nzbget nzbget + + fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp} + fperms 750 /var/lib/nzbget/{queue,tmp} + fperms 770 /var/lib/nzbget/{dst,nzb} + + fowners nzbget:nzbget /var/log/nzbget + fperms 750 /var/log/nzbget + + fowners nzbget:nzbget /etc/nzbgetd.conf + fperms 640 /etc/nzbgetd.conf +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog + elog "Please add users that you want to be able to use the system-wide" + elog "nzbget daemon to the nzbget group. To access the daemon run nzbget" + elog "with the --configfile /etc/nzbgetd.conf option." + elog + fi +} diff --git a/net-nntp/nzbget/nzbget-20.0_pre2075.ebuild b/net-nntp/nzbget/nzbget-20.0_pre2075.ebuild new file mode 100644 index 000000000000..c6d86f04383d --- /dev/null +++ b/net-nntp/nzbget/nzbget-20.0_pre2075.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic user + +MY_PV=${PV/_pre/-r} +MY_P=${PN}-${PV/_pre/-testing-r} + +DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files" +HOMEPAGE="https://nzbget.net/" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}-src.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="debug gnutls ncurses parcheck ssl test zlib" + +RDEPEND="dev-libs/libxml2 + ncurses? ( sys-libs/ncurses:0= ) + ssl? ( + gnutls? ( + net-libs/gnutls:= + dev-libs/nettle:= + ) + !gnutls? ( dev-libs/openssl:0= ) + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + virtual/pkgconfig" +DOCS=( ChangeLog README nzbget.conf ) + +S=${WORKDIR}/${PN}-${PV/_pre*/-testing} + +check_compiler() { + if [[ ${MERGE_TYPE} != binary ]] && ! test-flag-CXX -std=c++14; then + eerror "${P} requires a C++14-capable compiler. Your current compiler" + eerror "does not seem to support the -std=c++14 option. Please" + eerror "upgrade to gcc-4.9 or an equivalent version supporting C++14." + die "The currently active compiler does not support -std=c++14" + fi +} + +pkg_pretend() { + check_compiler +} + +pkg_setup() { + check_compiler +} + +src_prepare() { + default + eautoreconf + + sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die + + sed \ + -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \ + -e 's:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \ + -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \ + -e 's:^WebDir=.*:WebDir=/usr/share/nzbget/webui:' \ + -e 's:^ConfigTemplate=.*:ConfigTemplate=/usr/share/nzbget/nzbget.conf:' \ + -e 's:^DaemonUsername=.*:DaemonUsername=nzbget:' \ + nzbget.conf > nzbgetd.conf || die +} + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable ncurses curses) \ + $(use_enable parcheck) \ + $(use_enable ssl tls) \ + $(use_enable zlib gzip) \ + $(use_enable test tests) \ + --with-tlslib=$(usex gnutls GnuTLS OpenSSL) +} + +src_test() { + ./nzbget --tests || die "Tests failed" +} + +src_install() { + default + + insinto /etc + doins nzbget.conf + doins nzbgetd.conf + + keepdir /var/lib/nzbget/{dst,nzb,queue,tmp} + keepdir /var/log/nzbget + + newinitd "${FILESDIR}"/nzbget.initd nzbget + newconfd "${FILESDIR}"/nzbget.confd nzbget +} + +pkg_preinst() { + enewgroup nzbget + enewuser nzbget -1 -1 /var/lib/nzbget nzbget + + fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp} + fperms 750 /var/lib/nzbget/{queue,tmp} + fperms 770 /var/lib/nzbget/{dst,nzb} + + fowners nzbget:nzbget /var/log/nzbget + fperms 750 /var/log/nzbget + + fowners nzbget:nzbget /etc/nzbgetd.conf + fperms 640 /etc/nzbgetd.conf +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog + elog "Please add users that you want to be able to use the system-wide" + elog "nzbget daemon to the nzbget group. To access the daemon run nzbget" + elog "with the --configfile /etc/nzbgetd.conf option." + elog + fi +} diff --git a/net-nntp/nzbget/nzbget-20.0_pre2108-r1.ebuild b/net-nntp/nzbget/nzbget-20.0_pre2108-r1.ebuild new file mode 100644 index 000000000000..3e119a13d9e8 --- /dev/null +++ b/net-nntp/nzbget/nzbget-20.0_pre2108-r1.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic user + +MY_PV=${PV/_pre/-r} +MY_P=${PN}-${PV/_pre/-testing-r} + +DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files" +HOMEPAGE="https://nzbget.net/" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}-src.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="debug gnutls ncurses parcheck ssl test zlib" + +RDEPEND="dev-libs/libxml2 + ncurses? ( sys-libs/ncurses:0= ) + ssl? ( + gnutls? ( + net-libs/gnutls:= + dev-libs/nettle:= + ) + !gnutls? ( dev-libs/openssl:0= ) + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + virtual/pkgconfig" +DOCS=( ChangeLog README nzbget.conf ) + +S=${WORKDIR}/${PN}-${PV/_pre*/-testing} + +check_compiler() { + if [[ ${MERGE_TYPE} != binary ]] && ! test-flag-CXX -std=c++14; then + eerror "${P} requires a C++14-capable compiler. Your current compiler" + eerror "does not seem to support the -std=c++14 option. Please" + eerror "upgrade to gcc-4.9 or an equivalent version supporting C++14." + die "The currently active compiler does not support -std=c++14" + fi +} + +pkg_pretend() { + check_compiler +} + +pkg_setup() { + check_compiler +} + +src_prepare() { + default + eautoreconf + + sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die + + sed \ + -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \ + -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \ + -e 's:^WebDir=.*:WebDir=/usr/share/nzbget/webui:' \ + -e 's:^ConfigTemplate=.*:ConfigTemplate=/usr/share/nzbget/nzbget.conf:' \ + -e 's:^DaemonUsername=.*:DaemonUsername=nzbget:' \ + nzbget.conf > nzbgetd.conf || die +} + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable ncurses curses) \ + $(use_enable parcheck) \ + $(use_enable ssl tls) \ + $(use_enable zlib gzip) \ + $(use_enable test tests) \ + --with-tlslib=$(usex gnutls GnuTLS OpenSSL) +} + +src_test() { + ./nzbget --tests || die "Tests failed" +} + +src_install() { + default + + insinto /etc + doins nzbget.conf + doins nzbgetd.conf + + keepdir /var/lib/nzbget/{dst,nzb,queue,tmp} + keepdir /var/log/nzbget + + newinitd "${FILESDIR}"/nzbget.initd-r1 nzbget + newconfd "${FILESDIR}"/nzbget.confd nzbget +} + +pkg_preinst() { + enewgroup nzbget + enewuser nzbget -1 -1 /var/lib/nzbget nzbget + + fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp} + fperms 750 /var/lib/nzbget/{queue,tmp} + fperms 770 /var/lib/nzbget/{dst,nzb} + + fowners nzbget:nzbget /var/log/nzbget + fperms 750 /var/log/nzbget + + fowners nzbget:nzbget /etc/nzbgetd.conf + fperms 640 /etc/nzbgetd.conf +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog + elog "Please add users that you want to be able to use the system-wide" + elog "nzbget daemon to the nzbget group. To access the daemon run nzbget" + elog "with the --configfile /etc/nzbgetd.conf option." + elog + fi +} diff --git a/net-nntp/pan/Manifest b/net-nntp/pan/Manifest new file mode 100644 index 000000000000..532d96d8d79a --- /dev/null +++ b/net-nntp/pan/Manifest @@ -0,0 +1,9 @@ +DIST pan-0.140.tar.bz2 1563454 SHA256 ba1c65ee75b9eca1f15f6249ea762492309731446edc8b09085b63ad34351c71 SHA512 25936862ec566aa697ce99455320be7e28a341fa9c1ffe3b156d69f242e54e4cf5c454286f59b703aab9aebb0938f3923363a44b36228b4e99fe16e0a0724c9e WHIRLPOOL 3ade64d51148b6adac0c882424ad0b168bed79bcfb38fe2ab51fc9a3c238ac4f2acb2f23ccf64a462566652d7aa71715eb08d85eae11e2685fafb9a48a91e949 +DIST pan-0.141.tar.bz2 1589991 SHA256 ffa63cd078afa18496be86a76db9370eb0ccdab5ae1f2f74ef5adc7753d11aa3 SHA512 35071386ff0ee44a7bb650674c81b7ebba4cc0f22915b67a42e415a68284154ef24e38493f09601b7dec2fe054305ce3433c054cd2f3f557c259b0911c265496 WHIRLPOOL 4dec71a6e7153f0139de503c708e397e521e78bb9700b2450b85a7b46c064c67ce7f5a859059930bf9e88f78694d840d2f642371525fe19d55ddda6cf8325068 +DIST pan-0.142.tar.bz2 2302780 SHA256 12d776e981a32123a18f02424173910ab3bf5856ead416ea33b83d927ab42f93 SHA512 285e140c2d24297bbe14d6bcd995fa0e736c21ae541348a726988d4d42cd92e563671eb607aefb54d12b2afdba311b9b55f88d5a7c61e782503ab894f85fd06a WHIRLPOOL 55c11b46942d5f373f0e654fc0a42463549cf6fb27f88941efefcbd0ca71a5074de55ef2ff33604822d7423d64e407048a526b7712dccddb3dad981e54983977 +EBUILD pan-0.140.ebuild 1160 SHA256 24e3142d6424da92b84098f9b43c116bdb157306b4477a950e58a1bd8c5fde7a SHA512 0518a1d8c5f8283f69b20cdb6b68de0a19bc6a91e878568393b875e54b177cb41536df0ec2d80d9bc991dca3d76b9727e49aa1097f4cc94974ce83de9fa34a58 WHIRLPOOL 78c3ce64b74ee03578cb9abe4274f8b7faf46c2de466e8c31fd1aee9d6ef1f0841b3e2268cc08e3fddd79acab23b913ae1aab1173982eb387761e32bff609889 +EBUILD pan-0.141.ebuild 1153 SHA256 1e5b9d2d3d50c80eae90bcac28fea086863f38801ab00246a8801e5bcb3006aa SHA512 f92167b8f3b8341fa25f877b3fb4711bfea4a1de29e17ad39a83a1fa32bf3c3aa6409fb3da8f616db4114dd7bab5f15879bba1b20c7c1ad00743ad2853277229 WHIRLPOOL 5c7d8da6e6ec4408036003bf7766c37b2a7e27a4c606ab74983090651cfaf80495bfcfc1cd9268820953bfc1a56a9cd3925c873938e09f5430feb20ae87edc1e +EBUILD pan-0.142.ebuild 1154 SHA256 56e9c5e3333e3c37b21c25e445bfa82c53a1123e364bdf5a5533579b1c040816 SHA512 ce0eb466d3998fb32890e0edde84bb169a65d134ebcd414826ae89f0ceee122f33ccea5f489432f319f92235cb141d0605d588ba49dbf16880ba25d0da34e065 WHIRLPOOL 0ac9b2b133762facaab1f5101493b2addde25b3c19d3d679eba607451f677b1d8cc96665f51f31c061ddd282e98663a30c885fce3b3db70f05d9d003c9be5a52 +MISC ChangeLog 4776 SHA256 26d014cd52b546d8b7bacf331368572de9a7b2e0f815e71a06223ab740fd0418 SHA512 2dd1370905be2f492a211af18a72d3b15f8f1de947acb4c375e91d9f7aef6d2bbbad8d3368a62cf54114edb17821e39f8f8afb4ef134bf49ba56b90d9e6f6755 WHIRLPOOL f9ffd5052a28fae41f12a28b9f6bfa2d5026518eea009b8432670f2e69ba9a8297588c4532baa6beb5c26c75b8adeca90121ddd33e8e975b83ad9449409c9644 +MISC ChangeLog-2015 20903 SHA256 eb9917fdaa4488c34c7b3da86fba88d9cd62d3863c4cfe561e1d03911ba9dbf6 SHA512 f7252a4358190d3b8c0fb38a1822617264967b6d41f111bc469b8e53ecf47b41e23a85213c13dcf9df5887611add19a1e0a363c85e72ce468d41a89b6072d1b5 WHIRLPOOL e4cb0c8184e8e8905843fbc8bd37581f9b9088a55f8eb26b868b0e7617c3a32d665a18ab28ec2572466b4f99551c0230f74795652e548eb7d3c7004339c1587a +MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92 diff --git a/net-nntp/pan/metadata.xml b/net-nntp/pan/metadata.xml new file mode 100644 index 000000000000..39980802b1da --- /dev/null +++ b/net-nntp/pan/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>gnome@gentoo.org</email> + <name>Gentoo GNOME Desktop</name> +</maintainer> +</pkgmetadata> diff --git a/net-nntp/pan/pan-0.140.ebuild b/net-nntp/pan/pan-0.140.ebuild new file mode 100644 index 000000000000..5de3023cd2b6 --- /dev/null +++ b/net-nntp/pan/pan-0.140.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils gnome2 + +DESCRIPTION="A newsreader for GNOME" +HOMEPAGE="http://pan.rebelbase.com/" +SRC_URI="http://pan.rebelbase.com/download/releases/${PV}/source/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 hppa ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" +IUSE="dbus gnome-keyring libnotify spell ssl" + +RDEPEND=" + >=dev-libs/glib-2.26:2 + dev-libs/gmime:2.6 + >=sys-libs/zlib-1.2.0 + >=x11-libs/gtk+-2.16:2 + gnome-keyring? ( >=gnome-base/libgnome-keyring-3.2 ) + libnotify? ( >=x11-libs/libnotify-0.4.1:0= ) + spell? ( + >=app-text/enchant-1.6 + >=app-text/gtkspell-2.0.7:2 ) + ssl? ( >=net-libs/gnutls-3:0= ) +" +DEPEND="${RDEPEND} + app-text/gnome-doc-utils + >=dev-util/intltool-0.35.5 + sys-devel/gettext + virtual/pkgconfig +" + +src_configure() { + # Wait for webkitgtk4 support + # gtk3 support is still not ready (follow what Fedora does) + gnome2_src_configure \ + --without-gtk3 \ + --without-webkit \ + $(use_with dbus) \ + $(use_enable gnome-keyring gkr) \ + $(use_with spell gtkspell) \ + $(use_enable libnotify) \ + $(use_with ssl gnutls) +} diff --git a/net-nntp/pan/pan-0.141.ebuild b/net-nntp/pan/pan-0.141.ebuild new file mode 100644 index 000000000000..24fecea1379b --- /dev/null +++ b/net-nntp/pan/pan-0.141.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit gnome2 + +DESCRIPTION="A newsreader for GNOME" +HOMEPAGE="http://pan.rebelbase.com/" +SRC_URI="http://pan.rebelbase.com/download/releases/${PV}/source/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 hppa ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" +IUSE="dbus gnome-keyring libnotify spell ssl" + +RDEPEND=" + >=dev-libs/glib-2.26:2 + dev-libs/gmime:2.6 + >=sys-libs/zlib-1.2.0 + >=x11-libs/gtk+-2.16:2 + gnome-keyring? ( >=gnome-base/libgnome-keyring-3.2 ) + libnotify? ( >=x11-libs/libnotify-0.4.1:0= ) + spell? ( + >=app-text/enchant-1.6 + >=app-text/gtkspell-2.0.7:2 ) + ssl? ( >=net-libs/gnutls-3:0= ) +" +DEPEND="${RDEPEND} + app-text/gnome-doc-utils + >=dev-util/intltool-0.35.5 + sys-devel/gettext + virtual/pkgconfig +" + +src_configure() { + # Wait for webkitgtk4 support + # gtk3 support is still not ready (follow what Fedora does) + gnome2_src_configure \ + --without-gtk3 \ + --without-webkit \ + $(use_with dbus) \ + $(use_enable gnome-keyring gkr) \ + $(use_with spell gtkspell) \ + $(use_enable libnotify) \ + $(use_with ssl gnutls) +} diff --git a/net-nntp/pan/pan-0.142.ebuild b/net-nntp/pan/pan-0.142.ebuild new file mode 100644 index 000000000000..9b805081e191 --- /dev/null +++ b/net-nntp/pan/pan-0.142.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit gnome2 + +DESCRIPTION="A newsreader for GNOME" +HOMEPAGE="http://pan.rebelbase.com/" +SRC_URI="http://pan.rebelbase.com/download/releases/${PV}/source/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="dbus gnome-keyring libnotify spell ssl" + +RDEPEND=" + >=dev-libs/glib-2.26:2 + dev-libs/gmime:2.6 + >=sys-libs/zlib-1.2.0 + >=x11-libs/gtk+-2.16:2 + gnome-keyring? ( >=gnome-base/libgnome-keyring-3.2 ) + libnotify? ( >=x11-libs/libnotify-0.4.1:0= ) + spell? ( + >=app-text/enchant-1.6 + >=app-text/gtkspell-2.0.7:2 ) + ssl? ( >=net-libs/gnutls-3:0= ) +" +DEPEND="${RDEPEND} + app-text/yelp-tools + >=sys-devel/gettext-0.19.7 + virtual/pkgconfig +" + +src_configure() { + # Wait for webkitgtk4 support + # gtk3 support is still not ready (follow what Fedora does) + gnome2_src_configure \ + --with-yelp-tools \ + --without-gtk3 \ + --without-webkit \ + $(use_with dbus) \ + $(use_enable gnome-keyring gkr) \ + $(use_with spell gtkspell) \ + $(use_enable libnotify) \ + $(use_with ssl gnutls) +} diff --git a/net-nntp/sabnzbd/Manifest b/net-nntp/sabnzbd/Manifest new file mode 100644 index 000000000000..29c59d035463 --- /dev/null +++ b/net-nntp/sabnzbd/Manifest @@ -0,0 +1,12 @@ +AUX patches/0001-use-system-configobj.patch 784 SHA256 64475b8a839421ac30cb02b8e8ac229e757701cedc640e19c0888b5daaeb4c2e SHA512 3d657a62da5f53eb26bbffe47ddf8c36026f1f6536bfae6c8278ec84f27e1672e058a87bc77e65e1ab40deb8b7c3ee7a72dbcc9035d62af71d7e0642dd7f6542 WHIRLPOOL 99fe7dd77fa2c75b54c6e87829ee96b22cac14c8502b866e208dee14e416c386047a3757d63ce0dc1bbf0967e4efbe04e7738ffee1b885de4eb520bed608456f +AUX patches/0002-use-system-feedparser.patch 929 SHA256 a9db847f81a391e84a3e1880a638e91fe60812811e7859187d0e522a788b3215 SHA512 2a58fc9c21e81c0b18f30bf94ba75777724ec8d0a9d54fddc591f1517c7f92f5b2d3d6726c90ee545f94242fef48020b81ce6291c15f9e8eecc7095f388701db WHIRLPOOL 8a018fc8ce654cfdf2ab610adb35ca7ffc827fe20f0315f7bfde89692c68d19a6757731d4c87bc3960cea2535f19a0813563c8e44fc862df1267565ce2a7768f +AUX patches/0003-cfg-disable-NtfOSD-by-default.patch 962 SHA256 6e6fe1b58e3740f62e8b4713e83df674e5d7e8bc547f4b2da19788e88d53115e SHA512 48f157d0c31465424e7951f933bb2f4089c1abce185df8146cb5292a0be636b9e31c2f761aced09666bf12c907a7a33cea2fa4e5ac0853f55f0de9a0e2751fbf WHIRLPOOL 5b2228fd46dac29bd534aba02fffdd966634fb5be692e612d7e7b339147e0c81e6f1aa9def9c3dcb22b373979671d1bcf9e7d9013f92d8ddb2115baaa21b1726 +AUX sabnzbd.confd 156 SHA256 1200b1e7a6b58f63e34c0526a0cbd981a142484074cf2e2e6b52afb7990018dd SHA512 91915b54b6e2c2dc7839c23726aba7982b158b20a813ad0f66fa879d2454db14e24472e57e076b41866b28c7cd3991f9961c114b17dfc7e37322b23aa1e6c468 WHIRLPOOL b25c71e8c210185f45df59af3d6cfc5f059c99b8d2db9e96891f6d790c68666cb5210723fa7d65d9799b59a859be2e8c22d69f35cd52dc2aedae991dc7cb533d +AUX sabnzbd.ini 347 SHA256 3275fae0b32d4d3c09225f4bed11a495acb88d51470807187f0e7d9f3f853d3d SHA512 14df57a0594a671a275e6e5b4f6a704ce2be01507c518f46162d096870da7b04fb636c4e8aedfdb07d3290934941707eda94180e290bdf7eef561b5641497df4 WHIRLPOOL 067fd44e1870567bbad3dfbba4262160c581212bb0c86bb4abd010daa5094bd64c3d1caa558b3e5ad6aa548b47da73e948883d8fabfc11c74f551fb9db07c914 +AUX sabnzbd.initd 1395 SHA256 d6b773de2e2e43c6bf1bfa455aebcdf1e04dd27dd3dd05554b76e1d4d84bbbee SHA512 0510dc7386ae57493bf614d9b74614f0c2b160981c0f7e5f784a9a336167de7918112ff1a173e3535edd654567ca806b156ee6db819e139dcfea3990bc8252d8 WHIRLPOOL 7f3f6dacd65a1c0ad38ff8e88eb912d8308f351e49f622efe794b38c92257d4d89cfcdfaba867a330ede41f72ae173579e3b01535394876725559ddcdcb30095 +AUX sabnzbd_at.service 175 SHA256 f05d6ac93f02fa86e88e6fdbec161d6f5425522ddc70616cacb66a3180bad43d SHA512 b2a913f322c0aae74e445ef420486ad6b4e41a85fc75d7d1a5dffab006dccae7c5b87abfd8a35ba8460a691acf69d50a9337e1ac74d549304e3683ac12c19fd4 WHIRLPOOL ac4c542254d74b6e924fa26b49b27626e77107f293bbb804f9093f0206acf147b993aa5cc20245c886ddf84020652c34f3355c955090efa0e67656dcd5ecb828 +DIST SABnzbd-2.3.0-src.tar.gz 2731445 SHA256 8c89902330531fddd6349271fd410a1e92e2a18905a15c7493aac0378e86e32b SHA512 e649434314eb38e3b4c9a693f665548b6f92c6e1044359085411b983af407b1654fb49e93216c1b12256a2ecfad831e316205bc090afa7d908b93df99b095382 WHIRLPOOL ccaac7072bd604498cd88d4a54556433a405dd2aa84dde8c167aeaf4e279afea16663a0178ecca8c8236424931c477340d61e43be6774a6f14f4a86720a2f56b +EBUILD sabnzbd-2.3.0.ebuild 4059 SHA256 65bed2bd4370a1f5fe361e473e13682a656d520bbd62919d064c62e45a59044f SHA512 7a7f26c395418a8524df1ecb74bbe6b13ec89f4060a526496284dae8e10f85f61a526eeb001e5c700bc5f3dcc7b47d1200d61a3351637f4cacdbb126548ed43b WHIRLPOOL 4174138e04ea001b9dbef46418e97bb0bca1e6bc595c76e1a1cce8d7d932038f69ba07f74d4fc58b0257f33c9abcd80ea612ac88593fbb01826514a390d64893 +MISC ChangeLog 7574 SHA256 ef8acef5c44f3344da29006bbab26980a63ee2fd7b99f8b12a3628476b47bbdd SHA512 fff27b6789303c4890cea1dffdf5042a6f3733f1f7f7318194ace18b74446e3667412cf98b11aac6f0e995f134d439b70c1f03b4ae7845e2484ed1dab69d3195 WHIRLPOOL 7208bc89133af3deff241827adfe7a4a527c0dd71095e547a781768cd18f618317681257c9d129083d1f97d97bc090b4c5424926b1bc87f4e4f85f9ff92383b6 +MISC ChangeLog-2015 4644 SHA256 2fb2921444583981995f4b692908c6e15c2f52890ea8e68d27a324d91de008e6 SHA512 215b33cfe0e23146e2ee9ea88ee0570d75430ca70f29611fddab8b3d9739dca6e1662b044bde23ba2b748b5d09fea5e13012db2ee35fe6d6523659eb5a97e202 WHIRLPOOL 7d95cc2d97dba49e4dda61a7a01bf508ac01ed17c8fef3a58ca77a6dbe446e0acea7e996e9c0e37ba3d93e6f79801d8d479d855189a2c125a4e46ab1a22e7519 +MISC metadata.xml 506 SHA256 b8b4b016fa9e3279822d6281a3f3ed7b46798dce79c6b92667f940e1e19e9685 SHA512 13c60fc2a77328dd1d8ae3d2036a84b72dc98a88093aad9a326fd904b41c795dcce84aec5dc528bc81daabba0341f10a7dda2d01788f70310bbaf801da831f53 WHIRLPOOL 4732c40ef33029ed913f78b87fb64b6fec6271f3d0d2917b2db6cf5a51f09497f5fd46b89ba104ea2863b2e875af6ff21e56179f7ce7c8da8adeb97b0e804a34 diff --git a/net-nntp/sabnzbd/files/patches/0001-use-system-configobj.patch b/net-nntp/sabnzbd/files/patches/0001-use-system-configobj.patch new file mode 100644 index 000000000000..0f89dcd13414 --- /dev/null +++ b/net-nntp/sabnzbd/files/patches/0001-use-system-configobj.patch @@ -0,0 +1,28 @@ +From db9a217dd5a02b5be72d47b7618f877f39cb31bc Mon Sep 17 00:00:00 2001 +From: Justin Bronder <jsbronder@gmail.com> +Date: Mon, 13 Feb 2017 18:20:39 -0500 +Subject: [PATCH 1/3] use system configobj + +--- + sabnzbd/config.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/sabnzbd/config.py b/sabnzbd/config.py +index 2f58ffd..04bfaab 100644 +--- a/sabnzbd/config.py ++++ b/sabnzbd/config.py +@@ -30,9 +30,10 @@ from hashlib import md5 + from urlparse import urlparse + import sabnzbd.misc + from sabnzbd.constants import CONFIG_VERSION, NORMAL_PRIORITY, DEFAULT_PRIORITY, MAX_WIN_DFOLDER +-from sabnzbd.utils import configobj + from sabnzbd.decorators import synchronized + ++import configobj ++ + CONFIG_LOCK = threading.Lock() + SAVE_CONFIG_LOCK = threading.Lock() + +-- +2.13.0 + diff --git a/net-nntp/sabnzbd/files/patches/0002-use-system-feedparser.patch b/net-nntp/sabnzbd/files/patches/0002-use-system-feedparser.patch new file mode 100644 index 000000000000..68e39a975e7e --- /dev/null +++ b/net-nntp/sabnzbd/files/patches/0002-use-system-feedparser.patch @@ -0,0 +1,34 @@ +From b8540c4c71e917623290f3ca8d4091228fab8903 Mon Sep 17 00:00:00 2001 +From: Justin Bronder <jsbronder@gmail.com> +Date: Mon, 13 Feb 2017 18:21:28 -0500 +Subject: [PATCH 2/3] use system feedparser + +--- + sabnzbd/rss.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/sabnzbd/rss.py b/sabnzbd/rss.py +index 0315fca..18ac828 100644 +--- a/sabnzbd/rss.py ++++ b/sabnzbd/rss.py +@@ -25,6 +25,8 @@ import time + import datetime + import threading + ++import feedparser ++ + import sabnzbd + from sabnzbd.constants import RSS_FILE_NAME, DEFAULT_PRIORITY, NORMAL_PRIORITY, DUP_PRIORITY + from sabnzbd.decorators import synchronized +@@ -35,8 +37,6 @@ from sabnzbd.misc import cat_convert, wildcard_to_re, cat_to_opts, \ + 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.13.0 + diff --git a/net-nntp/sabnzbd/files/patches/0003-cfg-disable-NtfOSD-by-default.patch b/net-nntp/sabnzbd/files/patches/0003-cfg-disable-NtfOSD-by-default.patch new file mode 100644 index 000000000000..064d523a1e1e --- /dev/null +++ b/net-nntp/sabnzbd/files/patches/0003-cfg-disable-NtfOSD-by-default.patch @@ -0,0 +1,25 @@ +From 459111cb4f6937d58de480cf06743474f5c1dd3d Mon Sep 17 00:00:00 2001 +From: Justin Bronder <jsbronder@gmail.com> +Date: Sat, 5 Aug 2017 17:38:03 -0400 +Subject: [PATCH 3/3] cfg: disable NtfOSD by default + +--- + sabnzbd/cfg.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sabnzbd/cfg.py b/sabnzbd/cfg.py +index d8867db..59a341c 100644 +--- a/sabnzbd/cfg.py ++++ b/sabnzbd/cfg.py +@@ -322,7 +322,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_cats = OptionList('ntfosd', 'ntfosd_cats', ['*']) + ntfosd_prio_startup = OptionBool('ntfosd', 'ntfosd_prio_startup', True) + ntfosd_prio_download = OptionBool('ntfosd', 'ntfosd_prio_download', False) +-- +2.13.0 + diff --git a/net-nntp/sabnzbd/files/sabnzbd.confd b/net-nntp/sabnzbd/files/sabnzbd.confd new file mode 100644 index 000000000000..c949355ec708 --- /dev/null +++ b/net-nntp/sabnzbd/files/sabnzbd.confd @@ -0,0 +1,6 @@ +SABNZBD_CONFIGFILE="/etc/sabnzbd/sabnzbd.ini" +SABNZBD_USER="sabnzbd" +SABNZBD_GROUP="sabnzbd" + +# 0 - error/warnings, 1 - info, 2 - debug +SABNZBD_LOGGING="1" diff --git a/net-nntp/sabnzbd/files/sabnzbd.ini b/net-nntp/sabnzbd/files/sabnzbd.ini new file mode 100644 index 000000000000..c5ff04854e15 --- /dev/null +++ b/net-nntp/sabnzbd/files/sabnzbd.ini @@ -0,0 +1,14 @@ +__version__ = 19 +[misc] +log_dir = /var/log/sabnzbd +admin_dir = /var/lib/sabnzbd/admin +cache_dir = /var/lib/sabnzbd/cache +complete_dir = /var/lib/sabnzbd/complete +download_dir = /var/lib/sabnzbd/download +dirscan_dir = /var/lib/sabnzbd/dirscan +nzb_backup_dir = /var/lib/sabnzbd/backup +auto_browser = 0 +host = :: +port = 8080 +[growl] +growl_enable = 0 diff --git a/net-nntp/sabnzbd/files/sabnzbd.initd b/net-nntp/sabnzbd/files/sabnzbd.initd new file mode 100755 index 000000000000..b3dca9797562 --- /dev/null +++ b/net-nntp/sabnzbd/files/sabnzbd.initd @@ -0,0 +1,71 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE="/run/sabnzbd/sabnzbd.pid" + +depend() { + need net +} + +get_var() { + grep -P -o -m 1 "(?<=^${1} = ).*" "${SABNZBD_CONFIGFILE}" || echo 0 +} + +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/share/sabnzbd/SABnzbd.py \ + -- \ + --config-file "${SABNZBD_CONFIGFILE}" \ + --logging "${SABNZBD_LOGGING}" \ + --daemon \ + --pidfile "${PIDFILE}" + + eend $? +} + +stop() { + local protocol="http" + local host="$(get_var "host")" + local port="$(get_var "port")" + + if [ $(get_var "enable_https") -eq 1 ]; then + protocol="https" + port="$(get_var "https_port")" + fi + + case "${host}" in + *:*) host="[${host}]" ;; + esac + + local url="${protocol}://${host}:${port}/sabnzbd/api?mode=shutdown" + + if [ $(get_var "disable_api_key") -eq 0 ]; then + url="${url}&apikey=$(get_var "api_key")" + fi + + local signals="TERM/1/KILL/1" + + ebegin "Stopping SABnzbd" + + if [ "$(wget -o /dev/null -t 1 -O - -T 10 "${url}")" = "ok" ]; then + signals="NULL/5/${signals}" + fi + + start-stop-daemon \ + --stop \ + --pidfile "${PIDFILE}" \ + --retry "${signals}" + + eend $? +} diff --git a/net-nntp/sabnzbd/files/sabnzbd_at.service b/net-nntp/sabnzbd/files/sabnzbd_at.service new file mode 100644 index 000000000000..e9fdc4a35de3 --- /dev/null +++ b/net-nntp/sabnzbd/files/sabnzbd_at.service @@ -0,0 +1,10 @@ +[Unit] +Description=SABnzbd binary newsreader + +[Service] +ExecStart=/usr/share/sabnzbd/SABnzbd.py --logging 1 --browser 0 +User=%I +Group=%I + +[Install] +WantedBy=multi-user.target diff --git a/net-nntp/sabnzbd/metadata.xml b/net-nntp/sabnzbd/metadata.xml new file mode 100644 index 000000000000..1bd96f540af7 --- /dev/null +++ b/net-nntp/sabnzbd/metadata.xml @@ -0,0 +1,15 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>jsbronder@gentoo.org</email> + </maintainer> + <use> + <flag name="7za">Add support for extracting 7za files</flag> + <flag name="rar">Add support for extracting rar files</flag> + <flag name="unzip">Add support for extracting zip files</flag> + </use> + <upstream> + <remote-id type="github">sabnzbd/sabnzbd</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-nntp/sabnzbd/sabnzbd-2.3.0.ebuild b/net-nntp/sabnzbd/sabnzbd-2.3.0.ebuild new file mode 100644 index 000000000000..939fb5e3da69 --- /dev/null +++ b/net-nntp/sabnzbd/sabnzbd-2.3.0.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +# Require python-2 with sqlite USE flag +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" + +inherit python-single-r1 user systemd versionator + +MY_P="${P/sab/SAB}" + +DESCRIPTION="Binary newsgrabber with web-interface" +HOMEPAGE="https://sabnzbd.org/" +SRC_URI="https://github.com/sabnzbd/sabnzbd/releases/download/${PV}/${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="+7za +rar unzip" + +# 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 portage: +# kronos, rsslib, ssmtplib, listquote, json-py, msgfmt, happyeyeballs +# pynewsleecher +# +# dev-python/rarfile is bundled as of 2.0.1 because sabnzbd is modifying it +# https://github.com/sabnzbd/sabnzbd/commit/de6d642b0dc6eaed63199a99d9a1a8b2e3d0018b +# +# 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=" + ${PYTHON_DEPS} + >=app-arch/par2cmdline-0.4 + >=dev-python/cheetah-2.0.1 + dev-python/configobj + dev-python/cryptography + dev-python/feedparser + dev-python/gntp + dev-python/pythonutils + >=dev-python/sabyenc-3.3.1 + net-misc/wget + 7za? ( app-arch/p7zip ) + rar? ( || ( app-arch/unrar app-arch/rar ) ) + unzip? ( >=app-arch/unzip-5.5.2 ) +" +DEPEND="${PYTHON_DEPS}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + HOMEDIR="/var/lib/${PN}" + python-single-r1_pkg_setup + + # Create sabnzbd group + enewgroup "${PN}" + # Create sabnzbd user, put in sabnzbd group + enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}" +} + +src_prepare() { + eapply "${FILESDIR}"/patches + + # remove bundled modules + rm -r sabnzbd/utils/{feedparser,configobj}.py || die + rm -r gntp || die + rm licenses/License-{feedparser,configobj,gntp}.txt || die + + eapply_user +} + +src_install() { + local d + + for d in cherrypy email icons interfaces locale po sabnzbd tools util; do + insinto "/usr/share/${PN}/${d}" + doins -r ${d}/* + done + + exeinto "/usr/share/${PN}" + doexe SABnzbd.py + + python_fix_shebang "${ED%/}/usr/share/${PN}" + python_optimize "${ED%/}/usr/share/${PN}" + + 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() { + einfo "Default directory: ${HOMEDIR}" + einfo + einfo "To add a user to the sabnzbd group so it can edit SABnzbd+ files, run:" + einfo + einfo " gpasswd -a <user> sabnzbd" + einfo + einfo "By default, SABnzbd+ will listen on TCP port 8080." + einfo + einfo "As Growl is not the default notification system on Gentoo, we disable it." + + local replacing + local major + local minor + for replacing in ${REPLACING_VERSIONS}; do + major=$(get_major_version ${replacing}) + minor=$(get_version_component_range 2 ${replacing}) + + if [ "${major}" == "1" ]; then + ewarn + ewarn "Upgrading to ${PN}-2.x.y converts schedule items to a format" + ewarn "that is not compatible with earlier ${PN}-1.x.y releases." + ewarn + break + elif [ "${major}" == "2" ] && [ ${minor} -lt 2 ]; then + ewarn + ewarn "Due to changes in this release, the queue will be converted when ${PN}" + ewarn "is started for the first time. Job order, settings and data will be" + ewarn "preserved, but all jobs will be unpaused and URLs that did not finish" + ewarn "fetching before the upgrade will be lost!" + ewarn + break + fi + + done +} diff --git a/net-nntp/slrn/Manifest b/net-nntp/slrn/Manifest new file mode 100644 index 000000000000..b8f037e3330d --- /dev/null +++ b/net-nntp/slrn/Manifest @@ -0,0 +1,6 @@ +AUX slrn-1.0.2-make.patch 1044 SHA256 167584a0820d1246c94f2638358d0e5664a2fed50cc84ee58a23c4064ed10fa6 SHA512 14859999f7739121027a7ddd6b0f157534a3e64a5c63b2354c4962c0391b9fbc5b4f80bc4260909561b534d79abcb3bdcca6f737eb52029f9c48cb0aae5f6473 WHIRLPOOL b0def6989699f8bb86a512a0210ef435cb867f4e6434d6e3e14d44c9ec019f12b04838633341334a8fcd83f13023dde4935743504ff533b46d424841c2cf6ae1 +DIST slrn-1.0.2.tar.bz2 995433 SHA256 99acbc51e7212ccc5c39556fa8ec6ada772f0bb5cc45a3bb90dadb8fe764fb59 SHA512 264dce88622e544356782c483f3639252ba57408d79775b2cd3ea06962ea3ebc568bc45ed19f1690c66b5b71d82eadeebd62a0bad656b1339ab7b80eb3f3cc5f WHIRLPOOL 831cce64c22fb42d7b6f3ecd6b19e8b6e26b9a25a5c1b75aeea74b9368b09bf5abc8acfc86b7651e528e9db20c4586ba56a05d18ee2c094d752947f832f31e0f +EBUILD slrn-1.0.2.ebuild 912 SHA256 8be55b84546fcc608f0d8c9cfa436fd298bcb8aeaedb366c36d140a86e3ada72 SHA512 4380069e15b8398c2c1a6b06a3f62e51d7935bfe77c4eb4a5a2ec196dc33c3d0452ce9811bd0f7d38598e3af4079ca9978b4dea4a0a3e7f7e8c8b7ed6889c154 WHIRLPOOL 4effb7808559cbc2860f32a30eac0239418c685f2e92125204a575b731341532b0ffd94bafb801e361bb271b1525eb02882167583697e4b65cc63455e7f4d1f6 +MISC ChangeLog 3228 SHA256 c195c7851faf9270e001b4e4ad5e5bc82d9775e2ca6a79e0b63405ef14d23f6e SHA512 b832b2540f86579252d2adf019ffcb30b5d09110e1b4b49ef9d3dca3275a55b2a3bd25515e84170a5c158cb619cb90302d5417bea7f057e97eaae153e72c3b65 WHIRLPOOL 2eab1b7bbb11bd5c1d20ff49be9529d04caa357da7f2064f845418c0e6f70497658e7d25d337929ca2815a6f0c47c92ed022ee17b24d6ba9ba241a6846b8d75a +MISC ChangeLog-2015 10363 SHA256 aed372a0972ef294a427ec97a1dd4624ec8b5026ff91e40d0daa2e35bb63ed83 SHA512 35d714af08837fb25f9e89143ddac40a4f5cdb8eaf64e1e0b101108d5d0c5709850cd151984af4d6fe82913d50fc65e2f06728cf71f8d8de510f95ba8b2c16d5 WHIRLPOOL 6171afd9bb085f939ae6e35da997a36459ae243f4e5b7295ba84b73806ebaa31b6919197f18bf26997ef35057273934bfb32e53ff2422adcf91ced47eb8bd895 +MISC metadata.xml 451 SHA256 1a535c35044518e702226ecd863b102dac653a949eebef37ea9b64e1c5d6156f SHA512 9d3b5849e6bafbc2f0b9154f81078b4808d7b58cf03747655a3953696d7c147bb162340b07ada8dd2ec1576824fb5ddcda972f5950fbdf7f2ee5534cc0f0fa93 WHIRLPOOL cf4c120ac662335d48539616838f81c00ea8851b224df738f5cd7c8c3f3a7426f634af15dea4048f7733c78894a36e565b4249e666eab6867efe1b64e0052e3c diff --git a/net-nntp/slrn/files/slrn-1.0.2-make.patch b/net-nntp/slrn/files/slrn-1.0.2-make.patch new file mode 100644 index 000000000000..e03fbb472c36 --- /dev/null +++ b/net-nntp/slrn/files/slrn-1.0.2-make.patch @@ -0,0 +1,36 @@ +--- slrn-1.0.2/src/Makefile.in ++++ slrn-1.0.2/src/Makefile.in +@@ -153,7 +153,7 @@ + $(MKINSDIR) $(DEST_SLRN_LIB_DIR) + $(MKINSDIR) $(DEST_SLRN_SLANG_DIR) + # $(MKINSDIR) $(DEST_CONFDIR) +-installdocs: ++installdocs: installdirs + @for i in $(MAN_FILES); \ + do \ + echo $(INSTALL_DATA) $$i $(DEST_MANDIR)/man1/; \ +@@ -186,7 +186,7 @@ + exit 1; \ + fi; \ + done +-installslang: ++installslang: installdirs + @files=$(CONF_FILES); \ + for i in $$files; \ + do \ +@@ -204,11 +204,11 @@ + exit 1; \ + fi; \ + done +-installlocales: ++installlocales: installdirs + -cd ../po; $(MAKE) DESTDIR=$(DESTDIR) LOCALEDIR=$(LOCALEDIR) install +-installbin: +- $(INSTALL) -m 755 -s $(OBJDIR)/slrn $(DEST_BINDIR) +- -$(INSTALL) -m 755 -s $(OBJDIR)/slrnpull $(DEST_BINDIR) ++installbin: installdirs ++ $(INSTALL) -m 755 $(OBJDIR)/slrn $(DEST_BINDIR) ++ -$(INSTALL) -m 755 $(OBJDIR)/slrnpull $(DEST_BINDIR) + install: all installdirs installbin installdocs installslang installlocales + + # The symlinks target is for my own private use. It simply creates the object diff --git a/net-nntp/slrn/metadata.xml b/net-nntp/slrn/metadata.xml new file mode 100644 index 000000000000..acd015295060 --- /dev/null +++ b/net-nntp/slrn/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <use> + <flag name="uudeview">Add support for yEnc coding and more using + <pkg>dev-libs/uulib</pkg></flag> + <flag name="canlock">Add support for cancel locks via + <pkg>net-libs/canlock</pkg></flag> + </use> + <upstream> + <remote-id type="sourceforge">slrn</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-nntp/slrn/slrn-1.0.2.ebuild b/net-nntp/slrn/slrn-1.0.2.ebuild new file mode 100644 index 000000000000..678b2492814f --- /dev/null +++ b/net-nntp/slrn/slrn-1.0.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools-utils + +MY_P="${PN}_${PV/_/~}" + +DESCRIPTION="A s-lang based newsreader" +HOMEPAGE="http://slrn.sourceforge.net/" +SRC_URI="http://jedsoft.org/releases/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" +IUSE="canlock nls ssl uudeview" + +RDEPEND="virtual/mta + app-arch/sharutils + >=sys-libs/slang-2.1.3 + canlock? ( net-libs/canlock ) + ssl? ( dev-libs/openssl ) + uudeview? ( dev-libs/uulib )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +AUTOTOOLS_IN_SOURCE_BUILD=1 +PATCHES=( "${FILESDIR}"/${P}-make.patch ) + +src_configure() { + local myeconfargs=( + --with-docdir="${EPREFIX}"/usr/share/doc/${PF} + --with-slrnpull + $(use_with canlock) + $(use_with uudeview uu) + $(use_enable nls) + $(use_with ssl) + ) + + autotools-utils_src_configure +} diff --git a/net-nntp/slrnconf/Manifest b/net-nntp/slrnconf/Manifest new file mode 100644 index 000000000000..98876b863e11 --- /dev/null +++ b/net-nntp/slrnconf/Manifest @@ -0,0 +1,5 @@ +DIST slrnconf-0.8.4.tar.bz2 43938 SHA256 105d9caed12b44fb0fa662415a156ef38388b4e3fe27fa3d9be34c580ccd3e76 SHA512 2ca8070426065ba366c54989e89b6aca23919e34073d8d50bb1ae53a9d79c5b7a864a44b9a7147bc6b9968a3904ec63d7b089855422b102e534b4e1e7d3498c8 WHIRLPOOL fc8ebdbdbb48e1ae0723e5389a4db870baff22516421dec818140a3c87a0ea2051dcdd94da8757d3928fa86366067e05ffeaaa49d5d7b275c8352abd4cb4eb23 +EBUILD slrnconf-0.8.4.ebuild 719 SHA256 07e7ef9c6d83826dc0ddef185fd5849cb999a54d19a1a54eafee250924b088ae SHA512 15100fe11116663b33088bfd5f197b2d29a046f5cd61cf41e95ec921c1b584cc182cf26b4bc6381bf7bd4dcec4403b141baa0ac0333b640eb2c092716705c305 WHIRLPOOL 35b8c14600fc301daff9fdaf1ee2a382393be87ccbe73c2f8c128f69f684fe92e977cad4d5c1ea3bc36d2e24032851d3bc864f548641d12b99a0bb9efaee0a39 +MISC ChangeLog 2459 SHA256 3f266a138d2247637e8f035ad13dc056c543b65998989c52243d33cc62d891e0 SHA512 b431b220fbf39169853706c803a6e0fae221225217e71011486c9e945f14652fdd85b9d8a24d5a4758d34ecd825cc2714059f78959ad66da9874d789323b3609 WHIRLPOOL 7714b244c464146cb37bcda6b8189cecaa859030b6df8efbdaf6f37bfd8113271bbd0314e362c4f0db187de2f72420087a87a7246adc9beab0fcd619453f94d5 +MISC ChangeLog-2015 1451 SHA256 d5a18eaa21afbf485d101ee78100cebfd2d5061dd0352a9be430e3a9d972862f SHA512 05d2c3a9884638c0bb5808cafafe840a0be314666b1a1e830245775bafa189d72798dbd3f29aae6ab0cb1de308c219d3da0cac3152a343e09ec513a6385befa9 WHIRLPOOL e2aa1c16bd135a44dbb17fd431f7c7d766dcf07d9aaab2d3e10088a35c27ac8829a4e56b72b6c863286211725dbe026f6b69d6e2fdedf3d28c61c9266fd1c533 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-nntp/slrnconf/metadata.xml b/net-nntp/slrnconf/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-nntp/slrnconf/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/net-nntp/slrnconf/slrnconf-0.8.4.ebuild b/net-nntp/slrnconf/slrnconf-0.8.4.ebuild new file mode 100644 index 000000000000..7d7c7eaca531 --- /dev/null +++ b/net-nntp/slrnconf/slrnconf-0.8.4.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +DESCRIPTION="slrnconf is a graphical configuration utility for the newsreader slrn" +HOMEPAGE="http://home.arcor.de/kaffeetisch/slrnconf.html" +SRC_URI="http://home.arcor.de/kaffeetisch/downloads/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" +IUSE="" + +RDEPEND="dev-lang/perl + dev-perl/Gtk2 + dev-perl/Parse-RecDescent + net-nntp/slrn" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +src_unpack() { + unpack ${A} + + sed -i -e 's/^install: all$/install:/' ${S}/Makefile +} + +src_compile() { + make PREFIX=/usr || die "make failed" +} + +src_install() { + make PREFIX=${D}/usr install || die "make install failed" +} diff --git a/net-nntp/sn/Manifest b/net-nntp/sn/Manifest new file mode 100644 index 000000000000..c375cfc3eaa4 --- /dev/null +++ b/net-nntp/sn/Manifest @@ -0,0 +1,7 @@ +AUX sn-0.3.8-parallel-make.patch 1809 SHA256 140962c36198fbd46bfd54282f1332851341d4ee2b57cef450377f9b67fb4bca SHA512 18ae60734faaa75711ef942ad0199eb78ee35a7c8d730d01f0324b84d2cd5089d2e318391592d4c064a78536581259032e201e042e5da3c7b9c39e2fba95e252 WHIRLPOOL eb93fc36590bfa1f26911103a1570eacda3dde4338e4c407b9130bacb0d467de2046337eb7469e85cbfea619e8697b00d4743bf26e11dd46ba6f881f0846d20a +AUX sn-0.3.8-qa.patch 325 SHA256 67d9931cdbaac729ea4c8f70e01484f7ec0dcf198c36b64ee3a5ff00af2ed97b SHA512 c5ca83fc9ff12ffe5eb09db6a4993fa277c35a8c0a88ac8c9d5563cc66b886c34bd6d4694371956546f0b5fcee2bf4fd7992e223e03fcaa4d9e940c9ad58fecf WHIRLPOOL 3f7f8a663f8a54c4ba50a2ccff77fda154c929ffddd699ddef2208d8f7c2e3bcabd4710880f562a53b798fcfcbe8712541f6720349b11854458b2fc2392d841f +DIST sn-0.3.8.tar.bz2 97751 SHA256 8ce7c77d587814993ca27d5bbf2bb8b2ad13111995b6113dc917484596dbddf0 SHA512 1b2270b03a58d2454ca59434d450e164d3c6ea6953f62d02dc5cef02cd8dbb53de0ce8c1bebe7b8a2dd4c087d898025bc4ab61ef3648df9d6a7e0dd92a544b14 WHIRLPOOL 507d0e33422eca51bd10c14f78862b423a9a45a2a3009d94e6c55433bb116979e93d49681f60e70208a48c5b6ec28ddce6e5646b0163a8aacaa6078032478500 +EBUILD sn-0.3.8.ebuild 1121 SHA256 22735fd051efec25db4c68fbb572bd640e1e316898abd31ce3c9145dc5326f36 SHA512 3789dbf414e7f35894d620fb0f4001863cdb724a23ce0beaf6c93820dba6eeed416c27efc09af01de9f506165ff68b353af0c4d05a32c8dd086ed061c3b8c448 WHIRLPOOL de69ac344284bbe2456797abd58806dbd1bb6b5bd3dd2f1eb5b56b782a7a2856a9c311aa2550ff1389a35951024ce18556df3758a64d1dd90e403d8627b1ed13 +MISC ChangeLog 2506 SHA256 e09a9e29ab30e9ea1cffd51fc87b40709840ac4772e08cf291acedfac75c675f SHA512 69b8a4eed91de4dbbe1fdbd594416f5ea8ae48393dc306512ea4f2ac4be016bae172c61ff1023fdcaa8dff17313e7884a90d3e3cb58f8ce2b3779b7f4d37802d WHIRLPOOL 64b030657ba22829fa9f8c492b25b46f347e48fa1e1b13322d806d02c4fccb4d1bef13f60fe0f0cd08b30b8921449a8634eb46bac8412747d671a2ac12ca71e3 +MISC ChangeLog-2015 2143 SHA256 046095740bd255fc82e9cf3abcfb1b6c45804aadd046915bcbe5136466d94df2 SHA512 2b15448c916aae3177eacfa17d1a9e76b9a99a17448683e8ffd9fafaee65e67b5f59eec699bc49b1f98a8b8aea9c99d378cb3c714a417c217a103e8e4b80618c WHIRLPOOL 6ad20d22b5b916b658e6c11ba9636cbf75e2ef3621e0c6a5e4bc3cf7383bddbc80a147fea2bcc4bbd701645947051a19ca927d6a227fccd62fdc84784b68dc0f +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-nntp/sn/files/sn-0.3.8-parallel-make.patch b/net-nntp/sn/files/sn-0.3.8-parallel-make.patch new file mode 100644 index 000000000000..d94e21897781 --- /dev/null +++ b/net-nntp/sn/files/sn-0.3.8-parallel-make.patch @@ -0,0 +1,56 @@ +--- sn-0.3.8/Makefile.orig ++++ sn-0.3.8/Makefile +@@ -94,39 +94,39 @@ + ar rc $@ $^ + ranlib $@ + +-snsplit: snsplit.o sn.a ++snsplit: snsplit.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snscan: snscan.o sn.a ++snscan: snscan.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) $(ZLIB) + sncat: snscan + ln -s snscan sncat + sncancel: snscan + ln -s snscan sncancel +-snprimedb: snprimedb.o sn.a ++snprimedb: snprimedb.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-sndumpdb: sndumpdb.o sn.a ++sndumpdb: sndumpdb.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snntpd: snntpd.o post.o commands.o list.o sn.a ++snntpd: snntpd.o post.o commands.o list.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) $(ZLIB) +-snsend: snsend.o sn.a ++snsend: snsend.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) $(ZLIB) + snstore: snsend + ln -s snsend snstore +-snfetch: snfetch.o sn.a ++snfetch: snfetch.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snexpire: snexpire.o sn.a ++snexpire: snexpire.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snmail: snmail.o sn.a ++snmail: snmail.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snget: snget.o get.o sn.a ++snget: snget.o get.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-sngetd: sngetd.o get.o sn.a ++sngetd: sngetd.o get.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snnewgroup: snnewgroup.o sn.a ++snnewgroup: snnewgroup.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-sndelgroup: sndelgroup.o sn.a ++sndelgroup: sndelgroup.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snlockf: snlockf.o ++snlockf: snlockf.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) + + %: %.in sed-cmd diff --git a/net-nntp/sn/files/sn-0.3.8-qa.patch b/net-nntp/sn/files/sn-0.3.8-qa.patch new file mode 100644 index 000000000000..52a25ebcd83e --- /dev/null +++ b/net-nntp/sn/files/sn-0.3.8-qa.patch @@ -0,0 +1,21 @@ +--- lib/readln.c ++++ lib/readln.c +@@ -9,6 +9,7 @@ + * Get a single line from an fd. + */ + ++#include <string.h> + #include <stdlib.h> + #include <unistd.h> + #include <sys/types.h> + +--- lib/cmdopen.c ++++ lib/cmdopen.c +@@ -6,6 +6,7 @@ + */ + + #include <unistd.h> ++#include <stdlib.h> + #include <fcntl.h> + #include <sys/wait.h> + diff --git a/net-nntp/sn/metadata.xml b/net-nntp/sn/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-nntp/sn/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/net-nntp/sn/sn-0.3.8.ebuild b/net-nntp/sn/sn-0.3.8.ebuild new file mode 100644 index 000000000000..06dc8b363e47 --- /dev/null +++ b/net-nntp/sn/sn-0.3.8.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit toolchain-funcs eutils + +DESCRIPTION="Hassle-free Usenet news system for small sites" +SRC_URI="http://infa.abo.fi/~patrik/sn/files/${P}.tar.bz2" +HOMEPAGE="http://infa.abo.fi/~patrik/sn/" + +KEYWORDS="~amd64 x86 ~ppc" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +src_prepare() { + epatch "${FILESDIR}"/${P}-qa.patch + epatch "${FILESDIR}"/${P}-parallel-make.patch + + sed -i -e 's/-g -Wall -pedantic -O/-Wall -pedantic/' Makefile || die +} + +src_compile() { + emake cc-flags + echo ${CFLAGS} >>cc-flags + + emake CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \ + SNROOT=/var/spool/news \ + BINDIR=/usr/sbin \ + MANDIR=/usr/share/man +} + +src_install() { + dodir /var/spool/news /usr/sbin /usr/share/man/man8 + mknod -m 600 "${D}"/var/spool/news/.fifo p + emake install \ + SNROOT="${D}"/var/spool/news \ + BINDIR="${D}"/usr/sbin \ + MANDIR="${D}"/usr/share/man + dodoc CHANGES FAQ INSTALL* INTERNALS README* THANKS TODO + fowners news:news /var/spool/news{,/.fifo} +} diff --git a/net-nntp/suck/Manifest b/net-nntp/suck/Manifest new file mode 100644 index 000000000000..820db19dd934 --- /dev/null +++ b/net-nntp/suck/Manifest @@ -0,0 +1,5 @@ +DIST suck-4.3.2.tar.gz 187560 SHA256 c98dd04d1fe6914867fa509821243d5e63d1159a238f38f6c01e19e266b51788 SHA512 704559ea54daabc6ef7b205431e587a90de20d8a5648e60910e4bc1a1493eebc8a3497c308a9de34febf6b26eda13785cf9f1f5ae034ee7fb0a9230173d13d4f WHIRLPOOL 6fd831c126150c41971564943337f31ead12c49bcc63199319026fe65d9d246cbe20b65c683fd688866ebc6ecaba6e537c92e7950ebc2f31c6322f58056f9cd4 +EBUILD suck-4.3.2.ebuild 1098 SHA256 2f9bc5e676177ee710eab4ed6bb3bdb3014b035f585e5025263e1023160b3611 SHA512 67e9300bef33a94a4c5ef227b68637fcc5be4bb89be60be203f10549eafb1714232acc7e934824a9104020d386758fcc1933872c14f76d001f8e4ed27d531ac9 WHIRLPOOL f64d9df8eff32fe2bcde7dfc2ff4851e880bf9c2c5ee21390263d2c7bd866301316b2bf40d45920989ca9cfe084941c1836383f1ae9725d8d165b0f0be5b7786 +MISC ChangeLog 2447 SHA256 9a0ba5d07335bea7f4ee7f815998f6b9927b3b7056a0646ce3bd4c7d49380537 SHA512 c3749cc984c8148ab5ba236139d12838c7a4f82b85b6e1ba699d7ed245e1131467de8787704a0d44e7598f5e6409280d685f6adac45563162496e528f83f330e WHIRLPOOL 965e69c93a185a0e394bfa1f15748266a1ca4e6e8d043787574a291cd5c6bcc1a6b97bf33c6fed07095d931de7d432cf9ffc0d0a63abae1b15a8d03a15d682dd +MISC ChangeLog-2015 1077 SHA256 d3f5491738392c0409ccdfacb79ec94886d9a4591187f27d523737d111141956 SHA512 f8f7cf064f51c33f17f318a3fe6adfb6cb55f6054bf4d889303ac21d8b625c8feb0ff61c19b237ba5c257b56cb38f4825fccdbc85dae48a54ec448780f382360 WHIRLPOOL f761a2e5bc87c1aceef60c6751e521e93eae374137d6219e3e6638578f4b51d7ebcffda36eb9f6733ca3b36e4508c898334f24b503f0d8f3daf580d459b2e7fb +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-nntp/suck/metadata.xml b/net-nntp/suck/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-nntp/suck/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/net-nntp/suck/suck-4.3.2.ebuild b/net-nntp/suck/suck-4.3.2.ebuild new file mode 100644 index 000000000000..5a7f05bff602 --- /dev/null +++ b/net-nntp/suck/suck-4.3.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +DESCRIPTION="Grab news from a remote NNTP server and feed them to another" +HOMEPAGE="http://home.comcast.net/~bobyetman/" +SRC_URI="http://home.comcast.net/~bobyetman/${P}.tar.gz" +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" +IUSE="ssl perl" + +DEPEND="sys-libs/db + perl? ( dev-lang/perl ) + ssl? ( dev-libs/openssl )" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Fix paths to the locations in Gentoo + sed -i \ + -e 's:/usr/lib/news/rnews:/usr/lib/news/bin/rnews:' \ + -e 's:/usr/news/db/history:/var/spool/news/db/history:' \ + suck_config.h +} + +src_compile() { + use ssl || sed -i -e 's/^SSL_/#SSL_/' Makefile.in + use perl || sed -i -e 's/^PERL_/#PERL_/' Makefile.in + + econf || die "econf failed" + + emake phrases.h || die "emake phrases.h failed" + emake all lpost || die "emake failed" +} + +src_install() { + dobin lmove lpost rpost suck testhost + doman man/* + dodoc CHANGELOG CONTENTS README* + docinto java + dodoc java/* + docinto perl + dodoc perl/* + docinto sample + dodoc sample/* +} diff --git a/net-nntp/tin/Manifest b/net-nntp/tin/Manifest new file mode 100644 index 000000000000..f9832fcfe3b4 --- /dev/null +++ b/net-nntp/tin/Manifest @@ -0,0 +1,9 @@ +DIST tin-2.0.1.tar.bz2 1758848 SHA256 eb4c1e46defb66f02eb64daa0929414c6363d9d4d74ec2458cfc6e781de89b1f SHA512 fc2bd0586e72a2fb4f8a223c0ceeb19e2dfcdb300d463f0f5d4b7367346a032614aa662a4d9d11673269be59cbaeff39fa3fdf7618dd41e965850d137919a386 WHIRLPOOL 1e565e2e6e3f02d2e77ef382066df81fc29ff59691d5defd7752c2bb158fa85207f9a619fd40948ea6a3a5b51caa57638a720ecab40b83de2a6af706a40bc0d2 +DIST tin-2.2.1.tar.xz 1378384 SHA256 a9968d4b43e2faa4ca1f27e5f2211fa261b2884846c909f59aa76cdaa955ddc7 SHA512 2c5b4b50be38c168404ba55c9429355c0dd2232c580116086fa9ea24a8907ad2d71d91b2d1c533bf7ff4d24fd1946d5ba61bc0833b20d5383e013e2f18c10bbd WHIRLPOOL a6cb1674c497e1a08b93d19a508d070635893795a4298f1b04cc35a4254ae88eb27dc4bd1b84d3fbfe56a59d3656ee325777248e832f091d0cd0da83b4fbfd4c +DIST tin-2.3.1.tar.xz 1381840 SHA256 7d9069fe567f4309ac26dff5334a3c4365c4d2097929a2d47846628e4d8644c6 SHA512 53fecc8fca7c67a7082a1f3f77a868433725a2ad4cc5650cdd522f791cbfc336733db5de3c637606788a2844df7e13e1d3fbae48c15ceaa49e24ea6e297926af WHIRLPOOL f7c0ba02ce4695823b1601f516af305e148de05f345f733d1ef7bbd81c996fe2740e913f32918b5af4e956f25e81c71f943d78906a25df22974f11ba79531a04 +EBUILD tin-2.0.1-r1.ebuild 2189 SHA256 292b8fea65b10bb4caf076fbb641e2ec0c76ef928f45cc8c3dd495d9b2e87211 SHA512 07efd7d5111367bd72093d9b77925b33861f62bb1a99786c7577c94270d420d97fb0a27103e30771ef8e462b786f9788dd32e17efd793a208309f57f628477ea WHIRLPOOL d95085133a3cd8f1bbeb1fb69120fd37f1da8d311514e2cd54b0aa6abc97093d3a837f0c329623af3c9364882b04d5acf97a2a13257b0623acbcd685de153816 +EBUILD tin-2.2.1.ebuild 2108 SHA256 805621ce2304a7eff0583d4f386634a347a1f985b8f939ea67c931b2f7bcfc22 SHA512 a5c1801e538bda92d121767a16d27f86c91165d2507b3027a11d37f0fe53e73c106f0182019308e9747b3ab2b1cf317a7811491db7af9c0389a5d39e3c1a4d60 WHIRLPOOL bc9574b9ef016e105d8b442d648103560f30bf3b6b814ec9c1d675386b8ee5e84c04a4fa659c4ab3af815913c4e9e5973bc344640b2148c4eafd11cd60b99666 +EBUILD tin-2.3.1.ebuild 2112 SHA256 b97253236f0ccf4b9d97f7d20b9d34fb443b5e43e65449d3f863103eb966fa84 SHA512 470bf9c33c6c610fefd4ffc8bc413f9b8b9653125d532b64fec28a10877268bcc2e7cc0164f87f75dba0a8e3baa30b1dae3bd41b21b7111a63e775f5bbcbc2df WHIRLPOOL 65e74a61b1a35c343b8614179b663d69dc401cd687110ff531dc9528e775b48323e4c8365248922779834ab4ec2159a3c26d033a17917a18bf8cd14529a3c063 +MISC ChangeLog 3069 SHA256 b72888a8d4c504deadb8e3e20a45a307cea9002457b679aa6570e850da304417 SHA512 2ed3b35df1fca2a8c7e9ba8ffcdb2ebfa96855d275fe4d167982daf966fa597fc3c68f7fb4d44f6fe76391aa5bf6da75a7cf6f817ecdb85b455888d88f35a7c0 WHIRLPOOL 77279cf07fe36884e190d06d477636148007f3bfe1b002e2b8a3a30fc4bbf7dbc8b143f3c9ef80fb8a74a464087d04f9837d9ac38f04441de226e4c580a3e8f4 +MISC ChangeLog-2015 8812 SHA256 48c78067aa7200605bf2d832da99f47775df75d300ed81200311dc0aa7be132d SHA512 6866c3bdeb265e8fdc09d3dfb3419fa09e2cd7f220973b8a00fcaedf185b2bc60c68cd2343a068d1769398d055f0415e3b2c554d77299825c6bd22c753c6e5c4 WHIRLPOOL bd2bd040da9979bacd7fed8d00714750875e5f0b01179f1419089717682e1d2573164ffbab14b1ba5e8c7667b5b972eb5020d5c0620cd7665fd4fde5c646699e +MISC metadata.xml 545 SHA256 dc9e2595d234ea525654e0935a40e26e295fb7ac5a9c43da0f840663abdb7fae SHA512 21578f131458fa9445675790df540870888edf0a46a0690e84ce35d42ad0c3b636fc0f003826b6711e797c3f4af56ac0febbc48276e6a5675d4d193be4656eda WHIRLPOOL d0ba699f892b4c6024135933d6718a2c63fe774912779d0e860bab1f2f5be16e9aff4677d337b9c99817dbe85e55be3175e03644e4ce1f73811bbe373feb7fce diff --git a/net-nntp/tin/metadata.xml b/net-nntp/tin/metadata.xml new file mode 100644 index 000000000000..2b3330cd1660 --- /dev/null +++ b/net-nntp/tin/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +<use> +<flag name="cancel-locks">Enable Cancel-Lock header functionality (also enables USE=evil)</flag> +<flag name="evil">Let tin generate a message ID</flag> +<flag name="forgery">Cancel messages posted from a different account</flag> +<flag name="gpg">Enable <pkg>app-crypt/gnupg</pkg> support</flag> +<flag name="etiquette">Enable the display off posting etiquettes</flag> +</use> +</pkgmetadata> diff --git a/net-nntp/tin/tin-2.0.1-r1.ebuild b/net-nntp/tin/tin-2.0.1-r1.ebuild new file mode 100644 index 000000000000..f9da02172144 --- /dev/null +++ b/net-nntp/tin/tin-2.0.1-r1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils toolchain-funcs versionator + +DESCRIPTION="A threaded NNTP and spool based UseNet newsreader" +HOMEPAGE="http://www.tin.org/" +SRC_URI="ftp://ftp.tin.org/pub/news/clients/tin/v$(get_version_component_range 1-2)/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="cancel-locks debug doc +etiquette evil forgery gpg idn ipv6 mime nls sasl socks5 spell unicode" + +RDEPEND=" + dev-libs/libpcre + dev-libs/uulib + gpg? ( app-crypt/gnupg ) + idn? ( net-dns/libidn ) + mime? ( net-mail/metamail ) + net-misc/urlview + nls? ( sys-devel/gettext ) + sasl? ( virtual/gsasl ) + socks5? ( net-proxy/dante ) + sys-libs/ncurses[unicode?] + unicode? ( dev-libs/icu:= ) +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +src_prepare() { + # Do not strip + sed -i src/Makefile.in -e '388s|-s ||g' || die "sed src/Makefile.in failed" + sed -i configure.in -e '/CFLAGS/s|-g||g' || die + eautoreconf +} + +src_configure() { + if use evil || use cancel-locks; then + sed -i -e"s/# -DEVIL_INSIDE/-DEVIL_INSIDE/" src/Makefile.in + fi + + if use forgery + then + sed -i -e"s/^CPPFLAGS.*/& -DFORGERY/" src/Makefile.in + fi + + local screen="ncurses" + use unicode && screen="ncursesw" + + use etiquette || myconf="${myconf} --disable-etiquette" + + tc-export AR CC RANLIB + + econf \ + $(use_enable cancel-locks) \ + $(use_enable debug) \ + $(use_enable gpg pgp-gpg) \ + $(use_enable ipv6) \ + $(use_enable nls) \ + $(use_with mime metamail /usr) \ + $(use_with socks5 socks) $(use_with socks5) \ + $(use_with spell ispell /usr) \ + --disable-mime-strict-charset \ + --enable-echo \ + --enable-nntp-only \ + --enable-prototypes \ + --with-coffee \ + --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.org}}" \ + --with-pcre=/usr \ + --with-screen=${screen} \ + ${myconf} +} + +src_compile() { + emake build +} + +src_install() { + default + + # File collision? + rm -f "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 + + dodoc doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW} + use doc && dodoc doc/{*.sample,*.txt} + + insinto /etc/tin + doins doc/tin.defaults +} diff --git a/net-nntp/tin/tin-2.2.1.ebuild b/net-nntp/tin/tin-2.2.1.ebuild new file mode 100644 index 000000000000..ebf4f25d29b5 --- /dev/null +++ b/net-nntp/tin/tin-2.2.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs versionator + +TIN_PV=$(get_version_component_range 1-2) +DESCRIPTION="A threaded NNTP and spool based UseNet newsreader" +HOMEPAGE="http://www.tin.org/" +SRC_URI="ftp://ftp.tin.org/pub/news/clients/tin/v${TIN_PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="cancel-locks debug doc +etiquette evil forgery gpg idn ipv6 mime nls sasl socks5 spell unicode" + +RDEPEND=" + dev-libs/libpcre + dev-libs/uulib + gpg? ( app-crypt/gnupg ) + idn? ( net-dns/libidn ) + mime? ( net-mail/metamail ) + net-misc/urlview + nls? ( sys-devel/gettext ) + sasl? ( virtual/gsasl ) + socks5? ( net-proxy/dante ) + sys-libs/ncurses[unicode?] + unicode? ( dev-libs/icu:= ) +" + +DEPEND=" + ${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig +" + +src_prepare() { + sed -i src/Makefile.in -e 's| -s | |g' || die + sed -i configure -e '/CFLAGS/s|-g||g' || die +} + +src_configure() { + if use evil || use cancel-locks; then + sed -i -e"s/# -DEVIL_INSIDE/-DEVIL_INSIDE/" src/Makefile.in + fi + + if use forgery + then + sed -i -e"s/^CPPFLAGS.*/& -DFORGERY/" src/Makefile.in + fi + + local screen="ncurses" + use unicode && screen="ncursesw" + + tc-export AR CC RANLIB + + econf \ + $(use_enable cancel-locks) \ + $(use_enable debug) \ + $(use_enable etiquette) \ + $(use_enable gpg pgp-gpg) \ + $(use_enable ipv6) \ + $(use_enable nls) \ + $(use_with mime metamail /usr) \ + $(use_with socks5 socks) $(use_with socks5) \ + $(use_with spell ispell /usr) \ + --disable-mime-strict-charset \ + --enable-echo \ + --enable-nntp-only \ + --enable-prototypes \ + --with-coffee \ + --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.org}}" \ + --with-pcre=/usr \ + --with-screen=${screen} +} + +src_compile() { + emake build +} + +src_install() { + default + + # File collision? + rm -f "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 + + dodoc doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW} + use doc && dodoc doc/{*.sample,*.txt} + + insinto /etc/tin + doins doc/tin.defaults +} diff --git a/net-nntp/tin/tin-2.3.1.ebuild b/net-nntp/tin/tin-2.3.1.ebuild new file mode 100644 index 000000000000..fc08f4dd2ab6 --- /dev/null +++ b/net-nntp/tin/tin-2.3.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs versionator + +TIN_PV=$(get_version_component_range 1-2) +DESCRIPTION="A threaded NNTP and spool based UseNet newsreader" +HOMEPAGE="http://www.tin.org/" +SRC_URI="ftp://ftp.tin.org/pub/news/clients/tin/v${TIN_PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="cancel-locks debug doc +etiquette evil forgery gpg idn ipv6 mime nls sasl socks5 spell unicode" + +RDEPEND=" + dev-libs/libpcre + dev-libs/uulib + gpg? ( app-crypt/gnupg ) + idn? ( net-dns/libidn ) + mime? ( net-mail/metamail ) + net-misc/urlview + nls? ( sys-devel/gettext ) + sasl? ( virtual/gsasl ) + socks5? ( net-proxy/dante ) + sys-libs/ncurses[unicode?] + unicode? ( dev-libs/icu:= ) +" + +DEPEND=" + ${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig +" + +src_prepare() { + sed -i src/Makefile.in -e 's| -s | |g' || die + sed -i configure -e '/CFLAGS/s|-g||g' || die +} + +src_configure() { + if use evil || use cancel-locks; then + sed -i -e"s/# -DEVIL_INSIDE/-DEVIL_INSIDE/" src/Makefile.in + fi + + if use forgery + then + sed -i -e"s/^CPPFLAGS.*/& -DFORGERY/" src/Makefile.in + fi + + local screen="ncurses" + use unicode && screen="ncursesw" + + tc-export AR CC RANLIB + + econf \ + $(use_enable cancel-locks) \ + $(use_enable debug) \ + $(use_enable etiquette) \ + $(use_enable gpg pgp-gpg) \ + $(use_enable ipv6) \ + $(use_enable nls) \ + $(use_with mime metamail /usr) \ + $(use_with socks5 socks) $(use_with socks5) \ + $(use_with spell ispell /usr) \ + --disable-mime-strict-charset \ + --enable-echo \ + --enable-nntp-only \ + --enable-prototypes \ + --with-coffee \ + --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.org}}" \ + --with-pcre=/usr \ + --with-screen=${screen} +} + +src_compile() { + emake build +} + +src_install() { + default + + # File collision? + rm -f "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 + + dodoc doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW} + use doc && dodoc doc/{*.sample,*.txt} + + insinto /etc/tin + doins doc/tin.defaults +} diff --git a/net-nntp/ubh/Manifest b/net-nntp/ubh/Manifest new file mode 100644 index 000000000000..44e1695091e3 --- /dev/null +++ b/net-nntp/ubh/Manifest @@ -0,0 +1,5 @@ +DIST ubh-2.5.tar.gz 42235 SHA256 9ee39955999ab7e0d3e99b70868e4dc564c8af9d74cfc9ef84854f8a93a109b6 SHA512 43e2948a2361ab2dbbab4e4722bc62552655754a85dd3ddf2662e224ab1419ad4dc85888f5f022c587925edefa1572ed9e99637ec70c5c84f20208d6b93eada0 WHIRLPOOL 978b91f7a79a87ea05439946f13bd3669d31f130370ce62b5c2a9f8db504cdb06da879ca939e73f0f3b87fb15133d4b1738e19d7ba6fa07167c06021b1f3222b +EBUILD ubh-2.5.ebuild 696 SHA256 fffe5a8cddb2a7ea206e4926a8aed28c1a88120145a37b8c48b5d5c6a6bbb226 SHA512 92e12a90177d2653a581b475bad0265163e2491116eac0d59059fc3406554af7f06a7e77f6df165fc2603b05b2c4996082c3d1cd52902b023fdde5e0cdd8a5b6 WHIRLPOOL afaee8eaf5b987f6c4b3441de62e1b443a453c641cea6afc1680ed56bba6e642c0388f7f2abc19623bb3d6a897cc25175bda4676df011fb94eeca10002f80689 +MISC ChangeLog 3309 SHA256 02555980ceb3288d4e8fcba51b3a3e60cb284585a6710ecd2dfabf5c7e289426 SHA512 e61e65582c10fec851042269cd7ec25b4131df7eeb254729edc4df8a683a6814e6a4b5c140063d659d9f5ca2f069d951d3d80514e632c83eafdd99763647a2ca WHIRLPOOL 4d6770344b54ee89cb3a4a65d33a6f178304b641979e60640a0410afd17619e5a1b578fe84f246c1535b9600beef49b4c96fa4e6cfa318fa16adc8806bbe4f8f +MISC ChangeLog-2015 1523 SHA256 d4707aee4ef0dcba02dbb31734e11d214dd00b8149a78d6db6f834cb531612a5 SHA512 440deb30c0b9dedf6c77324b14ad2806de926df9fa259468ea5d49748a2621b891aa03042d89b558bbfda4822cff230e5dbf830ee837cbe9c9a0d8a7deb5f3bd WHIRLPOOL a27f8eee71a958909791374e8251dc83ddce052a9d4e2f126ae978a17803bd01f2a4077ce37e92d928034e022f22c6bdebc1e7b2440d19a546d4bba1bd9e422f +MISC metadata.xml 240 SHA256 4babb0bfc263b44bcf222f6649d66f0ae70769a9c74101c49891ea67bda35313 SHA512 be2d904093e7c95d60a9240a9911b58dcf13714525adc6a934dd6ec3912fc0e050d15284f6fe4b358d784d1e92c3a3a5a1dbf422deb8021aad7c37fc76405504 WHIRLPOOL 42c1ffb30cd375ee9a2b61c80bca5f6a2c63e56562154bfd17f7e5287dd18fe8981c212ebe0852c42de43cfd095f2bea08bdc19d62c30c0cb3cfbb1d77680e98 diff --git a/net-nntp/ubh/metadata.xml b/net-nntp/ubh/metadata.xml new file mode 100644 index 000000000000..c5c5320956d0 --- /dev/null +++ b/net-nntp/ubh/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">ubh</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-nntp/ubh/ubh-2.5.ebuild b/net-nntp/ubh/ubh-2.5.ebuild new file mode 100644 index 000000000000..247fd3767aa8 --- /dev/null +++ b/net-nntp/ubh/ubh-2.5.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +DESCRIPTION="The Usenet Binary Harvester" +HOMEPAGE="http://ubh.sourceforge.net/" +SRC_URI="http://ubh.sourceforge.net/download/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +IUSE="" +KEYWORDS="~amd64 ~ppc ~x86" +DEPEND=">=virtual/perl-libnet-1.0607 + >=dev-perl/News-Newsrc-1.07 + >=dev-perl/IO-stringy-1.220 + >=virtual/perl-MIME-Base64-2.12 + >=dev-perl/MailTools-1.15 + >=dev-perl/MIME-tools-5.411 + >=dev-perl/String-CRC32-1.2" + +src_install() { + dobin ubh || die "dobin failed" + dohtml doc/ubh.html || die "dohtml failed" + insinto /usr/share/${P} + doins examples/{newsrc,ubhrc} || die "doins failed" +} diff --git a/net-nntp/xrn/Manifest b/net-nntp/xrn/Manifest new file mode 100644 index 000000000000..9ce4668175e0 --- /dev/null +++ b/net-nntp/xrn/Manifest @@ -0,0 +1,5 @@ +DIST xrn-9.02.tgz 362615 SHA256 5fc44883bf94538def846669ebabcc95a710e46531f071ac432d0f9cadc56677 SHA512 ea8271b58b374889249686b75926a12ee474a5ed623f4db106bc885a212c8381102d128cc7ebffd12256633a809deb8a66382bea69692c9ba71ccecd481dce2a WHIRLPOOL 7020601c0577a8cece7cf770f2df0c84494612885ccf797347a7f14dd63f2e48b4fbda80ddb5ae73c67d2e8d4056aab6c552d8615b9732751b7a612ddc4e5819 +EBUILD xrn-9.02.ebuild 1559 SHA256 486b7172784eb162acfaf85e5ef97ece41f3026892dc2fb3a589c54c052a85d5 SHA512 8b22bca7d836231205a593c95fe9e4dd6d66c3d6628936b779930a10a299dc3785273e4c85ee6ff504e204b96266ae6bcd28e4c5937ba3832e5fd9c1abdb830e WHIRLPOOL 6ba98d2e4dfd54fa1703429d6c76719fba58c2be36f08210bc9b65aced33e0c8b50aeadf101b5480e6019c1ceffe1b9e0c7799711acf3832d64c7f0a0ae4e1d4 +MISC ChangeLog 2664 SHA256 3caf6791ece0d758f8d475c8687037f0c5d75d7d90d70da89aeba012d93e89fb SHA512 e91f1607ea14ad63b9d028eeb2c97d35cbb8a61edf118218ed16e668b187001bcd3976fbd272e995a795eed82960c596fb6c1682c60f246c03b6dfec99684e21 WHIRLPOOL 0ae6978a2090de876218745cb49b7dc6123a0c61593c5d94450f2a890905dbc72646bfb5a2ac83121b98376386f281638098e6cd56d662279968e3704a82682e +MISC ChangeLog-2015 1103 SHA256 4ce7e13eccf7da7f9606d08ecdb0ddaab968eb0a7dfc97c6b4dcc2a9eec3c8ab SHA512 020946b2a11b380b23039c9e8d7b5d7e122281df6ca93af1e15d0304276c239a3ebe744027098581eec425fb8d4423de3684b007806cbcc7e980096e62981b31 WHIRLPOOL d48f82c64f876b5789f7dcd81861bb236990ec8070d12a31eee840d95c494cb06160dec7bec048459f5ea7aeb408e73817430ecdec23e52e92af8dbe731dcbc9 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-nntp/xrn/metadata.xml b/net-nntp/xrn/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-nntp/xrn/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/net-nntp/xrn/xrn-9.02.ebuild b/net-nntp/xrn/xrn-9.02.ebuild new file mode 100644 index 000000000000..9c87e2febf47 --- /dev/null +++ b/net-nntp/xrn/xrn-9.02.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +DESCRIPTION="A small and fast news reader for X" +HOMEPAGE="http://www.mit.edu/people/jik/software/xrn.html" +SRC_URI="ftp://sipb.mit.edu/pub/${PN}/${P}.tgz" +LICENSE="BSD" +SLOT="0" + +KEYWORDS="x86" +IUSE="" + +RDEPEND="x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXp + x11-libs/libXpm + x11-libs/libXt" +DEPEND="${RDEPEND} + x11-misc/imake + >=sys-apps/sed-4" + +src_compile() { + # English is the default language, but french and german are also + # supported, however only one language may be supported at a time: + local lingua + for lingua in ${LINGUAS} en ; do + case "${lingua}" in + en*) + MY_LANG="english" + break # Breaks the for loop. + ;; + fr*) + MY_LANG="french" + break # Breaks the for loop. + ;; + de*) + MY_LANG="german" + break # Breaks the for loop. + ;; + esac + done + + # Bugs to Gentoo bugzilla: + sed -i \ + -e "s,bug-xrn@kamens.brookline.ma.us,https://bugs.gentoo.org/," \ + -e "s,\(#ifndef CONFIG_H_IS_OK\),#define CONFIG_H_IS_OK\n\1," \ + config.h + + # Generate Makefile: + xmkmf || die "xmkmf failed" + + # Use our own CFLAGS and our desired language: + emake -j1 CDEBUGFLAGS="${CFLAGS}" LANGUAGE="${MY_LANG}" || die "emake failed" +} + +src_install() { + dobin xrn || die "dobin failed" + dodoc README README.Linux TODO CREDITS COMMON-PROBLMS || die "dodoc failed" + + # Default settings: + insinto /etc/X11/app-defaults + newins XRn.ad XRn + + newman xrn.man xrn.1 +} |