mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed Makefile for RPM build
This commit is contained in:
parent
c701f01f02
commit
b97c6d6e7f
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,6 +18,7 @@ git-revision.h
|
||||
*.sdf
|
||||
*.suo
|
||||
*.user
|
||||
*.bak
|
||||
NT/elogd.opensdf
|
||||
vc110.idb
|
||||
elog*.exe
|
||||
|
||||
10
Makefile
10
Makefile
@ -19,8 +19,7 @@ endif
|
||||
ELOGDIR = $(ROOT)$(PREFIX)/elog
|
||||
DESTDIR = $(ROOT)$(PREFIX)/bin
|
||||
SDESTDIR = $(ROOT)$(PREFIX)/sbin
|
||||
#RCDIR = $(ROOT)/etc/rc.d/init.d
|
||||
RCDIR = $(ROOT)/etc/init.d
|
||||
RCDIR = $(ROOT)/etc/rc.d/init.d
|
||||
|
||||
# flag for SSL support
|
||||
USE_SSL = 1
|
||||
@ -216,14 +215,9 @@ ifeq ($(OSTYPE),darwin)
|
||||
@echo The elogd service can now be started with
|
||||
@echo " sudo launchctl load /Library/LaunchDaemons/ch.psi.elogd.plist"
|
||||
else
|
||||
@if [ ! -d $(RCDIR) ]; then \
|
||||
echo "Directory $(RCDIR) not found, no init script installed" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
|
||||
@sed "s#\@PREFIX\@#$(PREFIX)#g" elogd.init_template > elogd.init
|
||||
@if [ ! -f $(RCDIR)/elogd ]; then \
|
||||
$(INSTALL) -v -m 0755 elogd.init $(RCDIR)/elogd ; \
|
||||
$(INSTALL) -v -m 0755 -D elogd.init $(RCDIR)/elogd ; \
|
||||
fi
|
||||
endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user