1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

Fix the startup script for 4.x.

Submitted by:	<Nicole Thurner <thurners -at- t-online.de>
This commit is contained in:
Akinori MUSHA 2004-12-28 15:18:02 +00:00
parent 9f5b74992b
commit 61a77c177d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125343
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,14 @@
Index: etc/Makefile
===================================================================
--- etc/Makefile (リビジョン 1049)
+++ etc/Makefile (作業コピー)
@@ -32,7 +32,8 @@
${script}: ${script:T}
@mkdir -p ${BUILDDIR}
${RUBY} -p \
- -e 'sub %r:/usr/local:, "${PREFIX}"' \
+ -e 'sub(%r:/usr/local:, "${PREFIX}")' \
+ -e 'sub(%r:(/etc/rc\.subr):, "${PREFIX}\\1") if !File.exist?("/etc/rc.subr")' \
${.ALLSRC} > ${.TARGET}
.endfor

View File

@ -0,0 +1,14 @@
Index: etc/Makefile
===================================================================
--- etc/Makefile (リビジョン 1049)
+++ etc/Makefile (作業コピー)
@@ -32,7 +32,8 @@
${script}: ${script:T}
@mkdir -p ${BUILDDIR}
${RUBY} -p \
- -e 'sub %r:/usr/local:, "${PREFIX}"' \
+ -e 'sub(%r:/usr/local:, "${PREFIX}")' \
+ -e 'sub(%r:(/etc/rc\.subr):, "${PREFIX}\\1") if !File.exist?("/etc/rc.subr")' \
${.ALLSRC} > ${.TARGET}
.endfor

View File

@ -0,0 +1,14 @@
Index: etc/Makefile
===================================================================
--- etc/Makefile (リビジョン 1049)
+++ etc/Makefile (作業コピー)
@@ -32,7 +32,8 @@
${script}: ${script:T}
@mkdir -p ${BUILDDIR}
${RUBY} -p \
- -e 'sub %r:/usr/local:, "${PREFIX}"' \
+ -e 'sub(%r:/usr/local:, "${PREFIX}")' \
+ -e 'sub(%r:(/etc/rc\.subr):, "${PREFIX}\\1") if !File.exist?("/etc/rc.subr")' \
${.ALLSRC} > ${.TARGET}
.endfor

View File

@ -0,0 +1,14 @@
Index: etc/Makefile
===================================================================
--- etc/Makefile (リビジョン 1049)
+++ etc/Makefile (作業コピー)
@@ -32,7 +32,8 @@
${script}: ${script:T}
@mkdir -p ${BUILDDIR}
${RUBY} -p \
- -e 'sub %r:/usr/local:, "${PREFIX}"' \
+ -e 'sub(%r:/usr/local:, "${PREFIX}")' \
+ -e 'sub(%r:(/etc/rc\.subr):, "${PREFIX}\\1") if !File.exist?("/etc/rc.subr")' \
${.ALLSRC} > ${.TARGET}
.endfor