Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 38

Thread: HOW TO package arbitrary files for your PPA

  1. #21
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: HOW TO package arbitrary files for your PPA

    could this most probably be a typo?

    you typed in

    Code:
    Andrew Kiss <xanga9885@hotmail.com>
    but your complete PGP key adress is

    Code:
    Andrew Kiss (I Own) <xanga9885@hotmail.com>

  2. #22
    Join Date
    Apr 2008
    Location
    Ohio
    Beans
    202

    Re: HOW TO package arbitrary files for your PPA

    That worked.

    Now I feel retarded.

  3. #23
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: HOW TO package arbitrary files for your PPA

    Quote Originally Posted by RATM_Owns View Post
    That worked.

    Now I feel retarded.
    heheh..

    probably more than half of ppa builders made that mistake.

    I did too..

  4. #24
    Join Date
    Apr 2008
    Location
    Ohio
    Beans
    202

    Re: HOW TO package arbitrary files for your PPA

    Well I made a easy script just to automate most of it.

    Code:
    #!/bin/bash
    echo "Name of project? (i.e. helloworld)"
    read pname
    echo "Version of $pname? (i.e. 1.0)"
    read pversion
    clear
    zenity --info --text="Please move the script into ~/Projects/$pname/"
    mkdir -p ~/Projects/$pname/$pname-$pversion/debian/
    cd ~/Projects/$pname/$pname-$pversion/debian/
    touch changelog compat control copyright install rules
    clear
    zenity --info --text="Please edit the files according to http://ubuntuforums.org/showthread.php?t=929498"
    gedit * &
    cd ..
    debuild -S
    clear
    echo "You can now upload the files to LaunchPad via dput."

  5. #25
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: HOW TO package arbitrary files for your PPA

    extend your automation to dput by capturing debuild -S output and getting the changes file.

  6. #26
    Join Date
    Apr 2008
    Location
    Ohio
    Beans
    202

    Re: HOW TO package arbitrary files for your PPA

    ...um...

    Can you put that into idiot terms for me?

    You have 1000 posts, I have 100.
    You're more experienced than I am.

  7. #27
    Join Date
    Jul 2008
    Location
    $HOME
    Beans
    1,030
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOW TO package arbitrary files for your PPA

    Quote Originally Posted by RATM_Owns View Post
    ...um...

    Can you put that into idiot terms for me?

    You have 1000 posts, I have 100.
    You're more experienced than I am.
    If you just add this:

    Code:
    dput my-ppa ../*.changes
    ...it will work if there are no other changes files cluttering the parent directory. (I always keep that directory clean.)

    You'd need something a bit more complicated if you need to distinguish.
    If people were nicer, I'd answer more queries here!

  8. #28
    Join Date
    May 2007
    Location
    California, USA
    Beans
    245

    Re: HOW TO package arbitrary files for your PPA

    debhelper 7 and devcscripts will make this much much much simpler, if someone didn't point it out already:

    compat = 7

    debian/rules:

    Code:
    #!/usr/bin/make -f
    
    %:
            $@
    dch -i to make changelog entry

    Just add copyright and control and install and you're done. No need to rely on cdbs.

  9. #29
    Join Date
    Apr 2008
    Location
    Ohio
    Beans
    202

    Re: HOW TO package arbitrary files for your PPA

    Quote Originally Posted by Pro-reason View Post
    If you just add this:

    Code:
    dput my-ppa ../*.changes
    ...it will work if there are no other changes files cluttering the parent directory. (I always keep that directory clean.)

    You'd need something a bit more complicated if you need to distinguish.
    The script sets a variable for the project name, pname so I can do
    Code:
    dput my-ppa ~/Projects/$pname/$pname*.changes
    New script:
    Code:
    #!/bin/bash
    echo "Name of project? (i.e. helloworld)"
    read pname
    echo "Version of $pname? (i.e. 1.0)"
    read pversion
    clear
    zenity --info --text="Please move the script into 
    ~/Projects/$pname/ and press the OK button."
    mkdir -p ~/Projects/$pname/$pname-$pversion/debian/
    cd ~/Projects/$pname/$pname-$pversion/debian/
    touch changelog control compat copyright install rules
    zenity --info --text="Please edit the files according to 
    http://ubuntuforums.org/showthread.php?t=929498"
    gedit *
    cd ..
    debuild -S
    clear
    dput my-ppa ~/Projects/$pname/$pname*.changes
    Last edited by RATM_Owns; October 7th, 2008 at 09:59 PM.

  10. #30
    Join Date
    Apr 2007
    Beans
    235
    Distro
    Ubuntu

    Re: HOW TO package arbitrary files for your PPA

    I know this is old, but I would like to know what if all you want to upload is a python file for example? helloworld.py?

    I get an error when I try debuild -k<key> -S -sa:
    Code:
    make: *** No rule to make target `clean'.  Stop.
    dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
    debuild: fatal error at line 1334:
    dpkg-buildpackage -rfakeroot -d -us -uc -S -sa failed
    scons: *** [test] Error 29
    My rules file:
    Code:
    #!/usr/bin/make -f
    # -*- makefile -*-
    # Sample debian/rules that uses debhelper.
    # This file was originally written by Joey Hess and Craig Small.
    # As a special exception, when this file is copied by dh-make into a
    # dh-make output file, you may use that output file without restriction.
    # This special exception was added by Craig Small in version 0.37 of dh-make.
    
    %:
            $@

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •