File: README.RPM

package info (click to toggle)
psad 2.2-3.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,592 kB
  • sloc: perl: 12,891; ansic: 1,291; sh: 340; makefile: 76
file content (71 lines) | stat: -rw-r--r-- 2,980 bytes parent folder | download | duplicates (9)
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

Building RPM files that are compatible with all possible Linux distributions
is a difficult task.  If a given RPM file that is downloaded from
http://www.cipherdyne.org/ is not compatible with your particular Linux
distro, then you can use the "cd_rpmbuilder" ("CipherDyne RPM Builder") to
build an RPM file for you on your own system.

The command line interface to cd_rpmbuilder is simple, and one command line
argument is always required "-p <project>" so that cd_rpmbuilder knows which
CipherDyne software project you want to build:

    # cd_rpmbuilder -p <project>

Note that cd_rpmbuilder is normally as root because it builds RPM's within
the /usr/src/redhat/ directory by default.  However, if you would like to
build as a normal user within a directory of your choosing you can do:

    # cd_rpmbuilder -p <project> -r <dir>

By default, cd_rpmbuilder builds the latest version of the specified project,
but if you want to build an older version, use the -b flag:

    # cd_rpmbuilder -p <project> -b <version>

If you want to see verbose output (including all output of the system
rpmbuild command), then use the -v flag:

    # cd_rpmbuilder -p <project> -v

Finally, here is some sample output for building the psad project available
at http://www.cipherdyne.org/psad/:

    # ./cd_rpmbuilder -p psad
    [+] Getting latest version file:
          http://www.cipherdyne.org/psad/psad-latest
    [+] Downloading file:
          http://www.cipherdyne.org/psad/download/psad-2.0.1.spec
    [+] Downloading file:
          http://www.cipherdyne.org/psad/download/psad-2.0.1.spec.md5
    [+] Valid md5 sum check for psad-2.0.1.spec
    [+] Downloading file:
          http://www.cipherdyne.org/psad/download/psad-2.0.1.tar.gz
    [+] Downloading file:
          http://www.cipherdyne.org/psad/download/psad-2.0.1.tar.gz.md5
    [+] Valid md5 sum check for psad-2.0.1.tar.gz
    [+] Building RPM, this may take a little while...

    [+] The following RPMS were successfully built:

          /usr/src/redhat/SRPMS/psad-2.0.1-1.src.rpm (source RPM)
          /usr/src/redhat/RPMS/i386/psad-2.0.1-1.i386.rpm

You can view the usage information like so:

    [mbr@minastirith ~/src/psad]$  ./cd_rpmbuilder -h

    cd_rpmbuilder; the CipherDyne RPM builder
    [+] Version: 0.9
    [+] By Michael Rash (mbr@cipherdyne.org, http://www.cipherdyne.org)

    Usage: cd_rpmbuilder -p <project> [-b <version>] [-r <dir>] [-v] [-V] [-h]

    Options:
        -p, --project <name>       - This can be one of "psad", "fwknop",
                                     "gpgdir", or "fwsnort".
        -b, --build-version <ver>  - Build a specific project version.
        -r, --rpm-build-dir <dir>  - Change the RPM build directory from the
                                     default of /usr/src/redhat.
        -v, --verbose              - Run in verbose mode.
        -V, --Version              - Print version and exit.
        -h, --help                 - Display usage information.