1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

- Fix stat option in appearance-install-theme script

PR:	168746
Submitted by:	Akira Noda
Approved by:	rene, miwi (mentors, implicit)
This commit is contained in:
Olivier Duchateau 2013-03-03 15:41:59 +00:00
parent 5012f81252
commit 18a02c3a48
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313362
2 changed files with 25 additions and 1 deletions

View File

@ -4,7 +4,7 @@
PORTNAME= xfce4-settings
PORTVERSION= 4.10.0
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= sysutils xfce
MASTER_SITES= ${MASTER_SITE_XFCE}
DIST_SUBDIR= xfce4

View File

@ -0,0 +1,24 @@
--- ./dialogs/appearance-settings/appearance-install-theme.orig 2012-04-28 20:48:30.000000000 +0000
+++ ./dialogs/appearance-settings/appearance-install-theme 2013-02-18 21:08:13.000000000 +0000
@@ -89,7 +89,11 @@
# check file size, abort if bigger then 50Mb, only works for files
if test x"`which stat 2>/dev/null`" != x""; then
- dndsize=`stat -c %s "$dndfilename"`
+ if test "`uname -s`" = "Linux"; then
+ dndsize=`stat -c %s "$dndfilename"`
+ elif test "`uname -s`" = "FreeBSD"; then
+ dndsize=`stat -f %z "$dndfilename"`
+ fi
if test "$dndsize" -gt 52428800; then
# 2: File too big
exit 2
@@ -140,7 +144,7 @@
detectthemes "gtk-2.0/gtkrc"
# install gtk-3.0 themes
- detectthemes "gtk-3.0/gtkrc"
+ detectthemes "gtk-3.0/gtk.css"
# install xfwm4 themes
detectthemes "xfwm4/themerc"