Newer
Older
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
Summary: PETRA III Debian Package Tools
Home-page: https://stash.desy.de/projects/JMK/repos/pidptools/browse/
Author: Jan Kotanski
Author-email: jankotan@gmail.com
License: GNU GENERAL PUBLIC LICENSE v3
Description: =========================================
Welcome to Petra III Debian Package Tools
=========================================
Authors: Jan Kotanski
The package contains pidp* scripts to create debian packages
with use of git-buildpackage and the PIDP stash repository at DESY.
| Source code: https://stash.desy.de/projects/JMK/repos/pidptools/browse
| Web page: https://stash.desy.de/projects/JMK/repos/pidptools/browse
---------
Use cases
---------
Below there are pointed out the most common use cases
Update the debian package configuration
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1) Clone the repository of required project, e.g.
.. code-block:: console
$ pidpclone python-tools-extras-p09
2) Change the package configuration in the debian/ directory
by editing its files
3) Commit your changes, .e.g.
.. code-block:: console
$ git commit -a -m 'update dependences'
4) Build the new package, e.g.
.. code-block:: console
$ pidpbuild
5) test your new package
6) if tests are successful push it into stash repo, e.g.
.. code-block:: console
$ pidppush python-tools-extras-p09
Add a patch into the existing debian package
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1) Clone the repository of required project in the patch mode, e.g.
.. code-block:: console
$ pidpclone python-tools-extras-p09 --patch
2) Edit source files in the current and below directories
3) Commit your changes, .e.g.
.. code-block:: console
$ git commit -a -m 'update dependences'
4) Build the new package, e.g.
.. code-block:: console
$ pidpbuild
5) test your new package
6) if tests are successful push it into stash repo, e.g.
.. code-block:: console
$ pidppush python-tools-extras-p09
Create a package from a new tarball
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1) Clone the repository of required project in the patch mode, e.g.
.. code-block:: console
$ pidpclone python-tools-extras-p09 --patch
2) Edit source files in the current and below directories
3) Commit your changes, .e.g.
.. code-block:: console
$ git commit -a -m 'update dependences'
4) Build the new package with the tarball argument, e.g.
.. code-block:: console
$ pidpbuild ../nexdatas.extrasp09-1.2.4.tar.gz
5) if built fails due to conflicts between existing patches
and the new tarball
a) fix the conflict by editing the affected files
b) stage the changes, e.g.
$ git add nxsextrasp09/__init__.py
c) continue building process by calling:
$ pidpbuild_continue
6) test your new package
7) if tests are successful push it into stash repo, e.g.
.. code-block:: console
$ pidppush python-tools-extras-p09
Create a package from a new tarball with an additional patch
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1) Clone the repository of required project, e.g.
.. code-block:: console
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
2) Change the package configuration in the debian/ directory
by editing its files (if it is needed)
3) Commit your changes, .e.g.
.. code-block:: console
$ git commit -a -m 'update dependences'
4) Build the new package with the tarball argument, e.g.
.. code-block:: console
$ pidpbuild ../nexdatas.extrasp09-1.2.4.tar.gz
5) if built fails due to conflicts between existing patches
and the new tarball
a) fix the conflict by editing the affected files
b) stage the changes, e.g.
$ git add nxsextrasp09/__init__.py
c) continue building process by calling:
$ pidpbuild_continue
6) test your new package
7) if tests are successful push it into stash repo, e.g.
.. code-block:: console
$ pidppush python-tools-extras-p09
------------
Installation
------------
Install the dependencies:
git-buildpackage, python
From sources
^^^^^^^^^^^^
Download the latest version of NeXuS Configuration Server from
| https://stash.desy.de/projects/JMK/repos/pidptools/browse
Extract the sources and run for both packages
.. code-block:: console
$ python setup.py install
Debian packages
^^^^^^^^^^^^^^^
Debian Stretch (and Jessie, Wheezy) packages can be found in the HDRI repository.
To install the debian packages, add the PGP repository key
.. code-block:: console
$ sudo su
$ wget -q -O - http://repos.pni-hdri.de/debian_repo.pub.gpg | apt-key add -
and then download the corresponding source list
.. code-block:: console
$ cd /etc/apt/sources.list.d
$ wget http://repos.pni-hdri.de/stretch-pni-hdri.list
for stretch or
.. code-block:: console
$ cd /etc/apt/sources.list.d
$ wget http://repos.pni-hdri.de/jessie-pni-hdri.list