aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/portupgrade-devel/files/patch-etc-Makefile
blob: 31f27de19fec9291bcd6a38db8d8d3d9e3cf74f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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