Commit Graph

541 Commits

Author SHA1 Message Date
Adrian-Ken Rueegsegger fb49f4cc65 Set VERSION to 0.6.2 2022-11-27 21:48:30 +01:00
Adrian-Ken Rueegsegger a559b874b6 Extend copyright year to 2022 2022-11-27 21:48:30 +01:00
Adrian-Ken Rueegsegger bb373b8fdb doc: Do not explicitly provide Google fonts
Simplify doc build by dropping fonts from repository. If the fonts are
not installed on the system, the browser will simply use fallback fonts
which seems like an ok tradeoff.
2022-11-27 21:48:30 +01:00
Nicolas Boulenguez 3127605bce Delegate install and gpr generation to gprinstall
The Makefile depends less on the build directory structure while the
installation is fully configurable via DESTDIR, PREFIX and
GPRINSTALLFLAGS.

The installed sources now include C sources. This seems good for
debugging, and the intent has never been to allow a rebuild.

The generated project contains lots of unneeded variables, but this
does not hurt and may arguably be useful.

Remove LIBRARY_VERSION Make variable.
2022-11-27 21:48:30 +01:00
Nicolas Boulenguez e26cb81245 Makefile: use CURDIR instead of running pwd 2022-11-27 21:48:30 +01:00
Nicolas Boulenguez 35a4ccaaf4 doc: Add DFSG compliant architecture diagram
Replace patch in Debian build system with a doc Makefile option. The
work mayn be of interest for other redistributors, and is easier to
maintain upstream.
2022-11-27 21:48:29 +01:00
Nicolas Boulenguez 7660bd3e11 doc: Replace recursive Makefile with inclusion
Always rebuild the documentation directory. The speed benefit is not
worth the added complexity.
2022-11-27 21:47:50 +01:00
Nicolas Boulenguez 59885a1268 doc: Strip installed SVG diagram with scour 2022-10-17 16:38:15 +02:00
Nicolas Boulenguez e8f21022eb doc: Embed README via path instead of copy
This solution simplifies the build process and avoids the duplication of
a paragraph.
2022-10-17 16:38:08 +02:00
Adrian-Ken Rueegsegger 7cfa5b17e2 Set VERSION to 0.6.1 2020-01-06 15:45:26 +01:00
Adrian-Ken Rueegsegger a8714cc596 Extend copyright year to 2020 2020-01-06 15:45:26 +01:00
Reto Buerki 8510824e0f doc: Simplify build
- Create DESTDIR using order-only prereq
- Move asciidoctor attributes to index file
- Stop setting TZ=UTC (asciidoctor now deals with SOURCE_DATE_EPOCH)
2020-01-06 15:45:26 +01:00
Reto Buerki bd9830bb6a doc: Get rid of fontawesome
Not required for now (no note icons etc).
2020-01-06 15:45:26 +01:00
Reto Buerki 0addf843d8 doc: Drop obsolete asciidoc.css and page.conf 2020-01-06 15:45:22 +01:00
Adrian-Ken Rueegsegger e666302265 Update release signing key information
Future releases will be signed with this key.
2019-09-26 16:42:20 +02:00
Adrian-Ken Rueegsegger 2a81214dab Set VERSION to 0.6.0 2019-09-26 16:21:57 +02:00
Adrian-Ken Rueegsegger c4075b5dbe Update Arch graph to reflect policy DB changes 2019-09-26 11:36:51 +02:00
Adrian-Ken Rueegsegger 7ca00921e1 Update documentation wrt. policy filtering
Swap policy example 1 and 2 to explain destination filtering first and
source filtering second.
2019-09-26 11:31:15 +02:00
Adrian-Ken Rueegsegger 24d3cfb920 Rework destination filtering example
Adapt to API changes and extend code to illustrate how the default
loglevel can be used.
2019-09-26 11:29:56 +02:00
Adrian-Ken Rueegsegger c65c16013f examples: Rework source filtering example
Use a local Protected_Policy_DB instance for source filtering and
extend code to illustrate how the default loglevel works.
2019-09-26 11:29:52 +02:00
Adrian-Ken Rueegsegger 9617d31f6a Remove default value from Accept_ID
Mandate that users must specify an identifier when querying the policy
database via the Accept_ID function.
2019-09-26 11:16:47 +02:00
Adrian-Ken Rueegsegger cfa4e164a5 Move Protected_Policy_DB type to Policy_DB package
Drop instance from Policy_DB and the entire Policy_DB.Types package.
2019-09-26 11:16:45 +02:00
Adrian-Ken Rueegsegger 9e11144aa6 Use Dst_Filter package in policy tests
This paves the way to let the Policy_DB package only provide type
definitions required to implement identifier-based filtering.
2019-09-26 11:15:43 +02:00
Adrian-Ken Rueegsegger 60be0164f1 Minor: Use constant string for test facility names 2019-09-26 11:15:43 +02:00
Adrian-Ken Rueegsegger f057dc4290 Use Dst_Filter package for destination filtering 2019-09-26 11:15:43 +02:00
Adrian-Ken Rueegsegger eb4be206c0 Minor rewording of Policy_DB Lookup function comment 2019-09-26 11:15:39 +02:00
Adrian-Ken Rueegsegger a97f69fc75 Add Alog.Dst_Filter package
The package implements destination filtering by using an instance of the
protected policy database type.
2019-09-26 11:14:50 +02:00
Adrian-Ken Rueegsegger 969c23851e Short-circuit policy DB lookup with empty ID 2019-09-26 11:14:50 +02:00
Adrian-Ken Rueegsegger 5aa6601a54 Unify Protected_Policy_DB Accept functions
Since there is no difference in how source and destination accept checks
are done in the policy DB implementation, use the same function in both
cases and rename it to Accept_ID.
2019-09-26 11:14:45 +02:00
Adrian-Ken Rueegsegger 818776e6a7 Consider default loglevel in dest filtering
Make destination filtering behavior analogous to source filtering: if no
entry for the identifier is found in the database consider the default
loglevel.
2019-09-26 11:13:25 +02:00
Adrian-Ken Rueegsegger 385edaedd3 Replace Alog_Default_Level with Log_Level'First
Instead of declaring a constant with a more or less arbitrary value use
Log_Level'First instead.
2019-09-25 16:27:02 +02:00
Adrian-Ken Rueegsegger 1f06618702 Make default loglevel a Protected_Policy_DB field
Instead of at package-level, move the Current_Default_Loglevel variable
into the Protected_Policy_DB type alongside the identifier level map.
This enables multiple instances of Protected_Policy_DB to coexist
without being entangled via the package-level variable.
2019-09-24 18:07:58 +02:00
Adrian-Ken Rueegsegger be5fa36e06 Do not set default log level in Log_Request.Create
Mandate that the caller must specify what loglevel the request has.
Setting a default does not make much sense.
2019-09-17 16:54:38 +02:00
Adrian-Ken Rueegsegger 00017b0483 Streamline test data and ref filenames 2019-09-17 15:35:07 +02:00
Adrian-Ken Rueegsegger 540e9751cc Create test files in obj directory
This simplifies cleanup of test data when tests fail.
2019-09-17 14:26:16 +02:00
Adrian-Ken Rueegsegger 4e5075a1f0 Minor style fixes 2019-08-27 14:52:19 +02:00
Adrian-Ken Rueegsegger 126e1b1558 Extend copyright year to 2019 2019-05-03 14:37:01 +02:00
Reto Buerki f0790d9068 Convert website from asciidoc to asciidoctor 2019-05-03 14:37:00 +02:00
Reto Buerki 07fcae780f Drop CHANGELOG
This information can be retrieved via git.
2019-05-02 17:28:36 +02:00
Adrian-Ken Rueegsegger 8ab237cf04 Simplify FD facility Write procedure 2019-01-31 15:51:52 +01:00
Markus Vogt 22ab479bd6 Added possibility to log to stderr 2019-01-31 15:51:52 +01:00
Adrian-Ken Rueegsegger f06f3661b8 Set VERSION to 0.5.3 2018-08-13 11:11:26 +02:00
Adrian-Ken Rueegsegger 78db2e9a1e Update CHANGELOG 2018-08-13 11:11:26 +02:00
Adrian-Ken Rueegsegger 5c68e3f613 Switch to https URLs where possible 2018-08-13 11:11:26 +02:00
Adrian-Ken Rueegsegger 3fe9d196b2 doc: Update copyright year 2018-08-13 11:11:26 +02:00
Adrian-Ken Rueegsegger 23ea4eaa95 Remove -gnat05 compiler flag
GNAT Community Edition 2018 does not recognize it any longer.
2018-08-13 11:11:26 +02:00
Adrian-Ken Rueegsegger a469b38b7a Make sure installation directory exists
Changes are based on a patch by Nicolas Boulenguez.
2018-08-13 11:11:26 +02:00
Nicolas Boulenguez 7c823d6146 Allow DESTDIR in addition to PREFIX 2018-08-13 11:11:26 +02:00
Nicolas Boulenguez 04f9385318 Select dynamic library if SO version is set
This prevents any inconsistency on the command line between ALOG_VERSION
(or its default value) and LIBRARY_KIND (or its default value).

Require an explicit ALOG_VERSION in gprbuild command line.  The default
was dynamic in Makefile and static in projects, leading to some
confusion. For example, debian/rules was setting VERSION for tests.

Split build_lib_[dynamic|static] Makefile targets as done for install.

Rename the project version internal variable after the external one,
and move it from common project to the only project it affects.
2018-08-13 11:11:26 +02:00
Nicolas Boulenguez 814d0283ae Rework handling Ada and C compiler flags
Pass Ada and C flags to every gprbuild command. Each run may detect that
the library must be updated and recompile Ada or C files. Add missing C
flags when building tests.

Put Adaflags after default options to allow overriding. Only parse
environment once for these flags. Handle CPPFLAGS as well as CFLAGS.
Avoid mixing command line options with project compiler_switches, as the
precedence is not well defined. Use package renamings or extensions
instead of variables to reduce boilerplate.
2018-08-13 11:11:06 +02:00