aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emulators/linux_base-c6/Makefile6
-rw-r--r--emulators/linux_base-f10/Makefile6
-rw-r--r--emulators/linux_base-f7/Makefile6
-rw-r--r--emulators/linux_base-f8/Makefile6
-rw-r--r--emulators/linux_base-f9/Makefile6
-rw-r--r--emulators/linux_base-f9/linux_base-f8/Makefile6
-rw-r--r--emulators/linux_base-fc4/Makefile6
-rw-r--r--emulators/linux_base-fc6/Makefile6
-rw-r--r--emulators/linux_base-fc7/Makefile6
9 files changed, 54 insertions, 0 deletions
diff --git a/emulators/linux_base-c6/Makefile b/emulators/linux_base-c6/Makefile
index 0727b80f92ad..89de6b55fdac 100644
--- a/emulators/linux_base-c6/Makefile
+++ b/emulators/linux_base-c6/Makefile
@@ -172,11 +172,17 @@ do-build:
#
@${MV} ${WRKSRC}/etc/nsswitch.conf ${WRKSRC}/etc/nsswitch.conf.dist
+# Fix usr/bin/*db4* permissions to allow "portupgrade -s"
+ @${CHMOD} u+w ${WRKSRC}/usr/bin/*db4*
+
@${FIND} ${WRKSRC}/bin ${WRKSRC}/sbin/ ${WRKSRC}/usr/bin \
${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \
| ${GREP} ELF | ${CUT} -d : -f 1 \
| ${XARGS} ${BRANDELF} -t Linux
+# Restore the status quo for usr/bin/*db4* files
+ @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4*
+
do-install:
#
# Handle the loading of the linux loadable kernel module if required.
diff --git a/emulators/linux_base-f10/Makefile b/emulators/linux_base-f10/Makefile
index 0727b80f92ad..89de6b55fdac 100644
--- a/emulators/linux_base-f10/Makefile
+++ b/emulators/linux_base-f10/Makefile
@@ -172,11 +172,17 @@ do-build:
#
@${MV} ${WRKSRC}/etc/nsswitch.conf ${WRKSRC}/etc/nsswitch.conf.dist
+# Fix usr/bin/*db4* permissions to allow "portupgrade -s"
+ @${CHMOD} u+w ${WRKSRC}/usr/bin/*db4*
+
@${FIND} ${WRKSRC}/bin ${WRKSRC}/sbin/ ${WRKSRC}/usr/bin \
${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \
| ${GREP} ELF | ${CUT} -d : -f 1 \
| ${XARGS} ${BRANDELF} -t Linux
+# Restore the status quo for usr/bin/*db4* files
+ @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4*
+
do-install:
#
# Handle the loading of the linux loadable kernel module if required.
diff --git a/emulators/linux_base-f7/Makefile b/emulators/linux_base-f7/Makefile
index 0727b80f92ad..89de6b55fdac 100644
--- a/emulators/linux_base-f7/Makefile
+++ b/emulators/linux_base-f7/Makefile
@@ -172,11 +172,17 @@ do-build:
#
@${MV} ${WRKSRC}/etc/nsswitch.conf ${WRKSRC}/etc/nsswitch.conf.dist
+# Fix usr/bin/*db4* permissions to allow "portupgrade -s"
+ @${CHMOD} u+w ${WRKSRC}/usr/bin/*db4*
+
@${FIND} ${WRKSRC}/bin ${WRKSRC}/sbin/ ${WRKSRC}/usr/bin \
${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \
| ${GREP} ELF | ${CUT} -d : -f 1 \
| ${XARGS} ${BRANDELF} -t Linux
+# Restore the status quo for usr/bin/*db4* files
+ @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4*
+
do-install:
#
# Handle the loading of the linux loadable kernel module if required.
diff --git a/emulators/linux_base-f8/Makefile b/emulators/linux_base-f8/Makefile
index 0727b80f92ad..89de6b55fdac 100644
--- a/emulators/linux_base-f8/Makefile
+++ b/emulators/linux_base-f8/Makefile
@@ -172,11 +172,17 @@ do-build:
#
@${MV} ${WRKSRC}/etc/nsswitch.conf ${WRKSRC}/etc/nsswitch.conf.dist
+# Fix usr/bin/*db4* permissions to allow "portupgrade -s"
+ @${CHMOD} u+w ${WRKSRC}/usr/bin/*db4*
+
@${FIND} ${WRKSRC}/bin ${WRKSRC}/sbin/ ${WRKSRC}/usr/bin \
${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \
| ${GREP} ELF | ${CUT} -d : -f 1 \
| ${XARGS} ${BRANDELF} -t Linux
+# Restore the status quo for usr/bin/*db4* files
+ @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4*
+
do-install:
#
# Handle the loading of the linux loadable kernel module if required.
diff --git a/emulators/linux_base-f9/Makefile b/emulators/linux_base-f9/Makefile
index 0727b80f92ad..89de6b55fdac 100644
--- a/emulators/linux_base-f9/Makefile
+++ b/emulators/linux_base-f9/Makefile
@@ -172,11 +172,17 @@ do-build:
#
@${MV} ${WRKSRC}/etc/nsswitch.conf ${WRKSRC}/etc/nsswitch.conf.dist
+# Fix usr/bin/*db4* permissions to allow "portupgrade -s"
+ @${CHMOD} u+w ${WRKSRC}/usr/bin/*db4*
+
@${FIND} ${WRKSRC}/bin ${WRKSRC}/sbin/ ${WRKSRC}/usr/bin \
${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \
| ${GREP} ELF | ${CUT} -d : -f 1 \
| ${XARGS} ${BRANDELF} -t Linux
+# Restore the status quo for usr/bin/*db4* files
+ @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4*
+
do-install:
#
# Handle the loading of the linux loadable kernel module if required.
diff --git a/emulators/linux_base-f9/linux_base-f8/Makefile b/emulators/linux_base-f9/linux_base-f8/Makefile
index 0727b80f92ad..89de6b55fdac 100644
--- a/emulators/linux_base-f9/linux_base-f8/Makefile
+++ b/emulators/linux_base-f9/linux_base-f8/Makefile
@@ -172,11 +172,17 @@ do-build:
#
@${MV} ${WRKSRC}/etc/nsswitch.conf ${WRKSRC}/etc/nsswitch.conf.dist
+# Fix usr/bin/*db4* permissions to allow "portupgrade -s"
+ @${CHMOD} u+w ${WRKSRC}/usr/bin/*db4*
+
@${FIND} ${WRKSRC}/bin ${WRKSRC}/sbin/ ${WRKSRC}/usr/bin \
${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \
| ${GREP} ELF | ${CUT} -d : -f 1 \
| ${XARGS} ${BRANDELF} -t Linux
+# Restore the status quo for usr/bin/*db4* files
+ @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4*
+
do-install:
#
# Handle the loading of the linux loadable kernel module if required.
diff --git a/emulators/linux_base-fc4/Makefile b/emulators/linux_base-fc4/Makefile
index 0727b80f92ad..89de6b55fdac 100644
--- a/emulators/linux_base-fc4/Makefile
+++ b/emulators/linux_base-fc4/Makefile
@@ -172,11 +172,17 @@ do-build:
#
@${MV} ${WRKSRC}/etc/nsswitch.conf ${WRKSRC}/etc/nsswitch.conf.dist
+# Fix usr/bin/*db4* permissions to allow "portupgrade -s"
+ @${CHMOD} u+w ${WRKSRC}/usr/bin/*db4*
+
@${FIND} ${WRKSRC}/bin ${WRKSRC}/sbin/ ${WRKSRC}/usr/bin \
${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \
| ${GREP} ELF | ${CUT} -d : -f 1 \
| ${XARGS} ${BRANDELF} -t Linux
+# Restore the status quo for usr/bin/*db4* files
+ @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4*
+
do-install:
#
# Handle the loading of the linux loadable kernel module if required.
diff --git a/emulators/linux_base-fc6/Makefile b/emulators/linux_base-fc6/Makefile
index 0727b80f92ad..89de6b55fdac 100644
--- a/emulators/linux_base-fc6/Makefile
+++ b/emulators/linux_base-fc6/Makefile
@@ -172,11 +172,17 @@ do-build:
#
@${MV} ${WRKSRC}/etc/nsswitch.conf ${WRKSRC}/etc/nsswitch.conf.dist
+# Fix usr/bin/*db4* permissions to allow "portupgrade -s"
+ @${CHMOD} u+w ${WRKSRC}/usr/bin/*db4*
+
@${FIND} ${WRKSRC}/bin ${WRKSRC}/sbin/ ${WRKSRC}/usr/bin \
${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \
| ${GREP} ELF | ${CUT} -d : -f 1 \
| ${XARGS} ${BRANDELF} -t Linux
+# Restore the status quo for usr/bin/*db4* files
+ @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4*
+
do-install:
#
# Handle the loading of the linux loadable kernel module if required.
diff --git a/emulators/linux_base-fc7/Makefile b/emulators/linux_base-fc7/Makefile
index 0727b80f92ad..89de6b55fdac 100644
--- a/emulators/linux_base-fc7/Makefile
+++ b/emulators/linux_base-fc7/Makefile
@@ -172,11 +172,17 @@ do-build:
#
@${MV} ${WRKSRC}/etc/nsswitch.conf ${WRKSRC}/etc/nsswitch.conf.dist
+# Fix usr/bin/*db4* permissions to allow "portupgrade -s"
+ @${CHMOD} u+w ${WRKSRC}/usr/bin/*db4*
+
@${FIND} ${WRKSRC}/bin ${WRKSRC}/sbin/ ${WRKSRC}/usr/bin \
${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \
| ${GREP} ELF | ${CUT} -d : -f 1 \
| ${XARGS} ${BRANDELF} -t Linux
+# Restore the status quo for usr/bin/*db4* files
+ @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4*
+
do-install:
#
# Handle the loading of the linux loadable kernel module if required.