summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-10-15 21:44:40 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-10-15 21:44:40 +0000
commit8dec821aa0f7f642b685a6c19434c5b21e4b294a (patch)
tree7dd186fe8f1707e5a618352798ac09f2e19be979 /net-proxy
parentDrop powerpc keywords so the global package mask can be removed. (diff)
downloadgentoo-2-8dec821aa0f7f642b685a6c19434c5b21e4b294a.tar.gz
gentoo-2-8dec821aa0f7f642b685a6c19434c5b21e4b294a.tar.bz2
gentoo-2-8dec821aa0f7f642b685a6c19434c5b21e4b294a.zip
Call python_pkg_setup(), python_mod_optimize() and python_mod_cleanup(). Delete obsolete code in pkg_preinst().
(Portage version: 2.2_rc96_p20/cvs/Linux x86_64)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/ntlmaps/ChangeLog7
-rw-r--r--net-proxy/ntlmaps/ntlmaps-0.9.9.6-r1.ebuild20
2 files changed, 18 insertions, 9 deletions
diff --git a/net-proxy/ntlmaps/ChangeLog b/net-proxy/ntlmaps/ChangeLog
index e03db41f614c..7e9e3c6933bb 100644
--- a/net-proxy/ntlmaps/ChangeLog
+++ b/net-proxy/ntlmaps/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-proxy/ntlmaps
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/ntlmaps/ChangeLog,v 1.16 2010/10/14 09:26:35 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ntlmaps/ChangeLog,v 1.17 2010/10/15 21:44:40 arfrever Exp $
+
+ 15 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ ntlmaps-0.9.9.6-r1.ebuild:
+ Call python_pkg_setup(), python_mod_optimize() and python_mod_cleanup().
+ Delete obsolete code in pkg_preinst().
*ntlmaps-0.9.9.6-r1 (14 Oct 2010)
diff --git a/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r1.ebuild b/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r1.ebuild
index 6e9d9e8c9dee..5760694cc343 100644
--- a/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r1.ebuild
+++ b/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r1.ebuild,v 1.1 2010/10/14 09:26:35 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r1.ebuild,v 1.2 2010/10/15 21:44:40 arfrever Exp $
EAPI=3
@@ -20,6 +20,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86"
IUSE=""
pkg_setup() {
+ python_pkg_setup
enewgroup ntlmaps
enewuser ntlmaps -1 -1 -1 ntlmaps
}
@@ -40,6 +41,10 @@ src_install() {
}
python_execute_function installation
+ pushd lib > /dev/null
+ PYTHON_MODULES=(*.py)
+ popd > /dev/null
+
# exes ------------------------------------------------------------------
exeinto /usr/bin
newexe main.py ntlmaps || die "failed to install main program"
@@ -56,11 +61,10 @@ src_install() {
keepdir /var/log/ntlmaps
}
-pkg_preinst() {
- #Remove the following lines sometime in December 2005
- #Their purpose is to fix security bug #107766
- if [ -f "${ROOT}/etc/ntlmaps/server.cfg" ]; then
- chmod 0640 "${ROOT}/etc/ntlmaps/server.cfg"
- chgrp ntlmaps "${ROOT}/etc/ntlmaps/server.cfg"
- fi
+pkg_postinst() {
+ python_mod_optimize "${PYTHON_MODULES[@]}"
+}
+
+pkg_postrm() {
+ python_mod_cleanup "${PYTHON_MODULES[@]}"
}