diff --git a/packages/network/iana-etc/build b/packages/network/iana-etc/build
deleted file mode 100755
index 06954de007..0000000000
--- a/packages/network/iana-etc/build
+++ /dev/null
@@ -1,27 +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
-
-make
-
-sed -e 's,^sunrpc,rpcbind,' -i services
diff --git a/packages/network/iana-etc/install b/packages/network/iana-etc/install
deleted file mode 100755
index d8f0ee17a5..0000000000
--- a/packages/network/iana-etc/install
+++ /dev/null
@@ -1,26 +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/etc
- cp $PKG_BUILD/protocols $INSTALL/etc
- cp $PKG_BUILD/services $INSTALL/etc
-
diff --git a/packages/network/iana-etc/meta b/packages/network/iana-etc/package.mk
similarity index 86%
rename from packages/network/iana-etc/meta
rename to packages/network/iana-etc/package.mk
index 76b4f2b875..7269645307 100644
--- a/packages/network/iana-etc/meta
+++ b/packages/network/iana-etc/package.mk
@@ -23,12 +23,22 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.linuxfromscratch.org/lfs/view/development/chapter06/iana-etc.html"
PKG_URL="http://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/conglomeration/iana-etc/$PKG_NAME-$PKG_VERSION.tar.bz2"
-PKG_DEPENDS=""
-PKG_BUILD_DEPENDS="toolchain"
+PKG_DEPENDS_TARGET=""
+PKG_BUILD_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="network"
PKG_SHORTDESC="iana-etc: The Iana-Etc package provides data for network services and protocols."
PKG_LONGDESC="The Iana-Etc package provides data for network services and protocols."
-PKG_IS_ADDON="no"
+PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
+
+post_make_target() {
+ sed -e 's,^sunrpc,rpcbind,' -i services
+}
+
+makeinstall_target() {
+ mkdir -p $INSTALL/etc
+ cp protocols $INSTALL/etc
+ cp services $INSTALL/etc
+}