forked from azuwis/debian-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
60 lines (38 loc) · 1.15 KB
/
README
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
== Initialize
First step
$ git clone https://github.com/azuwis/debian-repo.git debian
$ cd debian
$ ./dr init
Have a look at ./pbuilderrc, edit accordingly:
DEFAULT_DISTS="squeeze wheezy"
DEFAULT_ARCHS="amd64 i386"
MIRRORSITE="http://<main-debian-mirror>/debian"
OTHERMIRROR="deb http://<your-custom-debian-repo>/debian ${DIST} main contrib non-free"
Initialize chroot environment:
$ dr create
== Sudoers
username ALL = NOPASSWD: SETENV: /usr/sbin/cowbuilder
== Building
Get debian source package and unpack:
$ dr download package_name
or
$ dr download http://ftp.us.debian.org/.../package.dsc
Build single source package:
$ dr build
Build multiple source packages:
$ dr build_all path/to/source1 path/to/source2 ...
Build results can be found at ../build_*.
Update should be applied periodically using:
$ dr update
== Workflow
$ dr download package_name
$ git checkout -b branch_name
$ dr new_patch
... apply patch
$ git add . && git commit
$ dr new_patch
$ dr new_changelog
$ dr build
$ dr staging
... test the package in repo-staging
$ dr finish