Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 1 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 5
1
Basic instructions for setting up a system-wide debpool archive with a
1
Basic instructions for setting up a system-wide debpool archive with a
2
debpool user/group:
2
debpool user/group:
3
3
4
1. Create a debpool user and group by using the command:
4
1. Create a debpool user and group by using the command:
5
5
6
   adduser --system --group --shell /bin/bash
6
   adduser --system --group --shell /bin/bash
7
   --gecos 'Debian Pool Manager' debpool
7
   --gecos 'Debian Pool Manager' debpool
8
8
9
   (Note that the command should be entered on one line; it is broken into
9
   (Note that the command should be entered on one line; it is broken into
10
   two parts for the ease of reading).
10
   two parts for the ease of reading).
11
11
12
2. If you do not wish to use /var/cache/debpool (the default location), you
12
2. If you do not wish to use /var/cache/debpool (the default location), you
13
   must create a directory where you want the archive to be placed, and set
13
   must create a directory where you want the archive to be placed, and set
14
   it's user/group appropriately. For example:
14
   it's user/group appropriately. For example:
15
15
16
   sudo mkdir /export/debpool
16
   sudo mkdir /export/debpool
17
   sudo chown debpool:debpool /export/debpool
17
   sudo chown debpool:debpool /export/debpool
18
   sudo chmod a+rx /export/debpool
18
   sudo chmod a+rx /export/debpool
19
19
20
   If you do wish to use /var/cache/debpool, it will need to be made
20
   If you do wish to use /var/cache/debpool, it will need to be made
21
   accessible to the debpool user and group. The only supported method of
21
   accessible to the debpool user and group. The only supported method of
22
   doing this is to use dpkg-statoverride, as follows:
22
   doing this is to use dpkg-statoverride, as follows:
23
23
24
   dpkg-statoverride --update --add debpool debpool 0755 /var/cache/debpool
24
   dpkg-statoverride --update --add debpool debpool 0755 /var/cache/debpool
25
25
26
3. Create a logfile directory for debpool. The two most common choices are
26
3. Create a logfile directory for debpool. The two most common choices are
27
   /var/log/debpool (which mimics normal "system" log behavior), or
27
   /var/log/debpool (which mimics normal "system" log behavior), or
28
   /home/debpool/.debpool (which mimics user-installation log behavior
28
   /home/debpool/.debpool (which mimics user-installation log behavior
29
   on a default Debian system setup). Note this location for use in step 4.
29
   on a default Debian system setup). Note this location for use in step 4.
30
30
31
   For example:
31
   For example:
32
32
33
   sudo mkdir /var/log/debpool
33
   sudo mkdir /var/log/debpool
34
   sudo chown debpool:debpool /var/log/debpool
34
   sudo chown debpool:debpool /var/log/debpool
35
   sudo chmod a+rx /var/log/debpool
35
   sudo chmod a+rx /var/log/debpool
36
36
37
4. Edit /etc/debpool/Config.pm. The following items are of particular note:
37
4. Edit /etc/debpool/Config.pm. The following items are of particular note:
38
38
39
   * archive-dir (the archive directory chosen in step 2)
39
   * archive-dir (the archive directory chosen in step 2)
40
     - You may wish to double-check the *_mode settings as well
40
     - You may wish to double-check the *_mode settings as well
41
   * log_file (should reside in the directory chosen in step 3)
41
   * log_file (should reside in the directory chosen in step 3)
42
42
43
   Run debpool once, to check that all of your configuration values are
43
   Run debpool once, to check that all of your configuration values are
44
   correct, and to create the directory structure. For example:
44
   correct, and to create the directory structure. For example:
45
45
46
   sudo su - debpool /usr/bin/debpool
46
   sudo su - debpool /usr/bin/debpool
47
47
48
5. Edit the crontab for user debpool, using the command:
48
5. Edit the crontab for user debpool, using the command:
49
49
50
   sudo crontab -u debpool -e
50
   sudo crontab -u debpool -e
51
51
52
   You should add one of the following two sets of crontab entries to the
52
   You should add one of the following two sets of crontab entries to the
53
   file, depending on how you want to run debpool:
53
   file, depending on how you want to run debpool:
54
54
55
   (Periodic mode; example fires off hourly, at 13 minutes past the hour)
55
   (Periodic mode; example fires off hourly, at 13 minutes past the hour)
56
56
57
   @reboot         /usr/bin/debpool --nodaemon
57
   @reboot         /usr/bin/debpool --nodaemon
58
   13 *   * * *    /usr/bin/debpool --nodaemon
58
   13 *   * * *    /usr/bin/debpool --nodaemon
59
59
60
   (Daemon mode; fire off only on restart. Note that this should all be one
60
   (Daemon mode; fire off only on restart. Note that this should all be one
61
   line, without the \, prefferably)
61
   line, without the \, prefferably)
62
62
63
   @reboot         /usr/bin/debpool --daemon
63
   @reboot         /usr/bin/debpool --daemon
64
64
65
   Note that the command line options given here will override any other
65
   Note that the command line options given here will override any other
66
   configurations, including those found in /etc/debpool/Config.pm,
66
   configurations, including those found in /etc/debpool/Config.pm,
67
   ~/.debpool/Config.pm, and the default configurations.
67
   ~/.debpool/Config.pm, and the default configurations.