views:

30

answers:

2

Hello, I am trying to upload my app on Cydia and it requires .deb package. I am unable to figure out how to make .deb packages on mac. I am using 10.6.3 when I write this command on terminal

dpkg-deb -b MyProgram

Termina output is

-bash: dpkg-deb: command not found

I've install fink, Mac ports insert Mac DVD to find out but nothing helps.

+1  A: 

You need Xcode installed on your system before using mac ports - you find it on the second mac DVD, I think. After that, you can install mac ports and then via the Terminal type "sudo port install dpgk", press return and enter your password. It may take some time to compile. You tried that?

Juri Keller
If he's got fink as well he *already* has dpkg, because fink is apt based.
dmckee
I've installed Mac ports 1.9.1 and xcode when I run this command
When I run this command sudo port install dpgk I found
Zeeshan-ullahs-MacBook-Pro:/ zeeshanullah$ sudo port install dpgkError: Port dpgk not foundTo report a bug, see <http://guide.macports.org/#project.tickets>
I've installed Mac ports 1.9.1 and xcode when I run this command When I run this command sudo port install dpgk I found Zeeshan-ullahs-MacBook-Pro:/ zeeshanullah$ sudo port install dpgk Error: Port dpgk not found To report a bug, see <http://guide.macports.org/#project.tickets>
I've installed macports and run this command dpkg-deb -b MyProgram but I get this error warning, dpkg-deb: ignoring 3 warnings about the control file(s)Can't use format gnu: No such format 'gnu': Invalid argumentUsage: List: tar -tf <archive-filename> Extract: tar -xf <archive-filename> Create: tar -cf <archive-filename> [filenames...] Help: tar --helpdpkg-deb: subprocess tar -cf returned error exit status 1
A: 

I installed mac ports 1.7 through terminal as no package is available.

After that I installed Mac ports 1.9 through installer.

Then goto this path /opt/local/bin and run sudo port selfupdate

after that execute sudo port install dpkg

it will take some time and after that your dpkg is successfully configured.

Run this command sudo dpkg-deb -b MyProgram to make MyProgram.deb

Note MyProgram should contain DEBIAN folder and under that control file remove txt extention

Below is control file

Website: www.zeeshanullah.com Maintainer: zeeshanullah Name: Snapture Package: zeeshanullah Section: zeeshanullah Version: 2.x.x Architecture: iphoneos-arm Description: GPS joke. Sponsor: zeeshanullah.com

dont forget to place a new line at the end of control file otherwise you will get an error.

I've installed macports and run this command dpkg-deb -b MyProgram but I get this error warning, dpkg-deb: ignoring 3 warnings about the control file(s)Can't use format gnu: No such format 'gnu': Invalid argumentUsage: List: tar -tf <archive-filename> Extract: tar -xf <archive-filename> Create: tar -cf <archive-filename> [filenames...] Help: tar --helpdpkg-deb: subprocess tar -cf returned error exit status 1