root/tags/0.9.9r7/Makefile.config

Revision 2, 2.2 kB (checked in by jimmyo, 7 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:keywords set to Author Date Id Revision
Line 
1 # This file specifies where LRRD will look for things after you've
2 # run 'make' in the source directory.  Modify it to suit your needs.
3
4 # DESTDIR is empty during building, and optionally set to point to
5 # a shadow tree during make install.
6
7 #
8 # the base of the LRRD installation.
9 #
10 PREFIX     = $(DESTDIR)/opt/lrrd
11
12 # Where LRRD keeps its configurations (server.conf, client.conf, ++)
13 CONFDIR    = $(DESTDIR)/etc/opt/lrrd
14
15 # Server only - where to put lrrd-cron
16 BINDIR     = $(PREFIX)/bin
17
18 # Client only - where to put lrrd-client, lrrd-client-configure, and lrrd-run
19 SBINDIR    = $(PREFIX)/sbin
20
21 # Where to put text and html documentation
22 DOCDIR     = $(PREFIX)/doc
23
24 # Where to put man pages
25 MANDIR     = $(PREFIX)/man
26
27 # Where to put internal binaries and plugin repository
28 LIBDIR     = $(PREFIX)/lib
29
30 # Server only - Output directory
31 HTMLDIR    = $(PREFIX)/var/www
32
33 # Client only - Where to put RRD files and other intenal data
34 DBDIR      = $(DESTDIR)/var/opt/lrrd
35
36 # Client only - Where plugins should put their states. Must be writable by
37 # group "lrrd", and should be preserved between reboots
38 PLUGSTATE  = $(DBDIR)/plugin-state
39
40 # Where LRRD should place its logs.
41 LOGDIR     = $(DESTDIR)/var/log/lrrd
42
43 # Location of PID files and other statefiles. On the server, must be
44 # writable by the user "lrrd".
45 STATEDIR   = $(DESTDIR)/var/run/lrrd
46
47 # The perl interpreter to use
48 PERL       = $(shell which perl)
49
50 # Server only - Where to install the perl libraries
51 PERLLIB    = $(DESTDIR)$(shell $(PERL) -V:sitelib | cut -d= -f2 | sed "s/[\';]//g")
52
53 # Client only - Install plugins for this architecture
54 ARCH       = $(shell uname | tr 'A-Z' 'a-z')
55
56 # How to figure out the hostname. (Only used in default configuration
57 # files)
58 HOSTNAME   = $(shell hostname)
59
60 # LRRD version number.
61 VERSION    = $(shell cat RELEASE)
62
63 # User to run lrrd-server as
64 USER       = lrrd
65 GROUP      = lrrd
66 CHECKUSER  = $(shell getent passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2"))
67 CHECKGROUP = $(shell getent group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2"))
68
69 CHOWN      = chown
70 CHMOD      = chmod
71 CHGRP      = chgrp
Note: See TracBrowser for help on using the browser.