summaryrefslogtreecommitdiff
path: root/doc/guide/files/ftp-layout.xml
blob: 0be827ce685a7e61395ead2cba16a680c9fbc8bf (plain)
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
<!-- $NetBSD: ftp-layout.xml,v 1.4 2005/10/23 11:25:58 rillig Exp $ -->

<appendix id="ftp-layout">
  <title>Layout of the FTP server's package archive</title>

  <para>Layout for precompiled binary packages on ftp.NetBSD.org:</para>

<!-- BEWARE! Use no tabs here, only spaces! -->
<programlisting>
    /pub/NetBSD/packages/
        distfiles/

        # Unpacked pkgsrc trees
        pkgsrc-current -> /pub/NetBSD/NetBSD-current/pkgsrc
        pkgsrc-2003Q4 -> N/A
        pkgsrc-2004Q1/pkgsrc

        # pkgsrc archives
        pkgsrc-current.tar.gz -> ../NetBSD-current/tar_files/pkgsrc.tar.gz
        pkgsrc-2003Q4.tar.gz -> N/A
        pkgsrc-2004Q1.tar.gz -> N/A

        # Per pkgsrc-release/OS-release/arch package archives
        pkgsrc-2003Q4/
            NetBSD-1.6.2/
                i386/
                    All/
                    archivers/
                        foo -> ../All/foo
                    ...
        pkgsrc-2004Q1/
            NetBSD-1.6.2/
                i386/
                    All/
                    ...
            NetBSD-2.0/
                i386/
                    All/
                    ...
            SunOS-5.9/
                sparc/
                    All/
                    ...
                x86/
                    All/
                    ...

        # Per os-release package archive convenience links
        NetBSD-1.6.2 -> 1.6.2
        1.6.2/
            i386 -> ../pkgsrc-2004Q1/NetBSD-1.6.2/i386
            m68k/
                All/
                archivers/
                    foo -> ../All/foo
                ...
            amiga -> m68k
            atari -> m68k
            ...

        2.0 -> NetBSD-2.0       # backward compat, historic
        NetBSD-2.0/
            i386 -> ../pkgsrc-2004Q1/NetBSD-2.0/i386
        SunOS-5.9/
            sparc -> ../pkgsrc-2004Q1/SunOS-5.9/sparc
            x86 -> ../pkgsrc-2004Q1/SunOS-5.9/x86
</programlisting>

  <para>
    To create:</para>

  <orderedlist>
    <listitem>
      <para> Run bulk build, see <xref linkend="bulkbuild"/> </para>
    </listitem>

    <listitem>
      <para> Upload /usr/pkgsrc/packages to </para>

<programlisting>
    ftp://ftp.NetBSD.org/pub/NetBSD/packages/\
        pkgsrc-2004Q4/\             # pkgsrc-branch
        `uname -s`-`uname -r`/\     # OS & version
        `uname -p`                  # architecture
</programlisting>

    </listitem>

    <listitem>
      <para> If necessary, create a symlink <command>ln -s `uname -m` `uname
      -p`</command> (amiga -> m68k, ...) </para>
    </listitem>
  </orderedlist>

</appendix>