Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Administration program for the grsecurity RBAC syste" |
| 2 | DESCRIPTION = "\ |
| 3 | gradm is the userspace RBAC parsing and authentication program for \ |
| 4 | grsecurity grsecurity aims to be a complete security system. gradm \ |
| 5 | performs several tasks for the RBAC system including authenticated \ |
| 6 | via a password to the kernel and parsing rules to be passed to the \ |
| 7 | kernel" |
| 8 | HOMEPAGE = "http://grsecurity.net/index.php" |
| 9 | SECTION = "admin" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 10 | LICENSE = "GPL-2.0-only" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4641e94ec96f98fabc56ff9cc48be14b" |
| 12 | DEPENDS = "flex-native bison-native ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
| 13 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 14 | SRC_URI = "http://grsecurity.net/stable/${BP}.tar.gz \ |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 15 | file://0001-Makefile-remove-strip.patch \ |
| 16 | file://0001-Makefile-Append-instead-of-overriding-LDFLAGS.patch \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 17 | file://0001-make-Define-SBINDIR-flag.patch \ |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 18 | " |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 19 | SRC_URI[sha256sum] = "2459290f367a47c8a1ce4ea2ec08359799ea33dc15ed4436439596ce88284fb9" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 20 | |
| 21 | S = "${WORKDIR}/gradm" |
| 22 | |
| 23 | inherit autotools-brokensep |
| 24 | |
| 25 | do_compile() { |
| 26 | oe_runmake 'CC=${CC}' \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 27 | 'LIBS=' \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 28 | 'OPT_FLAGS=${CFLAGS}' \ |
| 29 | 'LLEX=${STAGING_BINDIR_NATIVE}/lex' \ |
| 30 | 'FLEX=${STAGING_BINDIR_NATIVE}/flex' \ |
| 31 | 'BISON=${STAGING_BINDIR_NATIVE}/bison' \ |
| 32 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', ' ', 'nopam', d)} |
| 33 | } |
| 34 | |
| 35 | do_install() { |
| 36 | oe_runmake 'CC=${CC}' \ |
| 37 | 'DESTDIR=${D}' \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 38 | 'SBINDIR=${base_sbindir}' \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 39 | 'LIBS=' \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 40 | 'LLEX=${STAGING_BINDIR_NATIVE}/lex' \ |
| 41 | 'FLEX=${STAGING_BINDIR_NATIVE}/flex' \ |
| 42 | 'BISON=${STAGING_BINDIR_NATIVE}/bison' \ |
| 43 | install |
| 44 | |
| 45 | # The device nodes are generated by postinstall or udev |
| 46 | rm -rf ${D}/dev |
| 47 | } |
| 48 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 49 | pkg_postinst_ontarget:${PN}() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 50 | /bin/mknod -m 0622 /dev/grsec c 1 13 |
| 51 | } |