postgresql: fix install; depend on shadow due to system_accounts.
This commit is contained in:
parent
1971169f0f
commit
50e9d080e4
1 changed files with 12 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'postgresql'
|
# Template file for 'postgresql'
|
||||||
pkgname=postgresql
|
pkgname=postgresql
|
||||||
version=8.4.15
|
version=8.4.15
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-docdir=/usr/share/doc --with-openssl --with-python
|
configure_args="--with-docdir=/usr/share/doc --with-openssl --with-python
|
||||||
--with-pam --datadir=/usr/share/postgresql --enable-thread-safety
|
--with-pam --datadir=/usr/share/postgresql --enable-thread-safety
|
||||||
|
@ -44,7 +44,7 @@ postgresql-doc_package() {
|
||||||
postgresql-libs_package() {
|
postgresql-libs_package() {
|
||||||
short_desc="PostgreSQL shared libraries"
|
short_desc="PostgreSQL shared libraries"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/*.so*" usr/lib
|
vmove "usr/lib/*.so*"
|
||||||
for d in $(find ${DESTDIR}/usr/share/locale \
|
for d in $(find ${DESTDIR}/usr/share/locale \
|
||||||
-type f -name libpq5\*); do
|
-type f -name libpq5\*); do
|
||||||
mkdir -p ${PKGDESTDIR}/$(dirname ${d#${DESTDIR}})
|
mkdir -p ${PKGDESTDIR}/$(dirname ${d#${DESTDIR}})
|
||||||
|
@ -59,7 +59,7 @@ postgresql-libs-devel_package() {
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
for f in pg_config ecpg; do
|
for f in pg_config ecpg; do
|
||||||
vmove usr/bin/${f}
|
vmove usr/bin/${f}
|
||||||
vmove "usr/share/man/man1/${f}*"
|
vmove "usr/share/man/man1/$(basename ${f})*"
|
||||||
done
|
done
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove "usr/lib/*.a"
|
vmove "usr/lib/*.a"
|
||||||
|
@ -76,7 +76,7 @@ postgresql-plperl_package() {
|
||||||
depends="perl>=5.16 postgresql>=$version"
|
depends="perl>=5.16 postgresql>=$version"
|
||||||
short_desc="PL/Perl procedural language for PostgreSQL"
|
short_desc="PL/Perl procedural language for PostgreSQL"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/postgresql/plperl*" usr/lib/postgresql
|
vmove "usr/lib/postgresql/plperl*"
|
||||||
for d in $(find ${DESTDIR}/usr/share/locale \
|
for d in $(find ${DESTDIR}/usr/share/locale \
|
||||||
-type f -name plperl\*); do
|
-type f -name plperl\*); do
|
||||||
mkdir -p ${PKGDESTDIR}/$(dirname ${d#${DESTDIR}})
|
mkdir -p ${PKGDESTDIR}/$(dirname ${d#${DESTDIR}})
|
||||||
|
@ -120,19 +120,19 @@ postgresql-client_package() {
|
||||||
dropuser pg_dump pg_dumpall pg_restore psql reindexdb \
|
dropuser pg_dump pg_dumpall pg_restore psql reindexdb \
|
||||||
vacuumdb; do
|
vacuumdb; do
|
||||||
vmove usr/bin/${f}
|
vmove usr/bin/${f}
|
||||||
vmove usr/share/man/man1/${f}.1
|
vmove usr/share/man/man1/$(basename ${f}).1
|
||||||
done
|
done
|
||||||
vmove usr/share/man/man7
|
vmove usr/share/man/man7
|
||||||
for d in $(find ${DESTDIR}/usr/share/locale \
|
for d in $(find ${DESTDIR}/usr/share/locale \
|
||||||
-type f -name pgscripts\* -o \
|
-type f -name pgscripts\* -o \
|
||||||
-name psql\* -o \
|
-name psql\* -o \
|
||||||
-name pg_dump\*); do
|
-name pg_dump\*); do
|
||||||
mkdir -p ${PKGDESTDIR}/$(dirname ${d#${DESTDIR}})
|
mkdir -p ${PKGDESTDIR}/$(dirname ${d#${DESTDIR}})
|
||||||
mv ${d} ${PKGDESTDIR}/$(dirname ${d#${DESTDIR}})
|
mv ${d} ${PKGDESTDIR}/$(dirname ${d#${DESTDIR}})
|
||||||
done
|
done
|
||||||
mv ${DESTDIR}/usr/share/postgresql/psqlrc.* \
|
mv ${DESTDIR}/usr/share/postgresql/psqlrc.* \
|
||||||
${PKGDESTDIR}/usr/share/postgresql
|
${PKGDESTDIR}/usr/share/postgresql
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
postgresql_package() {
|
postgresql_package() {
|
||||||
|
@ -146,6 +146,7 @@ postgresql_package() {
|
||||||
postgres_homedir="/var/lib/${pkgname}"
|
postgres_homedir="/var/lib/${pkgname}"
|
||||||
postgres_shell="/bin/sh"
|
postgres_shell="/bin/sh"
|
||||||
postgres_descr="PostgreSQL database server user"
|
postgres_descr="PostgreSQL database server user"
|
||||||
|
depends="shadow"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove etc
|
vmove etc
|
||||||
vmove usr
|
vmove usr
|
||||||
|
|
Loading…
Reference in a new issue