diff options
author | olgeni <olgeni@FreeBSD.org> | 2007-12-20 04:33:23 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2007-12-20 04:33:23 +0800 |
commit | 820ebb979f5707bedaa98babb2ec1434bf79338b (patch) | |
tree | d89ebcff48e91bc534d64266655f89c6736b269b /java/netbeans | |
parent | 23fc187d2db3fccfdad33c5c7c59c3c8cef15872 (diff) | |
download | freebsd-ports-gnome-820ebb979f5707bedaa98babb2ec1434bf79338b.tar.gz freebsd-ports-gnome-820ebb979f5707bedaa98babb2ec1434bf79338b.tar.zst freebsd-ports-gnome-820ebb979f5707bedaa98babb2ec1434bf79338b.zip |
Fix path for grep and gconftool-2 in startup script.
Diffstat (limited to 'java/netbeans')
-rw-r--r-- | java/netbeans/Makefile | 3 | ||||
-rw-r--r-- | java/netbeans/files/patch-platform7_lib_nbexec | 56 |
2 files changed, 59 insertions, 0 deletions
diff --git a/java/netbeans/Makefile b/java/netbeans/Makefile index e5fa91aa7c1c..e6cf059dcfd0 100644 --- a/java/netbeans/Makefile +++ b/java/netbeans/Makefile @@ -28,6 +28,9 @@ SUB_FILES= pkg-install pkg-deinstall post-patch: @${RM} ${WRKSRC}/etc/netbeans.conf.orig + @${REINPLACE_CMD} -e "s@%%GREP%%@${GREP}@" \ + -e "s@%%GCONFTOOL%%@${LOCALBASE}/bin/gconftool-2@" \ + ${WRKSRC}/platform7/lib/nbexec do-configure: @${REINPLACE_CMD} 's|%%JAVA_HOME%%|${JAVA_HOME}|' ${WRKSRC}/etc/netbeans.conf diff --git a/java/netbeans/files/patch-platform7_lib_nbexec b/java/netbeans/files/patch-platform7_lib_nbexec new file mode 100644 index 000000000000..2c73cee9eabc --- /dev/null +++ b/java/netbeans/files/patch-platform7_lib_nbexec @@ -0,0 +1,56 @@ + +$FreeBSD$ + +--- platform7/lib/nbexec.orig ++++ platform7/lib/nbexec +@@ -253,7 +253,7 @@ + # detect system http proxy setting + + detect_gnome_proxy () { +- gconftool=/usr/bin/gconftool-2 ++ gconftool=%%GCONFTOOL%% + if [ -x $gconftool ] ; then + proxy_mode=`$gconftool --get /system/proxy/mode 2>/dev/null` + if [ "$proxy_mode" = "manual" ] ; then +@@ -282,18 +282,18 @@ + detect_kde_proxy () { + kioslaverc="${HOME}/.kde/share/config/kioslaverc" + if [ -f $kioslaverc ] ; then +- if /bin/grep -q 'ProxyType=1' "$kioslaverc" ; then +- http_proxy_tmp=`/bin/grep 'httpProxy=http://' "$kioslaverc"` ++ if %%GREP%% -q 'ProxyType=1' "$kioslaverc" ; then ++ http_proxy_tmp=`%%GREP%% 'httpProxy=http://' "$kioslaverc"` + if [ $? ] ; then + http_proxy_tmp=`echo $http_proxy_tmp | /bin/sed 's/httpProxy=http:\/\///'` + return 0 + fi +- http_non_proxy_hosts=`/bin/grep 'NoProxyFor=' "$kioslaverc"` ++ http_non_proxy_hosts=`%%GREP%% 'NoProxyFor=' "$kioslaverc"` + if [ $? ] ; then + http_non_proxy_hosts=`echo $http_non_proxy_hosts | /bin/sed 's/NoProxyFor=//'` + fi + else +- if /bin/grep -q 'ProxyType=0' "$kioslaverc" ; then ++ if %%GREP%% -q 'ProxyType=0' "$kioslaverc" ; then + http_proxy_tmp="DIRECT" + return 0 + fi +@@ -314,14 +314,14 @@ + close + EOF + +- if /usr/bin/grep -q "ProxyAuto.*: *1" ${scutil_out} >/dev/null ; then ++ if %%GREP%% -q "ProxyAuto.*: *1" ${scutil_out} >/dev/null ; then + rm ${scutil_out} + return 1 + fi + +- if /usr/bin/grep -q "HTTPEnable *: *1" ${scutil_out} ; then +- http_proxy_host=`/usr/bin/grep HTTPProxy ${scutil_out} | /usr/bin/awk '{print $3}'` +- http_proxy_port=`/usr/bin/grep HTTPPort ${scutil_out} | /usr/bin/awk '{print $3} '` ++ if %%GREP%% -q "HTTPEnable *: *1" ${scutil_out} ; then ++ http_proxy_host=`%%GREP%% HTTPProxy ${scutil_out} | /usr/bin/awk '{print $3}'` ++ http_proxy_port=`%%GREP%% HTTPPort ${scutil_out} | /usr/bin/awk '{print $3} '` + http_proxy_tmp=$http_proxy_host:$http_proxy_port + rm ${scutil_out} + return 0 |