the Fink project is an effort to port
popular Unix programs to Mac OS X
# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.
Package: jabber
Version: 1.4.2
Revision: 12
Maintainer: Max Horn
BuildDepends: fink (>= 0.24.12), pth
#BuildDepends: libxml2, gdbm, expat, tcltk-dev
Depends: pth-shlibs, daemonic (>= 20010902-1)
Source: http://jabberd.jabberstudio.org/downloads/jabber-%v.tar.gz
Source-MD5: 10780dbdb93926ea5bb360e1186b939c
SetCFLAGS: -DBIND_8_COMPAT
PatchFile: %n.patch
PatchFile-MD5: 11e040150c7163b5a49234f505339457
PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
CompileScript: <<
./configure
make
<<
InstallScript: <<
mkdir -p %i/sbin
install -m 755 jabberd/jabberd %i/sbin
mkdir -p %i/etc/jabber
install -m 644 jabber.xml %i/etc/jabber
mkdir -p %i/lib/jabber/pthsock
install -m 755 pthsock/pthsock_client.so %i/lib/jabber/pthsock
mkdir -p %i/lib/jabber/dialback
install -m 755 dialback/dialback.so %i/lib/jabber/dialback
mkdir -p %i/lib/jabber/dnsrv
install -m 755 dnsrv/dnsrv.so %i/lib/jabber/dnsrv
mkdir -p %i/lib/jabber/xdb_file
install -m 755 xdb_file/xdb_file.so %i/lib/jabber/xdb_file
mkdir -p %i/lib/jabber/jsm
install -m 755 jsm/jsm.so %i/lib/jabber/jsm
mkdir -p %i/var/spool/jabber
mkdir -p %i/var/lib/jabber
mkdir -p %i/var/log/jabber
mkdir -p %i/var/run/jabber
<<
ConfFiles: %p/etc/jabber/jabber.xml
#
DaemonicFile: <<
<<
#
PreRmScript: <<
# clean up
if [ $1 != "upgrade" ]; then
daemonic remove %n
fi
<<
#
DocFiles: README UPGRADE
Description: Free instant messaging system server
License: OSI-Approved
Homepage: http://www.jabber.org
diff -ru jabber-1.4.2/configure jabber-1.4.2-patched/configure
--- jabber-1.4.2/configure Tue Feb 5 00:05:37 2002
+++ jabber-1.4.2-patched/configure Thu Mar 14 18:22:43 2002
@@ -32,7 +32,7 @@
LDFLAGS="$LDFLAGS"
LIBS="$LIBS"
XLDFLAGS="$XLDFLAGS "
-JHOME=`pwd`
+JHOME=@PREFIX@/lib/jabber
##
# Print a cool header
diff -ru jabber-1.4.2/jabber.xml jabber-1.4.2-patched/jabber.xml
--- jabber-1.4.2/jabber.xml Tue May 15 17:21:56 2001
+++ jabber-1.4.2-patched/jabber.xml Thu Mar 14 18:38:19 2002
@@ -116,8 +116,8 @@
-
-
+
+
@@ -596,7 +596,7 @@
-
+
diff -ru jabber-1.4.2/jabberd/Makefile jabber-1.4.2-patched/jabberd/Makefile
--- jabber-1.4.2/jabberd/Makefile Mon Dec 17 21:09:12 2001
+++ jabber-1.4.2-patched/jabberd/Makefile Thu Mar 14 18:21:59 2002
@@ -6,7 +6,7 @@
ifeq ($(ISSINGLE),1)
DEFINES=-DHOME="\"$(JHOME)\"" -DSINGLE -DSTATIC
else
- DEFINES=-DHOME="\"$(JHOME)\"" -DCONFIGXML="\"jabber.xml\""
+ DEFINES=-DHOME="\"$(JHOME)\"" -DCONFIGXML="\"@PREFIX@/etc/jabber/jabber.xml\""
endif
ifeq ($(ISSTATIC),1)
DEFINES=-DHOME="\"$(JHOME)\"" -DSTATIC
diff -ru jabber-1.4.2/jabberd/config.c jabber-1.4.2-patched/jabberd/config.c
--- jabber-1.4.2/jabberd/config.c Fri Feb 8 08:39:26 2002
+++ jabber-1.4.2-patched/jabberd/config.c Thu Mar 14 18:20:54 2002
@@ -174,7 +174,7 @@
int configurate(char *file)
{
- char def[] = "jabber.xml";
+ char def[] = CONFIGXML;
char *realfile = (char *)def;
xmlnode incl;
char *c;