Imported Upstream version 2.4.3
[platform/upstream/audit.git] / audisp / plugins / builtins / Makefile.am
1 # Makefile.am--
2 # Copyright 2007 Red Hat Inc., Durham, North Carolina.
3 # All Rights Reserved.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 #
19 # Authors:
20 #   Steve Grubb <sgrubb@redhat.com>
21 #
22
23 CONFIG_CLEAN_FILES = *.rej *.orig
24 CONF_FILES = af_unix.conf syslog.conf
25 EXTRA_DIST = $(CONF_FILES)
26 plugin_confdir=$(sysconfdir)/audisp/plugins.d
27
28 install-data-hook:
29         mkdir -p -m 0750 ${DESTDIR}${plugin_confdir}
30         for i in $(CONF_FILES); do \
31                 $(INSTALL_DATA) -D -m 640 ${srcdir}/"$$i" \
32                         ${DESTDIR}${plugin_confdir}; \
33         done
34
35 uninstall-hook:
36         for i in $(CONF_FILES); do \
37                 rm ${DESTDIR}${plugin_confdir}/"$$i"; \
38         done
39