summaryrefslogtreecommitdiff
path: root/emulators/linux_base-f8
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2006-07-10 22:48:01 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2006-07-10 22:48:01 +0000
commit110fdaf7b5ea676a9fb22c4247d2289d09e25569 (patch)
tree87955b11ef62245bc1732a259c495518b8ee4d77 /emulators/linux_base-f8
parentDocument samba -- memory exhaustion DoS in smbd. (diff)
Fix using "portupgrade -s" with this port:
o chmod u+w ${WRKSRC}/usr/bin/*db4* (before brandelf) o reverse permittions after branding. PR: ports/100039 Submitted by: Stefan Sperling <freebsd-gnats@stsp.in-berlin.de> Approved by: netchild (mentor, implicit)
Notes
Notes: svn path=/head/; revision=167415
Diffstat (limited to 'emulators/linux_base-f8')
-rw-r--r--emulators/linux_base-f8/Makefile6
1 files changed, 6 insertions, 0 deletions
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.