aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/leafnode.rb
blob: a8e67cc2a98afaf176b60f7d17bac373a3d59a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'formula'

class Leafnode < Formula
  homepage 'http://sourceforge.net/projects/leafnode/'
  url 'http://downloads.sourceforge.net/project/leafnode/leafnode/1.11.8/leafnode-1.11.8.tar.bz2'
  sha1 '25bd5de560ffa3bd3adf5a7c7108fe517c3e4cde'

  depends_on 'pcre'

  def install
    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make install"
  end
end
d='n63' href='#n63'>63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
require 'formula'

class Visualnetkit < Formula
  homepage 'http://code.google.com/p/visual-netkit/'
  url 'https://visual-netkit.googlecode.com/files/visualnetkit-1.4.tar.bz'
  version '1.4'
  sha1 '17dbc3a6b7e62b1b2183f2a4426b9021781e4ec4'

  depends_on 'qt'

  # We're maintaining a patch to allow this software to compile against newer
  # versions of Qt. Since the upstream project hasn't had activity in a while,
  # if a newer version of Qt breaks this formula we will consider moving it to
  # the boneyard instead.
  patch :DATA

  def install
    system "/bin/sh", "./build.sh", "-r"
    inreplace 'bin/visualnetkit.sh', /^APP=.*$/, "APP=#{prefix}"
    prefix.install 'bin/VisualNetkit.app'
    bin.install 'bin/visualnetkit.sh' => 'visualnetkit'
    prefix.install 'bin/plugins'
  end
end

__END__
diff --git a/src/plugin_dev/ipv4/ipv4.pro b/src/plugin_dev/ipv4/ipv4.pro
--- a/src/plugin_dev/ipv4/ipv4.pro
+++ b/src/plugin_dev/ipv4/ipv4.pro
@@ -5,7 +5,7 @@ TEMPLATE = lib
 TARGET = ipv4

 #prevent linking error on some system (like ubuntu)
-QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] $$[QMAKE_LFLAGS_SHLIB]
+QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] -undefined dynamic_lookup $$[QMAKE_LFLAGS_SHLIB]

 DEPENDPATH += .
 DESTDIR = ../../../bin/plugins
diff --git a/src/plugin_dev/mac/mac.pro b/src/plugin_dev/mac/mac.pro
--- a/src/plugin_dev/mac/mac.pro
+++ b/src/plugin_dev/mac/mac.pro
@@ -5,7 +5,7 @@ TEMPLATE = lib
 TARGET = mac

 #prevent linking error on some system (like ubuntu)
-QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] $$[QMAKE_LFLAGS_SHLIB]
+QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] -undefined dynamic_lookup $$[QMAKE_LFLAGS_SHLIB]

 DEPENDPATH += .
 DESTDIR = ../../../bin/plugins
diff --git a/src/plugin_dev/quagga/bgp/quagga-bgp.pro b/src/plugin_dev/quagga/bgp/quagga-bgp.pro
--- a/src/plugin_dev/quagga/bgp/quagga-bgp.pro
+++ b/src/plugin_dev/quagga/bgp/quagga-bgp.pro
@@ -2,7 +2,7 @@ TEMPLATE = lib
 TARGET = quagga-bgp

 # prevent linking error on some system (like ubuntu)
-QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] \
+QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] -undefined dynamic_lookup \
     $$[QMAKE_LFLAGS_SHLIB]
 DEPENDPATH += .
 DESTDIR = ../../../../bin/plugins
diff --git a/src/plugin_dev/quagga/core/quagga-core.pro b/src/plugin_dev/quagga/core/quagga-core.pro
--- a/src/plugin_dev/quagga/core/quagga-core.pro
+++ b/src/plugin_dev/quagga/core/quagga-core.pro
@@ -2,7 +2,7 @@ TEMPLATE = lib
 TARGET = quagga-core

 #prevent linking error on some system (like ubuntu)
-QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] $$[QMAKE_LFLAGS_SHLIB]
+QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] -undefined dynamic_lookup $$[QMAKE_LFLAGS_SHLIB]

 DEPENDPATH += .
 DESTDIR = ../../../../bin/plugins
diff --git a/src/plugin_dev/quagga/rip/quagga-rip.pro b/src/plugin_dev/quagga/rip/quagga-rip.pro
--- a/src/plugin_dev/quagga/rip/quagga-rip.pro
+++ b/src/plugin_dev/quagga/rip/quagga-rip.pro
@@ -2,7 +2,7 @@ TEMPLATE = lib
 TARGET = quagga-rip

 # prevent linking error on some system (like ubuntu)
-QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] \
+QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] -undefined dynamic_lookup \
     $$[QMAKE_LFLAGS_SHLIB]
 DEPENDPATH += .
 DESTDIR = ../../../../bin/plugins
diff --git a/src/plugin_dev/test/test.pro b/src/plugin_dev/test/test.pro
--- a/src/plugin_dev/test/test.pro
+++ b/src/plugin_dev/test/test.pro
@@ -5,7 +5,7 @@ TEMPLATE = lib
 TARGET = test

 #prevent linking error on some system (like ubuntu)
-QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] $$[QMAKE_LFLAGS_SHLIB]
+QMAKE_LFLAGS = -Wl,-rpath,$$[QT_INSTALL_LIBS] -undefined dynamic_lookup $$[QMAKE_LFLAGS_SHLIB]

 DEPENDPATH += .
 DESTDIR = ../../../bin/plugins
diff --git a/bin/visualnetkit.sh b/bin/visualnetkit.sh
--- a/bin/visualnetkit.sh
+++ b/bin/visualnetkit.sh
@@ -6,4 +6,4 @@ APP_PATH=${APP/\/visualnetkit.sh/}

-export VISUAL_NETKIT_PLUGINS="$APP_PATH/plugins:$HOME/.visualnetkit/plugins"
+export VISUAL_NETKIT_PLUGINS="$APP_PATH/../plugins:$HOME/.visualnetkit/plugins"

-$APP_PATH/VisualNetkit
+open $APP_PATH/VisualNetkit.app
diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp
--- a/src/gui/MainWindow.cpp
+++ b/src/gui/MainWindow.cpp
@@ -50,7 +50,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
	dockLog->setVisible(false);

	/* init the file dialog (save mode) */
-	saveFileDialog = new QFileDialog(this, tr("Save laboratory as..."), QDir::homePath(), "");
+	saveFileDialog = new QFileDialog(this, Qt::Sheet);
+	saveFileDialog->setDirectory(QDir::home());
	saveFileDialog->setFileMode(QFileDialog::AnyFile);
	saveFileDialog->setAcceptMode(QFileDialog::AcceptSave);
	saveFileDialog->setFilter(QDir::Dirs | QDir::NoDotAndDotDot);