X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=debian%2Frules;h=5ae576194645d6081fa76909c818f7bf70097f0d;hb=1128c90b33d04489cc3c0318c53047e2656f8185;hp=3198d15a67cb40bbb7cd4837408117648d0596d9;hpb=c528389ef1e803917f26c85002660485294788e5;p=collectd.git diff --git a/debian/rules b/debian/rules index 3198d15a..5ae57619 100755 --- a/debian/rules +++ b/debian/rules @@ -18,7 +18,7 @@ DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g -PLUGINS = cpu cpufreq disk hddtemp load memory nfs ping processes sensors serial swap traffic +PLUGINS = apache mysql sensors ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 @@ -29,8 +29,9 @@ endif config.status: configure dh_testdir # Add here commands to configure the package. - CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --localstatedir=/var - + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ + --localstatedir=/var --sysconfdir=/etc build: build-stamp @@ -72,6 +73,8 @@ install: build # Add here commands to install the package into debian/collectd. $(MAKE) DESTDIR=$(CURDIR)/debian/collectd install + mkdir -p $(CURDIR)/debian/collectd/etc + cp contrib/collectd.conf $(CURDIR)/debian/collectd/etc/ rm $(CURDIR)/debian/collectd/usr/lib/collectd/*.a || true rm $(CURDIR)/debian/collectd/usr/lib/collectd/*.la || true