Permalink
Browse files

build: fix install target

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information...
1 parent 2e10491 commit 8f460d3f74abaa597fbdfbd71d1b5831f887bce7 @fabbione committed Mar 10, 2013
Showing with 3 additions and 1 deletion.
  1. +1 −1 init/Makefile.am
  2. +2 −0 kronosnetd/Makefile.am
View
2 init/Makefile.am
@@ -29,7 +29,7 @@ initscript_SCRIPTS = kronosnetd
install-exec-local:
$(INSTALL) -d $(DESTDIR)/$(INITDEFAULTDIR)
- $(INSTALL) -m 644 kronosnetd.default $(DESTDIR)/$(INITDEFAULTDIR)/kronosnetd
+ $(INSTALL) -m 644 $(srcdir)/kronosnetd.default $(DESTDIR)/$(INITDEFAULTDIR)/kronosnetd
uninstall-local:
rm -f $(DESTDIR)/$(INITDEFAULTDIR)/kronosnetd
View
2 kronosnetd/Makefile.am
@@ -76,9 +76,11 @@ install-exec-local:
$(INSTALL) -d -m 0755 $(DESTDIR)/$(sysconfdir)/pam.d
if [ -a $(sysconfdir)/pam.d/password-auth ]; then \
cd $(DESTDIR)/$(sysconfdir)/pam.d && \
+ rm -f kronosnetd && \
$(LN_S) password-auth kronosnetd; \
else \
cd $(DESTDIR)/$(sysconfdir)/pam.d && \
+ rm -f kronosnetd && \
$(LN_S) passwd kronosnetd; \
fi

0 comments on commit 8f460d3

Please sign in to comment.