Browse Source

Renaming, step 2 - Configuration.

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

+ 4
- 4
pam_usb/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)


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


+ 1
- 1
pam_usb/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
pam_usb/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
pam_usb/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