AT&T Netclient Debianizer (64-bit support)
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!
Steve said,
October 31, 2009 @ 11:43 am
First I wanted to thank both of you for creating such a great script, this made my life MUCH easier. A couple of notes that might help other people…
1. I had placed both the .rpm and the .sh files on a USB drive in a directory with a space in the name (path). That does not work with this script. All I had to do was put it into a different directory without spaces and everything was fine.
2. After installing the .deb file, which worked perfectly, I had to change the permissions of the execution by doing the following:
In System > Prefences > Main Menu
Modify Internet > AT&T Global Network Client properties
Add “gksudo -S ” in front of the existing command
Close both windows
Select Applications > Internet > AT&T Global network Client and test it.
BTW: This is on Ubuntu 9.10 64bit AMD on my T61P.
Yusuf said,
March 21, 2010 @ 6:48 am
This is great guys, worked for me without any issue on Karmic 64bit
Steve said,
June 28, 2010 @ 6:06 pm
tried this script and got a similar error to before
stevef@stevef-laptop:~$ sudo ./ubuntu_rpm2deb_v0.3.sh agnclient-1.0-2.0.1.3003.i386.rpm
Preparing to convert agnclient-1.0-2.0.1.3003.i386.rpm …
* debian template not found, downloading…
* not able to download debian template for the specified version, using default template…
Target Name : agnclient
Target Version : 1.0
Template debian : agnclient_debian.tar.gz
DEB Version : 1.0~2.0.1.3003
Changelog Distro : lucid
Changelog Comments : Debianized from agnclient-1.0-2.0.1.3003.i386.rpm
Changelog Date : Mon, 28 Jun 2010 16:04:05 -0500
Converting agnclient-1.0-2.0.1.3003.i386.rpm …
* Cleaning previous builds…
* Creating building directory…
* Extracting package content…
* Unpacking template debian directory…
* Customizing template directory…
Building .DEB package …
* Checking build dependencies…
* Building package…
* Cleaning…
Not able to convert the package, check the .log files for more info!
(and the log file shows)
debian/rules build
dh_testdir
dpatch apply-all
applying patch 01_ubuntu_porting to ./ … failed.
make: *** [build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
afmacedo said,
June 28, 2010 @ 6:17 pm
Hi Steve,
Looks like you chose one of the only versions I have not created a conversion package.
I don’t even have that version on my machine. Why don’t you try with 1.0~2.0.1.3020?
Regards,
–AM
Wilson M. Penha Jr. said,
August 6, 2010 @ 9:26 pm
YOU ARE MY HERO, IT IS JUST RUNNING LIKE A CHARM SO FAR.
I AM USING UBUNTU 10.04 AND agnclient-1.0-2.0.1.3003.i386.rpm from ftp://ftp.attglobal.net/pub/custom/ibm_linux/
thx a lot