View | Details | Raw Unified | Return to bug 58387
Collapse All | Expand All

(-)Makefile (-1 / +2 lines)
Lines 49-54 Link Here
49
	@${REINPLACE_CMD} -e 's|^|#|g' ${WRKSRC}/sample.sudoers
49
	@${REINPLACE_CMD} -e 's|^|#|g' ${WRKSRC}/sample.sudoers
50
50
51
post-install:
51
post-install:
52
	${INSTALL_DATA} ${WRKSRC}/sample.sudoers ${PREFIX}/etc/sudoers.sample
52
	@${MKDIR} ${EXAMPLESDIR}
53
	${INSTALL_DATA} ${WRKSRC}/sample.sudoers ${EXAMPLESDIR}/sudoers
53
54
54
.include <bsd.port.post.mk>
55
.include <bsd.port.post.mk>
(-)pkg-install (-1 / +1 lines)
Lines 5-10 Link Here
5
if [ -e ${PKG_PREFIX}/etc/sudoers ]; then
5
if [ -e ${PKG_PREFIX}/etc/sudoers ]; then
6
  echo "Will not overwrite existing ${PKG_PREFIX}/etc/sudoers file."
6
  echo "Will not overwrite existing ${PKG_PREFIX}/etc/sudoers file."
7
else
7
else
8
  cp -p ${PKG_PREFIX}/etc/sudoers.sample ${PKG_PREFIX}/etc/sudoers
8
  cp -p ${EXAMPLESDIR}/sudoers ${PKG_PREFIX}/etc/sudoers
9
  chmod 440 ${PKG_PREFIX}/etc/sudoers
9
  chmod 440 ${PKG_PREFIX}/etc/sudoers
10
fi
10
fi
(-)pkg-plist (-2 / +3 lines)
Lines 1-4 Link Here
1
@unexec if cmp -s %D/etc/sudoers %D/etc/sudoers.sample; then rm -f %D/etc/sudoers; fi
1
@unexec if cmp -s %D/etc/sudoers %%EXAMPLESDIR%%/sudoers; then rm -f %D/etc/sudoers; fi
2
bin/sudo
2
bin/sudo
3
etc/sudoers.sample
4
sbin/visudo
3
sbin/visudo
4
%%EXAMPLESDIR%%/sudoers
5
@dirrm %%EXAMPLESDIR%%

Return to bug 58387