I'd remove the last two files, the rest should be harmless:
Code: Select all
/etc/rc.d/rc.postgresql
/etc/logrotate.d/postgresql
And also /usr/local/pgsql/
Then build the package by downloading all the files here
http://slackware.uk/salix/x86_64/extra- ... ostgresql/
and putting them together in a directory by themselves.
EDIT This can be done most simply by downloading the slackbuild tarball and unpacking it locally:
Code: Select all
wget https://slackbuilds.org/slackbuilds/14.2/system/postgresql.tar.gz
tar -xf postgresql.tar.gz
cd postgresql
Download the source tarball of the more recent version and put it in the same directory. Edit the version number in the SlackBuild so it corresponds to the new version:
Code: Select all
nano postgresql.SlackBuild
VERSION=${VERSION:-9.6.4} #change 9.6.4 to (I assume) 10.1
Make the buildscript executable and run it:
Code: Select all
chmod +x postgresql.SlackBuild
sudo ./postgresql.SlackBuild
If all goes well, it will place the new package in /tmp. Install it as follows:
Code: Select all
sudo spkg /tmp/postgresql-9.5.3-x86_64-1_SBo.tgz #the filename may be slightly different, and will have the higher version number.
However, it is possible the build will fail because of differences in the new version. If so, please let us know and maybe a solution can be found!
EDIT You will also need to add the package to the "excludes" in Gslapt/slapt-getrc, otherwise your package will get downgraded to the repo version every time you do an upgrade. If you are not sure how to do this, please ask once you have successfully built and tested the package.