Hmm..  After I finished the base code, Ken Jones the main
vpopmail developer picked up work on vqregister to make it
work with the latest vpopmails.  I guess he didn't find time
to add a configure script.

Here's how to install vQregister in short.  If you don't have
any real package experience, you may not be able to complete this.

First, open up Makefile.  If you're running MySQL, you're going
to need to add the path to your mysqlclient library directory,
and add the -lmysqlclient flag to LIBS.

Edit the INSTALL_* definitions as well.  They say where your
webserver cgi-bin directory is, etc.

For a system without MySQL, with Apache cgi-bin in
/usr/local/apache/cgi-bin here's your Makefile with a few
comments added in.  Comments begin with #.  Please be sure to read the
blurb after the end of
 the Makefile.

------ CUT ------

#
# [EMAIL PROTECTED]
#

# vpopmail homedir
VDIR = /home/vpopmail

# compiler to use
CC = gcc

# cgi binary name
BIN = vqregister

DEFS = -I$(VDIR)/include
LINKDEFS =

# You may, or may not need -lcrypt.  It will say -lcrypt wasnt
# found, if you dont need it.
LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt
OBJS = main.o cgi.o template.o global.o misc.o config.o register.o
password.o vpopmail.o db.o field.o badhosts.o

INSTALL_DIR = /usr/local/apache/cgi-bin/vqregister
INSTALL_BIN = vqregister.cgi
INSTALL_UID = vpopmail
INSTALL_GID = vchkpw

all: $(BIN)

$(BIN): $(OBJS)
        $(CC) $(LINKDEFS) -o $(BIN) $(OBJS) $(LIBS)

main.o: main.c global.h
        $(CC) $(DEFS) -o main.o -c main.c
cgi.o: cgi.c global.h
        $(CC) $(DEFS) -o cgi.o -c cgi.c
template.o: template.c global.h
        $(CC) $(DEFS) -o template.o -c template.c
global.o: global.c global.h
        $(CC) $(DEFS) -o global.o -c global.c
misc.o: misc.c global.h
        $(CC) $(DEFS) -o misc.o -c misc.c
config.o: config.c global.h field.h
        $(CC) $(DEFS) -o config.o -c config.c
register.o: register.c global.h
        $(CC) $(DEFS) -o register.o -c register.c
password.o: password.c global.h
        $(CC) $(DEFS) -o password.o -c password.c
vpopmail.o: vpopmail.c global.h
        $(CC) $(DEFS) -o vpopmail.o -c vpopmail.c
db.o: db.c global.h db.h
        $(CC) $(DEFS) -o db.o -c db.c
field.o: field.c global.h field.h db_misc.h
        $(CC) $(DEFS) -o field.o -c field.c
badhosts.o: badhosts.c global.h
        $(CC) $(DEFS) -o badhosts.o -c badhosts.c

install: $(BIN)
        @echo "Installing..."
        mkdir -p $(INSTALL_DIR)
        mkdir -p $(INSTALL_DIR)/html
        cp $(BIN) $(INSTALL_DIR)/$(INSTALL_BIN)
        cp html/* $(INSTALL_DIR)/html
        cp vqregister.email $(INSTALL_DIR)
        cp vqregister.conf $(INSTALL_DIR)
        chown -R $(INSTALL_UID) $(INSTALL_DIR)
        chgrp -R $(INSTALL_GID) $(INSTALL_DIR)
        chmod u+s $(INSTALL_DIR)/$(INSTALL_BIN)

clean:
        @echo -n "Cleaning up..."
        @rm -rf *.core core $(BIN) *.o db.c db.h
        @ln -s db_null.c db.c
        @ln -s db_null.h db.h
        @echo "done."

----- CUT ------

I probably should have attached this, but I'm feeling a little worn down
tonight.
Any lines that appear to have a lot of spaces, or tabs in front of them,
example:

clean:
                
                stuff
                more stuff

Those need to be tabs.  If they aren't tabs.  the make command will
fail.

To compile, type 'make'.
To install, type 'make install'.

You should then be able to go to
http://www.your-server.com/cgi-bin/vqregister/vqregister.cgi

Configurations should be made to
/usr/local/apache/cgi-bin/vqregister/vqregister.conf

Hope that helps someone.

[EMAIL PROTECTED] wrote:
> 
> Where can I find Installation document for vqregister 2.5 or 2.6? If there isn't 
>any, would anybody give me a brief description what to do after untar the source ?
> 
> regards,
> bunk

-- 
[EMAIL PROTECTED]
Inter7 Internet Technologies, Inc.
www.inter7.com - 847-492-0470
Prices at http://www.inter7.com/prices

Reply via email to