diff --git a/pam_usb/Makefile b/pam_usb/Makefile index c7feb68..f29f804 100644 --- a/pam_usb/Makefile +++ b/pam_usb/Makefile @@ -39,6 +39,7 @@ TOOLS_DEST := $(DESTDIR)/usr/bin # Binaries RM := rm INSTALL := install +MKDIR := mkdir ifeq (yes, ${DEBUG}) CFLAGS := ${CFLAGS} -ggdb @@ -59,10 +60,12 @@ clean : $(RM) -f $(PAM_USB) $(PUSB_CHECK) $(OBJS) $(PUSB_CHECK_OBJS) $(PAM_USB_OBJS) install : all + $(MKDIR) -p /etc/pusb $(INSTALL) -m644 $(PAM_USB) $(PAM_USB_DEST) $(INSTALL) -m755 $(PUSB_CHECK) $(TOOLS_DEST) $(INSTALL) -m755 $(PUSB_ADM) $(TOOLS_DEST) $(INSTALL) -m755 $(PUSB_HOTPLUG) $(TOOLS_DEST) + $(INSTALL) -m644 doc/pusb.conf-example /etc/pusb deinstall : $(RM) -f $(PAM_USB_DEST)/$(PAM_USB) diff --git a/pam_usb/doc/pusb.conf-example b/pam_usb/doc/pusb.conf-example new file mode 100644 index 0000000..49e1321 --- /dev/null +++ b/pam_usb/doc/pusb.conf-example @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pam_usb/pusb.conf b/pam_usb/pusb.conf deleted file mode 100644 index 9939d1d..0000000 --- a/pam_usb/pusb.conf +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - SanDisk Corp. - Cruzer Titanium - SNDKB882652FC4A03701 - 3B69-1AFD - - - - - - - foobar - - - - - foobar - - - - - - - - - - - - - - -