Patchwork [1/3] ntp-4.2.6 configuration files

login
register
mail settings
Submitter Peter Gsellmann
Date March 17, 2011, 10:54 a.m.
Message ID <201103171154.20231.pgsellmann@portner-elektronik.at>
Download mbox | patch
Permalink /patch/1513/
State Accepted
Headers show

Comments

Peter Gsellmann - March 17, 2011, 10:54 a.m.
Mark some files in ${sysconfdir} as configuration files so they are not blindly overwritten when upgrading

Signed-off-by: Peter Gsellmann <pgsellmann@portner-elektronik.at>
---
 recipes/ntp/ntp_4.2.6p3.bb |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

Patch

diff --git a/recipes/ntp/ntp_4.2.6p3.bb b/recipes/ntp/ntp_4.2.6p3.bb
index 1476c6f..844198f 100644
--- a/recipes/ntp/ntp_4.2.6p3.bb
+++ b/recipes/ntp/ntp_4.2.6p3.bb
@@ -1,6 +1,6 @@ 
 require ntp.inc
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${P}.tar.gz \
         file://tickadj.c.patch \
@@ -12,7 +12,9 @@  SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${P}.tar.gz \
 SRC_URI[md5sum] = "59876a9009b098ff59767ee45a88ebd2"
 SRC_URI[sha256sum] = "6e84d4ddfa14b911c3ed88463af10867e1fa9b287e7b34d8a02e78be85a7c40e"
 
-EXTRA_OECONF += " --with-net-snmp-config=no --without-ntpsnmpd" 
+EXTRA_OECONF += " --with-net-snmp-config=no --without-ntpsnmpd"
+
+CONFFILES_${PN} = "${sysconfdir}/ntp.conf"
 
 do_install_append() {
         install -d ${D}/${sysconfdir}/init.d