2012-05-03-嘗試用launchpad

2012-05-03-嘗試用launchpad

Created Thursday 28 June 2012

嘗試用 launchpad ppa Posted on May 3, 2012 by Thomas| Comments Off

ppa 流程

先到launchpad去註冊!

準備 FP

gpg --fingerprint Yu-Chin Tsai pub 1024D/46379ACF 2007-06-29 Key fingerprint = 7BB2 2103 CADC 59F6 11D5 BCB3 5E97 22B4 4637 9ACF

Importing your key into Launchpad

Step 4: Visit your OpenPGP keys page. 到下面這個網頁輸入FP

https://launchpad.net/people/+me/+editpgpkeys

Step 5: Paste the fingerprint that you copied in step 3 into the Fingerprint text-box, then click the Import Key button. Launchpad will use the fingerprint to check the Ubuntu key server for your key and, if successful, send you an encrypted email asking you to confirm the key import. 網頁上可以輸入 fingerprint, 直接貼上FP就對了!

Step 6: Check the email account that Launchpad has sent the confirmation email to. If your email client supports OpenPGP encryption, it will prompt you for the password you chose for the key when GPG generated it. Enter the password, then click the link to confirm that the key is yours. 收E-Mail! 如果你有用 Enigmail, 會要求輸入密碼,認證的連結會用加密的方式藏起來,所以要先解開才看得到!

以上就是帳號的部份!

接著就是增加個人PPA 先到網頁增加 Create a new PPA (我增加了testbed) 重要的是不要亂刪除ppa, 因為沒有辦法復原,不能用一樣的名子建立新的PPA…

開始打包

我是先安裝 ubuntu 1204 抓Source Code 更新changekog 執行打包

debuild -k0x46379ACF -S -sa

編輯上傳的位置

\~/.dput.cf [thomas-ppa] fqdn = ppa.launchpad.net method = ftp incoming = \~thomas.tsai/testbed/ login = thomas.tsai

執行 dput ppa:…

thomas@ubuntu:\~/free\$ dput thomas-ppa:thomas.tsai/testbed tuxboot_0.3ppa1\~precise_source.changes hecking signature on .changes gpg: Signature made Wed 02 May 2012 01:21:29 AM PDT using DSA key ID 46379ACF ... Good signature on /home/thomas/free/tuxboot_0.3ppa1\~precise_source.changes. Checking signature on .dsc gpg: Signature made Wed 02 May 2012 01:21:26 AM PDT using DSA key ID 46379ACF ... Good signature on /home/thomas/free/tuxboot_0.3ppa1\~precise.dsc. Uploading to thomas-ppa (via ftp to ppa.launchpad.net): thomas.tsai@ppa.launchpad.net password: Uploading tuxboot_0.3ppa1\~precise.dsc: done. Uploading tuxboot_0.3ppa1\~precise.tar.gz: done. Uploading tuxboot_0.3ppa1\~precise_source.changes: done. Successfully uploaded packages.

接著去收信等結果吧,無論上傳是否被接受,都會用mail通知你!

如果有accept 再網頁去等build的結果吧,如果順利,launchpad build farm 會自動幫你打包x86 and amd64兩種deb!

https://launchpad.net/people/+me/+archive/+builds?build_state=all&build_text=

打包的資訊:

https://help.launchpad.net/Packaging/PPA/BuildingASourcePackage

上傳資訊:

https://help.launchpad.net/Packaging/PPA/Uploading

Comments