pakur.sh 471 B

1234567891011121314151617
  1. cat examples/smb.conf.default | \
  2. sed 's|log file = .*$|log file = /var/log/samba/%m.log|g' > \
  3. ${PKG}/etc/samba/smb.conf
  4. # fix logrotate
  5. sed -i -e 's|log.%m|%m.log|g' ${PKG}/etc/samba/smb.conf
  6. # fix spool directory
  7. sed -i 's|/usr/spool/samba|/var/spool/samba|g' ${PKG}/etc/samba/smb.conf
  8. # PAM support
  9. install -Dm644 $SRC/samba.pam $PKG/etc/pam.d/samba
  10. # Link cups backend
  11. mkdir -p $PKG/usr/lib/cups/backend
  12. ln -s /usr/bin/smbspool ${PKG}/usr/lib/cups/backend/smb