Hi,

I noticed that the wxallowed check that is in the startup script of
the chromium port is not present in the iridium port. Also, the chromium
port uses ${TRUEPREFIX} in the exec line.

Thanks,
Caspar Schutijser


Index: Makefile
===================================================================
RCS file: /cvs/ports/www/iridium/Makefile,v
retrieving revision 1.59
diff -u -p -r1.59 Makefile
--- Makefile    22 Apr 2017 11:53:55 -0000      1.59
+++ Makefile    25 Apr 2017 12:13:52 -0000
@@ -11,6 +11,7 @@ V=                    57.0
 DISTNAME=              iridium-browser-${V}
 PKGNAME=               iridium-${V}
 DISTFILES=             ${DISTNAME}${EXTRACT_SUFX}
+REVISION=              0
 
 CATEGORIES=            www
 
Index: files/iridium
===================================================================
RCS file: /cvs/ports/www/iridium/files/iridium,v
retrieving revision 1.2
diff -u -p -r1.2 iridium
--- files/iridium       12 Aug 2015 10:56:13 -0000      1.2
+++ files/iridium       25 Apr 2017 12:13:52 -0000
@@ -22,6 +22,13 @@ if [ $(ulimit -Sn) -lt ${OPENFILES} ]; t
                [ $? -eq 0 ] || exit
 fi
 
+if ! mount | grep `df -h ${TRUEPREFIX} | tail -1 | awk '{print $6}'` | 
+       grep -q wxallowed; then 
+       echo "Filesystem containing ${TRUEPREFIX} must have the 'wxallowed' 
flag" | 
+           ${X11BASE}/bin/xmessage -file - -center -buttons exit:0 -default 
exit
+       exit
+fi
+
 #
 # Temporary workaround for the case when iridium crashes and leaves
 # the SingletonLock, which prevents iridium to start up.
@@ -40,4 +47,4 @@ fi
 #
 [ -z ${LANG} ] && _l=en_US.UTF-8 || _l=${LANG}
 
-LANG=${_l} exec "/usr/local/iridium/iridium" "${@}"
+LANG=${_l} exec "${TRUEPREFIX}/iridium/iridium" "${@}"

Reply via email to