Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 31483 Details for
Bug 29020
version bump : net-news/inn : 2.3.5 => 2.4.1 (stable+SECURITY fix)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
inn-2.4.1.ebuild
inn-2.4.1-r1.ebuild (text/plain), 8.51 KB, created by
Holger Thon
on 2004-05-15 09:35:13 UTC
(
hide
)
Description:
inn-2.4.1.ebuild
Filename:
MIME Type:
Creator:
Holger Thon
Created:
2004-05-15 09:35:13 UTC
Size:
8.51 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/net-news/inn/inn-2.3.5.ebuild,v 1.6 2003/09/08 07:58:41 msterret Exp $ > >IUSE="ipv6 kerberos sasl ssl perl python tcltk" > >S=${WORKDIR}/${P} >PGENTOO=${P/4.1/3.5} >DESCRIPTION="The Internet News daemon, fully featured NNTP server" >SRC_URI="ftp://ftp.isc.org/isc/inn/${P}.tar.gz > mirror://gentoo/${PGENTOO}-gentoo.tar.gz" >HOMEPAGE="http://www.isc.org/products/INN" > >SLOT="0" >LICENSE="as-is BSD" >KEYWORDS="x86" > >DEPEND=">=sys-devel/autoconf-2.13 > app-crypt/gnupg > virtual/mta > kerberos? ( virtual/krb5 ) > sasl? ( >=dev-libs/cyrus-sasl-2 ) > ssl? ( dev-libs/openssl ) > perl? ( dev-lang/perl ) > python? ( dev-lang/python ) > tcltk? ( dev-lang/tcl )" > ># berkdb? ( =sys-libs/db-3* ) > >src_compile() { > unset CFLAGS CXXFLAGS > if [ `use kerberos >/dev/null 2>&1` ]; then > WITH_KERBEROS="--with-kerberos=/usr" > else > WITH_KERBEROS="" > fi > export WANT_AUTOCONF="2.1" > sed 's|-B \.OLD||g' < Makefile.global.in > Makefile.global.tmp > mv -f Makefile.global.tmp Makefile.global.in > libtoolize --force --copy || die "libtoolize failed" > aclocal || die "aclocal failed" > ./configure --prefix=/usr/lib/news \ > --mandir=/usr/share/man \ > --infodir=/usr/share/info \ > --with-control-dir=/usr/lib/news/bin/control \ > --with-etc-dir=/etc/news \ > --with-filter-dir=/usr/lib/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 \ > --host=${CHOST} \ > --enable-libtool \ > --enable-setgid-inews \ > --enable-uucp-rnews \ > --with-gnu-ld \ > `use_with perl perl` \ > `use_with python python` \ > `use_with tcltk tcl` \ > `use_enable ipv6 ipv6` \ > $WITH_KERBEROS \ > `use_with sasl sasl` \ > `use_with ssl openssl` || die "configure died" > > OLD_P=${P} > unset P > make DESTDIR=${D} || die > P=${OLD_P} >} > >src_install() { > unset CFLAGS CXXFLAGS > OLD_P=${P} > unset P > make DESTDIR=${D} install || die "make install failed" > > P=${OLD_P} > ># Fix file permissions > for cfg_file in control.ctl expire.ctl nntpsend.ctl readers.conf ; do > if [ -f ${D}/etc/news/${cfg_file} ] > then > chmod 640 ${D}/etc/news/${cfg_file} > fi > done > chown root.root ${D}/usr/lib/news/lib/*.{a,la,so*} > chown -R root.root ${D}/usr/share/doc > chown -R root.root ${D}/usr/share/man > ># Prevent old db/* files from being overwritten > dodir /usr/share/doc/${PF}/dbexamples > insinto /usr/share/doc/${PF}/dbexamples > for db_file in active active.times distributions history newsgroups ; do > if [ -e ${D}/var/spool/news/db/${db_file} ] > then > doins ${D}/var/spool/news/db/${db_file} > rm -f ${D}/var/spool/news/db/${db_file} > fi > done > > keepdir /var/log/news/ > keepdir /var/run/news/ > keepdir /var/spool/news/ > keepdir /var/spool/news/archive/ > keepdir /var/spool/news/articles/ > keepdir /var/spool/news/db/ > keepdir /var/spool/news/incoming/ > keepdir /var/spool/news/incoming/bad/ > keepdir /var/spool/news/innfeed/ > keepdir /var/spool/news/outgoing/ > keepdir /var/spool/news/overview/ > keepdir /var/spool/news/tmp/ > > dodoc ChangeLog > dodoc MANIFEST README* > dodoc doc/checklist > > if [ -n "`use ipv6`" ] > then > dodoc doc/IPv6-info > fi ># Duplicates (for compression) > dodoc CONTRIBUTORS HACKING INSTALL LICENSE NEWS TODO > dodoc doc/compliance-nntp doc/config-design doc/config-semantics > dodoc doc/config-syntax doc/external-auth doc/history > dodoc doc/sample-control > dodoc doc/hook-perl doc/hook-python doc/hook-tcl > ># So other programs can build against INN. (eg. Suck) > insinto /usr/lib/news/include > doins include/*.h > > exeinto /etc/init.d > newexe ${FILESDIR}/innd innd > > cd ${WORKDIR} > doman send-uucp.pl.8.gz > insinto /etc/news > doins send-uucp.cf > exeinto /usr/lib/news/bin > newexe send-uucp.pl send-uucp.pl >} > >pkg_postinst() { > for db_file in active active.times distributions history newsgroups ; do > if [ -f ${ROOT}/usr/share/doc/${PF}/dbexamples/${db_file} \ > -a ! -f ${ROOT}/var/spool/news/db/${db_file} ]; then > cp -p ${ROOT}/usr/share/doc/${PF}/dbexamples/${db_file} \ > ${ROOT}/var/spool/news/db/${db_file} > chown news.news ${ROOT}/var/spool/news/db/${db_file} > chmod 664 ${ROOT}/var/spool/news/db/${db_file} > fi > done > chown news.news ${ROOT}/etc/news/send-uucp.cf > chown news.news ${ROOT}/usr/lib/news/bin/send-uucp.pl > chown -R news.news ${ROOT}/var/spool/news > chown -R news.news ${ROOT}/var/log/news/ > > einfo 'Do not forget to update your cron entries, and also run' > einfo 'makedbz if you need to. If this is a first-time installation' > einfo 'a minimal active file has been installed. You will need to' > einfo 'touch history and run "makedbz -i" to initialize the history' > einfo 'database. See INSTALL for more information.' > einfo '' > einfo 'You need to assign a real shell to the news user, or else' > einfo 'starting inn will fail. You can use "usermod -s /bin/bash news"' > einfo 'for this.' > if [ -n "`use ssl`" ] > then > einfo '' > einfo 'You may want to start nnrpd manually for native ssl support.' > einfo 'If you choose to do so, automating this with a bootscript might' > einfo 'also be a good choice.' > einfo 'Have a look at nnrpd(8) for valid parameters.' > fi >} > >pkg_postrm() { > einfo '' > einfo 'If you want your newsspool or altered configuration files' > einfo 'to be removed, please do so now manually.' > einfo '' >} > >pkg_config() { > DF=df > NEWSSPOOL_DIR=/var/spool/news > NEWSSPOOL_DF="`df -Ti ${NEWSSPOOL_DIR}|grep '[0-9]\+'`" > NEWSSPOOL_INODES=`echo ${NEWSSPOOL_DF}|awk '/[0-9]+/ { print $3; };'` > NEWS_SHELL=`awk -F':' '/^news:/ {print $7;}' /etc/passwd` > NEWS_ERRFLAG=0 > > if [ "${NEWS_SHELL}" == "/bin/false" -o "${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" -a "${NEWS_SHELL}" != "/bin/bash" ] > then > ewarn "You might want to change it to '/bin/bash', though." > fi > fi > if [ -n "`use ssl`" ] > then > if [ ! -f /usr/lib/news/lib/cert.pem ] > then > einfo 'Generating x509 certificate...' > openssl req -new -x509 -nodes \ > -out /usr/lib/news/lib/cert.pem \ > -keyout /usr/lib/news/lib/cert.pem > chown news.news /usr/lib/news/lib/cert.pem > chmod 600 /usr/lib/news/lib/cert.pem > else > einfo 'Leaving existing x509 certificate untouched...' > fi > fi > > if [ ! -e $NEWSSPOOL_DIR/db/history ] > then > if [ ! -e $NEWSSPOOL_DIR/db/history.dir \ > -a ! -e $NEWSSPOOL_DIR/db/history.hash \ > -a ! -e $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/lib/news/bin/makedbz -i" > mv $NEWSSPOOL_DIR/db/history.n.dir $NEWSSPOOL_DIR/db/history.dir > mv $NEWSSPOOL_DIR/db/history.n.hash $NEWSSPOOL_DIR/db/history.hash > mv $NEWSSPOOL_DIR/db/history.n.index $NEWSSPOOL_DIR/db/history.index > su - news -c "/usr/lib/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=`awk '/^innwatchspoolnodes:/ { print $2; }' /etc/news/inn.conf|tail -1` > if [ ${INNCFG_INODES} -gt ${NEWSSPOOL_INODES} ] > then > NEWS_ERRFLAG=1 > eerror 'Please correct your innwatchspoolnodes entry.' > eerror "It is set to ${INNCFG_INODES}, but df -Ti gave the following output:" > eerror ${NEWSSPOOL_DF} > eerror '' > fi > > INNCHECK_LINES=`su - news -c "/usr/lib/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/lib/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 >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 29020
:
26193
|
26196
|
26389
| 31483 |
38179
|
38180
|
38461
|
38462
|
38675