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)
This commit is contained in:
Boris Samorodov 2006-07-10 22:48:01 +00:00
parent 13ed7d5946
commit 110fdaf7b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=167415
9 changed files with 54 additions and 0 deletions

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.