Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added usage info

git-svn-id: file:///home/mbr/svn/psad_repos/psad/trunk@1883 91a0a83b-1414-0410-bf9a-c3dbc33e90b6
  • Loading branch information...
commit 6be4d7b7f77e5b1f3c0685bc419a705566db5fc3 1 parent 6980c49
@mrash authored
Showing with 43 additions and 23 deletions.
  1. +43 −23 README.RPM
View
66 README.RPM
@@ -9,43 +9,63 @@ 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>
+ # 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>
+ # 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>
+ # 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
+ # 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
+ # ./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.
Please sign in to comment.
Something went wrong with that request. Please try again.