자세한 설명은 http://www.saurik.com/id/7
준비물
dpkg-scanpackages gpg (port gpgme) bzip2 md5sum
Mac의 터미널에서 시작 폴더를 만들어주고 패키지들을 옮긴 다음 패키지정보 파일을 만든다.
[desktop:/www/html/cydia/]# mkdir debs [desktop:/www/html/cydia/]# cp /somepath/*.deb debs/ [desktop:/www/html/cydia/]# dpkg-scanpackages . /dev/null > Packages
패키지 파일을 업데이트 했을 때
[desktop:/www/html/cydia/]# dpkg-scanpackages . Packages > Packages [desktop:/www/html/cydia/]# bzip2 -k Packages
Packages 파일의 내용은 다음과 비슷하다.
Package: com.typostudio.iphonebanktweak Version: 1.0.1-4 Section: Tweaks Maintainer: oldpiano Depends: mobilesubstrate Architecture: iphoneos-arm Filename: .//debs/com.typostudio.iphonebanktweak_1.0.1-4_iphoneos-arm.deb Size: 2840 Installed-Size: 16 MD5sum: 8b3272633362a384be1d3b53fa717841 Description: Now, you can banking in Jailbroken iOS! name: iPhoneBankTweak author: oldpiano
Packages 파일을 압축하고, Release 파일에 MD5 체크섬 값을 파일크기(Bytes)와 함께 넣는다.
[desktop:/www/html/cydia/]# bzip2 -k Packages [desktop:/www/html/cydia/]# md5sum Packages Packages.bz2
3ff84ceef4bf1458f41ed911bcf38a37 Packages 84d20e304c7318d47556e5cd392f4da7 Packages.bz2
[desktop:/www/html/cydia/]# vim Release
Origin: oldpiano's Programs for Cydia Label: oldpiano's Cydia Repository Suite: stable Version: 1.0 Codename: automatic Architectures: iphoneos-arm Components: main Description: An Repository from oldpiano MD5Sum: 3ff84ceef4bf1458f41ed911bcf38a37 425 Packages 84d20e304c7318d47556e5cd392f4da7 326 Packages.bz2*맨 앞에 공백을 한 칸씩 넣어준다.
Release 의 GPG 키파일과 공개키 파일을 만든다.
[desktop:/www/html/cydia/]# gpg --gen-key [desktop:/www/html/cydia/]# gpg -abs -o Release.gpg Release [desktop:/www/html/cydia/]# gpg --export -a "oldpiano" > oldpiano.pub
이제 아이폰의 터미널 Cydia 에 소스를 추가한다.
[root@iphone:~]# echo deb http://oldpiano.dyndns.org/cydia/ ./ >> /etc/apt/sources.list.d/cydia.list [root@iphone:~]# curl http://oldpiano.dyndns.org/cydia/oldpiano.pub | apt-key add - [root@iphone:~]# apt-get update
Get:1 http://oldpiano.dyndns.org ./ Release.gpg [487B] Get:2 http://oldpiano.dyndns.org ./ Release [313B] Hit http://oldpiano.dyndns.org ./ Packages Fetched 3765B in 7s (495B/s) Reading package lists... Done
[root@iphone:~]# apt-get install com.typostudio.iphonebanktweak
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: com.typostudio.iphonebanktweak 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 2840B of archives. After this operation, 16.4kB of additional disk space will be used. Get:1 http://oldpiano.dyndns.org ./ com.typostudio.iphonebanktweak 1.0.1-4 [2840B] Fetched 2840B in 0s (13.6kB/s) Selecting previously deselected package com.typostudio.iphonebanktweak. (Reading database ... 5207 files and directories currently installed.) Unpacking com.typostudio.iphonebanktweak (from .../com.typostudio.iphonebanktweak_1.0.1-4_iphoneos-arm.deb) ... Setting up com.typostudio.iphonebanktweak (1.0.1-4) ...
댓글 없음:
댓글 쓰기