2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00

Update the top-level README for the utils rewrite

Modify the build instructions and project requirements to reflect the
utils rewrite from Perl to Python.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
Tyler Hicks 2014-11-18 10:27:56 -06:00
parent c308e6b24e
commit c7f5f55160

20
README
View File

@ -62,14 +62,13 @@ the following order.
libapparmor: libapparmor:
$ cd ./libraries/libapparmor $ cd ./libraries/libapparmor
$ sh ./autogen.sh $ sh ./autogen.sh
$ sh ./configure --prefix=/usr --with-perl # see below $ sh ./configure --prefix=/usr --with-perl --with-python # see below
$ make $ make
$ make check $ make check
$ make install $ make install
[optional arguments to libapparmor's configure include --with-python [an additional optional argument to libapparmor's configure is --with-ruby, to
and --with-ruby, to generate python and ruby bindings to libapparmor, generate Ruby bindings to libapparmor.]
respectively.]
Utilities: Utilities:
@ -148,10 +147,7 @@ $ make check
Utils Utils
----- -----
There are some simple tests available, including basic perl syntax Tests for the Python utilities exist in the test/ subdirectory.
checks for the perl modules and executables. There are also minimal
checks on the python utilities and python-based tests in the test/
subdirectory.
$ cd utils $ cd utils
$ make check $ make check
@ -207,13 +203,9 @@ The AppArmor userspace utilities are written with some assumptions about
installed and available versions of other tools. This is a (possibly installed and available versions of other tools. This is a (possibly
incomplete) list of known version dependencies: incomplete) list of known version dependencies:
AppArmor.pm (used by aa-audit, aa-autodep, aa-complain, aa-disable, The Python utilities require a minimum of Python 2.7 or Python 3.3.
aa-enforce, aa-genprof, aa-logprof, aa-unconfined) requires minimum
Perl 5.10.1.
Python scripts require a minimum of Python 2.7. Some utilities as well Some utilities (aa-exec, aa-notify and aa-decode) require Perl 5.10.1 or newer.
as some of the parser test scripts may require Python 3.3. Python 3.0,
3.1, and 3.2 are largely untested.
Most shell scripts are written for POSIX-compatible sh. aa-decode expects Most shell scripts are written for POSIX-compatible sh. aa-decode expects
bash, probably version 3.2 and higher. bash, probably version 3.2 and higher.