Use the newly added INSTALL_CONF variable
authorFlorian Fainelli <florian@openwrt.org>
Fri, 5 Jan 2007 15:24:20 +0000 (15:24 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 5 Jan 2007 15:24:20 +0000 (15:24 +0000)
SVN-Revision: 5980

admin/monit/Makefile
net/asterisk/Makefile
net/ez-ipupdate/Makefile
net/knock/Makefile
net/mini_httpd/Makefile
net/nsca/Makefile
net/psybnc/Makefile
net/siproxd/Makefile
net/vpnc/Makefile
net/vtun/Makefile

index 82a25be..cfb7230 100644 (file)
@@ -66,7 +66,7 @@ endef
 
 define Package/monit/install   
        $(INSTALL_DIR) $(1)/etc
-       install -m0600 $(PKG_BUILD_DIR)/monitrc $(1)/etc/
+       $(INSTALL_CONF) $(PKG_BUILD_DIR)/monitrc $(1)/etc/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/monit.init $(1)/etc/init.d/monit
        $(INSTALL_DIR) $(1)/usr/sbin
@@ -75,7 +75,7 @@ endef
 
 define Package/monit-nossl/install
        $(INSTALL_DIR) $(1)/etc
-       install -m0600 $(PKG_BUILD_DIR)/monitrc $(1)/etc/
+       $(INSTALL_CONF) $(PKG_BUILD_DIR)/monitrc $(1)/etc/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/monit.init $(1)/etc/init.d/monit
        $(INSTALL_DIR) $(1)/usr/sbin
index 6f3de48..ea652f0 100644 (file)
@@ -455,7 +455,7 @@ endef
 
 define Package/asterisk-mysql/install
        $(INSTALL_DIR) $(1)/etc/asterisk
-       install -m0600 $(PKG_BUILD_DIR)/configs/cdr_mysql.conf.sample $(1)/etc/asterisk/cdr_mysql.conf
+       $(INSTALL_CONF) $(PKG_BUILD_DIR)/configs/cdr_mysql.conf.sample $(1)/etc/asterisk/cdr_mysql.conf
        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/apps/app_sql_mysql.so $(1)/usr/lib/asterisk/modules/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/cdr/cdr_mysql.so $(1)/usr/lib/asterisk/modules/
@@ -463,7 +463,7 @@ endef
 
 define Package/asterisk-pgsql/install
        $(INSTALL_DIR) $(1)/etc/asterisk
-       install -m0600 $(PKG_BUILD_DIR)/configs/cdr_pgsql.conf.sample $(1)/etc/asterisk/cdr_pgsql.conf
+       $(INSTALL_CONF) $(PKG_BUILD_DIR)/configs/cdr_pgsql.conf.sample $(1)/etc/asterisk/cdr_pgsql.conf
        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/apps/app_sql_postgres.so $(1)/usr/lib/asterisk/modules/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/cdr/cdr_pgsql.so $(1)/usr/lib/asterisk/modules/
index 52c3f6d..2ec7f4a 100644 (file)
@@ -43,7 +43,7 @@ define Package/ez-ipupdate/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ez-ipupdate $(1)/usr/sbin/
        $(INSTALL_DIR) $(1)/etc
-       install -m0600 ./files/ez-ipupdate.conf $(1)/etc/
+       $(INSTALL_CONF) ./files/ez-ipupdate.conf $(1)/etc/
        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
        $(INSTALL_BIN) ./files/ez-ipupdate.hotplug $(1)/etc/hotplug.d/iface/10-ez-ipupdate
 endef
index 9d275da..0433e7b 100644 (file)
@@ -81,7 +81,7 @@ endef
 
 define Package/knockd/install
        $(INSTALL_DIR) $(1)/etc
-       install -m0600 $(PKG_INSTALL_DIR)/etc/knockd.conf $(1)/etc/
+       $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/knockd.conf $(1)/etc/
        $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/knockd $(1)/usr/sbin/
 endef
index 016484b..a93425e 100644 (file)
@@ -145,7 +145,7 @@ endef
 define Package/mini-httpd-matrixssl/install
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_DATA) ./files/mini_httpd-ssl.conf $(1)/etc/mini_httpd.conf
-       install -m0600 ./files/mini_httpd.pem $(1)/etc/mini_httpd.pem
+       $(INSTALL_CONF) ./files/mini_httpd.pem $(1)/etc/mini_httpd.pem
        $(INSTALL_DIR) $(1)/etc/default
        $(INSTALL_DATA) ./files/mini_httpd.default $(1)/etc/default/mini_httpd
        $(INSTALL_DIR) $(1)/etc/init.d
@@ -157,7 +157,7 @@ endef
 define Package/mini-httpd-openssl/install
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_DATA) ./files/mini_httpd-ssl.conf $(1)/etc/mini_httpd.conf
-       install -m0600 ./files/mini_httpd.pem $(1)/etc/mini_httpd.pem
+       $(INSTALL_CONF) ./files/mini_httpd.pem $(1)/etc/mini_httpd.pem
        $(INSTALL_DIR) $(1)/etc/default
        $(INSTALL_DATA) ./files/mini_httpd.default $(1)/etc/default/mini_httpd
        $(INSTALL_DIR) $(1)/etc/init.d
index 59736ec..3fc3c47 100644 (file)
@@ -48,7 +48,7 @@ endef
 
 define Package/send-nsca/install
        $(INSTALL_DIR) $(1)/etc
-       install -m0600 $(PKG_BUILD_DIR)/sample-config/send_nsca.cfg $(1)/etc/
+       $(INSTALL_CONF) $(PKG_BUILD_DIR)/sample-config/send_nsca.cfg $(1)/etc/
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/send_nsca $(1)/usr/sbin/
 endef
index 3c35a50..d80d81e 100644 (file)
@@ -48,7 +48,7 @@ define Package/psybnc/install
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/psybnc.sh $(1)/usr/sbin/psybnc
        $(INSTALL_DIR) $(1)/usr/share/psybnc
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/psybnc $(1)/usr/share/psybnc/
-       install -m0600 $(PKG_BUILD_DIR)/psybnc.conf $(1)/usr/share/psybnc/
+       $(INSTALL_CONF) $(PKG_BUILD_DIR)/psybnc.conf $(1)/usr/share/psybnc/
        $(INSTALL_DIR) $(1)/usr/share/psybnc/lang
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/lang/english.lng $(1)/usr/share/psybnc/lang/
 endef
index d4caa12..17ed891 100644 (file)
@@ -48,7 +48,7 @@ define Package/siproxd/install
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin/
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/siproxd.conf.example $(1)/etc/siproxd.conf
-       install -m0600 $(PKG_BUILD_DIR)/doc/siproxd_passwd.cfg $(1)/etc/
+       $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/siproxd_passwd.cfg $(1)/etc/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
 endef
index 2fac7e7..7f8b30e 100644 (file)
@@ -52,7 +52,7 @@ define Package/vpnc/install
                $(PKG_INSTALL_DIR)/usr/sbin/vpnc-disconnect \
                $(1)/usr/sbin/
        install -d -m0700 $(1)/etc/vpnc
-       install -m0600 $(PKG_INSTALL_DIR)/etc/vpnc/vpnc.conf $(1)/etc/vpnc/
+       $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/vpnc/vpnc.conf $(1)/etc/vpnc/
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/vpnc/vpnc-script $(1)/etc/vpnc/
 endef
 
index bf0f4ca..e09251f 100644 (file)
@@ -49,7 +49,7 @@ endef
 
 define Package/vtun/install    
        $(INSTALL_DIR) $(1)/etc
-       install -m0600 $(PKG_BUILD_DIR)/vtund.conf $(1)/etc/
+       $(INSTALL_CONF) $(PKG_BUILD_DIR)/vtund.conf $(1)/etc/
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/vtund $(1)/usr/sbin/
 endef