Rev 1 | Blame | Compare with Previous | Last modification | View Log | RSS feed
Basic instructions for setting up a system-wide debpool archive with adebpool user/group:1. Create a debpool user and group by using the command:adduser --system --group --shell /bin/bash--gecos 'Debian Pool Manager' debpool(Note that the command should be entered on one line; it is broken intotwo parts for the ease of reading).2. If you do not wish to use /var/cache/debpool (the default location), youmust create a directory where you want the archive to be placed, and setit's user/group appropriately. For example:sudo mkdir /export/debpoolsudo chown debpool:debpool /export/debpoolsudo chmod a+rx /export/debpoolIf you do wish to use /var/cache/debpool, it will need to be madeaccessible to the debpool user and group. The only supported method ofdoing this is to use dpkg-statoverride, as follows:dpkg-statoverride --update --add debpool debpool 0755 /var/cache/debpool3. Create a logfile directory for debpool. The two most common choices are/var/log/debpool (which mimics normal "system" log behavior), or/home/debpool/.debpool (which mimics user-installation log behavioron a default Debian system setup). Note this location for use in step 4.For example:sudo mkdir /var/log/debpoolsudo chown debpool:debpool /var/log/debpoolsudo chmod a+rx /var/log/debpool4. Edit /etc/debpool/Config.pm. The following items are of particular note:* archive-dir (the archive directory chosen in step 2)- You may wish to double-check the *_mode settings as well* log_file (should reside in the directory chosen in step 3)Run debpool once, to check that all of your configuration values arecorrect, and to create the directory structure. For example:sudo su - debpool /usr/bin/debpool5. Edit the crontab for user debpool, using the command:sudo crontab -u debpool -eYou should add one of the following two sets of crontab entries to thefile, depending on how you want to run debpool:(Periodic mode; example fires off hourly, at 13 minutes past the hour)@reboot /usr/bin/debpool --nodaemon13 * * * * /usr/bin/debpool --nodaemon(Daemon mode; fire off only on restart. Note that this should all be oneline, without the \, prefferably)@reboot /usr/bin/debpool --daemonNote that the command line options given here will override any otherconfigurations, including those found in /etc/debpool/Config.pm,~/.debpool/Config.pm, and the default configurations.