Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 249752 Details for
Bug 315877
net-proxy/ntlmaps: Verify and potentially improve Python-related code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for adding use of eclass python
ntlmaps-0.9.9.6-python.patch (text/plain), 1.81 KB, created by
montjoie
on 2010-10-06 14:54:37 UTC
(
hide
)
Description:
patch for adding use of eclass python
Filename:
MIME Type:
Creator:
montjoie
Created:
2010-10-06 14:54:37 UTC
Size:
1.81 KB
patch
obsolete
>--- /usr/portage/net-proxy/ntlmaps/ntlmaps-0.9.9.6.ebuild 2009-04-05 10:08:24.000000000 +0200 >+++ ntlmaps-0.9.9.6.ebuild 2010-10-06 16:25:35.000000000 +0200 >@@ -2,7 +2,13 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/net-proxy/ntlmaps/ntlmaps-0.9.9.6.ebuild,v 1.4 2007/11/04 08:15:06 mrness Exp $ > >-inherit eutils >+EAPI=3 >+ >+PYTHON_DEPEND="2" >+SUPPORT_PYTHON_ABIS=1 >+RESTRICT_PYTHON_ABIS="3.*" >+ >+inherit eutils python > > DESCRIPTION="NTLM proxy Authentication against MS proxy/web server" > HOMEPAGE="http://ntlmaps.sourceforge.net/" >@@ -13,17 +19,14 @@ > KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86" > IUSE="" > >-DEPEND="dev-lang/python" >- > pkg_setup() { > enewgroup ntlmaps > enewuser ntlmaps -1 -1 -1 ntlmaps > } > >-src_unpack() { >- unpack ${A} >- >+src_prepare() { > epatch "${FILESDIR}/${P}-gentoo.patch" >+ python_convert_shebangs 2 main.py > > #stupid windoze style > cd "${S}" >@@ -31,14 +34,18 @@ > } > > src_install() { >+ installation() { >+ insinto $(python_get_sitedir) >+ doins lib/*.py || die >+ } >+ python_execute_function installation >+ > # exes ------------------------------------------------------------------ > exeinto /usr/bin > newexe main.py ntlmaps || die "failed to install main program" >- insinto /usr/lib/ntlmaps >- doins lib/* || die "failed to install python modules" > # doc ------------------------------------------------------------------- >- dodoc doc/*.txt >- dohtml doc/*.{gif,htm} >+ dodoc doc/*.txt || die >+ dohtml doc/*.{gif,htm} ||die > # conf ------------------------------------------------------------------ > insopts -m0640 -g ntlmaps > insinto /etc/ntlmaps >@@ -57,8 +64,3 @@ > chgrp ntlmaps "${ROOT}/etc/ntlmaps/server.cfg" > fi > } >- >-pkg_prerm() { >- einfo "Removing python compiled bytecode" >- rm -f "${ROOT}"/usr/lib/ntlmaps/*.py? >-}
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 315877
: 249752 |
249754