MFH: r562098

- Fix name of PAM policy file, so that it is actually used
- While here, install PAM policy file using @sample directive, so it
  is managed as a condfiguration file

PR:		252837
Submitted by:	genneko217@gmail.com
This commit is contained in:
Guido Falsi 2021-01-19 23:05:30 +00:00
parent c2de6071d2
commit 15603ebec4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2021Q1/; revision=562099
3 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= xfce4-screensaver
PORTVERSION= 4.16.0
PORTREVISION= 1
CATEGORIES= x11 xfce
MASTER_SITES= XFCE/apps
DIST_SUBDIR= xfce4
@ -63,6 +64,6 @@ post-install:
@${REINPLACE_CMD} 's/^\(Name[^=]*=\)\(.*\)/\1XFCE \2/' ${STAGEDIR}${PREFIX}/etc/xdg/autostart/xfce4-screensaver.desktop
post-install-PAM-on:
${INSTALL_DATA} ${FILESDIR}/xfce-screensaver.pam ${STAGEDIR}${PREFIX}/etc/pam.d/xfce-screensaver
${INSTALL_DATA} ${FILESDIR}/xfce4-screensaver.pam ${STAGEDIR}${PREFIX}/etc/pam.d/xfce4-screensaver.sample
.include <bsd.port.post.mk>

View File

@ -2,7 +2,7 @@ bin/xfce4-screensaver
bin/xfce4-screensaver-command
bin/xfce4-screensaver-configure
bin/xfce4-screensaver-preferences
%%PAM%%etc/pam.d/xfce-screensaver
%%PAM%%@sample etc/pam.d/xfce4-screensaver.sample
etc/xdg/autostart/xfce4-screensaver.desktop
etc/xdg/menus/xfce4-screensavers.menu
libexec/xfce4-screensaver-dialog