source: main/trunk/package-kits/linux/repos/ReadMe@ 29692

Last change on this file since 29692 was 29692, checked in by Jeremy Symon, 9 years ago

Created script for managing RPM repo

File size: 2.9 KB
Line 
1================================================================================
2Web Server Setup:
3================================================================================
4Any web server that can serve files should work fine.
5No special security settings should be required, as the sync script will only
6copy the necessary package files.
7Symlinks must be enabled for the Pacman repository, because they are used to
8keep the size down (noarch packages are symlinked into both x86_64 and i686)
9
10================================================================================
11 General:
12================================================================================
13Contains scripts for generating a greenstone package repository.
14
15./repos/
16 The generated root directory for the package repository files.
17 Contains all the files, including any databases necessary to maintain the
18 repository.
19
20./conf.sh
21 Contains config variables, and functions used by multiple scripts
22
23./gpg
24 Generates a new GPG key if necessary, then copies the public GPG key to the
25 repos directory.
26 Also generates a gpg.key.id file, which allows other scripts to know the
27 GPG key-id without asking the user.
28
29================================================================================
30 Package Manager Implementations:
31================================================================================
32These scripts are used to set up the repositories for specific package-managers,
33and to maintain the repositories for those package-managers (e.g. adding new
34versions of packages)
35
36./apt
37 Generates an apt package repository under ./repos/
38 reprepro is used to manage the repository, so this script just generates the
39 reprepro config, and wraps reprepro to automate some things.
40
41./pacman
42 Generates a pacman package repository under ./repos/
43 repo-add is used to manage the repositories.
44 This script automates copying packages to their correct architecture folder,
45 signing them, and adding them to the relevant package database(s) using
46 repo-add.
47
48./rpm
49 Generates a rpm package repository under ./repos/
50 createrepo is used to manage the repositories.
51 rpmsign is used to sign the packages.
52 This script automates copying packages to their correct architecture folder,
53 signing them with rpmsign, and adding them to the relevant package
54 database(s) using createrepo --update.
55
56================================================================================
57 Deployment:
58================================================================================
59./sync
60 Uses rsync to copy the packages somewhere (e.g. to a webserver for
61 distribution)
62 Excludes files based on ./sync-exclude.list
63
64./sync-exclude.list
65 A list of paths (relative to ./repos/) to exclude when syncing
66 Used to stop internal database or config files from being viewable by users
67
Note: See TracBrowser for help on using the repository browser.