Makefile 828 B

123456789101112131415161718192021222324252627282930
  1. SCRIPTS= compact_backups.sh monthly.local backup-strategy.sh \
  2. fullftpdump remove_nonfullbackups.sh
  3. INSTALL= /usr/bin/install
  4. MKDIR= /bin/mkdir
  5. install: check_uid $(SCRIPTS)
  6. $(MKDIR) -p /root/bin
  7. $(INSTALL) -C -g bin -m 750 -o root -p compact_backups.sh /root/bin/
  8. $(INSTALL) -C -g bin -m 750 -o root -p fullftpdump /root/bin/
  9. $(INSTALL) -C -g bin -m 750 -o root -p backup-strategy.sh /root/bin/
  10. $(INSTALL) -C -g bin -m 750 -o root -p remove_nonfullbackups.sh /root/bin/
  11. $(INSTALL) -C -g wheel -m 644 -o root -p monthly.local /etc/
  12. @test -e /root/.dumppartitions \
  13. || echo "No .dumppartitions file installed in /root/!"
  14. check_uid:
  15. @if [ `id -u` -eq 0 ]; then \
  16. true; \
  17. else \
  18. echo "Need uid 0 for install!"; \
  19. false; \
  20. fi
  21. ask_for_server:
  22. @echo -n "Server: "
  23. @read SERVER
  24. @echo "machine ${SERVER}"