anchor.diff:  SECTION = "console/network"
   MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org>"
   DEPENDS = "timezones"
  -PR="r7"
  +PR="r8"
   
   SRC_URI = "http://www.zip.com.au/~dtucker/openntpd/release/openntpd-${PV}.tar.gz \
   	   file://autofoo.patch;patch=1 \
  
positive.code: inherit autotools update-rc.d
  
  EXTRA_OECONF += "CFLAGS=-DUSE_ADJTIMEX --disable-strip --prefix=/usr \
  		--sysconfdir=/etc  --with-privsep-path=/var/shared/empty \
  		--with-privsep-user=ntpd"
  
  do_install_prepend() {
  
negative.code: }
  
  pkg_postrm () {
  	grep ntpd ${sysconfdir}/passwd && deluser ntpd 
  }
  
  pkg_postinst () {
  	mkdir -p ${localstatedir}/shared/empty
  	grep ntpd ${sysconfdir}/passwd || adduser --disabled-password --home=${localstatedir}/shared/empty --ingroup nogroup ntpd
  	chown root:root ${localstatedir}/shared/empty
  }
  	
  