diff options
author | Armin Kuster <akuster808@gmail.com> | 2019-04-05 08:13:19 +0530 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-04-07 05:12:43 +0530 |
commit | 98750e89336a9bd746f44c79b901c7328d314a16 (patch) | |
tree | 6e2526fd7445ca7134dce1d21a37df0ed8d0a2da /recipes-mac/ccs-tools | |
parent | 63af29ba489516e5711a12a3460b547ad7aa34b2 (diff) | |
download | meta-security-98750e89336a9bd746f44c79b901c7328d314a16.tar.gz |
ccs-tools: move to reciped-mac
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-mac/ccs-tools')
-rw-r--r-- | recipes-mac/ccs-tools/README | 12 | ||||
-rw-r--r-- | recipes-mac/ccs-tools/ccs-tools_1.8.4.bb | 50 |
2 files changed, 62 insertions, 0 deletions
diff --git a/recipes-mac/ccs-tools/README b/recipes-mac/ccs-tools/README new file mode 100644 index 0000000..4a4faa7 --- /dev/null +++ b/recipes-mac/ccs-tools/README | |||
@@ -0,0 +1,12 @@ | |||
1 | Documentation: | ||
2 | http://tomoyo.sourceforge.jp/1.8/index.html.en | ||
3 | |||
4 | |||
5 | To start via command line add: | ||
6 | |||
7 | " security=tomoyo TOMOYO_trigger=/usr/lib/systemd/systemd" | ||
8 | |||
9 | To initialize: | ||
10 | /usr/lib/ccs/init_policy | ||
11 | |||
12 | DISTRO_FEATURES_append = " tomoyo" | ||
diff --git a/recipes-mac/ccs-tools/ccs-tools_1.8.4.bb b/recipes-mac/ccs-tools/ccs-tools_1.8.4.bb new file mode 100644 index 0000000..189504a --- /dev/null +++ b/recipes-mac/ccs-tools/ccs-tools_1.8.4.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | SUMMARY = "Tomoyo" | ||
2 | DESCRIPTION = "TOMOYO Linux is a Mandatory Access Control (MAC) implementation for Linux that can be used to increase the security of a system, while also being useful purely as a system analysis tool. \nTo start via command line add: \nsecurity=tomoyo TOMOYO_trigger=/usr/lib/systemd/systemd \nTo initialize: \n/usr/lib/ccs/init_policy" | ||
3 | |||
4 | SECTION = "security" | ||
5 | LICENSE = "GPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING.ccs;md5=751419260aa954499f7abaabaa882bbe" | ||
7 | |||
8 | DEPENDS = "ncurses" | ||
9 | |||
10 | DS = "20150505" | ||
11 | SRC_URI = "http://osdn.dl.sourceforge.jp/tomoyo/49693/${BPN}-${PV}-${DS}.tar.gz" | ||
12 | |||
13 | SRC_URI[md5sum] = "eeee8eb96a7680bfa9c8f6de55502c44" | ||
14 | SRC_URI[sha256sum] = "c358b80a2ea77a9dda79dc2a056dae3acaf3a72fcb8481cfb1cd1f16746324b4" | ||
15 | |||
16 | S = "${WORKDIR}/${PN}" | ||
17 | |||
18 | inherit distro_features_check | ||
19 | |||
20 | do_make(){ | ||
21 | oe_runmake USRLIBDIR=${libdir} all | ||
22 | cd ${S}/kernel_test | ||
23 | oe_runmake all | ||
24 | } | ||
25 | |||
26 | do_install(){ | ||
27 | oe_runmake INSTALLDIR=${D} USRLIBDIR=${libdir} install | ||
28 | } | ||
29 | |||
30 | PACKAGE="${PN} ${PN}-dbg ${PN}-doc" | ||
31 | |||
32 | FILES_${PN} = "\ | ||
33 | ${sbindir}/* \ | ||
34 | ${base_sbindir}/* \ | ||
35 | ${libdir}/* \ | ||
36 | " | ||
37 | |||
38 | FILES_${PN}-doc = "\ | ||
39 | ${mandir}/man8/* \ | ||
40 | " | ||
41 | |||
42 | FILES_${PN}-dbg = "\ | ||
43 | ${base_sbindir}/.debug/* \ | ||
44 | ${sbindir}/.debug/* \ | ||
45 | ${libdir}/.debug/* \ | ||
46 | ${libdir}/ccs/.debug/* \ | ||
47 | /usr/src/debug/* \ | ||
48 | " | ||
49 | |||
50 | REQUIRED_DISTRO_FEATURES ?=" tomoyo" | ||