diff options
author | Cliff Brake <cbrake@bec-systems.com> | 2009-02-20 12:05:35 -0500 |
---|---|---|
committer | Cliff Brake <cbrake@bec-systems.com> | 2009-02-20 12:05:35 -0500 |
commit | ab066eb3b73656186a445667aa4f8c46b48644b3 (patch) | |
tree | d3b964b9c48ef1a6fce2d48534d1a8367df40768 /packages/ntpclient/ntpclient_2007_365.bb | |
parent | d512927cbf42dc9a3302ecac790a18d397ea012f (diff) | |
parent | b8215aff2a8d11d99368d7794785b08a6fc0ed4c (diff) |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/ntpclient/ntpclient_2007_365.bb')
-rw-r--r-- | packages/ntpclient/ntpclient_2007_365.bb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/ntpclient/ntpclient_2007_365.bb b/packages/ntpclient/ntpclient_2007_365.bb index b892f384e7..b7988ab5bb 100644 --- a/packages/ntpclient/ntpclient_2007_365.bb +++ b/packages/ntpclient/ntpclient_2007_365.bb @@ -4,7 +4,7 @@ AUTHOR = "Larry Doolittle <larry@doolittle.boa.org>" RDEPENDS = "busybox" SECTION = "admin" LICENSE = "GPLv2" -PR = "r0" +PR = "r2" # The ntpclient package uses version numbers that include an underscore :( PV = "2007_365" # ntpclient unpacks into a directory that doesn't include version info :( @@ -27,8 +27,15 @@ do_compile() { do_install () { # Install the binary and tools install -D -m 0755 ${S}/ntpclient ${D}${base_sbindir}/ntpclient - install -D -m 0755 ${S}/adjtimex ${D}${base_sbindir}/adjtimex + install -D -m 0755 ${S}/adjtimex ${D}${base_sbindir}/adjtimex.${PN} install -D -m 0755 ${S}/rate.awk ${D}${sbindir}/ntpclient-drift-rate.awk install -D -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/ntpclient } +pkg_postinst_${PN} () { + update-alternatives --install ${base_sbindir}/adjtimex adjtimex adjtimex.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove adjtimex adjtimex.${PN} +} |