Don't overwrite dma(8)'s config files.
authorMatthias Schmidt <matthias@dragonflybsd.org>
Tue, 12 Feb 2008 22:10:20 +0000 (22:10 +0000)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Tue, 12 Feb 2008 22:10:20 +0000 (22:10 +0000)
etc/dma/Makefile

index 06ea7db..7965caa 100644 (file)
@@ -1,9 +1,18 @@
-# $DragonFly: src/etc/dma/Makefile,v 1.2 2008/02/04 13:39:46 matthias Exp $
+# $DragonFly: src/etc/dma/Makefile,v 1.3 2008/02/12 22:10:20 matthias Exp $
 
 FILESDIR=      /etc/dma
-FILES=         auth.conf dma.conf virtusertable
 SHAREOWN=      root
 SHAREGRP=      mail
 FILESMODE=     640
 
+.if !exists(${DESTDIR}/etc/dma/auth.conf)
+FILES+=                auth.conf
+.endif
+.if !exists(${DESTDIR}/etc/dma/dma.conf)
+FILES+=                dma.conf
+.endif
+.if !exists(${DESTDIR}/etc/dma/virtusertable)
+FILES+=                virtusertable
+.endif
+
 .include <bsd.prog.mk>