-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdebian-create-package
161 lines (108 loc) · 4.15 KB
/
debian-create-package
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#from Erhan Kesken's notes in our firm's wiki
DEB PAKETI OLUSTURMA
(flex3sdk-nonfree icin deb paketi hazirlarken gectigim yollari belgelendirdim, genel gecer bir belge olma iddiasi yoktur.)
- bir debian paketi olusturma isine girismeden daha onceden hazirlanmis bir deb
paketinin icerigini incelemek de fayda var, kopyala-pastala icin :)
$ mkdir red5deb; cd red5deb
$ dpkg -e ../red5.deb (DEBIAN dizinini acar, kontrol betiklerinin bulundugu)
$ dpkg -x ../red5.deb . (paket icerigini acar, tar xzvf misali)
flex3sdk-nonfree icin yaptiklarim:
$ mkdir debian; cd debian
$ mkdir -p usr/lib
$ mkdir -p usr/share/doc/flex3sdk-nonfree
$ cd usr/lib
$ unzip /home/ekesken/flex_sdk_3.zip
$ cd -
$ cat | gzip --best > usr/share/doc/flex3sdk-nonfree/changelog.Debian.gz
flex3sdk-nonfree (3) unstable; urgency=low
* Initial Release.
-- Erhan Kesken <ekesken@zeitin.com> Sat, 11 Apr 2009 16:59:05 +0300
^D
$ cat > usr/share/doc/flex3sdk-nonfree/copyright
see /usr/lib/flex3sdk-nonfree/SDK license.pdf.
$ mkdir DEBIAN
$ find usr/ -type f -exec md5sum {} \; > DEBIAN/md5sums
- get installed size
$ du -s usr/
201368 usr/
$ cat > DEBIAN/control
Package: flex3sdk-nonfree
Version: 3-RC1
Section: web
Priority: optional
Architecture: all
Depends:
Installed-Size: 201368
Maintainer: Erhan KESKEN <ekesken@zeitin.com>
Description: Adobe Flex SDK
The Adobe Flex 3 Software Development Kit (SDK) includes the Flex framework
(component class library) and Flex compiler, enabling you to freely develop and
deploy Flex applications using an IDE of your choice.
^D
$ cd ..
$ fakeroot dpkg -b debian/ flex3sdk-nonfree_3-RC1_all.deb
- burada 3-RC1 demek onemli, 3 upstream versiyonu, RC1 de debian versiyonu, bkz. 5.6.12 Version@Debian Policy Manual[1].
- lintian yarattiginiz debian paketinin eksiklerini bulmaya yarayan guzel bir program.
$ sudo aptitude install lintian
$ lintian flex3sdk-nonfree_3-RC1_all.deb
- dediginizde kiyamet gibi uyari basacak ekrana, bazi uyarilari onemsememek lazim flex3sdk-nonfree icin:
$ lintian flex3sdk-nonfree_3-RC1_all.deb |grep -v executable-not-elf-or-script | grep -v executable-is-not-world-readable | grep -v image-
- hazirladigimiz paketi depomuza koymak icin;
$ scp flex3sdk-nonfree_3-RC1_all.deb alpaydin.zeitin.com:
$ ssh alpaydin.zeitin.com
$ cd /var/www/apt/debian
$ sudo reprepro -C non-free -Vb . includedeb lenny ~/flex3sdk-nonfree_3-RC1_all.deb
[1] http://www.debian.org/doc/debian-policy/ch-controlfields.html
apt-get source pkg[=version|/release]
dget http://.../...dsc
debcheckout pkg
schroot, sbuild
== pbuilder ==
bekir@hede:/tmp$ sudo mkdir /var/cache/pbuilder/result /var/cache/pbuilder/hooks
bekir@hede:/tmp$ sudo chmod a+wrx /var/cache/pbuilder/result /var/cache/pbuilder/hooks
bekir@hede:/tmp$ vi ~/.pbuilderrc
AUTO_DEBSIGN=${AUTO_DEBSIGN:-yes}
HOOKDIR=/var/cache/pbuilder/hooks
bekir@hede:/tmp$ sudo pbuilder create
sudo pbuilder update
== quilt ==
bekir@hede:/tmp$ cat ~/.quiltrc-dpkg
d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; done
if [ -d $d/debian ] && [ -z $QUILT_PATCHES ]; then
# if in Debian packaging tree with unset $QUILT_PATCHES
QUILT_PATCHES="debian/patches"
QUILT_PATCH_OPTS="--reject-format=unified"
QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto"
QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
if ! [ -d $d/debian/patches ]; then mkdir $d/debian/patches; fi
fi
15:17:35 bekir@hede:/tmp$ alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg"
mkdir debian/patches
dquilt new fix-gentoo-target.patch
dquilt add Makefile
dquilt refresh
dquilt header -e
modify:
$ dpkg-source -x gentoo_0.9.12.dsc
$ cd gentoo-0.9.12
$ dquilt import ../foo.patch
$ dquilt push
$ dquilt refresh
$ dquilt header -e
... describe patch
== debian/watch ==
uscan
-file-
# watch control file for uscan
version=3
http://sf.net/gentoo/gentoo-(.+)\.tar\.gz debian uupdate
--
== pear package ==
aptitude install dh-make-php pbuilder devscripts
pbuilder --create
pear channel-discover pear.apache.org/log4php
dh-make-pear log4php/Apache_log4php
cd php-apache-log4php*
pdebuild
debuild -us -uc