- Install bthcid.conf.
authorHasso Tepper <hasso@dragonflybsd.org>
Tue, 12 Feb 2008 21:36:19 +0000 (21:36 +0000)
committerHasso Tepper <hasso@dragonflybsd.org>
Tue, 12 Feb 2008 21:36:19 +0000 (21:36 +0000)
- Don't overwrite bthcid.conf and hosts.
- Use permissions which make sense.

etc/bluetooth/Makefile

index 16c9ac5..d07efd5 100644 (file)
@@ -1,7 +1,16 @@
-# $DragonFly: src/etc/bluetooth/Makefile,v 1.1 2008/01/03 13:35:20 hasso Exp $
+# $DragonFly: src/etc/bluetooth/Makefile,v 1.2 2008/02/12 21:36:19 hasso Exp $
 
-FILESDIR=      /etc/bluetooth
-FILES=         hosts protocols
-FILESMODE=     644
+FILESDIR=              /etc/bluetooth
+FILES=                 protocols
+
+.if !exists(${DESTDIR}/etc/bluetooth/hosts)
+FILES+=                        hosts
+FILESMODE_hosts=       644
+.endif
+
+.if !exists(${DESTDIR}/etc/bluetooth/bthcid.conf)
+FILES+=                        bthcid.conf
+FILESMODE_bthcid.conf= 600
+.endif
 
 .include <bsd.prog.mk>