mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/rxvt-unicode: Fix permission.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
0104838b85
commit
39993d3d2c
1 changed files with 22 additions and 5 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
# Slackware build script for rxvt-unicode
|
||||
|
||||
# Written by Dugan Chen (dugan_c@fastmail.fm)
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -22,12 +21,14 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Maintained by LEVAI Daniel, 2010-2014
|
||||
# Maintained by Glenn Becker, 2015-
|
||||
# Currently maintained by Glenn Becker (glenn.becker@gmail.com)
|
||||
# Updates by Kevin Paulus, aka "goarilla" (goarilla@gmail.com)
|
||||
# Previously maintained by LEVAI Daniel, 2010-2014
|
||||
# Initial SlackBuild written by Dugan Chen (dugan_c@fastmail.fm)
|
||||
|
||||
PRGNAM=rxvt-unicode
|
||||
VERSION=${VERSION:-9.21}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -70,7 +71,7 @@ find -L . \
|
|||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Option to enable/disable the embedded perl interpreter
|
||||
CONFIG_PERL=${CONFIG_PERL:-YES}
|
||||
|
@ -136,4 +137,20 @@ mkdir -p $PKG/install
|
|||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
|
||||
# Fix usr/bin/urxvt permissions to enable writing to utmp and wtmp files
|
||||
#
|
||||
version="$(echo "$VERSION" |sed -e 's/[^0-9]//g')"
|
||||
if [ "$version" -le 921 ]; then
|
||||
# standalone
|
||||
chgrp utmp usr/bin/urxvt
|
||||
chmod 2755 usr/bin/urxvt
|
||||
# client
|
||||
chgrp utmp usr/bin/urxvtc
|
||||
chmod 2755 usr/bin/urxvtc
|
||||
# server
|
||||
chgrp utmp usr/bin/urxvtd
|
||||
chmod 2755 usr/bin/urxvtd
|
||||
fi
|
||||
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
Loading…
Reference in a new issue