Author Topic: I've ported something how do I package it?  (Read 1260 times)

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
I've ported something how do I package it?
« on: September 10, 2011, 03:15:41 pm »
I've done ./configure and make and make install but how do I package it? I know how to make debs and control files etc... But I'm not sure how to package it :)

A3MIRAL

  • Leader
  • Hero Member
  • *****
  • Posts: 2899
  • Reputation: 105
  • A3MIRAL -- Reporting for Duty
    • A3MIRAL
  • Badges:
  • Computers: Dell XPS15 (6 GB ram, Core i7 @ 2.0 GHz, 750 GB HDD @ 7200 RPM)
  • iDevices: iPod touch 3G 32GB, iPhone 5 32GB
Re: I've ported something how do I package it?
« Reply #1 on: September 10, 2011, 03:56:28 pm »
dpkg-deb -b /path/to/deb Deb_NAME

the deb name must have no spaces.
for us, its com.author_name.deb_name.iphoneos-arm.deb

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: I've ported something how do I package it?
« Reply #2 on: September 10, 2011, 04:01:05 pm »
When I type in make package I get no rule to make package :(

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: I've ported something how do I package it?
« Reply #3 on: September 10, 2011, 04:07:49 pm »
cd /path/to/program
mkdir /var/root/debs/PROGRAMNAME
make install prefix=/var/root/debs/PROGRAMNAME/
cd /var/root/debs
dpkg -b PROGRAMNAME
dpkg-name PROGRAMNAME.deb

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: I've ported something how do I package it?
« Reply #4 on: September 10, 2011, 04:22:15 pm »
Just a note about this one:
dpkg -b PROGRAMNAME
change it to:
dpkg -b PROGRAMNAME myfile.deb
because otherwise it gets packaged with a file called /.deb and then it causes conflictes with other packages.  

Don't like seeing ads? Click here to register!

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: I've ported something how do I package it?
« Reply #5 on: September 10, 2011, 04:26:18 pm »
It doesnt do that for me...

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: I've ported something how do I package it?
« Reply #6 on: September 10, 2011, 04:27:05 pm »
Nothin goes into /var/root/debs/programname

>:(

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: I've ported something how do I package it?
« Reply #7 on: September 10, 2011, 06:51:39 pm »
Did you make the directory?
Also, if that doesnt work, post the Makefile (link to it).

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: I've ported something how do I package it?
« Reply #8 on: September 11, 2011, 02:59:51 am »