Hi all,
previously I asked how to install egroupware in Debian systems using mariadb as db instead of mysql.
I’ve found a solution and I’m here to report how to do this.
We have to modify required packages in two deb file.
I downloaded all deb files in a local directory, say /usr/local/egw
so, from root:
mkdir /usr/local/egw
cd /usr/local/egw
aptitude download egroupware?
(NOTE: the question mark tell aptitude to download all egroupware packages).
Now we need to work with dpkg-deb … to decompile and recompile the debian packages.
If you are not an expert of dpkg-deb you can use a free bash script form
http://ubuntuforums.org/showthread.php?t=636724 (credit to motin)
#!/bin/bash
EDITOR=gedit
if [[ -z “$1” ]]; then
echo "Syntax: $0 debfile"
exit 1
fi
DEBFILE="$1"
TMPDIR=mktemp -d /tmp/deb.XXXXXXXXXX
|| exit 1
OUTPUT=basename "$DEBFILE" .deb
.modfied.deb
if [[ -e “$OUTPUT” ]]; then
echo "$OUTPUT exists."
rm -r "$TMPDIR"
exit 1
fi
dpkg-deb -x “$DEBFILE” "$TMPDIR"
dpkg-deb --control “$DEBFILE” “$TMPDIR”/DEBIAN
if [[ ! -e “$TMPDIR”/DEBIAN/control ]]; then
echo DEBIAN/control not found.
rm -r "$TMPDIR"
exit 1
fi
CONTROL="$TMPDIR"/DEBIAN/control
MOD=stat -c "%y" "$CONTROL"
$EDITOR “$CONTROL”
if [[ “$MOD” == stat -c "%y" "$CONTROL"
]]; then
echo Not modfied.
else
echo Building new deb…
dpkg -b “$TMPDIR” "$OUTPUT"
fi
rm -r "$TMPDIR"
exit 0
save the script as edit-deb-control.sh or wichone you prefer.
now run:
edit-deb-control.sh egroupware-epl-core_14.2.20150603_all.deb
find mysql-server and change with mariadb-server and mysql-client and change with mariadb-client; save and exit and do the same for
groupware-core_1.8.007.20150218_all.deb
replace the modified versions with originals. Install egroupware deb files with dpkg.
If you want to create a little local repository read this
http://askubuntu.com/questions/170348/how-to-make-my-own-local-repository