Update of /cvsroot/fink/dists/10.2/stable/main/finkinfo/net
In directory sc8-pr-cvs1:/tmp/cvs-serv23305/stable/main/finkinfo/net
Added Files:
darkstat-2.5-2.info darkstat-2.5-2.patch
gift-utils-1.0.0-1.info gq-0.6.0-1.info nfs-tuner-1.0.0-1.info
Log Message:
moving stuff to stable...
--- NEW FILE: darkstat-2.5-2.info ---
Package: darkstat
Version: 2.5
Revision: 2
BuildDepends: libpcap, publib
Depends: libpcap-shlibs, debconf
Source: http://members.optushome.com.au/emikulic/net/%n/%n-%v.tar.gz
Source-MD5: 4e1b67a55b6aa2c1242f40ee61df7a40
SourceDirectory: %n-%v
PatchScript: sed 's|@FINKPREFIX@|%p|' < %a/%f.patch | patch -p1
SetLIBS: -lpub
ConfigureParams: --mandir='${prefix}/share/man' --disable-dependency-tracking
DocFiles: AUTHORS COPYING ChangeLog ISSUES NEWS README TODO INSTALL
InstallScript: <<
make install DESTDIR=%d
mkdir -p %i/var/lib/%n
mkdir -p %i/var/run
mkdir -p %i/sbin
mkdir -p %i/etc
install -m 644 darkstat-init.sh %i/sbin
install -m 644 darkstat.config %i/etc
chmod +x debian/config
mkdir -p %d/DEBIAN
cp debian/config debian/templates %d/DEBIAN
<<
ConfFiles: %p/etc/darkstat.config
Description: Smaller network traffic analyzer
DescDetail: <<
Basically a packet sniffer which runs as a background process on a cable/DSL router
and gathers all sorts of useless but interesting statistics.
<<
DaemonicFile: <<
<service>
<description>darkstat</description>
<message>Darkstat</message>
<startmessage>Starting Darkstat</startmessage>
<stopmessage>Stopping Darkstat</stopmessage>
<restartmessage>Restarting Darkstat</restartmessage>
<daemon name="darkstat">
<executable background="yes">%p/sbin/darkstat-init.sh</executable>
<pidfile>%p/var/run/%n.pid</pidfile>
</daemon>
</service>
<<
PostInstScript: <<
#!/bin/sh -e
# postinst script for darkstat
# update init script if necessary
daemonic update %n
. %p/share/debconf/confmodule
db_get darkstat/configure-question/startup_script-2.5-1
if [ "$RET" = true ]; then
daemonic enable darkstat
else
daemonic disable darkstat
fi
<<
PreRmScript: <<
#!/bin/sh -e
# clean up
if [ $1 != "upgrade" ]; then
daemonic remove %n
fi
<<
postrmScript: <<
#!/bin/sh -e
if [ "$1" = purge ] && [ -e %p/share/debconf/confmodule ]; then
. %p/share/debconf/confmodule
db_purge
fi
<<
DescUsage: <<
Run 'daemonic enable darkstat' as root, this will install a Startup Item
a) either reboot (easy :-) )
b) or else, if this is a first time installation (or if you
know no instance of darkstat is running), run
'/Library/StartupItems/daemonic-darkstat/daemonic-darkstat
start' as root.
<<
License: GPL
Maintainer: Chris Zubrzycki <[EMAIL PROTECTED]>
Homepage: http://members.optushome.com.au/emikulic/net/darkstat/
--- NEW FILE: darkstat-2.5-2.patch ---
diff -ruN darkstat-2.5/README.Debian darkstat-2.5.new/README.Debian
--- darkstat-2.5/README.Debian 1969-12-31 19:00:00.000000000 -0500
+++ darkstat-2.5.new/README.Debian 2003-03-17 23:19:31.000000000 -0500
@@ -0,0 +1,23 @@
+darkstat for Debian
+-------------------
+
+INIT SCRIPTS:
+
+Since version 2.3-2, the darkstat package has two init scripts:
+ - /etc/init.d/darkstat, to start/stop the daemon,
+ - /etc/darkstat/init.cfg, to configure the settings of the daemon.
+
+The /etc/init.d/darkstat start/stop commands will not be started until the
START_DARKSTAT option is set to "no".
+
+
+INIT SCRIPT BUGS:
+
+darkstat has not been programmed to act as a daemon, so the --backgound parameter of
the start-stop-daemon is used as a workaround. Be sure of your configuration
(init.cfg), because if something is wrong the darkstat error messages will not be
displayed on your terminal, and there is no log files.
+
+Darkstat is 'hard' to kill. This is due to the dns thread of darkstat that can be
waiting the result of the gethostbyaddr function till the resolver timeout (timeout
defined in /etc/resolv.conf) is reached. So I use the --name option of
start-stop-daemon to find the running darkstat process.
+
+
+SOURCE CHANGES:
+
+darkstat is able to create a pidfile, but only in the same directory than the
database files (-d switch). So I added in the source code the -r switch to specify
which directory to use to create the pidfile.
+Now, database files are stored in /var/lib/darkstat, and the pidfile is
/var/run/darkstat.pid.
diff -ruN darkstat-2.5/darkstat-init.sh darkstat-2.5.new/darkstat-init.sh
--- darkstat-2.5/darkstat-init.sh 1969-12-31 19:00:00.000000000 -0500
+++ darkstat-2.5.new/darkstat-init.sh 2003-03-17 23:19:37.000000000 -0500
@@ -0,0 +1,27 @@
+#! /bin/sh
+
+source @FINKPREFIX@/bin/init.sh
+
+DAEMON="@FINKPREFIX@/sbin/darkstat"
+NAME="darkstat"
+INIT="@FINKPREFIX@/etc/darkstat.config"
+PIDFILE="@FINKPREFIX@/var/run/$NAME.pid"
+DIR="@FINKPREFIX@/var/lib/darkstat"
+
+test -f $DAEMON || exit 0
+
+test -f $INIT || exit 0
+
+. $INIT
+
+$DAEMON $INTERFACE \
+ $PORT \
+ -d $DIR \
+ -r $PIDFILE \
+ $BINDIP \
+ $LOCAL \
+ $FIP \
+ $DNS \
+ $SPY --detach
+
+exit 0
diff -ruN darkstat-2.5/darkstat.config darkstat-2.5.new/darkstat.config
--- darkstat-2.5/darkstat.config 1969-12-31 19:00:00.000000000 -0500
+++ darkstat-2.5.new/darkstat.config 2003-03-17 23:19:37.000000000 -0500
@@ -0,0 +1,12 @@
+# Don't forget to read the man page.
+
+# You must set this option, else darkstat may not listen to
+# the interface you want
+INTERFACE="-i en0"
+
+#PORT="-p 666"
+#BINDIP="-b localhost"
+#LOCAL="-l 192.168.0.0/24"
+#FIP="-f localhost"
+#DNS="-n"
+#SPY="-spy en0"
diff -ruN darkstat-2.5/debian/config darkstat-2.5.new/debian/config
--- darkstat-2.5/debian/config 1969-12-31 19:00:00.000000000 -0500
+++ darkstat-2.5.new/debian/config 2003-03-20 13:16:18.000000000 -0500
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. @FINKPREFIX@/share/debconf/confmodule
+
+if [ "$1" = "configure" -a "$2" != "" ]; then
+ for note in init_script-2.5-1
+ do
+ ver=${note#*-}
+ if dpkg --compare-versions "$2" lt "$ver"; then
+ db_input medium "darkstat/upgrade-note/$note" || true
+ fi
+ done
+fi
+
+db_input medium "darkstat/configure-question/startup_script-2.5-1" || true
+
+db_go
diff -ruN darkstat-2.5/debian/control darkstat-2.5.new/debian/control
--- darkstat-2.5/debian/control 1969-12-31 19:00:00.000000000 -0500
+++ darkstat-2.5.new/debian/control 2003-03-17 23:19:37.000000000 -0500
@@ -0,0 +1,17 @@
+Source: darkstat
+Section: net
+Priority: optional
+Maintainer: C�dric Delfosse <[EMAIL PROTECTED]>
+Build-Depends: debhelper (>> 3.0.0), libpcap-dev, autotools-dev
+Standards-Version: 3.5.7
+
+Package: darkstat
+Architecture: any
+Depends: ${shlibs:Depends}, debconf (>= 1.2.9)
+Description: a network traffic analyzer
+ It is a packet sniffer which runs as a background process and serves its
+ statistics to a web browser:
+ - input and output IP traffic by machines, ports and protocols,
+ - last minute, hourly, daily and monthly global input and output graphics.
+ .
+ It is known to be smaller (in terms of memory footprint) and stabler than ntop.
diff -ruN darkstat-2.5/debian/copyright darkstat-2.5.new/debian/copyright
--- darkstat-2.5/debian/copyright 1969-12-31 19:00:00.000000000 -0500
+++ darkstat-2.5.new/debian/copyright 2003-03-17 23:19:37.000000000 -0500
@@ -0,0 +1,28 @@
+This package was debianized by C�dric Delfosse <[EMAIL PROTECTED]> on
+Mon, 27 May 2002 20:17:47 +0200.
+
+It was downloaded from http://purl.org/net/darkstat
+
+Upstream Author: Emil Mikulic <[EMAIL PROTECTED]>
+
+Copyright:
+
+Copyright (c) 2001-2002, Emil Mikulic.
+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 dated June, 1991.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
diff -ruN darkstat-2.5/debian/templates darkstat-2.5.new/debian/templates
--- darkstat-2.5/debian/templates 1969-12-31 19:00:00.000000000 -0500
+++ darkstat-2.5.new/debian/templates 2003-03-20 13:13:55.000000000 -0500
@@ -0,0 +1,14 @@
+Template: darkstat/upgrade-note/init_script-2.5-1
+Type: note
+Description: New configure options
+ The darkstat package is now featuring a daemonic script to manage darkstat start
actions.
+ .
+ Please put your settings in @FINKPREFIX@/etc/darkstat.config and read
@FINKPREFIX@/share/doc/darkstat/README.Debian for more information.
+
+Template: darkstat/configure-question/startup_script-2.5-1
+Type: boolean
+Default: false
+Description: Enable at startup?
+ The darkstat package is now featuring a daemonic script to manage darkstat start
actions. Do you want darkstat to automatically be run at system startup?
+ .
+ Remember, this takes affect at the *next* reboot. To activate daemonic now, run
/Library/StartupItems/daemonic-darkstat/daemonic-darkstat as root.
diff -ruN darkstat-2.5/src/darkstat.c darkstat-2.5.new/src/darkstat.c
--- darkstat-2.5/src/darkstat.c 2003-01-03 22:09:57.000000000 -0500
+++ darkstat-2.5.new/src/darkstat.c 2003-03-17 23:19:37.000000000 -0500
@@ -30,6 +30,7 @@
#include <stdarg.h>
#include <signal.h>
#include <unistd.h>
+#define __USE_GNU
#include <string.h>
#include <time.h>
#if defined(sun) && (defined(__svr4__) || defined(__SVR4))
@@ -279,6 +280,16 @@
fprefix = build_str("%s%s", argv[i],
argv[i][strlen(argv[i])-1] == '/'?"":"/");
}
+ else if (strcmp(argv[i], "-r") == 0)
+ {
+ i++;
+ if ((argc < i+1) || (argv[i][0] == '-'))
+ {
+ printf("Pidfile not specified!\n\n");
+ return EXIT_FAIL;
+ }
+ pid_file = strndup(argv[i], 255);
+ }
else if ((strcmp(argv[i], "-V") == 0) ||
(strcmp(argv[i], "--version") == 0))
{
@@ -414,7 +425,7 @@
return EXIT_FAIL;
}
- pid_file = build_str("%s" PID_FILE_NAME, fprefix);
+ if (pid_file)
{
FILE *fp = fopen(pid_file, "w");
if (!fp) perror("Warning: can't write pidfile");
--- NEW FILE: gift-utils-1.0.0-1.info ---
Package: gift-utils
Version: 1.0.0
Revision: 1
Source: mirror:custom:%n-%v.tar.bz2
CustomMirror: <<
First: http://homepage.mac.com/beren/
Second: http://fink.zubrzycki.org/
<<
Source-MD5: 5a9d9f6ec5f8573eed19835e7d4f0915
Depends: netcat
Recommends: giftcurs, gift
CompileScript: echo none
InstallScript: <<
install -d -m 755 %i/bin
install -m 755 killgiFT %i/bin/
<<
DocFiles: COPYING
Description: Misc. tools for giFT
DescDetail: <<
giFT is a `recursive' acronym for `giFT: Internet File Transfer'. The
giFT project is actually a collection of several components together:
the giFT daemon (which acts as bridge to the actual file sharing
protocols), OpenFT (a p2p network designed to exploit all the
functionality giFT supports), and a user interface front-end.
Note that giFT is alpha software (but it works!), and is still very much
under development! You should update *often*.
<<
License: GPL
Maintainer: Chris Zubrzycki <[EMAIL PROTECTED]>
Homepage: http://gift.sourceforge.net/
--- NEW FILE: gq-0.6.0-1.info ---
Package: gq
Version: 0.6.0
Revision: 1
BuildDepends: openldap-ssl-dev, gtk+, gdk-pixbuf, orbit-dev, imlib, esound
Depends: openldap-ssl-shlibs, gtk+-shlibs, gdk-pixbuf-shlibs
Source: mirror:sourceforge:gqclient/%n-%v.tar.gz
UpdateConfigGuess: true
ConfigureParams: --enable-browser-dnd --mandir="${prefix}/share/man"
SetLDFLAGS: -I%p/include/sasl
SetCPPFLAGS: -no-cpp-precomp
SetLIBS: -liconv
#InstallScript: <<
# make install DESTDIR=%d
#<<
DocFiles: AUTHORS COPYING ChangeLog NEWS README* TODO
Description: Interactive graphical LDAP browser
DescDetail: <<
GQ is GTK+ LDAP client and browser utility. It can be used for searching LDAP
directory as well as browsing it using a tree view.
<<
DescPackaging: <<
Just a small patch to fix some assumptions about crypto and resolver libraries.
Formerly by Ben Reed
<<
License: BSD
Maintainer: Chris Zubrzycki <[EMAIL PROTECTED]>
Homepage: http://diradmin.open-it.org/index.php
--- NEW FILE: nfs-tuner-1.0.0-1.info ---
Package: nfs-tuner
Version: 1.0.0
Revision: 1
Source: mirror:custom:%n-%v.tar.bz2
CustomMirror: <<
First: http://homepage.mac.com/beren/
Second: http://fink.zubrzycki.org/
<<
Source-MD5: 6503f24e47a9c2eceb35f658029407cd
SourceDirectory: %n-%v
PatchScript: perl -p -i -e 's|[EMAIL PROTECTED]@|%p|' nfs-tuner.sh
Depends: daemonic
CompileScript: echo "Nothing to compile."
InstallScript: <<
install -d -m 755 %i/sbin
install -c -m 755 nfs-tuner.sh %i/sbin/nfs-tuner.sh
install -d -m 755 %i/etc
install -c -m 755 nfs-tuner.conf %i/etc/nfs-tuner.conf
<<
DocFiles: COPYING
ConfFiles: %p/etc/nfs-tuner.conf
DaemonicFile: <<
<service>
<description>NFS Tuner</description>
<message>Tuning NFS</message>
<daemon name="nfs-tuner">
<executable>%p/sbin/%n.sh</executable>
<configfile>%p/etc/%n.conf</configfile>
</daemon>
</service>
<<
PostInstScript: <<
# update init script if necessary
daemonic update %n
<<
PreRmScript: <<
# clean up
if [ $1 != "upgrade" ]; then
daemonic remove %n
fi
<<
Description: Tunes NFS default settings
DescDetail: <<
Sets up more efficent TCP/IP settings to improve NFS performance.
<<
DescUsage: <<
Run 'daemonic enable nfs-tuner' as root, this will install a Startup Item
a) either reboot (easy :-) )
b) or else, run
'/Library/StartupItems/daemonic-nfs-tuner/daemonic-nfs-tuner start' as root.
<<
License: GPL
Maintainer: Chris Zubrzycki <[EMAIL PROTECTED]>
Homepage: http://127.0.0.1/
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits