August 11, 2009 at 2:12 pm
· Filed under en_US, Linux
Dmitriy Ushakov gently sent a patch for 64bit support for the Debianizer.
--- ubuntu_rpm2deb.sh.afmacedo 2007-11-21 10:55:33.000000000 -0200
+++ ubuntu_rpm2deb.sh 2009-08-11 13:59:44.000000000 -0300
@@ -4,6 +4,8 @@
# By Andr� Mac�do
# 11/06/2007
#
+# Support to convert i386 agnclient to amd64 added by Dmitriy Ushakov
+#
# Converts RPM packages to DEB using pre-created "debian" directories.
###
@@ -157,6 +159,12 @@
sed -i "s/CHGLOG_COMMENTS/$CHGLOG_COMMENTS/" $DEB_DIR/debian/changelog
sed -i "s/DEB_VERSION/$DEB_VERS-1.1/" $DEB_DIR/debian/changelog
+DEB_HOST_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
+if [ $DEB_HOST_ARCH == "amd64" ]; then
+ sed -i "s/i386/amd64/" $DEB_DIR/debian/control
+ sed -i "s//lib///lib32//g" $DEB_DIR/debian/agnclient.links
+fi
+
echo -e "n 33[1m Building 33[7m.DEB package 33[0m ...n"
echo -e " 33[2m * Checking build dependencies... 33[0m"
@@ -171,7 +179,7 @@
done
echo -e " 33[2m * Building package... 33[0m"
-cd $DEB_DIR && fakeroot dpkg-buildpackage -b -us -uc >> ../$TGT_LOG 2>&1 && cd ..
+cd $DEB_DIR && fakeroot dpkg-buildpackage -b -us -uc -a$DEB_HOST_ARCH >> ../$TGT_LOG 2>&1 && cd ..
echo -e " 33[2m * Cleaning... 33[0m"
#rm -rf $DEB_DIR *.changes > /dev/null 2>&1
Please feel free to give it a try and comment back.
You can also download the new script directly from here.
Thanks a lot Dmitriy!
Permalink
November 6, 2007 at 5:47 pm
· Filed under Linux
Ok, spent my last 22 minutes creating a simple debianizer for the AT&T rpms (that also ports from RH to Ubuntu). Hope it is useful for somebody.
Please keep in mind that AT&T has nothing to do with this!!! This is totally unofficial (”do-it-yourself” initiative)!!!
Download it here.
And use it:
* Make it executable
chmod +x ubuntu_rpm2deb.sh
* Install the dependencies
./ubuntu_rpm2deb.sh --deps
* Convert the RPMs
./ubuntu_rpm2deb.sh rpm-package.rpm
Please drop me a comment if you find an use for this.
[edit] I wrote also an extremely experimental redhat version of this “debianizer”. Check it here [/edit]
Permalink
November 6, 2007 at 8:43 am
· Filed under Linux
I would like to apologize for the unauthorized packages distribution. What I did on last post was debianize the public RPM in order to help Ubuntu/Debian buddies but I didn’t notice that I was redistributing that. Packages removed and sorry for the inconvenience.
Permalink
October 26, 2007 at 3:25 pm
· Filed under Linux
Great!!! After sometime without support for AT&T VPN Client on Linux, now there is a Beta version available. The RPMS can be downloaded from ftp://ftp.attglobal.net/pub/client/linux/beta/, and an unofficial DEB (that I made and tested on Gutsy) can be downloaded here.
In the DEB I’ve added a config file (/etc/agnclient/agnclient.conf) which you can use to overwrite some of the variables (in the case of your Service Manager Account is not providing the DNS info).
Permalink