postgresql: initial import
This commit is contained in:
parent
0d178fea00
commit
d641eb95cb
1215
postgresql/.footprint
Normal file
1215
postgresql/.footprint
Normal file
File diff suppressed because it is too large
Load Diff
2
postgresql/.md5sum
Normal file
2
postgresql/.md5sum
Normal file
@ -0,0 +1,2 @@
|
||||
f5eeff17dd7117175794459f7097ad1a postgresql
|
||||
5e1f1a7c5f62170b56a3bf2512fdec2d postgresql-8.1.0.tar.bz2
|
22
postgresql/Pkgfile
Normal file
22
postgresql/Pkgfile
Normal file
@ -0,0 +1,22 @@
|
||||
# Description: A sophisticated Object-Relational DBMS
|
||||
# URL: http://www.postgresql.org
|
||||
# Packager: Markus Heinz, su1690 at studserver.uni-dortmund dot de
|
||||
# Maintainer: Simone Rota, sip at varlock dot com
|
||||
# Depends on:
|
||||
|
||||
name=postgresql
|
||||
version=8.1.0
|
||||
release=1
|
||||
source=(ftp://ftp7.de.postgresql.org/pub/ftp.postgresql.org/v$version/$name-$version.tar.bz2 postgresql)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
./configure --prefix=/usr --disable-nls
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
rm -rf $PKG/usr/doc
|
||||
|
||||
mkdir -p $PKG/etc/rc.d/
|
||||
install -D -m 755 ../postgresql $PKG/etc/rc.d/postgresql
|
||||
}
|
56
postgresql/README
Normal file
56
postgresql/README
Normal file
@ -0,0 +1,56 @@
|
||||
README POSTGRESQL
|
||||
=================
|
||||
|
||||
UPGRADING FROM A PREVIOUS VERSION
|
||||
---------------------------------
|
||||
If upgrading from a non-compatible version (ie 8.0.x >> 8.1.x)
|
||||
be sure to dump the databases before upgrading and restore them
|
||||
later.
|
||||
|
||||
Example: (for your convenience, there could be better ways to
|
||||
achieve this)
|
||||
|
||||
# pg_dumpall -U postgres > pg.dump
|
||||
# /etc/rc.d/postgresql stop
|
||||
|
||||
# mv /var/pgsql/data /var/pgsql/data-backup
|
||||
# mkdir /var/pgsql/data
|
||||
# chown postgres /var/pgsql/data
|
||||
|
||||
# su - postgres
|
||||
# initdb -D /var/pgsql/data
|
||||
# exit
|
||||
|
||||
# /etc/rc.d/postgresql start
|
||||
# psql -U postgres -f pg.dump postgres
|
||||
|
||||
Do not forget to update / copy old config files to /var/pgsql/data
|
||||
|
||||
|
||||
NEW INSTALL
|
||||
-----------
|
||||
|
||||
To complete the installation and create a test database you need to do
|
||||
some additional steps:
|
||||
|
||||
# useradd postgres
|
||||
# passwd -l postgres
|
||||
|
||||
# mkdir -p /var/pgsql/data
|
||||
# touch /var/log/postgresql
|
||||
# chown postgres /var/pgsql/data /var/log/postgresql
|
||||
|
||||
# su - postgres
|
||||
# initdb -D /var/pgsql/data
|
||||
# exit
|
||||
|
||||
# /etc/rc.d/postgresql start
|
||||
# su - postgres
|
||||
# createdb test
|
||||
# psql test
|
||||
|
||||
edit /etc/cron/weekly as root and add a line "/usr/sbin/rotatelog postgresql"
|
||||
|
||||
The complete installation instructions are located here:
|
||||
|
||||
http://www.postgresql.org/docs/current/interactive/installation.html
|
16
postgresql/postgresql
Normal file
16
postgresql/postgresql
Normal file
@ -0,0 +1,16 @@
|
||||
#
|
||||
# /etc/rc.d/postgresql: start, stop or restart PostgreSQL server postmaster
|
||||
#
|
||||
|
||||
PG_DATA=/var/pgsql/data
|
||||
|
||||
case "$1" in
|
||||
start|stop|status|restart|reload)
|
||||
su - postgres -c "pg_ctl -D $PG_DATA -l /var/log/postgresql $1"
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 start|stop|restart|reload|status"
|
||||
;;
|
||||
esac
|
||||
|
||||
# End of file
|
Loading…
x
Reference in New Issue
Block a user