]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/audit/audit.nm
Remove legacy build system.
[people/ms/ipfire-3.x.git] / pkgs / audit / audit.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = audit
28 PKG_VER = 2.0.5
29 PKG_REL = 0
30
31 PKG_MAINTAINER =
32 PKG_GROUP = System/Daemons
33 PKG_URL = http://people.redhat.com/sgrubb/audit/
34 PKG_LICENSE = GPLv2+
35 PKG_SUMMARY = User space tools for 2.6 kernel auditing.
36
37 PKG_BUILD_DEPS+= autoconf automake libcap-ng-devel libtool openldap-devel \
38 python-devel swig
39
40 define PKG_DESCRIPTION
41 The audit package contains the user space utilities for \
42 storing and searching the audit records generate by \
43 the audit subsystem in the Linux 2.6 kernel.
44 endef
45
46 PKG_TARBALL = $(THISAPP).tar.gz
47
48 PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
49
50 CONFIGURE_OPTIONS += \
51 --sysconfdir=/etc \
52 --sbindir=/sbin \
53 --libdir=/lib \
54 --without-prelude \
55 --without-libwrap \
56 --enable-gssapi-krb5=no \
57 --with-libcap-ng=yes
58
59 define STAGE_PREPARE_CMDS
60 cd $(DIR_APP) && autoreconf -fvi
61 endef
62
63 define STAGE_INSTALL_CMDS
64 rm -vf $(BUILDROOT)/lib/libau{dit,parse}.so
65 ln -svf ../../lib/libaudit.so.1 $(BUILDROOT)/usr/lib/libaudit.so
66 ln -svf ../../lib/libauparse.so.0 $(BUILDROOT)/usr/lib/libauparse.so
67
68 -mkdir -pv $(BUILDROOT)/usr/sbin
69 mv -v $(BUILDROOT)/sbin/audisp*remote $(BUILDROOT)/usr/sbin/
70
71 rm -rfv $(BUILDROOT)/etc/{rc.d,sysconfig}
72 endef