summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-03-01 20:44:18 +0000
committerJeroen Roovers <jer@gentoo.org>2011-03-01 20:44:18 +0000
commit891080d047db74d6fc5c8a045339a3445f648e44 (patch)
tree1150af2a8b897bdf5cad02d478ed9c303cd5109e /net-nntp
parentVersion bump to 2.1.0 (diff)
downloadhistorical-891080d047db74d6fc5c8a045339a3445f648e44.tar.gz
historical-891080d047db74d6fc5c8a045339a3445f648e44.tar.bz2
historical-891080d047db74d6fc5c8a045339a3445f648e44.zip
Old.
Package-Manager: portage-2.2.0_alpha25/cvs/Linux i686
Diffstat (limited to 'net-nntp')
-rw-r--r--net-nntp/inn/Manifest15
-rw-r--r--net-nntp/inn/inn-2.4.3-r1.ebuild255
-rw-r--r--net-nntp/inn/inn-2.4.3-r2.ebuild259
-rw-r--r--net-nntp/inn/inn-2.5.0.ebuild246
4 files changed, 0 insertions, 775 deletions
diff --git a/net-nntp/inn/Manifest b/net-nntp/inn/Manifest
index de3376e21420..e6dbd4a9e5d4 100644
--- a/net-nntp/inn/Manifest
+++ b/net-nntp/inn/Manifest
@@ -1,25 +1,10 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX inn-2.4.3-berkdb45.patch 2389 RMD160 d0580cc8e2f1cdf60feacd597991edbfb412d3f8 SHA1 e3fe46034f4e0061276378a3e0c576b289876612 SHA256 2e762081a319a898135c98ae5a5f5e0fbcc8b25deeb65814c343a0a6683c62e2
AUX inn-2.4.3-configure.patch 1927 RMD160 cddc4079e5c0f1c7ee25caab846873128705cb62 SHA1 9d9040346fec8ec4d5e8f47c22d8de46fbde2299 SHA256 3850d3df15c09b0d12199e7e69a3ade12f41d85ab0b22461fa75b82bb1b60d59
AUX inn-2.4.3-runtests.patch 2543 RMD160 68605c14e225eb8484461d3170e98737198b3c2a SHA1 b365a0c100045bdd3e3338f81de05f8232f89207 SHA256 2efa10ebb0b33630f42bc070d535a99ff6ed1287ecab53b7ca8210ad74f229b0
AUX innd 503 RMD160 5631966614d5bb4e1c304195e1e796a1fbc9421e SHA1 85aa86e4fcca7837e32e2e3be31fbd50e96b79c2 SHA256 ab2082ee261d632dafeaaf9ebb459e5afe684597c67b860ca0a7a8ff3bf554ed
-DIST inn-2.4.3.tar.gz 1871994 RMD160 f9465f3fe905d1173fb30c00d591ab8f9cbaecfc SHA1 95c30835b0990a3c432858948266dd4db639a3e1 SHA256 b69679ed4b79ed8384db50e43a09a7d52e4da51712235b912bcfae037e137bf2
-DIST inn-2.5.0.tar.gz 2380748 RMD160 0b9583eef8fe86131297d403323ab6ff2906fe06 SHA1 f009da670e2594d9079e7fb26f32d10c640d24e6 SHA256 0bfcc9e1b232804a5a6bd5bf8574a37092e6f80aadbef7b8aec5c4a50def4791
DIST inn-2.5.1.tar.gz 2305406 RMD160 8cb24ac4fcea299b02b2b0b043a4f5506b902c47 SHA1 e49a58a3484bbb7fd230b37ca17cc34eb10c10f1 SHA256 bb486d1bd0259762a9d7339309c4e8600bd5fc6ce1af4fccde6fe9d1f64a1c58
DIST inn-2.5.2.tar.gz 2331916 RMD160 2fce7fade8bd8df3fe7f813b6feb37ff2b2bf07c SHA1 e7a9512acb5fa09ecdf116a4bde39c9f5efe65db SHA256 f5edd48f48ecee9b6430db94fe504f893d7dfae4257f55f382ba1cf7375b4e68
-EBUILD inn-2.4.3-r1.ebuild 8116 RMD160 945d76daac70c06dcc9a9a287addbab241fdd530 SHA1 f5df74fbe85211776701b71eab31119086844350 SHA256 2b106a107b7a4f31d8719f8183754532bdec2544ca98ac0a1f4ec6adb6965246
-EBUILD inn-2.4.3-r2.ebuild 8237 RMD160 7518f8dabdf75b50c885aaa35bb93db8c1a73322 SHA1 9857b646324f473ba39ac7d8589f8a542c43b31c SHA256 00cd9f35b4d9f9c65aa3571036b267e8a1f99f5ba501d7d00f99f31a1d812e7b
-EBUILD inn-2.5.0.ebuild 8078 RMD160 9d68ed357f91b5a3e2e41706a294d2e9212f8e6a SHA1 f834a98b4ebcc38f4c3df2b48a52a00c54ce7e48 SHA256 cc78de9caed80e95b30253cf6c08c4ee881526bc1b0a84f438b282f2db86550a
EBUILD inn-2.5.1.ebuild 8017 RMD160 b8c2ce32fe93f6a6eaed7649c69fdaebec90cbef SHA1 8498ead3edb554227894302517330823ef305ca5 SHA256 7a60692beb0a91fc0ffc6100a6a4a1d9fce12a2b11d65067f5021a3a007726c7
EBUILD inn-2.5.2.ebuild 8015 RMD160 2436c4f62e7dd25acefd1af9fd5afb55ab675dc4 SHA1 049abac2378278c98def550878c004355a9e1346 SHA256 847caec42dd3aecef38935f72740de82635c0fe26d507a2bff0432d32b01ef6b
MISC ChangeLog 7533 RMD160 e4ed29abba44c9980ca4ddede75b6df2110d369d SHA1 bda1ecb4213e3dd7cf4e0cfe3a244a9fdf2e6cf0 SHA256 8b1bfb3a712b5aee2ce329ef2753ec3dffc3b1d84b29b3000a9f3248e6b47057
MISC metadata.xml 352 RMD160 802eed9c30b34a5226648155bf521f9fd3bef350 SHA1 230d40e31eb709966710ca40e489ad00962c80bb SHA256 c58a5ed6da2054c42c3e7a6328456cedbdc45664210a95223fdd18a0fec340ce
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
-
-iEYEARECAAYFAk0bV6kACgkQ9/cejkQaxBBGmACbBxrZ62xkQH1KKPjLqlHModhe
-oqwAn3ueN28gK4NxfaswNNIJpCK2x0yP
-=fgkd
------END PGP SIGNATURE-----
diff --git a/net-nntp/inn/inn-2.4.3-r1.ebuild b/net-nntp/inn/inn-2.4.3-r1.ebuild
deleted file mode 100644
index 7f1f3ee2dc15..000000000000
--- a/net-nntp/inn/inn-2.4.3-r1.ebuild
+++ /dev/null
@@ -1,255 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/inn/inn-2.4.3-r1.ebuild,v 1.5 2008/06/07 17:04:23 flameeyes Exp $
-
-WANT_AUTOCONF="2.1"
-
-inherit fixheadtails ssl-cert eutils multilib libtool autotools
-
-DESCRIPTION="The Internet News daemon, fully featured NNTP server"
-HOMEPAGE="http://www.isc.org/products/INN"
-SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz"
-
-SLOT="0"
-LICENSE="as-is BSD GPL-2"
-KEYWORDS="amd64 ppc x86"
-IUSE="ipv6 kerberos sasl ssl perl python berkdb inntaggedhash innkeywords"
-
-RDEPEND="virtual/mta
- kerberos? ( virtual/krb5 )
- sasl? ( >=dev-libs/cyrus-sasl-2 )
- ssl? ( dev-libs/openssl )
- perl? ( dev-lang/perl )
- python? ( dev-lang/python )
- berkdb? ( sys-libs/db )"
-DEPEND="${RDEPEND}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- ht_fix_file configure.in support/fixscript.in
-
- sed -i \
- -e "s/ -B .OLD//" \
- Makefile.global.in \
- control/Makefile \
- doc/man/Makefile
-
- sed -i \
- -e "s:@prefix@/lib:/etc/news/cert:" \
- samples/sasl.conf.in
-
- # Fixes compatibility problems with sys-libs/db-4.4 and 4.5,
- # bug 174680.
- epatch "${FILESDIR}/${P}-berkdb45.patch"
-
- # Fixes problems with the test suite.
- epatch "${FILESDIR}/${P}-runtests.patch"
-
- elibtoolize
-}
-
-src_compile() {
- econf \
- --prefix=/usr/$(get_libdir)/news \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --with-control-dir=/usr/$(get_libdir)/news/bin/control \
- --with-etc-dir=/etc/news \
- --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-path=/var/spool/news/tmp \
- --enable-libtool \
- --enable-setgid-inews \
- --enable-uucp-rnews \
- --without-tcl \
- $(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) \
- || die "econf failed"
- emake -j1 P="" || die "emake failed"
-}
-
-src_install() {
- make DESTDIR="${D}/" P="" SPECIAL="" install || die "make install failed"
-
- chown -R root:0 "${D}"/usr/{$(get_libdir)/news/{lib,include},share/{doc,man}}
- chmod 644 "${D}"/etc/news/*
- for file in control.ctl expire.ctl incoming.conf nntpsend.ctl passwd.nntp readers.conf
- do
- chmod 640 "${D}"/etc/news/${file}
- done
-
- # 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,run}/news \
- /var/spool/news/{,archive,articles,db,incoming{,/bad},innfeed,outgoing,overview,tmp}
-
- dodoc ChangeLog MANIFEST README* doc/checklist
- use ipv6 && dodoc doc/IPv6-info
-
- # So other programs can build against INN. (eg. Suck)
- insinto /usr/$(get_libdir)/news/include
- doins include/*.h
-
- doinitd "${FILESDIR}"/innd 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 "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
- if [ ${UID} -eq 0 ]
- then
- einfo "Changing shell to /bin/bash for user news..."
- usermod -s /bin/bash news
- else
- NEWS_ERRFLAG=1
- eerror
- eerror "Could not change shell for user news."
- eerror "Please run 'usermod -s /bin/bash news' as root."
- fi
- 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
-
- su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i"
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.dir "${NEWSSPOOL_DIR}"/db/history.dir
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.pag "${NEWSSPOOL_DIR}"/db/history.pag
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.hash "${NEWSSPOOL_DIR}"/db/history.hash
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.index "${NEWSSPOOL_DIR}"/db/history.index
- su - news -c /usr/$(get_libdir)/news/bin/makehistory
- else
- NEWS_ERRFLAG="1"
- eerror
- 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. Leaving history database as it is."
- fi
-
- INNCFG_INODES="$(sed -e '/innwatchspoolnodes/ ! d' /etc/news/inn.conf | sed -e 's/[^ ]*[ ]*\([^ ]*\)/\1/')"
- INNSPOOL_INODES="$(df -Pi ${NEWSSPOOL_DIR} | sed -e 's/[^ ]*[ ]*\([^ ]*\).*/\1/' | sed -e '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 -e '/innwatchspoolnodes/ s/\([^ ]*\)\([ ]*\).*/\1\20/' /etc/news/inn.conf
- 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
- eerror "There were one or more errors/warnings checking your configuration."
- eerror "Please read inn's documentation and fix them accordingly."
- else
- einfo
- einfo "Inn configuration tests passed successfully."
- einfo
- ewarn "Please ensure you configured inn properly."
- fi
-}
diff --git a/net-nntp/inn/inn-2.4.3-r2.ebuild b/net-nntp/inn/inn-2.4.3-r2.ebuild
deleted file mode 100644
index cdbe44ab2350..000000000000
--- a/net-nntp/inn/inn-2.4.3-r2.ebuild
+++ /dev/null
@@ -1,259 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/inn/inn-2.4.3-r2.ebuild,v 1.2 2009/11/09 21:18:22 mr_bones_ Exp $
-
-WANT_AUTOCONF="2.1"
-
-inherit fixheadtails ssl-cert eutils multilib libtool autotools toolchain-funcs
-
-DESCRIPTION="The Internet News daemon, fully featured NNTP server"
-HOMEPAGE="http://www.isc.org/products/INN"
-SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz"
-
-SLOT="0"
-LICENSE="as-is BSD GPL-2"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="ipv6 kerberos sasl ssl perl python berkdb inntaggedhash innkeywords"
-
-RDEPEND="virtual/mta
- kerberos? ( virtual/krb5 )
- sasl? ( >=dev-libs/cyrus-sasl-2 )
- ssl? ( dev-libs/openssl )
- perl? ( dev-lang/perl )
- python? ( dev-lang/python )
- berkdb? ( sys-libs/db )"
-DEPEND="${RDEPEND}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- ht_fix_file configure.in support/fixscript.in
-
- sed -i \
- -e "s/ -B .OLD//" \
- Makefile.global.in \
- control/Makefile \
- doc/man/Makefile
-
- sed -i \
- -e "s:@prefix@/lib:/etc/news/cert:" \
- samples/sasl.conf.in
-
- # Fixes compatibility problems with sys-libs/db-4.4 and 4.5,
- # bug 174680.
- epatch "${FILESDIR}/${P}-berkdb45.patch"
-
- # Fixes problems with the test suite.
- epatch "${FILESDIR}/${P}-runtests.patch"
-
- # Fixes problems with com_err and kerberos
- epatch "${FILESDIR}/${P}-configure.patch"
-
- elibtoolize
-}
-
-src_compile() {
- tc-export CC
- econf \
- --prefix=/usr/$(get_libdir)/news \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --with-control-dir=/usr/$(get_libdir)/news/bin/control \
- --with-etc-dir=/etc/news \
- --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-path=/var/spool/news/tmp \
- --enable-libtool \
- --enable-setgid-inews \
- --enable-uucp-rnews \
- --without-tcl \
- $(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) \
- || die "econf failed"
- emake -j1 P="" || die "emake failed"
-}
-
-src_install() {
- make DESTDIR="${D}/" P="" SPECIAL="" install || die "make install failed"
-
- chown -R root:0 "${D}"/usr/{$(get_libdir)/news/{lib,include},share/{doc,man}}
- chmod 644 "${D}"/etc/news/*
- for file in control.ctl expire.ctl incoming.conf nntpsend.ctl passwd.nntp readers.conf
- do
- chmod 640 "${D}"/etc/news/${file}
- done
-
- # 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,run}/news \
- /var/spool/news/{,archive,articles,db,incoming{,/bad},innfeed,outgoing,overview,tmp}
-
- dodoc ChangeLog MANIFEST README* doc/checklist
- use ipv6 && dodoc doc/IPv6-info
-
- # So other programs can build against INN. (eg. Suck)
- insinto /usr/$(get_libdir)/news/include
- doins include/*.h
-
- doinitd "${FILESDIR}"/innd 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 "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
- if [ ${UID} -eq 0 ]
- then
- einfo "Changing shell to /bin/bash for user news..."
- usermod -s /bin/bash news
- else
- NEWS_ERRFLAG=1
- eerror
- eerror "Could not change shell for user news."
- eerror "Please run 'usermod -s /bin/bash news' as root."
- fi
- 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
-
- su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i"
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.dir "${NEWSSPOOL_DIR}"/db/history.dir
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.pag "${NEWSSPOOL_DIR}"/db/history.pag
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.hash "${NEWSSPOOL_DIR}"/db/history.hash
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.index "${NEWSSPOOL_DIR}"/db/history.index
- su - news -c /usr/$(get_libdir)/news/bin/makehistory
- else
- NEWS_ERRFLAG="1"
- eerror
- 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. Leaving history database as it is."
- fi
-
- INNCFG_INODES="$(sed -e '/innwatchspoolnodes/ ! d' /etc/news/inn.conf | sed -e 's/[^ ]*[ ]*\([^ ]*\)/\1/')"
- INNSPOOL_INODES="$(df -Pi ${NEWSSPOOL_DIR} | sed -e 's/[^ ]*[ ]*\([^ ]*\).*/\1/' | sed -e '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 -e '/innwatchspoolnodes/ s/\([^ ]*\)\([ ]*\).*/\1\20/' /etc/news/inn.conf
- 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
- eerror "There were one or more errors/warnings checking your configuration."
- eerror "Please read inn's documentation and fix them accordingly."
- else
- einfo
- einfo "Inn configuration tests passed successfully."
- einfo
- ewarn "Please ensure you configured inn properly."
- fi
-}
diff --git a/net-nntp/inn/inn-2.5.0.ebuild b/net-nntp/inn/inn-2.5.0.ebuild
deleted file mode 100644
index 14ce389a9636..000000000000
--- a/net-nntp/inn/inn-2.5.0.ebuild
+++ /dev/null
@@ -1,246 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/inn/inn-2.5.0.ebuild,v 1.5 2010/01/12 17:50:06 mr_bones_ Exp $
-
-EAPI="2"
-
-inherit autotools eutils fixheadtails multilib ssl-cert
-
-# they fail since 2.4.x, so ...
-#RESTRICT="test"
-
-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"
-
-SLOT="0"
-LICENSE="as-is BSD GPL-2"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="ipv6 kerberos sasl ssl perl python berkdb inntaggedhash innkeywords"
-
-RDEPEND="virtual/mta
- kerberos? ( virtual/krb5 )
- sasl? ( >=dev-libs/cyrus-sasl-2 )
- ssl? ( dev-libs/openssl )
- perl? ( dev-perl/MIME-tools )
- python? ( dev-lang/python )
- berkdb? ( sys-libs/db )"
-DEPEND="${RDEPEND}"
-
-src_prepare() {
- #ht_fix_file configure.in support/fixscript.in
- sed -i -e "s/ -B .OLD//" Makefile.global.in || die "sed failed"
-
- # Do not treat LDFLAGS as if it contained libraries to link to
- sed -i m4/python.m4 -e 's|LDFLAGS||g' || die "sed python.m4 failed"
-
- # We do not have the biff service, but we do have comsat
- sed -i tests/lib/getnameinfo-t.c \
- -e 's|"biff"|"comsat"|g' \
- || die "sed getnameinfo-t.c failed"
-
- 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) \
- || die "econf failed"
-}
-
-src_install() {
- emake DESTDIR="${D}/" P="" SPECIAL="" install || die "make install failed"
-
- chown -R root:0 "${D}"/usr/{$(get_libdir)/news/{lib,include},share/{doc,man}}
- chmod 644 "${D}"/etc/news/*
- for file in control.ctl expire.ctl incoming.conf nntpsend.ctl passwd.nntp readers.conf
- do
- chmod 640 "${D}"/etc/news/${file}
- done
-
- # 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,run}/news \
- /var/spool/news/{,archive,articles,db,incoming{,/bad},innfeed,outgoing,overview,tmp}
-
- dodoc ChangeLog MANIFEST README* doc/checklist
- use ipv6 && dodoc doc/IPv6-info
-
- # So other programs can build against INN. (eg. Suck)
- insinto /usr/$(get_libdir)/news/include
- doins include/*.h
-
- doinitd "${FILESDIR}"/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 "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
- if [ ${UID} -eq 0 ]
- then
- einfo "Changing shell to /bin/bash for user news..."
- usermod -s /bin/bash news
- else
- NEWS_ERRFLAG=1
- eerror
- eerror "Could not change shell for user news."
- eerror "Please run 'usermod -s /bin/bash news' as root."
- fi
- 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
-
- su - news -c "/usr/$(get_libdir)/news/bin/makedbz -i"
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.dir ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.dir "${NEWSSPOOL_DIR}"/db/history.dir
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.pag ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.pag "${NEWSSPOOL_DIR}"/db/history.pag
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.hash ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.hash "${NEWSSPOOL_DIR}"/db/history.hash
- [[ -f ${NEWSSPOOL_DIR}/db/history.n.index ]] && mv -f "${NEWSSPOOL_DIR}"/db/history.n.index "${NEWSSPOOL_DIR}"/db/history.index
- su - news -c /usr/$(get_libdir)/news/bin/makehistory
- else
- NEWS_ERRFLAG="1"
- eerror
- 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. Leaving history database as it is."
- fi
-
- INNCFG_INODES="$(sed -e '/innwatchspoolnodes/ ! d' /etc/news/inn.conf | sed -e 's/[^ ]*[ ]*\([^ ]*\)/\1/')"
- INNSPOOL_INODES="$(df -Pi ${NEWSSPOOL_DIR} | sed -e 's/[^ ]*[ ]*\([^ ]*\).*/\1/' | sed -e '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 -e '/innwatchspoolnodes/ s/\([^ ]*\)\([ ]*\).*/\1\20/' /etc/news/inn.conf
- 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
- eerror "There were one or more errors/warnings checking your configuration."
- eerror "Please read inn's documentation and fix them accordingly."
- else
- einfo
- einfo "Inn configuration tests passed successfully."
- einfo
- ewarn "Please ensure you configured inn properly."
- fi
-}