Summary: udb - UNIX Database with Transaction Replication Name: udb Version: 1.5 Release: 1 Group: Database/Daemons Source0: http://www.anteil.com/downloads/udb-%{PACKAGE_VERSION}.tgz Copyright: GPL BuildRoot: %{_tmppath}/udb-root Packager: Jim Capp %description udb provides replication of database transactions, operating system files, and operating system commands to servers distributed in a wide-area-network. A database abstraction layer provides a common application interface and uniform access to data in a variety of file formats and databases including MySQL, Berkely db, xBase, fixed length, and UNIX character delimited files. API's are provided for C, PHP, and UNIX shell. %package initdb Group: Database/Daemons Summary: Initial Database Maps for udb Prefix: /home/httpd/anteil %description initdb installs an initial database for verifying the udb installation may be used with --prefix=/your/install/directory and --force for installing multiple instances %prep %setup %build cd $RPM_BUILD_DIR/udb-${RPM_PACKAGE_VERSION}/lib make cd $RPM_BUILD_DIR/udb-${RPM_PACKAGE_VERSION}/tools make %install cd $RPM_BUILD_DIR/udb-${RPM_PACKAGE_VERSION}/lib mkdir -p $RPM_BUILD_ROOT/usr/lib make install root=$RPM_BUILD_ROOT cd $RPM_BUILD_DIR/udb-${RPM_PACKAGE_VERSION}/tools mkdir -p $RPM_BUILD_ROOT/usr/local/udb/bin make install root=$RPM_BUILD_ROOT cd $RPM_BUILD_DIR/udb-${RPM_PACKAGE_VERSION}/scripts make install root=$RPM_BUILD_ROOT cd $RPM_BUILD_DIR/udb-${RPM_PACKAGE_VERSION}/setup make install root=$RPM_BUILD_ROOT prefix=${RPM_INSTALL_PREFIX:-/home/httpd/anteil} %clean rm -rf $RPM_BUILD_ROOT %post initdb export BASE=${RPM_INSTALL_PREFIX:-/home/httpd/anteil} mkdir -p $BASE/data HOSTNAME=`hostname` # create CONFIG file cat > $BASE/data/CONFIG << __CONFIG__ # # Common config settings # HOSTNAME=$HOSTNAME DEBUG=0 MIN_FREE=10 MAXTRANS=100 SLAVE_TO_MASTER=1601 MASTER_TO_SLAVE=1602 TIMEOUT=20 DEBUG_ROBIN=0 __CONFIG__ # create SIDS cat > $BASE/data/SIDS << __SIDS__ $HOSTNAME 200 __SIDS__ # create MASTER file echo $HOSTNAME > $BASE/data/MASTER # Setup the master directories (expects BASE in the environment): /usr/local/udb/bin/repl_master setup $HOSTNAME # Setup the master as its own slave (expects BASE in the environment): /usr/local/udb/bin/repl_slave setup $HOSTNAME $HOSTNAME # Setup to be used by nobody - see also rc.d/init.d/udb script chown -R nobody.nobody $BASE/data chmod 660 $BASE/data/passwd.pag chmod 660 $BASE/data/passwd.dir %changelog * Thu Sep 7 2000 Jim Capp - Turned udb-initdb into a relocateable package * Fri Sep 1 2000 Jim Capp - Added initdb sub-module * Wed Aug 30 2000 Jim Capp - Made initial cut for udb %files /usr/lib/libudb.a /usr/lib/libudb.so /usr/lib/libudb.so.1.5 /usr/lib/libtbr.a /usr/lib/libtbr.so /usr/lib/libtbr.so.1.5 /usr/local/udb/bin/ %files initdb %dir /home/httpd/anteil/data /home/httpd/anteil/data/command.map /home/httpd/anteil/data/file.map /home/httpd/anteil/data/passwd.map /home/httpd/anteil/data/passwd.pag /home/httpd/anteil/data/passwd.dir