[oe-commits] org.oe.dev openntpd: Fix initscript and reformat .bb to match OE style guidelines

nail commit openembedded-commits at lists.openembedded.org
Thu Sep 7 12:42:18 UTC 2006


openntpd: Fix initscript and reformat .bb to match OE style guidelines

Author: nail at nslu2-linux.org
Branch: org.openembedded.dev
Revision: a1795c1849beac603bbb1cd36871f7f2970d64d9
ViewMTN: http://monotone.openembedded.org/revision.psp?id=a1795c1849beac603bbb1cd36871f7f2970d64d9
Files:
1
packages/openntpd/files/init
packages/openntpd/openntpd_3.7p1.bb
Diffs:

#
# mt diff -r44322ee7ee911452a92d8d8d99aaf14251f943c6 -ra1795c1849beac603bbb1cd36871f7f2970d64d9
#
# 
# 
# patch "packages/openntpd/files/init"
#  from [7ece6057b4b7af551b60cccf6d2f3d6c319a31ff]
#    to [58468a9840a68024b5bd1dda8d9576f3acce5126]
# 
# patch "packages/openntpd/openntpd_3.7p1.bb"
#  from [0be8bf964daa872f868a5a7d7de194920563a546]
#    to [e3fe2b7bb27c8db155c9447f42cbe64ab247013d]
# 
============================================================
--- packages/openntpd/files/init	7ece6057b4b7af551b60cccf6d2f3d6c319a31ff
+++ packages/openntpd/files/init	58468a9840a68024b5bd1dda8d9576f3acce5126
@@ -7,7 +7,7 @@ test -x "$ntpd" || exit 0
 
 ntpd=/usr/sbin/ntpd
 test -x "$ntpd" || exit 0
-[ ! -d /var/shared/empty ] && mkdir /var/shared/empty
+[ ! -d /var/shared/empty ] && mkdir -p /var/shared/empty
 
 case "$1" in
   start)
============================================================
--- packages/openntpd/openntpd_3.7p1.bb	0be8bf964daa872f868a5a7d7de194920563a546
+++ packages/openntpd/openntpd_3.7p1.bb	e3fe2b7bb27c8db155c9447f42cbe64ab247013d
@@ -6,43 +6,41 @@ DEPENDS = "timezones"
 SECTION = "console/network"
 MAINTAINER = "Oyvind Repvik <nail at nslu2-linux.org>"
 DEPENDS = "timezones"
-PR="r12"
+PR="r13"
 
 SRC_URI = "http://www.zip.com.au/~dtucker/openntpd/release/openntpd-${PV}.tar.gz \
-	   file://autofoo.patch;patch=1 \
-	   file://adjtimex-${PV}.patch;patch=1 \
-	   file://makefile-install.patch;patch=1 \
-	   file://init"
-S = "${WORKDIR}/openntpd-${PV}"
+           file://autofoo.patch;patch=1 \
+           file://adjtimex-${PV}.patch;patch=1 \
+           file://makefile-install.patch;patch=1 \
+           file://init"
 
-INITSCRIPT_NAME = "openntpd"
-INITSCRIPT_PARAMS = "defaults"
+S = "${WORKDIR}/openntpd-${PV}"
 
-
 inherit autotools update-rc.d
 
+INITSCRIPT_NAME = "openntpd"  
+INITSCRIPT_PARAMS = "defaults"
+
 EXTRA_OECONF += "CFLAGS=-DUSE_ADJTIMEX --disable-strip --prefix=/usr \
-		--sysconfdir=/etc  --with-privsep-path=/${localstatedir}/shared/empty \
-		--with-privsep-user=ntpd \
-		--with-builtin-arc4random \
-		--without-ssl-dir \
-		"
+                --sysconfdir=/etc  --with-privsep-path=/${localstatedir}/shared/empty \
+                --with-privsep-user=ntpd \
+                --with-builtin-arc4random \
+                --without-ssl-dir"
 
 do_install_prepend() {
         install -d ${D}${sysconfdir}/init.d
 }
 
 do_install_append() {
-	install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/openntpd
+        install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/openntpd
 }
 
 pkg_postrm () {
-	grep ntpd ${sysconfdir}/passwd && deluser ntpd 
+        grep ntpd ${sysconfdir}/passwd && deluser ntpd 
 }
 
 pkg_postinst () {
-	[ ! -d ${localstatedir}/shared ] && mkdir -p ${localstatedir}/shared
-	grep ntpd ${sysconfdir}/passwd || adduser --disabled-password --home=${localstatedir}/shared/empty --ingroup nogroup ntpd
-	chown root:root ${localstatedir}/shared/empty
+        [ ! -d ${localstatedir}/shared ] && mkdir -p ${localstatedir}/shared
+        grep ntpd ${sysconfdir}/passwd || adduser --disabled-password --home=${localstatedir}/shared/empty --ingroup nogroup ntpd
+        chown root:root ${localstatedir}/shared/empty
 }
-	






More information about the Openembedded-commits mailing list