Subversion Repositories

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

Rev 1 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 magnus 1
Basic instructions for setting up a system-wide debpool archive with a
2
debpool user/group:
3
 
4
1. Create a debpool user and group by using the command:
5
 
6
   adduser --system --group --shell /bin/bash
7
   --gecos 'Debian Pool Manager' debpool
8
 
9
   (Note that the command should be entered on one line; it is broken into
10
   two parts for the ease of reading).
11
 
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
14
   it's user/group appropriately. For example:
15
 
16
   sudo mkdir /export/debpool
17
   sudo chown debpool:debpool /export/debpool
18
   sudo chmod a+rx /export/debpool
19
 
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
22
   doing this is to use dpkg-statoverride, as follows:
23
 
24
   dpkg-statoverride --update --add debpool debpool 0755 /var/cache/debpool
25
 
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
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.
30
 
31
   For example:
32
 
33
   sudo mkdir /var/log/debpool
34
   sudo chown debpool:debpool /var/log/debpool
35
   sudo chmod a+rx /var/log/debpool
36
 
37
4. Edit /etc/debpool/Config.pm. The following items are of particular note:
38
 
39
   * archive-dir (the archive directory chosen in step 2)
40
     - You may wish to double-check the *_mode settings as well
41
   * log_file (should reside in the directory chosen in step 3)
42
 
43
   Run debpool once, to check that all of your configuration values are
44
   correct, and to create the directory structure. For example:
45
 
46
   sudo su - debpool /usr/bin/debpool
47
 
48
5. Edit the crontab for user debpool, using the command:
49
 
50
   sudo crontab -u debpool -e
51
 
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:
54
 
55
   (Periodic mode; example fires off hourly, at 13 minutes past the hour)
56
 
57
   @reboot         /usr/bin/debpool --nodaemon
58
   13 *   * * *    /usr/bin/debpool --nodaemon
59
 
60
   (Daemon mode; fire off only on restart. Note that this should all be one
61
   line, without the \, prefferably)
62
 
63
   @reboot         /usr/bin/debpool --daemon
64
 
65
   Note that the command line options given here will override any other
66
   configurations, including those found in /etc/debpool/Config.pm,
67
   ~/.debpool/Config.pm, and the default configurations.