Install pam.d's README and convert.sh as part of upgrade_etc.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 25 Jul 2005 16:04:36 +0000 (16:04 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 25 Jul 2005 16:04:36 +0000 (16:04 +0000)
Don't install or convert the configuration automatically, it might
surprise the administrator.

etc/Makefile

index 087dc30..c839854 100644 (file)
@@ -1,6 +1,6 @@
 #      from: @(#)Makefile      5.11 (Berkeley) 5/21/91
 # $FreeBSD: src/etc/Makefile,v 1.219.2.38 2003/03/04 09:49:00 ru Exp $
-# $DragonFly: src/etc/Makefile,v 1.77 2005/07/25 00:24:31 gshapiro Exp $
+# $DragonFly: src/etc/Makefile,v 1.78 2005/07/25 16:04:36 joerg Exp $
 
 .if !defined(NO_SENDMAIL)
 SUBDIR=        sendmail
@@ -108,6 +108,11 @@ upgrade_etc:       preupgrade
        cd ${.CURDIR}/rc.d; ${MAKE} install 
        cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
        cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
+.for pamconf in README convert.sh
+.if !exists(${DESTDIR}/etc/pam.d/${pamconf})
+       ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/pam.d/${pamconf} ${DESTDIR}/etc/pam.d
+.endif
+.endfor
 .if !defined(NO_SENDMAIL)
        cd ${.CURDIR}/sendmail; ${MAKE} upgrade
 .endif