summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/apparmor/files/apparmor-2.7.0-makefile.patch')
-rw-r--r--sys-apps/apparmor/files/apparmor-2.7.0-makefile.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-apps/apparmor/files/apparmor-2.7.0-makefile.patch b/sys-apps/apparmor/files/apparmor-2.7.0-makefile.patch
new file mode 100644
index 000000000..9575d00c4
--- /dev/null
+++ b/sys-apps/apparmor/files/apparmor-2.7.0-makefile.patch
@@ -0,0 +1,32 @@
+--- Makefile
++++ Makefile
+@@ -31,7 +31,7 @@
+ CONFDIR=/etc/apparmor
+ INSTALL_CONFDIR=${DESTDIR}${CONFDIR}
+ LOCALEDIR=/usr/share/locale
+-MANPAGES=apparmor.d.5 apparmor.7 apparmor_parser.8 subdomain.conf.5 apparmor.vim.5
++MANPAGES=apparmor.d.5 apparmor.7 apparmor_parser.8
+
+ YACC := /usr/bin/bison
+ YFLAGS := -d
+@@ -152,7 +152,7 @@
+ ln -s `$(CXX) -print-file-name=libstdc++.a`
+
+ apparmor_parser: $(OBJECTS) $(AAREOBJECTS)
+- $(CXX) $(EXTRA_CFLAGS) -o $@ $(OBJECTS) $(LIBS) \
++ $(CXX) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ $(OBJECTS) $(LIBS) \
+ ${LEXLIB} $(AAREOBJECTS) $(AARE_LDFLAGS)
+
+ parser_yacc.c parser_yacc.h: parser_yacc.y parser.h
+@@ -284,11 +284,7 @@
+ .PHONY: install-indep
+ install-indep:
+ install -m 755 -d $(INSTALL_CONFDIR)
+- install -m 644 subdomain.conf $(INSTALL_CONFDIR)
+ install -m 644 parser.conf $(INSTALL_CONFDIR)
+- install -m 755 -d ${DESTDIR}/var/lib/apparmor
+- install -m 755 -d $(APPARMOR_BIN_PREFIX)
+- install -m 755 rc.apparmor.functions $(APPARMOR_BIN_PREFIX)
+ $(MAKE) -C po install NAME=${NAME} DESTDIR=${DESTDIR}
+ $(MAKE) install_manpages DESTDIR=${DESTDIR}
+