markus
Verified User
The latest version of libpng is 1.2.8 (December 3, 2004), fixes a bug that will cause applications that strip the alpha channel (while reading a PNG) to crash.
More information can be found here:
http://www.libpng.org/pub/png/libpng.html
You can get the new file from here:
http://sourceforge.net/project/showfiles.php?group_id=5624
If you wish to upgrade using DA build tool:
1) cd /usr/local/directadmin/customapache
2) wget http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.8.tar.gz
3) edit build and change PNG_VER=1.2.7 by PNG_VER=1.2.8
4) ./build php (y when asked to re-build linpng)
5) service httpd restart
However...
I wanted to automate this upgrade if for whatever reason I need to clean and rebuild my DA installation. Here's what I did:
HowTo automate unofficial DA upgrades
1) Go to the customapache directory
cd /usr/local/directadmin/customapache
2) Create a new directory to hold unofficial upgrades:
mkdir unofficial-upgrades
3) Modify DA build script like this:
4) cd /usr/local/directadmin/customapache/unofficial-upgrades
5) wget http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.8.tar.gz
6) edit build and change PNG_VER=1.2.7 by PNG_VER=1.2.8
7) ./build php (y when asked to re-build linpng)
8) service httpd restart
The advantage of the automated method is the ability to use the upgrades from your unofficial directory (instead of wgetting them from DA site), which is good if (for whatever reason) you need to clean an rebuild your apache.
More information can be found here:
http://www.libpng.org/pub/png/libpng.html
You can get the new file from here:
http://sourceforge.net/project/showfiles.php?group_id=5624
If you wish to upgrade using DA build tool:
1) cd /usr/local/directadmin/customapache
2) wget http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.8.tar.gz
3) edit build and change PNG_VER=1.2.7 by PNG_VER=1.2.8
4) ./build php (y when asked to re-build linpng)
5) service httpd restart
However...
I wanted to automate this upgrade if for whatever reason I need to clean and rebuild my DA installation. Here's what I did:
HowTo automate unofficial DA upgrades
1) Go to the customapache directory
cd /usr/local/directadmin/customapache
2) Create a new directory to hold unofficial upgrades:
mkdir unofficial-upgrades
3) Modify DA build script like this:
Code:
#
# ---[ OPEN ]----------
#
/usr/local/directadmin/customapache/build
#
# ---[ FIND ]----------
#
# NOTE --- this code is part of the getFile() function
#
echo -e "Downloading\t\t$1...";
if [ $OS = "FreeBSD" ]; then
fetch ${WEBPATH}/${1};
else
wget ${WEBPATH}/${1} -O ${CWD}/${1};
fi
#
# ---[ BEFORE ADD ]----------
#
if [ -e ${CWD}/unofficial-upgrades/${1} ]
then
echo "Unofficial upgrade found...";
cp -f ${CWD}/unofficial-upgrades/${1} ${CWD}/${1};
return;
fi
#
# ---[ SAVE ]----------
#
4) cd /usr/local/directadmin/customapache/unofficial-upgrades
5) wget http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.8.tar.gz
6) edit build and change PNG_VER=1.2.7 by PNG_VER=1.2.8
7) ./build php (y when asked to re-build linpng)
8) service httpd restart
The advantage of the automated method is the ability to use the upgrades from your unofficial directory (instead of wgetting them from DA site), which is good if (for whatever reason) you need to clean an rebuild your apache.
Last edited: