From 8c72d612a6738e9a9cb71f4bc4f88e2cabe1b9a7 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 1 Nov 2006 20:46:31 +0000 Subject: [PATCH] make install: Install example conf file --- Makefile | 3 + doc/pusb.conf-example | 146 ++++++++++++++++++++++++++++++++++++++++++ pusb.conf | 44 ------------- 3 files changed, 149 insertions(+), 44 deletions(-) create mode 100644 doc/pusb.conf-example delete mode 100644 pusb.conf diff --git a/Makefile b/Makefile index c7feb68..f29f804 100644 --- a/Makefile +++ b/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/doc/pusb.conf-example b/doc/pusb.conf-example new file mode 100644 index 0000000..49e1321 --- /dev/null +++ b/doc/pusb.conf-example @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pusb.conf b/pusb.conf deleted file mode 100644 index 9939d1d..0000000 --- a/pusb.conf +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - SanDisk Corp. - Cruzer Titanium - SNDKB882652FC4A03701 - 3B69-1AFD - - - - - - - foobar - - - - - foobar - - - - - - - - - - - - - - -