Drop lufsumount(1) in the favor of compatibility with generic umount(8).
[lufs.git] / util / Makefile.am
1 INCLUDES=-I../
2 LSUID:= @LUFS_SUID@
3
4 bin_PROGRAMS=lufsmount lufsmnt auto.sshfs auto.ftpfs
5
6 lufsmount_SOURCES=lufsmount.c
7 lufsmnt_SOURCES=lufsmnt.c
8 auto_sshfs_SOURCES=auto.sshfs.c
9 auto_ftpfs_SOURCES=auto.ftpfs.c
10
11 install-exec-hook:
12         @echo postinstall configuration
13         $(mkinstalldirs) $(DESTDIR)/etc
14         rm -f $(DESTDIR)/etc/auto.sshfs
15         ln -fs $(bindir)/auto.sshfs $(DESTDIR)/etc/auto.sshfs
16         rm -f $(DESTDIR)/etc/auto.ftpfs
17         ln -fs $(bindir)/auto.ftpfs $(DESTDIR)/etc/auto.ftpfs
18         if [ "$(LSUID)" -a -z "$(DESTDIR)" ]; then chmod a+s $(DESTDIR)$(bindir)/lufsmnt; fi
19         if [ -f /etc/auto.master -a "$(AUTOFS_INSTALL)" -a ! "`cat $(DESTDIR)/etc/auto.master | grep \"auto.ftpfs\"`" ]; then mkdir -p $(DESTDIR)/mnt/net/ssh $(DESTDIR)/mnt/net/ftp; echo -e "/mnt/net/ssh\t/etc/auto.sshfs\t--timeout=60\n/mnt/net/ftp\t/etc/auto.ftpfs\t--timeout=60\n" >> $(DESTDIR)/etc/auto.master; $(DESTDIR)/etc/init.d/autofs restart; fi
20