1
0
mirror of https://github.com/gluster/gluster-block.git synced 2026-02-05 21:45:39 +01:00
Files
gluster-block/systemd/Makefile.am
Ji-Hyeon Gim feb517ae13 dist: supports initd for non-systemd distros
Problem
    gluster-blockd supports systemd officially but many legacy distros
    want to use initd

Resolve
    includes initd scripts for non-systemd distros

Change-Id: I8495e8d9abbef6d26ac7dc8dbbe6d07e7713f537
Signed-off-by: Ji-Hyeon Gim <potatogim@gluesys.com>
2017-09-21 19:30:27 +09:00

25 lines
833 B
Makefile

DISTCLEANFILES = Makefile.in gluster-blockd.service gluster-block-target.service \
gluster-blockd.initd
CLEANFILES = *~ gluster-blockd.service gluster-block-target.service \
gluster-blockd.initd
EXTRA_DIST = gluster-blockd.service.in gluster-block-target.service.in \
gluster-blockd.initd.in gluster-blockd.sysconfig
if USE_SYSTEMD
# systemddir is already defined through configure.ac
systemd_DATA = gluster-blockd.service gluster-block-target.service
else
# initddir is already defined through configure.ac
initd_DATA = gluster-blockd.initd
endif
install-data-local:
$(MKDIR_P) $(DESTDIR)${sysconfigdir}; \
$(INSTALL_DATA) gluster-blockd.sysconfig \
$(DESTDIR)${sysconfigdir}/gluster-blockd;
uninstall-local:
rm -f $(DESTDIR)${sysconfigdir}/gluster-blockd