View | Details | Raw Unified | Return to bug 194215 | Differences between
and this patch

Collapse All | Expand All

(-)emulators/dynagen/Makefile (+8 lines)
Lines 45-50 Link Here
45
USE_PYTHON=	distutils
45
USE_PYTHON=	distutils
46
ALL_TARGET=	# empty
46
ALL_TARGET=	# empty
47
47
48
post-patch:
49
	${FIND} ${WRKSRC} -type f -name \*.py -or -name dynagen -or -name pemu-start.sh \
50
		| ${XARGS} ${REINPLACE_CMD} -i '' \
51
		-e '1s|^\#![[:space:]]*/usr/bin/env python|\#!${PYTHON_CMD}|' \
52
		-e '1s|^\#![[:space:]]*/usr/bin/python|\#!${PYTHON_CMD}|' \
53
		-e 's|^python |${PYTHON_CMD} |' \
54
		-e "s|^CONFIGSPECPATH = .*|CONFIGSPECPATH = \['${PREFIX}/share/dynagen'\]|"
55
48
post-install:
56
post-install:
49
	${INSTALL_SCRIPT} ${WRKSRC}/dynagen ${STAGEDIR}${PREFIX}/bin
57
	${INSTALL_SCRIPT} ${WRKSRC}/dynagen ${STAGEDIR}${PREFIX}/bin
50
	${INSTALL_DATA} ${WRKSRC}/dynagen.ini ${STAGEDIR}${PREFIX}/etc/dynagen.ini.sample
58
	${INSTALL_DATA} ${WRKSRC}/dynagen.ini ${STAGEDIR}${PREFIX}/etc/dynagen.ini.sample
(-)emulators/dynagen/files/patch-confConsole.py (-8 lines)
Lines 1-8 Link Here
1
--- confConsole.py.orig	2008-06-11 14:54:32.000000000 +0400
2
+++ confConsole.py	2008-06-11 14:54:43.000000000 +0400
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/python
5
+#!/usr/local/bin/python
6
 # -*- coding: utf-8 -*-
7
 
8
 """
(-)emulators/dynagen/files/patch-console.py (-8 lines)
Lines 1-8 Link Here
1
--- console.py.orig	2008-06-11 14:53:38.000000000 +0400
2
+++ console.py	2008-06-11 14:53:57.000000000 +0400
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/python
5
+#!/usr/local/bin/python
6
 # -*- coding: utf-8 -*-
7
 
8
 """
(-)emulators/dynagen/files/patch-dynagen (-17 lines)
Lines 1-17 Link Here
1
--- dynagen.orig	2008-06-11 11:42:34.000000000 +0400
2
+++ dynagen	2008-06-11 12:18:16.000000000 +0400
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/python
5
+#!/usr/local/bin/python
6
 # -*- coding: utf-8 -*-
7
 
8
 """
9
@@ -41,7 +41,7 @@
10
 
11
 # Constants
12
 VERSION = '0.11.0'
13
-CONFIGSPECPATH = ['/usr/share/dynagen', '/usr/local/share']
14
+CONFIGSPECPATH = ['/usr/local/share/dynagen', '/usr/share/dynagen', '/usr/local/share']
15
 CONFIGSPEC = 'configspec'
16
 INIPATH = ['/etc', '/usr/local/etc']
17
 INIFILE = 'dynagen.ini'
(-)emulators/dynagen/files/patch-dynamips_lib.py (-8 lines)
Lines 1-8 Link Here
1
--- dynamips_lib.py.orig	2008-06-11 14:52:21.000000000 +0400
2
+++ dynamips_lib.py	2008-06-11 14:52:36.000000000 +0400
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/python
5
+#!/usr/local/bin/python
6
 # -*- coding: utf-8 -*-
7
 
8
 """
(-)emulators/dynagen/files/patch-pemu_lib.py (-8 lines)
Lines 1-8 Link Here
1
--- pemu_lib.py.orig	2008-06-11 14:50:50.000000000 +0400
2
+++ pemu_lib.py	2008-06-11 14:51:02.000000000 +0400
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/python
5
+#!/usr/local/bin/python
6
 # -*- coding: utf-8 -*-
7
 
8
 """

Return to bug 194215