Skip to content

Instantly share code, notes, and snippets.

@BenGardiner
Last active December 4, 2015 14:56
Show Gist options
  • Save BenGardiner/907b96111d8b1331a90e to your computer and use it in GitHub Desktop.
Save BenGardiner/907b96111d8b1331a90e to your computer and use it in GitHub Desktop.
demo of my most probably broken paxctl bbappend
DESCRIPTION = "paxctl is a tool that allows PaX flags to be modified on a \
per-binary basis. PaX is part of common security-enhancing \
kernel patches and secure distributions, such as \
GrSecurity or Adamantix and Hardened Gen-too, respectively."
HOMEPAGE = "https://pax.grsecurity.net/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://paxctl.c;beginline=1;endline=5;md5=0ddd065c61020dda79729e6bedaed2c7 \
file://paxctl-elf.c;beginline=1;endline=5;md5=99f453ce7f6d1687ee808982e2924813 \
"
SRC_URI = "http://pax.grsecurity.net/paxctl-${PV}.tar.gz"
SRC_URI[md5sum] = "9bea59b1987dc4e16c2d22d745374e64"
SRC_URI[sha256sum] = "a330ddd812688169802a3ba29e5e3b19956376b8f6f73b8d7e9586eb04423c2e"
do_install() {
oe_runmake 'DESTDIR=${D}' install
}
FILES_${PN} = "${base_sbindir}/paxctl"
FILES_${PN}-doc = "${mandir}/man1/paxctl.1"
BBCLASSEXTEND = "native nativesdk"
DEPENDS_append = " virtual/fakeroot-native "
fakeroot do_install () {
oe_runmake 'DESTDIR=${D}${base_prefix}' install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment