Update of /cvsroot/fink/experimental/carstenklapp/finkinfo
In directory sc8-pr-cvs1:/tmp/cvs-serv14126

Added Files:
        aris-extract-4.01-1.info aris-extract-4.01-1.patch 
        braz-1.0a2-1.info usermin-0.970-1.info usermin-0.970-1.patch 
        webmin-ntpd-1.00.8-1.info webmin-ntpd-1.00.8-1.patch 
Log Message:
first sneak peek of my work in progress

--- NEW FILE: aris-extract-4.01-1.info ---
Package: aris-extract
Version: 4.01
Revision: 1
Description: Reports IDS incidents to ARIN for global statistics
Homepage: https://analyzer.securityfocus.com/
License: unknown

#Depends: snort, dlcompat, curl-ssl-shlibs (>= 7.9.0), curl-ssl-shlibs (<= 7.9.8),
Depends: dlcompat, curl-ssl-shlibs (>= 7.9.0)
Builddepends: curl-ssl-dev (>= 7.9.0)
#Builddepends: curl-ssl-dev (>= 7.9), curl-ssl-dev (=< 7.9.8), make (>= 3.79)

Source: "http://analyzer.securityfocus.com/downloads/extractor-%v.tar.gz?";
SourceMD5: 43c15305c237e43a7af1f3f44fed316c
Sourcerename: %n-%v.tar.gz
Sourcedirectory: Extractor

Patch: %f.patch
CompileScript: make IOPT=-I/sw/include LOPT='-L/sw/lib -ldl'
InstallScript: <<
make install EXTRACTORDIR=%i/share/extractor BINDIR=%i/bin
cd %i/bin; ln -sf ../share/extractor/bin/extractor
<<
DocFiles: LICENSE README-FIRST extractor-tz-offset

Maintainer: carsten

--- NEW FILE: aris-extract-4.01-1.patch ---
diff -rU2 Extractor/ExtractorCommon/SensorsFile.cpp 
Extractor-patched/ExtractorCommon/SensorsFile.cpp
--- Extractor/ExtractorCommon/SensorsFile.cpp   Thu Oct 10 18:59:45 2002
+++ Extractor-patched/ExtractorCommon/SensorsFile.cpp   Tue Nov 12 01:38:11 2002
@@ -345,7 +346,11 @@
                return -1;
 #ifndef _WIN32
-        if (lockf (fd, F_LOCK, 0) != 0)
+#    ifndef __APPLE__
+            if (lockf (fd, F_LOCK, 0) != 0)
+#    else
+            if (flock (fd, LOCK_EX) != 0)
+#    endif
 #else
-       if (_locking (fd, _LK_LOCK, 1) != 0)
+            if (_locking (fd, _LK_LOCK, 1) != 0)
 #endif
                return -1;
@@ -358,5 +363,9 @@
         {
 #ifndef _WIN32
+#    ifndef __APPLE__
           lockf (fd, F_ULOCK, 0);
+#    else
+          flock (fd, LOCK_UN);
+#    endif
 #else
          _locking (fd, _LK_UNLCK, 1);
@@ -377,5 +386,10 @@
                ftruncate (fd, nFilePos);
         lseek (fd, 0, SEEK_SET);
+#    ifndef __APPLE__
         lockf (fd, F_ULOCK, 0);
+#    else
+        flock (fd, LOCK_UN);
+#    endif
+        
 #else
         nFilePos = _tell (fd);
diff -rU2 Extractor/Makefile Extractor-patched/Makefile
--- Extractor/Makefile  Fri Oct  4 20:40:19 2002
+++ Extractor-patched/Makefile  Tue Nov 12 01:04:05 2002
@@ -2,6 +2,6 @@
 # All Rights Reserved
 
-EXTRACTORDIR=/usr/local/extractor
-BINDIR=/usr/local/bin
+EXTRACTORDIR=@PREFIX@/share/extractor
+BINDIR=@PREFIX@/bin
 PLATFORM=$(shell uname)
 
diff -rU2 Extractor/UnixExtractor/Makefile Extractor-patched/UnixExtractor/Makefile
--- Extractor/UnixExtractor/Makefile    Thu Oct 10 18:58:41 2002
+++ Extractor-patched/UnixExtractor/Makefile    Tue Nov 12 01:43:35 2002
@@ -36,5 +36,5 @@
 
 SOParser.o: ../ExtractorCommon/SOParser.cpp
-       $(CXX) -c -o SOParser.o ../ExtractorCommon/SOParser.cpp
+       $(CXX) -c $(IOPT) -o SOParser.o ../ExtractorCommon/SOParser.cpp
 
 ProfilesList.o: ProfilesList.cpp
diff -rU2 Extractor/UnixExtractor/bsd.mk Extractor-patched/UnixExtractor/bsd.mk
--- Extractor/UnixExtractor/bsd.mk      Fri Sep  6 16:05:13 2002
+++ Extractor-patched/UnixExtractor/bsd.mk      Tue Nov 12 01:56:33 2002
@@ -2,9 +2,10 @@
 # All Rights Reserved
 
-CC = gcc -Wall -O2
-CXX = g++ -Wall -O2
+CC = gcc -Wall -O2 -flat_namespace
+CXX = g++ -Wall -O2 -flat_namespace
 IOPT = -I/usr/local/include
 LOPT = -L/usr/local/lib
-LDSHARED = ld -shared
+#LDSHARED = ld -shared
+LDSHARED = ld -dynamic -flat_namespace -undefined suppress
 LIBDL =
 NEEDSSL = 0
diff -rU2 Extractor/UnixExtractor/platform.mk 
Extractor-patched/UnixExtractor/platform.mk
--- Extractor/UnixExtractor/platform.mk Fri Sep  6 16:05:13 2002
+++ Extractor-patched/UnixExtractor/platform.mk Tue Nov 12 01:03:45 2002
@@ -14,4 +14,7 @@
 include ../UnixExtractor/bsd.mk
 endif
+ifeq ($(PLATFORM),Darwin)
+include ../UnixExtractor/bsd.mk
+endif
 ifeq ($(PLATFORM),OpenBSD)
 include ../UnixExtractor/bsd.mk

--- NEW FILE: braz-1.0a2-1.info ---
Package: braz
Version: 1.0a2
Revision: 1
BuildDepends: libmd
Source-MD5: 1179f96b38e8af1c6b2f62980dc8f780
DocFiles: README CHANGELOG TODO braz.ps
Description: Links identical files together to gain space
License: BSD
HomePage: http://www.bsd-dk.dk/~elrond/fs/braz/
Source: http://www.bsd-dk.dk/~elrond/fs/braz/files/%n-%v.tar.gz
CompileScript: <<
 make CFLAGS='-prebind -I%p/include/libmd' LDFLAGS=-L%p/lib
<<
InstallScript: <<
 mkdir -p %i/bin
 mkdir -p %i/share/man/man8
 make install PREFIX=%i MAN8DIR='${PREFIX}/share/man/man8'
<<
Maintainer: Carsten Klapp <[EMAIL PROTECTED]>
DescDetail: <<
** WARNING **

 I'm working with the author to put out a version (1.0a3) which will be friendly to 
Mac OS resource forks. In the mean time, BE CAREFUL, YOU CAN EASILY DESTROY ALL YOUR 
CLASSIC & CARBON APPLICATIONS, SYSTEM FOLDER AND DOCUMENTS if you blindly run this 
program without understanding the consequences.
 
 If a file appears to be 0 bytes in the shell but the Finder says otherwise, it 
probably has a resource fork so DON'T RUN BRAZ in that directory!
<<

--- NEW FILE: usermin-0.970-1.info ---
Package: usermin
Version: 0.970
Revision: 1
Description: Web-based interface for users to perform unix tasks
License: BSD
DescDetail: <<
 Usermin is a web interface that can be used by any user on a Unix
 system to easily perform tasks like reading mail, setting up SSH or
 configuring mail forwarding. It can be thought of as a simplified
 version of Webmin designed for use by normal users rather than system
 administrators.

 Like Webmin, Usermin consists of a simple web server, and a number of
 CGI programs which directly update user config files like ~/.cshrc
 and ~/.forward. The web server and all CGI programs are written in
 Perl version 5, and use only the non-standard Authen::PAM perl module.

 Usermin works alone or together with webmin.
<<
Recommends: crypt-ssleay-pm 
Suggests: webmin
Enhances: webmin
Maintainer: Carsten Klapp <[EMAIL PROTECTED]>
Homepage: http://usermin.com/
Source: mirror:sourceforge:webadmin/%n-%v.tar.gz
Source-MD5: 8f346c57358101a050da4d9d9ff59d77
SourceDirectory: .
PatchScript: <<
 echo "Deleting files not applicable to Darwin / Mac OS X..." 
 for incompatible_config in -linux aix cobalt-linux corel-linux debian-linux -freebsd 
generic-linux gentoo-linux hpux irix mandrake-linux msc-linux netbsd open-linux 
openbsd openserver osf1 redhat-linux slackware-linux solaris suse-linux turbo-linux 
united-linux unixware ; do find . -name "*${incompatible_config}*" -print -exec rm {} 
\; ; done
 echo "Done."

 sed 's|@PREFIX@|%p|g' <%a/%f.patch | patch -p1
<<
CompileScript: <<
 echo "Inserting path to perl into scripts..."
 (find . -name '*.cgi' -print ; find . -name '*.pl' -print) | /usr/bin/perl 
"./%n-%v/perlpath.pl" /usr/bin/perl -
 echo "Done."
 
 echo "Preparing DocFiles..."
 ln %n-%v/LICENCE LICENCE
 ln %n-%v/LICENCE.ja LICENCE.ja
 ln %n-%v/README README
 echo "Done."

 echo "Preparing other webmin files..."
 mkdir -p etc/%n
 touch etc/%n/start
 touch etc/%n/stop
 touch etc/%n/uninstall.sh
 chmod u+x etc/%n/start
 chmod u+x etc/%n/stop
 chmod u+x etc/%n/uninstall.sh

 echo "Linking %p/etc/%n/start and stop to %p/sbin/%nstart and %nstop..."
 mkdir -p sbin
 cd sbin && ln -s ../etc/%n/start %nstart && ln -s ../etc/%n/stop %nstop
 echo "Done."
<<
ConfFiles: <<

<<
InstallScript: <<
 mkdir -p %i/lib
 mv %n-%v %i/lib/%n0.9
<<
DocFiles: LICENCE LICENCE.ja README
PostInstScript: <<
 echo "Note:"
 echo " "
 echo "If this is a first-time %n installation, you will be asked for:"
 echo " "
 echo "- operating system, e.g. Darwin or Mac OS X"
 echo "  (selecting #41 'Mac OS X / OS X Server 10.1' then version #2"
 echo "   works fine with 10.1.5 or 10.2)"
 echo " "
 echo "Running %n setup"
 config_dir='%p/etc/%n' ; \
 var_dir='%p/var/%n' ; \
 perl='/usr/bin/perl' ; \
 port='20000' ; \
 host=`hostname` ; \
 export config_dir var_dir perl port host; \
 %p/lib/%n0.9/setup.sh
<<
DescPort: <<
 Add fink's bin / sbin directories into usermin's search path
<<
DescPackaging: <<
 To avoid copying the whole directory tree we simply prune the whole
 thing into the fink package root dir with mv.

 setup.sh script also patched to default to the fink installation dir
 for manual reinstallation.
<<
SplitOff: <<
 Package: %N-mysql
 Description: Usermin module: MySQL Database Server
 DescDetail: <<
  Setup databases, tables and permissions in your MySQL database
  server.
 <<
 Homepage: http://www.usermin.com/standard.html
 Depends: %N (= %v-%r)
 Enhances: %N (= %v-%r), mysql
 Recommends: mysql
 Files: lib/%N0.9/mysql etc/%N/mysql/
 ConfFiles: %p/etc/%N/mysql/config %p/etc/%N/mysql/admin.acl
 DocFiles: LICENCE LICENCE.ja
 PostInstScript: %p/lib/%N0.9/fink-newmodule-postinstall
<<

--- NEW FILE: usermin-0.970-1.patch ---
--- ./usermin-0.970/config-macos        Mon Jul 15 11:40:13 2002
+++ ./usermin-0.970-patched/config-macos        Sun Sep  1 02:18:06 2002
@@ -1,4 +1,4 @@
 find_pid_command=ps auxwwww | grep NAME | grep -v grep | awk '{ print $2 }'
-path=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/libexec
+path=@PREFIX@/bin:@PREFIX@/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/libexec
 ld_env=LD_LIBRARY_PATH
 passwd_file=nidump passwd . |
--- ./usermin-0.970/setup.sh    Mon Jul 15 11:40:13 2002
+++ ./usermin-0.970-patched/setup.sh    Mon Sep  2 19:31:24 2002
@@ -47,10 +47,10 @@
 echo "you can just accept the defaults."
 echo ""
-printf "Config file directory [/etc/usermin]: "
+printf "Config file directory [@PREFIX@/etc/usermin]: "
 if [ "$config_dir" = "" ]; then
        read config_dir
 fi
 if [ "$config_dir" = "" ]; then
-       config_dir=/etc/usermin
+       config_dir=@PREFIX@/etc/usermin
 fi
 abspath=`echo $config_dir | grep "^/"`
@@ -135,5 +135,5 @@
        # Config directory exists .. make sure it is not in use
        ls $config_dir | grep -v rpmsave >/dev/null 2>&1
-       if [ "$?" = "0" -a "$config_dir" != "/etc/usermin" ]; then
+       if [ "$?" = "0" -a "$config_dir" != "@PREFIX@/etc/usermin" ]; then
                echo "ERROR: Config directory $config_dir is not empty"
                echo ""
@@ -142,10 +142,10 @@
 
        # Ask for log directory
-       printf "Log file directory [/var/usermin]: "
+       printf "Log file directory [@PREFIX@/var/usermin]: "
        if [ "$var_dir" = "" ]; then
                read var_dir
        fi
        if [ "$var_dir" = "" ]; then
-               var_dir=/var/usermin
+               var_dir=@PREFIX@/var/usermin
        fi
        abspath=`echo $var_dir | grep "^/"`

--- NEW FILE: webmin-ntpd-1.00.8-1.info ---
Package: webmin-ntpd
Version: 1.00.8
Revision: 1
Description: Webmin module 3rd-party: ntpd
License: GPL
DescDetail: <<
 Third-party module for webmin.

 Using this module you can easily configure your (x)ntpd daemon to synchronize
 regulary your computer time from an Internet available time server usually
 running some sort of atomic clock.

 The module author uses the following ntp server:

  time.ien.it (ip address: 193.204.114.231) located in Italy

 Now features View Log facility, out of /var/log/messages file.
<<
Depends: webmin (>= 1.030-1)
Enhances: webmin (>= 1.030-1)
Maintainer: Carsten Klapp <[EMAIL PROTECTED]>
Homepage: http://cdrecwebmin.sourceforge.net/ntp.html
Source: mirror:sourceforge:cdrecwebmin/ntp.1008.wbm.gz
Source-MD5: 03c6853107f335862f06eaa0817f3cf9
SourceDirectory: .
Patch: %f.patch
CompileScript: <<
 tar -zxf ntp.1008.wbm.gz
 rm -f ntp.1008.wbm.gz
<<
InstallScript: <<
 %p/lib/webmin1.0/fink-newmodule-prepinstall
 echo "Moving files to installation directory..."
 mkdir -p %i/lib/webmin1.0
 mv ntp %i/lib/webmin1.0
 echo "Installing Docs..."
 mkdir -p %i/share/doc/%n
 ln %i/lib/webmin1.0/ntp/help/index.html %i/share/doc/%n
<<
PostInstScript: %p/lib/webmin1.0/fink-newmodule-postinstall

--- NEW FILE: webmin-ntpd-1.00.8-1.patch ---
diff -ru2N ./ntp/config-macos ./ntp-patched/config-macos
--- ./ntp/config-macos  Wed Dec 31 19:00:00 1969
+++ ./ntp-patched/config-macos  Wed Nov 20 12:54:29 2002
@@ -0,0 +1,4 @@
+ntpd_pid_file=/private/var/run/ntpd.pid
+ntpd_pathname=/usr/sbin/ntpd
+ntp_conf_file=/private/etc/ntp.conf
+messfile=/private/var/log/system.log



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to