-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
81 lines (69 loc) · 2.79 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# (c) 2011 Mandriva, http://www.mandriva.com
#
# $Id$
#
# This file is part of Mandriva Pulse2 project.
#
# This software is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this software. If not, see <http://www.gnu.org/licenses/>.
#
# Author(s):
# Jean Parpaillon <[email protected]>
#
ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS=--disable-conf-backup --disable-python-check
SUBDIRS = agent web services doc
EXTRA_DIST = m4
backupext = .$(shell date +%Y-%m-%d+%H:%M:%S)
dist-hook:
rm -rf `find $(distdir) -name .svn -or -name *.po~`
confwarning: sysconfdirwarning localstatedirwarning
sysconfdirwarning:
@if test "${sysconfdir}" != "/etc"; then \
echo '###'; \
echo '### $${sysconfdir} evaluates to '${sysconfdir}': this is probably not what you want !'; \
echo '### You may want to launch ./configure --sysconfdir=/etc.'; \
echo '###'; \
fi
localstatedirwarning:
@if test "${localstatedir}" != "/var"; then \
echo '###'; \
echo '### $${localstatedir} evaluates to '${localstatedir}': this is probably not what you want !'; \
echo '### You may want to launch ./configure --localstatedir=/var.'; \
echo '###'; \
fi
install-data-hook:
@echo '###'
@echo '### MMC LDAP schema must be added to your LDAP directory in order for'
@echo '### mmc-agent to run.'
@echo '### If using dynamic backend (from OpenLDAP 2.3), schema must be converted'
@echo '### in LDIF format.'
@echo '### You can use "mmc-add-schema" to convert and add the schema.'
@echo '### Schema file is available in: $(datadir)/doc/pulse2/contrib/base/mmc.schema'
@echo '###'
prereqs:
if [ -x /usr/bin/apt-get ]; then \
$(MAKE) prereqs-deb; \
elif [ -x /usr/sbin/urpmi ]; then \
$(MAKE) prereqs-urpmi; \
fi
prereqs-urpmi:
urpmi lsb-release python-sqlalchemy python-twisted python-mysql php-gd perl-Unix-Syslog openssh-clients \
iputils rsync mysql php-gd perl-Unix-Syslog
prereqs-deb:
apt-get update
apt-get install python-all lsb-release python-sqlalchemy python-mysqldb \
python-twisted-web perl-modules libsys-syslog-perl openssh-client iputils-ping rsync \
mysql-server php5-gd php5-xmlrpc python-ldap python-openssl libapache2-mod-php5 \
php5-xmlrpc php5-gd apache2-mpm-prefork ldap-utils slapd
.PHONY = confwarning localstatedirwarning sysconfdirwarning prereqs prereqs-deb prereqs-urpmi