Browse Source

Renaming, step 2 - Configuration.

/etc/pusb/pusb.conf -> /etc/pamusb.conf
Andrea Luzzardi 17 years ago
parent
commit
ad60a1cd5d
5 changed files with 7 additions and 7 deletions
  1. +4
    -4
      Makefile
  2. +0
    -0
      doc/pamusb.conf
  3. +1
    -1
      src/conf.h
  4. +1
    -1
      tools/pamusb-agent
  5. +1
    -1
      tools/pamusb-conf

+ 4
- 4
Makefile View File

@ -22,7 +22,7 @@ OBJS := $(SRCS:.c=.o)
# pam_usb
PAM_USB_SRCS := src/pam.c
PAM_USB_OBJS := $(PAM_USB_SRCS:.c=.o)
PAM_USB := pam_usb.so
PAM_USB := pam_usb.so
PAM_USB_LDFLAGS := -shared
PAM_USB_DEST := $(DESTDIR)/lib/security
@ -38,8 +38,8 @@ TOOLS_DEST := $(DESTDIR)/usr/bin
TOOLS_SRC := tools
# Conf
CONFS := doc/pusb.conf-dist
CONFS_DEST := $(DESTDIR)/etc/pusb
CONFS := doc/pamusb.conf
CONFS_DEST := $(DESTDIR)/etc
# Doc
DOCS := doc/INSTALLATION doc/CONFIGURATION doc/UPGRADING doc/FAQ
@ -73,7 +73,7 @@ clean :
$(RM) -f $(PAM_USB) $(PAMUSB_CHECK) $(OBJS) $(PAMUSB_CHECK_OBJS) $(PAM_USB_OBJS)
install : all
$(MKDIR) -p $(CONFS_DEST) $(DOCS_DEST)
$(MKDIR) -p $(CONFS_DEST) $(DOCS_DEST) $(MANS_DEST) $(TOOLS_DEST) $(PAM_USB_DEST)
$(INSTALL) -m755 $(PAM_USB) $(PAM_USB_DEST)
$(INSTALL) -m755 $(PAMUSB_CHECK) $(TOOLS_SRC)/$(PAMUSB_CONF) $(TOOLS_SRC)/$(PAMUSB_AGENT) $(TOOLS_DEST)
$(INSTALL) -m644 $(CONFS) $(CONFS_DEST)


doc/pusb.conf-dist → doc/pamusb.conf View File


+ 1
- 1
src/conf.h View File

@ -17,7 +17,7 @@
#ifndef PUSB_CONF_H_
# define PUSB_CONF_H_
# define PUSB_CONF_FILE "/etc/pusb/pusb.conf"
# define PUSB_CONF_FILE "/etc/pamusb.conf"
# define CONF_DEVICE_XPATH "//configuration/devices/device[@id='%s']/%s"
# define CONF_USER_XPATH "//configuration/users/user[@id='%s']/%s"
# define CONF_SERVICE_XPATH "//configuration/services/service[@id='%s']/%s"


+ 1
- 1
tools/pamusb-agent View File

@ -114,7 +114,7 @@ try:
except getopt.GetoptError:
usage()
options = {'configFile' : '/etc/pusb/pusb.conf',
options = {'configFile' : '/etc/pamusb.conf',
'daemon' : False,
'path' : '/usr/bin/pamusb-check'}


+ 1
- 1
tools/pamusb-conf View File

@ -172,7 +172,7 @@ if len(args) != 0:
usage()
options = { 'force' : False, 'deviceName' : None,
'configFile' : '/etc/pusb/pusb.conf' }
'configFile' : '/etc/pamusb.conf' }
for o, a in opts:
if o in ("-h", "--help"):


Loading…
Cancel
Save