summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2005-04-22 19:15:12 +0000
committerAlin Năstac <mrness@gentoo.org>2005-04-22 19:15:12 +0000
commitf37e8c80d1499334a8b5d51bf781f5a655e68147 (patch)
tree00cd35d8f79526e3d16c31f19bf342992ba539c2 /net-proxy/ntlmaps/files
parentAdding pcmcia flag. Closes #90025, Cheers Georgi (diff)
downloadhistorical-f37e8c80d1499334a8b5d51bf781f5a655e68147.tar.gz
historical-f37e8c80d1499334a8b5d51bf781f5a655e68147.tar.bz2
historical-f37e8c80d1499334a8b5d51bf781f5a655e68147.zip
www-proxy -> net-proxy
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-proxy/ntlmaps/files')
-rw-r--r--net-proxy/ntlmaps/files/digest-ntlmaps-0.9.91
-rw-r--r--net-proxy/ntlmaps/files/ntlmaps-0.9.9-gentoo.patch37
-rw-r--r--net-proxy/ntlmaps/files/ntlmaps.init26
3 files changed, 64 insertions, 0 deletions
diff --git a/net-proxy/ntlmaps/files/digest-ntlmaps-0.9.9 b/net-proxy/ntlmaps/files/digest-ntlmaps-0.9.9
new file mode 100644
index 000000000000..9d4bc473464f
--- /dev/null
+++ b/net-proxy/ntlmaps/files/digest-ntlmaps-0.9.9
@@ -0,0 +1 @@
+MD5 02d0f83f499eaf988de4ffab2dfd3618 ntlmaps-0.9.9.tar.gz 55459
diff --git a/net-proxy/ntlmaps/files/ntlmaps-0.9.9-gentoo.patch b/net-proxy/ntlmaps/files/ntlmaps-0.9.9-gentoo.patch
new file mode 100644
index 000000000000..02e90f2ccf9d
--- /dev/null
+++ b/net-proxy/ntlmaps/files/ntlmaps-0.9.9-gentoo.patch
@@ -0,0 +1,37 @@
+diff -Nru ntlmaps-0.9.9.orig/__init__.py ntlmaps-0.9.9/__init__.py
+--- ntlmaps-0.9.9.orig/__init__.py 2004-11-10 01:27:05.000000000 +0200
++++ ntlmaps-0.9.9/__init__.py 2005-02-24 13:07:56.601327735 +0200
+@@ -22,8 +22,7 @@
+
+ import os, sys
+
+-ntlmaps_dir = os.path.dirname(os.path.abspath(__file__))
+-ntlmaps_libdir = ntlmaps_dir + '/lib'
++ntlmaps_dir = '/usr/lib/ntlmaps'
+ sys.path.append(ntlmaps_libdir)
+
+ del os, sys
+diff -Nru ntlmaps-0.9.9.orig/main.py ntlmaps-0.9.9/main.py
+--- ntlmaps-0.9.9.orig/main.py 2005-02-01 04:45:02.000000000 +0200
++++ ntlmaps-0.9.9/main.py 2005-02-24 13:11:46.762545214 +0200
+@@ -18,17 +18,17 @@
+ # Free Software Foundation, Inc.,
+ # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+ #
+-import __init__
+-
+ import sys
+
++sys.path.append('/usr/lib/ntlmaps')
++
+ import server, config, config_affairs
+
+
+ #--------------------------------------------------------------
+ # config affairs
+ # look for default config name in lib/config.py
+-conf = config.read_config(config.findConfigFileNameInArgv(sys.argv, __init__.ntlmaps_dir+'/'))
++conf = config.read_config('/etc/ntlmaps/server.cfg')
+
+ conf['GENERAL']['VERSION'] = '0.9.9'
+
diff --git a/net-proxy/ntlmaps/files/ntlmaps.init b/net-proxy/ntlmaps/files/ntlmaps.init
new file mode 100644
index 000000000000..8cf3288a0db0
--- /dev/null
+++ b/net-proxy/ntlmaps/files/ntlmaps.init
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ntlmaps/files/ntlmaps.init,v 1.1 2005/04/22 19:15:11 mrness Exp $
+
+PID_FILE="/var/run/ntlmaps.pid"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ntlmaps"
+ touch ${PID_FILE}
+ chown nobody:nogroup ${PID_FILE}
+ start-stop-daemon --quiet --start --background --exec /usr/bin/python \
+ --make-pidfile --pidfile ${PID_FILE} --chuid nobody -- /usr/bin/ntlmaps < /dev/null && \
+ sleep 1
+ eend $?
+}
+stop() {
+ ebegin "Stopping ntlmaps"
+ start-stop-daemon --stop --quiet --pidfile ${PID_FILE} && \
+ rm -f ${PID_FILE}
+ eend $?
+}