/[gentoo-alt]/trunk/prefix/dev-db/postgresql/postgresql-8.1.0.ebuild
Gentoo

Diff of /trunk/prefix/dev-db/postgresql/postgresql-8.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1165 Revision 1166
43 selinux? ( sec-policy/selinux-postgresql ) 43 selinux? ( sec-policy/selinux-postgresql )
44 ssl? ( >=dev-libs/openssl-0.9.6-r1 ) 44 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
45 xml2? ( dev-libs/libxml2 dev-libs/libxslt ) 45 xml2? ( dev-libs/libxml2 dev-libs/libxslt )
46 kerberos? ( virtual/krb5 )" 46 kerberos? ( virtual/krb5 )"
47 47
48PG_DIR="${PREFIX}/var/lib/postgresql" 48PG_DIR="${EPREFIX}/var/lib/postgresql"
49 49
50pkg_setup() { 50pkg_setup() {
51 if [ -f ${PG_DIR}/data/PG_VERSION ] ; then 51 if [ -f ${PG_DIR}/data/PG_VERSION ] ; then
52 PG_MAJOR=`cat ${PG_DIR}/data/PG_VERSION | cut -f1 -d.` 52 PG_MAJOR=`cat ${PG_DIR}/data/PG_VERSION | cut -f1 -d.`
53 PG_MINOR=`cat ${PG_DIR}/data/PG_VERSION | cut -f2 -d.` 53 PG_MINOR=`cat ${PG_DIR}/data/PG_VERSION | cut -f2 -d.`
60 exit 1 60 exit 1
61 fi 61 fi
62 fi 62 fi
63 enewgroup postgres 70 \ 63 enewgroup postgres 70 \
64 || die "problem adding group postgres" 64 || die "problem adding group postgres"
65 enewuser postgres 70 ${PREFIX}/bin/bash /var/lib/postgresql postgres \ 65 enewuser postgres 70 ${EPREFIX}/bin/bash /var/lib/postgresql postgres \
66 || die "problem adding user postgres" 66 || die "problem adding user postgres"
67} 67}
68 68
69src_unpack() { 69src_unpack() {
70 unpack ${A} || die 70 unpack ${A} || die
87 87
88 ./configure \ 88 ./configure \
89 $(with_prefix) \ 89 $(with_prefix) \
90 $(with_mandir) \ 90 $(with_mandir) \
91 --host=${CHOST} \ 91 --host=${CHOST} \
92 --with-docdir=${PREFIX}/usr/share/doc/${PF} \ 92 --with-docdir=${EPREFIX}/usr/share/doc/${PF} \
93 --libdir=${PREFIX}/usr/$(get_libdir) \ 93 --libdir=${EPREFIX}/usr/$(get_libdir) \
94 --enable-depend \ 94 --enable-depend \
95 $(use_with kerberos krb5) \ 95 $(use_with kerberos krb5) \
96 $(use_with libg++ CXX) \ 96 $(use_with libg++ CXX) \
97 $(use_enable nls) \ 97 $(use_enable nls) \
98 $(use_with pam) \ 98 $(use_with pam) \
123 mv ${S}/src/pl/plperl/GNUmakefile ${S}/src/pl/plperl/GNUmakefile_orig 123 mv ${S}/src/pl/plperl/GNUmakefile ${S}/src/pl/plperl/GNUmakefile_orig
124 sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ 124 sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
125 ${S}/src/pl/plperl/GNUmakefile_orig > ${S}/src/pl/plperl/GNUmakefile 125 ${S}/src/pl/plperl/GNUmakefile_orig > ${S}/src/pl/plperl/GNUmakefile
126 fi 126 fi
127 127
128 make DESTDIR=${DEST} LIBDIR=${D}/usr/lib install || die 128 make DESTDIR=${EDEST} LIBDIR=${D}/usr/lib install || die
129# make DESTDIR=${D} install-all-headers || die 129# make DESTDIR=${D} install-all-headers || die
130 cd ${S}/contrib 130 cd ${S}/contrib
131 make DESTDIR=${DEST} LIBDIR=${D}/usr/lib install || die 131 make DESTDIR=${EDEST} LIBDIR=${D}/usr/lib install || die
132 if use xml2; then 132 if use xml2; then
133 cd ${S}/contrib/xml2 133 cd ${S}/contrib/xml2
134 make DESTDIR=${DEST} LIBDIR=${D}/usr/lib install || die 134 make DESTDIR=${EDEST} LIBDIR=${D}/usr/lib install || die
135 fi 135 fi
136 cd ${S} 136 cd ${S}
137 dodoc README HISTORY COPYRIGHT INSTALL 137 dodoc README HISTORY COPYRIGHT INSTALL
138 dodoc contrib/adddepend/* 138 dodoc contrib/adddepend/*
139 139
186 eerror "Postgres ${PV} cannot upgrade your existing databases." 186 eerror "Postgres ${PV} cannot upgrade your existing databases."
187 eerror "You must remove your entire database directory to continue." 187 eerror "You must remove your entire database directory to continue."
188 eerror "(database directory = ${PG_DIR})." 188 eerror "(database directory = ${PG_DIR})."
189 exit 1 189 exit 1
190 elif [[ "${USERLAND}" == "Darwin" ]]; then 190 elif [[ "${USERLAND}" == "Darwin" ]]; then
191 su postgres -c "${PREFIX}/usr/bin/initdb --pgdata ${PG_DIR}/data" 191 su postgres -c "${EPREFIX}/usr/bin/initdb --pgdata ${PG_DIR}/data"
192 else 192 else
193 local SEM=`sysctl -n kernel.sem | cut -f-3` 193 local SEM=`sysctl -n kernel.sem | cut -f-3`
194 local SEMMNI=`sysctl -n kernel.sem | cut -f4` 194 local SEMMNI=`sysctl -n kernel.sem | cut -f4`
195 local SEMMNI_MIN=`expr \( ${MAX_CONNECTIONS} + 15 \) / 16` 195 local SEMMNI_MIN=`expr \( ${MAX_CONNECTIONS} + 15 \) / 16`
196 local SHMMAX=`sysctl -n kernel.shmmax` 196 local SHMMAX=`sysctl -n kernel.shmmax`

Legend:
Removed from v.1165  
changed lines
  Added in v.1166

  ViewVC Help
Powered by ViewVC 1.1.20