From d661e0c9652aec34355b0aeb46400bca29bdd604 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Wed, 5 Feb 2014 07:32:04 +0000
Subject: [PATCH] main/arpwatch: fix install dir for arwpatch-ethercodes

ref #2593
---
 main/arpwatch/APKBUILD | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/main/arpwatch/APKBUILD b/main/arpwatch/APKBUILD
index 8b8e786af33d..f46f5ba3d574 100644
--- a/main/arpwatch/APKBUILD
+++ b/main/arpwatch/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Francesco Colista <francesco.colista@gmail.com>
 pkgname=arpwatch
 pkgver=2.1a15
-pkgrel=11
+pkgrel=12
 pkgdesc="Ethernet monitoring program"
 url="http://www-nrg.ee.lbl.gov/"
 arch="all"
@@ -83,8 +83,10 @@ ethercodes() {
 	pkgdesc="$pkgname ethernet codes"
 	mkdir -p "$subpkgdir"/usr/share/$pkgname/awk
 	install -Dm644 "$_builddir"/ethercodes.dat "$subpkgdir"/usr/share/$pkgname/ethercodes.dat
+
+	install -d "$subpkgdir"/usr/share/$pkgname/awk || return 1
 	for f in "$_builddir"/*.awk; do
-		install -Dm644 $f "$subpkgdir"/usr/share/$pkgname/awk/$f
+		install -m644 $f "$subpkgdir"/usr/share/$pkgname/awk/ || return 1
 	done
 }
 
-- 
GitLab