diff options
author | Pacho Ramos <pacho@gentoo.org> | 2014-07-01 17:06:26 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2014-07-01 17:06:26 +0000 |
commit | edc069daed89a05b7e4b5d2449043d4c8293e040 (patch) | |
tree | 2791343bf20c37afd57d3ce74dba3bc97e8aa0da /net-proxy/ntlmaps | |
parent | ntpdate needs network to be really connected and working (#501298 by Juergen ... (diff) | |
download | gentoo-2-edc069daed89a05b7e4b5d2449043d4c8293e040.tar.gz gentoo-2-edc069daed89a05b7e4b5d2449043d4c8293e040.tar.bz2 gentoo-2-edc069daed89a05b7e4b5d2449043d4c8293e040.zip |
Add unit file, bug #513618 by StalkerNOVA
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-proxy/ntlmaps')
-rw-r--r-- | net-proxy/ntlmaps/ChangeLog | 8 | ||||
-rw-r--r-- | net-proxy/ntlmaps/files/ntlmaps.service | 10 | ||||
-rw-r--r-- | net-proxy/ntlmaps/ntlmaps-0.9.9.6-r3.ebuild | 71 |
3 files changed, 88 insertions, 1 deletions
diff --git a/net-proxy/ntlmaps/ChangeLog b/net-proxy/ntlmaps/ChangeLog index 71f344cdf6ad..01083053dfa5 100644 --- a/net-proxy/ntlmaps/ChangeLog +++ b/net-proxy/ntlmaps/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/ntlmaps # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/ntlmaps/ChangeLog,v 1.19 2014/01/08 06:24:06 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/ntlmaps/ChangeLog,v 1.20 2014/07/01 17:06:26 pacho Exp $ + +*ntlmaps-0.9.9.6-r3 (01 Jul 2014) + + 01 Jul 2014; Pacho Ramos <pacho@gentoo.org> +files/ntlmaps.service, + +ntlmaps-0.9.9.6-r3.ebuild: + Add unit file, bug #513618 by StalkerNOVA 08 Jan 2014; Mike Frysinger <vapier@gentoo.org> ntlmaps-0.9.9-r2.ebuild, ntlmaps-0.9.9.6-r2.ebuild: diff --git a/net-proxy/ntlmaps/files/ntlmaps.service b/net-proxy/ntlmaps/files/ntlmaps.service new file mode 100644 index 000000000000..163ab2623ed2 --- /dev/null +++ b/net-proxy/ntlmaps/files/ntlmaps.service @@ -0,0 +1,10 @@ +[Unit] +Description=NTLM proxy Authentication against MS proxy/web server +Wants=network.target +Before=network.target + +[Service] +ExecStart=/usr/bin/ntlmaps + +[Install] +WantedBy=multi-user.target diff --git a/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r3.ebuild b/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r3.ebuild new file mode 100644 index 000000000000..a444a3e6551c --- /dev/null +++ b/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2014 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-r3.ebuild,v 1.1 2014/07/01 17:06:26 pacho Exp $ + +EAPI=5 + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS=1 +RESTRICT_PYTHON_ABIS="3.*" + +inherit eutils python systemd user + +DESCRIPTION="NTLM proxy Authentication against MS proxy/web server" +HOMEPAGE="http://ntlmaps.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86" + +pkg_setup() { + python_pkg_setup + + enewgroup ntlmaps + enewuser ntlmaps -1 -1 -1 ntlmaps +} + +src_prepare() { + epatch "${FILESDIR}/${P}-gentoo.patch" + python_convert_shebangs 2 main.py + + sed -i -e 's/\r//' lib/*.py server.cfg doc/*.{txt,htm} || die 'Failed to convert line endings.' +} + +src_install() { + # Bug #351305, prevent file collision. + rm "${S}"/lib/utils.py + + installation() { + insinto $(python_get_sitedir) + doins lib/*.py + } + python_execute_function installation + + pushd lib > /dev/null + PYTHON_MODULES=(*.py) + popd > /dev/null + + exeinto /usr/bin + newexe main.py ntlmaps + + dodoc doc/*.txt + dohtml doc/*.{gif,htm} + + insopts -m0640 -g ntlmaps + insinto /etc/ntlmaps + doins server.cfg + newinitd "${FILESDIR}/ntlmaps.init" ntlmaps + systemd_dounit "${FILESDIR}"/${PN}.service + + diropts -m 0770 -g ntlmaps + keepdir /var/log/ntlmaps +} + +pkg_postinst() { + python_mod_optimize "${PYTHON_MODULES[@]}" +} + +pkg_postrm() { + python_mod_cleanup "${PYTHON_MODULES[@]}" +} |