Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 148773 Details for
Bug 216374
dev-python/pyzor - pyzord should not run as root
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
pyzord ebuild
pyzor-0.4.0-r4.ebuild (text/plain), 2.08 KB, created by
Benny Pedersen
on 2008-04-05 19:04:36 UTC
(
hide
)
Description:
pyzord ebuild
Filename:
MIME Type:
Creator:
Benny Pedersen
Created:
2008-04-05 19:04:36 UTC
Size:
2.08 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit distutils eutils > >DESCRIPTION="A distributed, collaborative spam detection and filtering network" >HOMEPAGE="http://pyzor.sourceforge.net/" >SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" >IUSE="pyzord" > >DEPEND="dev-lang/python" > >pkg_setup() { > if use pyzord ; then > if ! built_with_use 'dev-lang/python' gdbm ; then > die "you need to rebuild python with gdbm support" > fi > fi > enewgroup pyzord > enewuser pyzord -1 -1 /var/lib/pyzord pyzord >} > >src_unpack() { > unpack ${A} > cd "${S}" > > epatch "${FILESDIR}/debian_mbox.patch" > epatch "${FILESDIR}/handle_unknown_encodings.patch" > epatch "${FILESDIR}/pyzord_getopt.patch" > epatch "${FILESDIR}/unknown_type.patch" > > # rfc822BodyCleanerTest doesn't work fine > # remove it until it's fixed > sed -i \ > -e '/rfc822BodyCleanerTest/,/self\.assertEqual/d' \ > unittests.py || die "sed in unittest.py failed" >} > >src_install () { > DOCS="INSTALL THANKS UPGRADING" > distutils_src_install > dohtml docs/usage.html > rm -rf "${D}/usr/share/doc/pyzor" > > if use pyzord ; then > dodir /usr/sbin > mv "${D}/usr/bin/pyzord" "${D}/usr/sbin/" > fi > # added for pyzord > keepdir /var/lib/pyzord > fperms 700 /var/lib/pyzord > fowners pyzord:pyzord /var/lib/pyzord > cp "${FILESDIR}/access" "${D}/var/lib/pyzord/access" > cp "${FILESDIR}/config" "${D}/var/lib/pyzord/config" > cp "${FILESDIR}/passwd" "${D}/var/lib/pyzord/passwd" > cp "${FILESDIR}/servers" "${D}/var/lib/pyzord/servers" > > # pyzord will create its db file in here > > # non root user need pid and log as subdir > keepdir /var/run/pyzord > fperms 700 /var/run/pyzord > fowners pyzord:pyzord /var/run/pyzord > > # non root user need pid and log as subdir > keepdir /var/log/pyzord > fperms 700 /var/log/pyzord > fowners pyzord:pyzord /var/log/pyzord >} > >pkg_postinst() { > if use pyzord ; then > ewarn "/usr/bin/pyzord has been moved to /usr/sbin" > fi >} > >src_test() { > PYTHONPATH=build/lib/ "${python}" unittests.py ||Â die "tests failed" >}
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 216374
: 148773 |
148775
|
148781