]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Change Makefile to using also for deb packages template
authorMarcin Haba <marcin.haba@bacula.pl>
Sat, 15 Aug 2015 23:36:23 +0000 (01:36 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sun, 16 Aug 2015 11:08:23 +0000 (13:08 +0200)
gui/baculum/Makefile

index 69beecefd1b37000f4ceabfe8bbd1f6b2997ccbc..d6a9df1077bf87dc2ebda47328644b5916b880fe 100644 (file)
@@ -1,22 +1,24 @@
-# Makefile to prepare runtime files (mainly for rpm based distributions)
+# Makefile to prepare runtime files (for rpm-based and deb-based distributions)
 #
 # usage: make DESTDIR=/some/runtime_dir
 
 NAME = baculum
 VERSION = 7.2.0
-SAMPLETYPE = rpm-template
+SAMPLETYPE = $(SAMPLETYPE:-rpm-template)
+HTTPDNAME = $(HTTPDNAME:-httpd)
+HTTPDSITECONF = $(HTTPDSITECONF:-conf.d)
 SYSUSRDIR = /usr
 SYSCONFDIR = /etc
 SYSVARDIR = /var
 CONFDIR = $(SYSCONFDIR)/$(NAME)
-HTTPDCONFDIR = $(SYSCONFDIR)/httpd/conf.d
+HTTPDCONFDIR = $(SYSCONFDIR)/$(HTTPDNAME)/$(HTTPDSITECONF)
 UNITDIR = $(SYSUSRDIR)/lib/systemd/system
 LOCALEDIR = $(SYSUSRDIR)/share/locale
 WWWDIR = $(SYSUSRDIR)/share/$(NAME)/htdocs
 SELINUXDIR = $(SYSUSRDIR)/share/selinux/packages/$(NAME)
 CACHEDIR = $(SYSVARDIR)/cache/$(NAME)
 LOGDIR = $(SYSVARDIR)/log
-HTTPDLOGS = $(LOGDIR)/httpd
+HTTPDLOGS = $(LOGDIR)/$(HTTPDNAME)
 LIGHTTPDLOGS = $(LOGDIR)/lighttpd
 
 # Internal application directories