Skip to content

Commit

Permalink
Merge pull request #7 from ElevenPaths/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
jaesga committed Jan 15, 2015
2 parents d773bda + ecc5b78 commit 55ed029
Show file tree
Hide file tree
Showing 107 changed files with 3,347 additions and 5,336 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@
*.so
*.lo
*.la
.idea/*
8 changes: 8 additions & 0 deletions ChangeLog
@@ -0,0 +1,8 @@
* latch_1.1.
- Update latch-Sdk (October 2014)
- Fix error when sysconf call fails.
- Use minimum privileges policy.
- Allow local installation.

* latch_1.0.
Initial version.
28 changes: 14 additions & 14 deletions Makefile.am
Expand Up @@ -3,31 +3,31 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src pam modules/SSH/src


EXTRA_DIST = AUTHORS ChangeLog NEWS README.md
EXTRA_DIST = ChangeLog README.md


install-data-local:
$(MKDIR_P) $(DESTDIR)$(sysconfdir)
-@if [ ! -f $(DESTDIR)$(sysconfdir)/latch.conf ]; then \
cp examples/latch/latch.conf $(DESTDIR)$(sysconfdir)/latch.conf; \
echo "Created ${DESTDIR}$(sysconfdir)/latch.conf"; \
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/latch
-@if [ ! -f $(DESTDIR)$(sysconfdir)/latch/latch.conf ]; then \
cp examples/latch/latch.conf $(DESTDIR)$(sysconfdir)/latch/latch.conf; \
echo "Created ${DESTDIR}$(sysconfdir)/latch/latch.conf"; \
echo "Please edit it to add your Application Id and your Secret Key"; \
else \
echo "Found existing ${DESTDIR}$(sysconfdir)/latch.conf - updating permissions"; \
echo "Found existing ${DESTDIR}$(sysconfdir)/latch/latch.conf - updating permissions"; \
fi
-chmod 600 $(DESTDIR)$(sysconfdir)/latch.conf
-@if [ ! -f $(DESTDIR)$(sysconfdir)/latch.accounts ]; then \
cp examples/latch/latch.accounts $(DESTDIR)$(sysconfdir)/latch.accounts; \
echo "Created ${DESTDIR}$(sysconfdir)/latch.accounts"; \
-chmod 600 $(DESTDIR)$(sysconfdir)/latch/latch.conf
-@if [ ! -f $(DESTDIR)$(sysconfdir)/latch/latch.accounts ]; then \
cp examples/latch/latch.accounts $(DESTDIR)$(sysconfdir)/latch/latch.accounts; \
echo "Created ${DESTDIR}$(sysconfdir)/latch/latch.accounts"; \
else \
echo "Found existing ${DESTDIR}$(sysconfdir)/latch.accounts - updating permissions"; \
echo "Found existing ${DESTDIR}$(sysconfdir)/latch/latch.accounts - updating permissions"; \
fi
-chmod 600 $(DESTDIR)$(sysconfdir)/latch.accounts
-chmod 600 $(DESTDIR)$(sysconfdir)/latch/latch.accounts


uninstall-local:
-@if [ -d $(DESTDIR)$(sysconfdir) ]; then \
-@if [ -d $(DESTDIR)$(sysconfdir)/latch ]; then \
echo "Removing latch conf directory..."; \
rm -R $(DESTDIR)$(sysconfdir); \
rm -R $(DESTDIR)$(sysconfdir)/latch; \
fi

0 comments on commit 55ed029

Please sign in to comment.