mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
apparmor: update to 3.1.7.
This commit is contained in:
parent
431c53322a
commit
8eb38bcf26
2 changed files with 23 additions and 3 deletions
20
srcpkgs/apparmor/patches/libapparmor-basename.patch
Normal file
20
srcpkgs/apparmor/patches/libapparmor-basename.patch
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--- a/libraries/libapparmor/testsuite/test_multi.c
|
||||||
|
+++ b/libraries/libapparmor/testsuite/test_multi.c
|
||||||
|
@@ -1,5 +1,3 @@
|
||||||
|
-#define _GNU_SOURCE /* for glibc's basename version */
|
||||||
|
-
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
@@ -7,6 +5,11 @@
|
||||||
|
|
||||||
|
#include <aalogparse.h>
|
||||||
|
|
||||||
|
+static const char *basename(const char *path)
|
||||||
|
+{
|
||||||
|
+ return strrchr(path, '/') ? strrchr(path, '/')+1 : path;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
int print_results(aa_log_record *record);
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'apparmor'
|
# Template file for 'apparmor'
|
||||||
pkgname=apparmor
|
pkgname=apparmor
|
||||||
version=3.1.6
|
version=3.1.7
|
||||||
revision=2
|
revision=1
|
||||||
build_wrksrc=libraries/libapparmor
|
build_wrksrc=libraries/libapparmor
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
conf_files="/etc/apparmor.d/local/* /etc/apparmor/*"
|
conf_files="/etc/apparmor.d/local/* /etc/apparmor/*"
|
||||||
|
@ -17,7 +17,7 @@ license="GPL-2.0-only"
|
||||||
homepage="https://gitlab.com/apparmor/apparmor"
|
homepage="https://gitlab.com/apparmor/apparmor"
|
||||||
changelog="https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_${version}"
|
changelog="https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_${version}"
|
||||||
distfiles="https://launchpad.net/apparmor/${version%.*}/${version}/+download/apparmor-${version}.tar.gz"
|
distfiles="https://launchpad.net/apparmor/${version%.*}/${version}/+download/apparmor-${version}.tar.gz"
|
||||||
checksum=d5d699fd43faffd924dd51bfb5781a5a7cbabb55c1c9cb4abfb8c2840a9e8fcd
|
checksum=c6c161d6dbd99c2f10758ff347cbc6848223c7381f311de62522f22b0a16de64
|
||||||
replaces="apparmor-vim>=0"
|
replaces="apparmor-vim>=0"
|
||||||
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue