Update of /cvsroot/serverfilters/script
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14536
Modified Files:
Makefile
Log Message:
Build instructions
Index: Makefile
===================================================================
RCS file: /cvsroot/serverfilters/script/Makefile,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Makefile 22 Feb 2004 21:20:17 -0000 1.4
--- Makefile 29 Feb 2004 22:56:11 -0000 1.5
***************
*** 1,23 ****
HTTPD_GROUP=apache
CFLAGS=
#CFLAGS=-DDEBUG
! # c-client credentials checking
CHECKCREDS=checkcreds_cclient.o
LIBS=/usr/lib/c-client.a -lssl -lpam -L/usr/kerberos/lib/ -lgssapi_krb5 -lcrypt
I=/usr/include/imap
CCLIENT_CFLAGS=-I$I '-DMAIL_H="mail.h"' '-DLINKAGE_C="linkage.c"' -DIMAP_TIMEOUT=2
all: filtercmd
! filtercmd: filtercmd.o $(CHECKCREDS)
gcc -o filtercmd filtercmd.o $(CHECKCREDS) $(LIBS)
chmod 4750 filtercmd
chown root:$(HTTPD_GROUP) filtercmd
! filtercmd.o: filtercmd.c filtercmd.opts
! gcc -c filtercmd.c $(CFLAGS) `cat filtercmd.opts`
! checkcreds_cclient.o: checkcreds_cclient.c
gcc -c checkcreds_cclient.c $(CFLAGS) $(CCLIENT_CFLAGS)
--- 1,75 ----
+ # Makefile for filtercmd, part of serversidefilter
+ # See README for background information
+ #
+
+ ### GENERAL OPTIONS ###
+
+ # change this to match the group your HTTPD server runs as.
+ # The resulting binary will be owned by this group.
HTTPD_GROUP=apache
+
+ # If you are having problems connecting, recompile with this
+ # flag changed and send the output to the mailing list.
CFLAGS=
#CFLAGS=-DDEBUG
! # Edit the location of the squirrelmail config file here.
! SQUIRRELMAILCONFIGFILE=/etc/squirrelmail/config.php
! FILTERCMD_CFLAGS=-DSQUIRRELMAILCONFIGFILE='"$(SQUIRRELMAILCONFIGFILE)"'
!
! # The default location for the serversidefilter directory should work.
! # Uncomment the line below, and change the test.sh file, if you want to
! # change it.
! SERVERSIDEFILTERHOME=../plugins/serversidefilter
! #FILTERCMD_CFLAGS=$(FILTERCMD_CFLAGS) -DSERVERSIDEFILTERHOME='"$(SERVERSIDEFILTERHOME)"'
!
! ### C-CLIENT OPTIONS ###
!
! # filtercmd validates usernames and passwords with the c-client library from
! # UW. This library is part of pine and UW IMAP and is installed separately
! # on many Linux systems. See http://www.washington.edu/imap/ for more
! # information.
!
! # This line selects c-client credentials checking. This is currently the
! # only option.
CHECKCREDS=checkcreds_cclient.o
+
+ # You may need to adjust the following line.
LIBS=/usr/lib/c-client.a -lssl -lpam -L/usr/kerberos/lib/ -lgssapi_krb5 -lcrypt
+
+ # This directory should contain a file named mail.h
I=/usr/include/imap
+
+ # These settings should work fine.
CCLIENT_CFLAGS=-I$I '-DMAIL_H="mail.h"' '-DLINKAGE_C="linkage.c"' -DIMAP_TIMEOUT=2
+ # filtercmd uses c-client's mailbox naming conventions to control how the
+ # connection to the IMAP server will happen. The standard mailbox name will
+ # look like: {localhost/imap4/user=.../norsh}
+ # See http://www.washington.edu/imap/documentation/naming.txt.html for more details.
+ # You can add more flags, and/or remove the /norsh flag, by uncommenting the
+ # line below.
+
+ # The default settings (uncomment and edit)
+ #CCLIENT_CFLAGS=$(CCLIENT_CFLAGS) -DMAILBOXFLAGS=/norsh
+
+ # The /notls flag will work around SSL problems.
+ #CCLIENT_CFLAGS=$(CCLIENT_CFLAGS) -DMAILBOXFLAGS=/norsh/notls
+
+ ### END OF C-CLIENT OPTIONS ###
+
+ ### END OF CONFIGURABLE OPTIONS ###
+
all: filtercmd
! filtercmd: filtercmd.o Makefile $(CHECKCREDS)
gcc -o filtercmd filtercmd.o $(CHECKCREDS) $(LIBS)
chmod 4750 filtercmd
chown root:$(HTTPD_GROUP) filtercmd
! filtercmd.o: filtercmd.c Makefile
! gcc -c filtercmd.c $(CFLAGS) $(FILTERCMD_CFLAGS)
! checkcreds_cclient.o: checkcreds_cclient.c Makefile
gcc -c checkcreds_cclient.c $(CFLAGS) $(CCLIENT_CFLAGS)
***************
*** 26,28 ****
clean:
! rm *.o *~
--- 78,80 ----
clean:
! -rm *.o *~ test_creds filter
|