Package Details: postgresql-jdbc 9.4.1210-1

Git Clone URL: https://aur.archlinux.org/postgresql-jdbc.git (read-only)
Package Base: postgresql-jdbc
Description: The official JDBC driver for PostgreSQL. Contains JDBC 4.0, 4.1 & 4.2 drivers.
Upstream URL: http://jdbc.postgresql.org/
Licenses: custom: BSD
Submitter: None
Maintainer: Huulivoide
Last Packager: Huulivoide
Votes: 44
Popularity: 0.446107
First Submitted: 2008-01-28 20:22
Last Updated: 2016-09-11 22:30

Latest Comments

snoreven commented on 2016-09-07 16:51

Sorry, didn't see the PKGBUILD from the comments. Works with it. Please fix.

snoreven commented on 2016-09-07 15:14

I can't install, getting error when it's unpacking the .jar:

-> Pakker ut postgresql-jdbc-9.4.1208.jdbc4.jar med bsdtar
META-INF/: Can't replace existing directory with non-directory
bsdtar: Error exit delayed from previous errors.

SRChiP commented on 2016-07-04 17:21

You can use this PKGBUILD to successfully build it. The changes are renaming the file names in noextract, loser137's change.

#Maintainer: Jesse Jaara <gmail.com: jesse.jaara>

pkgname=postgresql-jdbc
_mainver=9.4
_build=1208
pkgver=${_mainver}.${_build}
pkgrel=2
pkgdesc="The official JDBC driver for PostgreSQL. Contains JDBC 4.0 and 4.1 drivers."
arch=('any')
url="http://jdbc.postgresql.org/"
license=("Custom: BSD")
depends=('java-runtime')
source=(LICENSE
postgresql-jdbc-${pkgver}.jdbc4.jar::http://jdbc.postgresql.org/download/postgresql-${_mainver}.${_build}.jre6.jar
postgresql-jdbc-${pkgver}.jdbc41.jar::http://jdbc.postgresql.org/download/postgresql-${_mainver}.${_build}.jre7.jar
postgresql-jdbc-${pkgver}.jdbc42.jar::http://jdbc.postgresql.org/download/postgresql-${_mainver}.${_build}.jar)
md5sums=('da7e6f8b26deefe7c03b391454732a0d'
'ad222fd5d73c16db63aed7bc19396019'
'e23f33f6bac5638842ed0f810590e3d4'
'19c06fdfc4fe514acf0bfacd1f8afd6a')

noextract=(postgresql-jdbc-${pkgver}.jdbc4.jar postgresql-jdbc-${pkgver}.jdbc41.jar postgresql-jdbc-${pkgver}.jdbc42.jar)

package() {
install -d -m755 "${pkgdir}/usr/share/java/${pkgname}"
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"

install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc4.jar" "${pkgdir}/usr/share/java/${pkgname}/"
install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc41.jar" "${pkgdir}/usr/share/java/${pkgname}/"
install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc42.jar" "${pkgdir}/usr/share/java/${pkgname}/"

ln -s postgresql-jdbc-${pkgver}.jdbc4.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-jdbc4.jar"
ln -s postgresql-jdbc-${pkgver}.jdbc41.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-jdbc41.jar"
ln -s postgresql-jdbc-${pkgver}.jdbc42.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-jdbc42.jar"

loser137 commented on 2016-03-22 08:05

postgresql-jdbc-9.4.1208.jdbc42.jar is downloaded but not installed. You can insert the following line in package() to fix this:
install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc42.jar" "${pkgdir}/usr/share/java/${pkgname}/"

GLaDER commented on 2016-02-17 10:36

AUR Packages (1): postgresql-jdbc-9.4.1206-2

:: Proceed with installation? [Y/n]

:: Retrieving package(s)...
Already up-to-date.
:: View postgresql-jdbc PKGBUILD? [Y/n]

:: postgresql-jdbc PKGBUILD viewed
:: Checking postgresql-jdbc integrity...
==> ERROR: license should be an array
:: failed to verify postgresql-jdbc integrity

egore911 commented on 2014-12-20 21:09

The following PKGBUILD can be used for the latest driver (9.3_1102) and JDBC 4.1 support:

# Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
# Contributor: [Christoph Brill](mailto:egore911@gmail.com)

pkgname=postgresql-jdbc
pkgver=9.3_1102
pkgrel=1
pkgdesc="The official JDBC driver for PostgreSQL. This package contains JDBC3 and JDBC4 drivers."
arch=('any')
url="http://jdbc.postgresql.org/"
license="BSD"
depends=('java-runtime')
source=(http://jdbc.postgresql.org/download/postgresql-${pkgver//_/-}.jdbc3.jar \
http://jdbc.postgresql.org/download/postgresql-${pkgver//_/-}.jdbc4.jar \
http://jdbc.postgresql.org/download/postgresql-${pkgver//_/-}.jdbc41.jar)
noextract=("postgresql-${pkgver//_/-}.jdbc3.jar" "postgresql-${pkgver//_/-}.jdbc4.jar" "postgresql-${pkgver//_/-}.jdbc41.jar")

package() {
mkdir -p $pkgdir/usr/share/java/$pkgname

for f in $srcdir/*; do
install -m644 ${f} $pkgdir/usr/share/java/$pkgname
done

for i in ${pkgdir}/usr/share/java/${pkgname}/*.jar; do
_filename=${i##*\/}; _version=${pkgver//_/-}
ln -s ${_filename} ${pkgdir}/usr/share/java/${pkgname}/${_filename/${_version}./}
done
}

md5sums=('28130260a585a6c56c391c9522e04b5b'
'5faefdec7dbd96f72a5b4c428cae4901'
'd45001469e6fc43664b5080fcea731a4')
sha256sums=('bc0d11354b1932eba111fad53f2545b3aa796ebc16c2f49a2eae57d21fc5cbc3'
'092090809bcf94aec9abc0ba6ba471949ad2e5971e7c1fc3777e2bc7ae9ebc3d'
'b78749d536da75c382d0a71c717cde6850df64e16594676fc7cacb5a74541d66')

ur6lad commented on 2012-12-01 07:16

9.2-1002

giddie commented on 2011-12-12 15:26

Is the arch actually restricted to x86 and x86_64, or should this actually be "any"?

ur6lad commented on 2011-11-20 21:42

I see.

9.1_901-2 (Fix noextract)

schuay commented on 2011-11-19 21:33

Yeah the package contents are now fine, because you install both .jar files manually (without using wildcards).
If you look inside $srcdir/ though after a makepkg, you will see that both .jar's are extracted.

So no, noextract doesn't work with wildcards.

ur6lad commented on 2011-11-19 21:26

No, noextract works: jars are not extracted.

On my workstation:

$ pacman -Ql postgresql-jdbc
postgresql-jdbc /usr/
postgresql-jdbc /usr/share/
postgresql-jdbc /usr/share/java/
postgresql-jdbc /usr/share/java/postgresql-jdbc/
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-9.1-901.jdbc3.jar
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-9.1-901.jdbc4.jar
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-jdbc3.jar
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-jdbc4.jar

schuay commented on 2011-11-19 08:09

Thanks. The

noextract=('*.jar')

line is still broken though, noextract doesn't accept wildcards. That's the reason a plain cp $srcdir/* didn't work.

ur6lad commented on 2011-11-18 22:29

9.1_901

schuay commented on 2011-11-18 12:41

Please fix this package.
If it hasn't been updated by Nov 22 (= 2 weeks after pcarrier's comment), it will be orphaned.

teekay commented on 2011-11-12 10:55

This package is broken. cp -R as suggested by pcarrier would still result in broken symlinks and needless install of all .class files

I used this:
package() {
mkdir -p $pkgdir/usr/share/java/$pkgname
cd $pkgdir/usr/share/java/$pkgname

cp $srcdir/*.jar .
cp $srcdir/setClasspath.sh .
for i in *.jar; do
_filename=${i##*\/}; _version=${pkgver//_/-}
ln -s ${_filename} ${_filename/${_version}./} || return 1
done

}

pcarrier commented on 2011-11-08 15:05

cp $srcdir/* $pkgdir/usr/share/java/$pkgname

has to be replaced with:

cp -r $srcdir/* $pkgdir/usr/share/java/$pkgname

ur6lad commented on 2010-11-13 16:20

9.0-801