From: Bruce S. <bl...@us...> - 2004-04-14 20:50:37
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32520/scripts Modified Files: postgresql Log Message: Added PostgreSQL server Index: postgresql =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/postgresql,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- postgresql 11 Jan 2004 14:43:05 -0000 1.11 +++ postgresql 14 Apr 2004 20:50:29 -0000 1.12 @@ -28,7 +28,7 @@ case $1 in build ) if [ "$CONFIG_POSTGRESQL_CLIENT" = "y" ]; then - ./configure --prefix=/usr --sysconfdir=/etc/pgsql --localstatedir=/var --datadir=/usr/share/pgsql \ + ./configure --prefix=/usr --sysconfdir=/etc/pgsql --localstatedir=/var --datadir=/var/pgsql \ --disable-nls --with-openssl --enable-multibyte --enable-syslog --enable-unicode-conversion --with-perl || exit 1 make $PMAKE all || exit 1 @@ -44,9 +44,21 @@ if [ "$CONFIG_POSTGRESQL_CLIENT" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 - make -C src/bin install DESTDIR=$WORKDIR/tmp || exit 1 - make -C src/interfaces install DESTDIR=$WORKDIR/tmp || exit 1 - make -C doc install DESTDIR=$WORKDIR/tmp || exit 1 + + if [ "$CONFIG_POSTGRESQL_SERVER" = "y" ]; then + make install DESTDIR=$WORKDIR/tmp || exit 1 + groupadd -g 47 postgres || exit 1 + useradd -u 47 -g postgres -s /bin/false -d /var/pgsql -c "PostgreSQL Server" postgres || exit 1 + echo "# Start PostgreSQL Server?" >> $CONFIGFILE + echo "START_POSTGRES=no" >> $CONFIGFILE + echo >> $CONFIGFILE + echo "HELP_MYSQL=\"PostgreSQL is a OpenSource Database\"" >> $SOFTWAREHELP + cp $MYDIR/scripts/postgresql $ETCDIR/etc/init.d || exit 1 + else + make -C src/bin install DESTDIR=$WORKDIR/tmp || exit 1 + make -C src/interfaces install DESTDIR=$WORKDIR/tmp || exit 1 + make -C doc install DESTDIR=$WORKDIR/tmp || exit 1 + fi copy_docs $WORKDIR/tmp rm -rf $WORKDIR/tmp/usr/include || exit 1 |