diff --git a/packages/network/ntp/build b/packages/network/ntp/build
deleted file mode 100755
index c9563afa9b..0000000000
--- a/packages/network/ntp/build
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-cd $PKG_BUILD
-./configure --host=$TARGET_NAME \
- --build=$HOST_NAME \
- --prefix=/usr \
- --sysconfdir=/etc \
- --disable-static \
- --enable-shared \
- --disable-all-clocks \
- --enable-ipv6 \
- --without-rpath \
- --with-gnu-ld \
- --disable-linuxcaps \
- --without-crypto
-
-make -C sntp/libopts
-make -C ntpd
-make -C ntpdate
diff --git a/packages/network/ntp/install b/packages/network/ntp/install
deleted file mode 100755
index 7ce19df776..0000000000
--- a/packages/network/ntp/install
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-mkdir -p $INSTALL/usr/sbin
- cp $PKG_BUILD/ntpd/ntpd $INSTALL/usr/sbin/
- cp $PKG_BUILD/ntpdate/ntpdate $INSTALL/usr/sbin/
diff --git a/packages/network/ntp/meta b/packages/network/ntp/package.mk
similarity index 78%
rename from packages/network/ntp/meta
rename to packages/network/ntp/package.mk
index c2c1706ada..050d1b7f43 100644
--- a/packages/network/ntp/meta
+++ b/packages/network/ntp/package.mk
@@ -23,12 +23,25 @@ PKG_ARCH="any"
PKG_LICENSE="OSS"
PKG_SITE="http://www.ntp.org/"
PKG_URL="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/$PKG_NAME-$PKG_VERSION.tar.gz"
-PKG_DEPENDS=""
-PKG_BUILD_DEPENDS="toolchain"
+PKG_DEPENDS_TARGET=""
+PKG_BUILD_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="network"
PKG_SHORTDESC="ntp: Network Time Protocol utilities"
PKG_LONGDESC="The Network Time Protocol (NTP) is used to synchronize the time of a computer client or server to another server or reference time source, such as a radio or satellite receiver or modem. It provides client accuracies typically within a millisecond on LANs and up to a few tens of milliseconds on WANs relative to a primary server synchronized to Coordinated Universal Time (UTC) via a Global Positioning Service (GPS) receiver, for example."
-PKG_IS_ADDON="no"
+PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
+
+PKG_CONFIGURE_OPTS_TARGET="--disable-all-clocks \
+ --enable-ipv6 \
+ --without-rpath \
+ --with-gnu-ld \
+ --disable-linuxcaps \
+ --without-crypto"
+
+makeinstall_target() {
+ mkdir -p $INSTALL/usr/sbin
+ cp ntpd/ntpd $INSTALL/usr/sbin/
+ cp ntpdate/ntpdate $INSTALL/usr/sbin/
+}