From patchwork Mon Mar 14 14:30:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Richardson X-Patchwork-Id: 597056 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3qP0Xr53Gqz9t3Y for ; Tue, 15 Mar 2016 01:30:52 +1100 (AEDT) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id AF5D810283; Mon, 14 Mar 2016 07:30:37 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id DE0041027E for ; Mon, 14 Mar 2016 07:30:35 -0700 (PDT) Received: from bar6.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id 75E56161940 for ; Mon, 14 Mar 2016 08:30:35 -0600 (MDT) X-ASG-Debug-ID: 1457965834-0b32372fb1261740001-byXFYA Received: from mx1-pf2.cudamail.com ([192.168.24.2]) by bar6.cudamail.com with ESMTP id Reuy7CllGE0joV1m (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 Mar 2016 08:30:34 -0600 (MDT) X-Barracuda-Envelope-From: lrichard@redhat.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.2 Received: from unknown (HELO mx1.redhat.com) (209.132.183.28) by mx1-pf2.cudamail.com with ESMTPS (DHE-RSA-AES256-SHA encrypted); 14 Mar 2016 14:30:34 -0000 Received-SPF: pass (mx1-pf2.cudamail.com: SPF record at _spf1.redhat.com designates 209.132.183.28 as permitted sender) X-Barracuda-Apparent-Source-IP: 209.132.183.28 X-Barracuda-RBL-IP: 209.132.183.28 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 92C6372095 for ; Mon, 14 Mar 2016 14:30:33 +0000 (UTC) Received: from localhost.localdomain.com (vpn1-5-246.ams2.redhat.com [10.36.5.246]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2EEUPSw025100 for ; Mon, 14 Mar 2016 10:30:32 -0400 X-CudaMail-Envelope-Sender: lrichard@redhat.com From: Lance Richardson To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-E2-313026700 X-CudaMail-DTE: 031416 X-CudaMail-Originating-IP: 209.132.183.28 Date: Mon, 14 Mar 2016 10:30:17 -0400 X-ASG-Orig-Subj: [##CM-E2-313026700##][PATCH 3/5] utilities: OS X compatibility Message-Id: <1457965819-9473-4-git-send-email-lrichard@redhat.com> In-Reply-To: <1457965819-9473-1-git-send-email-lrichard@redhat.com> References: <1457965819-9473-1-git-send-email-lrichard@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 14 Mar 2016 14:30:33 +0000 (UTC) X-Barracuda-Connect: UNKNOWN[192.168.24.2] X-Barracuda-Start-Time: 1457965834 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Subject: [ovs-dev] [PATCH 3/5] utilities: OS X compatibility X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" Handle OS X like other BSDs (date -r is not supported, use sha1 instead of sha1sum). Signed-off-by: Lance Richardson --- utilities/ovs-pki.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in index a96ada3..9b2b5aa 100755 --- a/utilities/ovs-pki.in +++ b/utilities/ovs-pki.in @@ -27,7 +27,7 @@ bits=2048 # OS-specific compatibility routines case $(uname -s) in -FreeBSD|NetBSD) +FreeBSD|NetBSD|Darwin) file_mod_epoch() { stat -r "$1" | awk '{print $10}'