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 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 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Importing Packages</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Building Debian Packages with darcs-buildpackage"
HREF="dbp.html"><LINK
REL="PREVIOUS"
TITLE="Getting Started"
HREF="dbp.getstart.html"><LINK
REL="NEXT"
TITLE="Common Tasks"
HREF="dbp.regular.html"><STYLE
TYPE="text/css"
>.synopsis, .classsynopsis {
background: #eeeeee;
border: solid 1px #aaaaaa;
padding: 0.5em;
}
.programlisting {
background: #eeeeff;
border: solid 1px #aaaaff;
padding: 0.5em;
}
.variablelist {
padding: 4px;
margin-left: 3em;
}
.navigation {
background: #ffeeee;
border: solid 1px #ffaaaa;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.navigation a {
color: #770000;
}
.navigation a:visited {
color: #550000;
}
.navigation .title {
font-size: 200%;
}</STYLE
></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><TABLE
WIDTH="100%"
CLASS="navigation"
SUMMARY="Navigation header"
CELLPADDING="2"
CELLSPACING="2"
><TR
VALIGN="middle"
><TD
><A
ACCESSKEY="p"
HREF="dbp.getstart.html"
><IMG
SRC="left.png"
WIDTH="24"
HEIGHT="24"
BORDER="0"
ALT="Prev"></A
></TD
><TD
><A
ACCESSKEY="h"
HREF="dbp.html"
><IMG
SRC="home.png"
WIDTH="24"
HEIGHT="24"
BORDER="0"
ALT="Home"></A
></TD
><TH
WIDTH="100%"
align="center"
>Building Debian Packages with darcs-buildpackage</TH
><TD
><A
ACCESSKEY="n"
HREF="dbp.regular.html"
><IMG
SRC="right.png"
WIDTH="24"
HEIGHT="24"
BORDER="0"
ALT="Next"></A
></TD
></TR
></TABLE
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="DBP.IMPORT"
></A
>Importing Packages</H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="dbp.import.html#DBP.IMPORT.DEB"
>Importing Debian Source Packages</A
></DT
><DT
><A
HREF="dbp.import.html#DBP.IMPORT.ORIG"
>Importing Upstream Sources</A
></DT
></DL
></DIV
><P
> You will need to import sources into your <SPAN
CLASS="APPLICATION"
>darcs-buildpackage</SPAN
> archive on
several different occasions:
</P
><P
></P
><UL
><LI
><P
>You have existing Debian packages that you would
like to maintain with <SPAN
CLASS="APPLICATION"
>darcs-buildpackage</SPAN
>. In this case, you'll want to
import one or more full Debian source packages with
<B
CLASS="COMMAND"
>dbp-importdsc</B
>.</P
></LI
><LI
><P
>You want to package some previously-unpackaged
software for Debian. In this case, you'll want to import an
upstream tarball with <B
CLASS="COMMAND"
>dbp-importorig</B
>.
</P
></LI
><LI
><P
>You want to update your Debian package with a
new version of upstream source. This case also calls for
<B
CLASS="COMMAND"
>dbp-importorig</B
>.
</P
></LI
><LI
><P
>You want to import Debian sources from someone
else (for instance, if someone NMU's a package you maintain)
into your tree. <B
CLASS="COMMAND"
>dbp-importdsc</B
> can handle that.
</P
></LI
></UL
><P
> There are two different programs that handle importing:
<B
CLASS="COMMAND"
>dbp-importdsc</B
> and <B
CLASS="COMMAND"
>dbp-importorig</B
>. Both are covered in this
chapter.
</P
><BR
CLEAR="all"><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="DBP.IMPORT.DEB"
>Importing Debian Source Packages</A
></H1
><P
> Importing a package is very easy. All you have to do is run
<B
CLASS="COMMAND"
>dbp-importdsc</B
> with the name of a .dsc file to import:
</P
><PRE
CLASS="SCREEN"
>$ <B
CLASS="COMMAND"
>dbp-importdsc ~/dpkg/rdiff-backup_0.12.3-1.dsc</B
>
FIXME: show output
</PRE
><P
> In this example, I had never imported rdiff-backup before.
<B
CLASS="COMMAND"
>dbp-importdsc</B
> therefore initialized the repository for me.
It then added and committed the upstream version (the first
commit message), committed the Debian diffs (second commit),
and noted which version in the archive corresponds to 0.12.3
and 0.12.3-1 (third commit message). (FIXME: these are
probably old)
</P
><P
> I can run it again with a new version:
</P
><PRE
CLASS="SCREEN"
>$ <B
CLASS="COMMAND"
>dbp-importdsc ~/dpkg/rdiff-backup_0.12.5-1.dsc</B
>
FIXME: show output
</PRE
><P
> <B
CLASS="COMMAND"
>dbp-importdsc</B
> is smart enough to know not to import an
upstream version twice. For instance, if I would now load
0.12.5-2, there would be only two commits: a patch-3 on the
Debian tree and a patch-5 on the configs tree. (FIXME: these
names are for arch)
</P
><P
> <B
CLASS="COMMAND"
>dbp-importdsc</B
> has a few restrictions: you must always load
packages in ascending order of package version. Please see
<A
HREF="dbp.man.dbp.importdsc.html"
>dbp-importdsc(1)</A
> for more details.
</P
></DIV
><BR
CLEAR="all"><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="DBP.IMPORT.ORIG"
>Importing Upstream Sources</A
></H1
><P
> While <B
CLASS="COMMAND"
>dbp-importdsc</B
> can solve many problems, sometimes you
need to import just upstream sources (the Debian orig.tar.gz
file). For this task, <B
CLASS="COMMAND"
>dbp-importorig</B
> exists. You will
often use it if you have already loaded all the Debian
versions into your archive, upstream has released a new
version, and you want to package that version.
</P
><P
> Using <B
CLASS="COMMAND"
>dbp-importorig</B
> is simple and straightforward; please
refer to <A
HREF="dbp.man.dbp.importorig.html"
>dbp-importorig(1)</A
> for more
details.
</P
></DIV
></DIV
><TABLE
CLASS="navigation"
WIDTH="100%"
SUMMARY="Navigation footer"
CELLPADDING="2"
CELLSPACING="2"
><TR
VALIGN="middle"
><TD
ALIGN="left"
><A
ACCESSKEY="p"
HREF="dbp.getstart.html"
><B
><<< Getting Started</B
></A
></TD
><TD
ALIGN="right"
><A
ACCESSKEY="n"
HREF="dbp.regular.html"
><B
>Common Tasks >>></B
></A
></TD
></TR
></TABLE
></BODY
></HTML
>
|