2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/argv.h: rpmio/argv.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/argv.h include/rpm/argv.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/argv.h
|
|
|
|
CLEANFILES += include/rpm/argv.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmio.h: rpmio/rpmio.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmio.h include/rpm/rpmio.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmio.h
|
|
|
|
CLEANFILES += include/rpm/rpmio.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmurl.h: rpmio/rpmurl.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmurl.h include/rpm/rpmurl.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmurl.h
|
|
|
|
CLEANFILES += include/rpm/rpmurl.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmmacro.h: rpmio/rpmmacro.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmmacro.h include/rpm/rpmmacro.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmmacro.h
|
|
|
|
CLEANFILES += include/rpm/rpmmacro.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmlog.h: rpmio/rpmlog.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmlog.h include/rpm/rpmlog.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmlog.h
|
|
|
|
CLEANFILES += include/rpm/rpmlog.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmpgp.h: rpmio/rpmpgp.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmpgp.h include/rpm/rpmpgp.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmpgp.h
|
|
|
|
CLEANFILES += include/rpm/rpmpgp.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmsq.h: rpmio/rpmsq.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmsq.h include/rpm/rpmsq.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmsq.h
|
|
|
|
CLEANFILES += include/rpm/rpmsq.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmstring.h: rpmio/rpmstring.h include/rpm/$(dirstamp)
|
2007-11-23 14:11:42 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmstring.h include/rpm/rpmstring.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmstring.h
|
|
|
|
CLEANFILES += include/rpm/rpmstring.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmsw.h: rpmio/rpmsw.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmsw.h include/rpm/rpmsw.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmsw.h
|
|
|
|
CLEANFILES += include/rpm/rpmsw.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmfileutil.h: rpmio/rpmfileutil.h include/rpm/$(dirstamp)
|
2007-11-23 15:06:45 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmfileutil.h include/rpm/rpmfileutil.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmfileutil.h
|
|
|
|
CLEANFILES += include/rpm/rpmfileutil.h
|
2008-02-25 17:02:07 +08:00
|
|
|
include/rpm/rpmutil.h: rpmio/rpmutil.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmutil.h include/rpm/rpmutil.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmutil.h
|
|
|
|
CLEANFILES += include/rpm/rpmutil.h
|
2008-07-02 19:23:30 +08:00
|
|
|
include/rpm/rpmkeyring.h: rpmio/rpmkeyring.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/rpmio/rpmkeyring.h include/rpm/rpmkeyring.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmkeyring.h
|
|
|
|
CLEANFILES += include/rpm/rpmkeyring.h
|
2008-05-12 17:28:12 +08:00
|
|
|
include/rpm/header.h: lib/header.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/header.h include/rpm/header.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/header.h
|
|
|
|
CLEANFILES += include/rpm/header.h
|
2008-05-12 17:28:12 +08:00
|
|
|
include/rpm/rpmdb.h: lib/rpmdb.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmdb.h include/rpm/rpmdb.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmdb.h
|
|
|
|
CLEANFILES += include/rpm/rpmdb.h
|
2007-12-01 16:08:13 +08:00
|
|
|
include/rpm/rpmcallback.h: lib/rpmcallback.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmcallback.h include/rpm/rpmcallback.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmcallback.h
|
|
|
|
CLEANFILES += include/rpm/rpmcallback.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmcli.h: lib/rpmcli.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmcli.h include/rpm/rpmcli.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmcli.h
|
|
|
|
CLEANFILES += include/rpm/rpmcli.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmlib.h: lib/rpmlib.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmlib.h include/rpm/rpmlib.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmlib.h
|
|
|
|
CLEANFILES += include/rpm/rpmlib.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmds.h: lib/rpmds.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmds.h include/rpm/rpmds.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmds.h
|
|
|
|
CLEANFILES += include/rpm/rpmds.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmfi.h: lib/rpmfi.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmfi.h include/rpm/rpmfi.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmfi.h
|
|
|
|
CLEANFILES += include/rpm/rpmfi.h
|
2008-07-08 21:23:22 +08:00
|
|
|
include/rpm/rpmlegacy.h: lib/rpmlegacy.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmlegacy.h include/rpm/rpmlegacy.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmlegacy.h
|
|
|
|
CLEANFILES += include/rpm/rpmlegacy.h
|
Add new %sepolicy section to the spec file format
The %sepolicy section is used to describe SELinux policy to be included
in a package. It's syntax is similar to other sections (%files, %pre,
%post, etc.) in that you can provide a string and -n after the
declaration to specify policy should be added to a subpackage.
For example:
%sepolicy
# policy in this section will be added to the main package
%sepolicy foo
# policy in this section will be added to the '<mainpackage>-foo' subpackage
%sepolicy -n bar
# policy in this section will be added to the 'bar' subpackage
The %sepolicy section contains zero or more %semodule directives, with the
following format:
%semodule [OPTIONS] path/to/module.pp
The available options are:
-b, --base
The module is a base module
-n, --name=NAME
The name of the module. If not given, assumes the name is the basename of
the module file with file extensions removed.
-t, --types=TYPES
One or more comma-separated strings specifying which policy types the
module can work with. To explicitly state that a module can work with any
policy type, "default" can be specified as the value. If not specified,
assumes the module can work with any policy type, and assigns the types as
"default".
Below is an example of this new format:
%sepolicy
%semodule -n foo -t mls policy/foo.pp
%semodule -n bar -t strict,targeted,mls -b policy/bar.pp
This also adds new header tags to store the new information:
RPMTAG_POLICYNAMES (string array)
RPMTAG_POLICYTYPES (string array)
RPMTAG_POLICYTYPESINDEXES (uint32 array)
RPMTAG_POLICYFLAGS (uint32 array)
The index of NAMES and FLAGS maps directly to the index of RPMTAG_POLICIES.
However, because a single policy can have multiple types, the mapping for
TYPES is not direct. For this, the index maps to TYPESINDEXES, which
contains the index of the policy that the type maps to. This is similar to
how DIRINDEXES is used to map DIRNAMES and BASENAMES. As an example, the
previous %sepolicy section would have the following header tags:
RPMTAG_POLICIES:
0: <foo.pp data, base64 encoded>
1: <bar.pp data, base64 encoded>
RPMTAG_POLICYNAMES:
0: foo
1: bar
RPMTAG_POLICYFLAGS:
0: 0
1: 1 # assumes flag 1 == BASE
RPMTAG_POILCYTYPES: RPMTAG_POLICYTYPESINDEXES:
0: mls 0: 0
1: strict 1: 1
2: targeted 2: 1
3: mls 3: 1
2010-08-31 04:32:29 +08:00
|
|
|
include/rpm/rpmpol.h: lib/rpmpol.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmpol.h include/rpm/rpmpol.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmpol.h
|
|
|
|
CLEANFILES += include/rpm/rpmpol.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmps.h: lib/rpmps.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmps.h include/rpm/rpmps.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmps.h
|
|
|
|
CLEANFILES += include/rpm/rpmps.h
|
2010-03-25 22:46:39 +08:00
|
|
|
include/rpm/rpmprob.h: lib/rpmprob.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmprob.h include/rpm/rpmprob.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmprob.h
|
|
|
|
CLEANFILES += include/rpm/rpmprob.h
|
2007-12-03 16:47:25 +08:00
|
|
|
include/rpm/rpmtag.h: lib/rpmtag.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmtag.h include/rpm/rpmtag.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmtag.h
|
|
|
|
CLEANFILES += include/rpm/rpmtag.h
|
2008-05-13 16:02:45 +08:00
|
|
|
include/rpm/rpmtd.h: lib/rpmtd.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmtd.h include/rpm/rpmtd.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmtd.h
|
|
|
|
CLEANFILES += include/rpm/rpmtd.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmte.h: lib/rpmte.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmte.h include/rpm/rpmte.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmte.h
|
|
|
|
CLEANFILES += include/rpm/rpmte.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmts.h: lib/rpmts.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmts.h include/rpm/rpmts.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmts.h
|
|
|
|
CLEANFILES += include/rpm/rpmts.h
|
2008-01-30 16:13:09 +08:00
|
|
|
include/rpm/rpmtypes.h: lib/rpmtypes.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmtypes.h include/rpm/rpmtypes.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmtypes.h
|
|
|
|
CLEANFILES += include/rpm/rpmtypes.h
|
2008-02-05 19:49:13 +08:00
|
|
|
include/rpm/rpmvf.h: lib/rpmvf.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmvf.h include/rpm/rpmvf.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmvf.h
|
|
|
|
CLEANFILES += include/rpm/rpmvf.h
|
2010-08-31 04:32:27 +08:00
|
|
|
include/rpm/rpmplugins.h: lib/rpmplugins.h include/rpm/$(dirstamp)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/lib/rpmplugins.h include/rpm/rpmplugins.h
|
|
|
|
BUILT_SOURCES += include/rpm/rpmplugins.h
|
|
|
|
CLEANFILES += include/rpm/rpmplugins.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmbuild.h: build/rpmbuild.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/build/rpmbuild.h include/rpm/rpmbuild.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmbuild.h
|
|
|
|
CLEANFILES += include/rpm/rpmbuild.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmfc.h: build/rpmfc.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/build/rpmfc.h include/rpm/rpmfc.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmfc.h
|
|
|
|
CLEANFILES += include/rpm/rpmfc.h
|
2007-11-26 22:18:02 +08:00
|
|
|
include/rpm/rpmspec.h: build/rpmspec.h include/rpm/$(dirstamp)
|
2007-11-23 13:28:09 +08:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/build/rpmspec.h include/rpm/rpmspec.h
|
2007-11-23 00:22:22 +08:00
|
|
|
BUILT_SOURCES += include/rpm/rpmspec.h
|
|
|
|
CLEANFILES += include/rpm/rpmspec.h
|