summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/ieee-oui')
-rw-r--r--net-misc/ieee-oui/ChangeLog10
-rw-r--r--net-misc/ieee-oui/files/ieee-oui-0.sh12
-rw-r--r--net-misc/ieee-oui/ieee-oui-0.ebuild39
-rw-r--r--net-misc/ieee-oui/metadata.xml8
4 files changed, 69 insertions, 0 deletions
diff --git a/net-misc/ieee-oui/ChangeLog b/net-misc/ieee-oui/ChangeLog
new file mode 100644
index 000000000000..ad480d7c1bbc
--- /dev/null
+++ b/net-misc/ieee-oui/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/ieee-oui
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ieee-oui/ChangeLog,v 1.1 2012/09/05 20:56:58 axs Exp $
+
+*ieee-oui-0 (05 Sep 2012)
+
+ 05 Sep 2012; Ian Stakenvicius <axs@gentoo.org> +ieee-oui-0.ebuild,
+ +files/ieee-oui-0.sh, +metadata.xml:
+ initial commit
+
diff --git a/net-misc/ieee-oui/files/ieee-oui-0.sh b/net-misc/ieee-oui/files/ieee-oui-0.sh
new file mode 100644
index 000000000000..5188616eef3c
--- /dev/null
+++ b/net-misc/ieee-oui/files/ieee-oui-0.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+# Copyright 2012-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2
+# Author: Ian Stakenvicius <axs@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ieee-oui/files/ieee-oui-0.sh,v 1.1 2012/09/05 20:56:58 axs Exp $
+
+OUI_SRC="http://standards.ieee.org/regauth/oui/oui.txt"
+OUI_DEST="/var/lib/misc/oui.txt"
+
+if ! wget -o /tmp/ieee-oui.wget -O ${OUI_DEST} ${OUI_SRC} ; then
+ logger -t 'cron.weekly/ieee-oui' "failed to download update from ${OUI_SRC}, see /tmp/ieee-oui.wget for more info"
+fi
diff --git a/net-misc/ieee-oui/ieee-oui-0.ebuild b/net-misc/ieee-oui/ieee-oui-0.ebuild
new file mode 100644
index 000000000000..abc4a54988df
--- /dev/null
+++ b/net-misc/ieee-oui/ieee-oui-0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ieee-oui/ieee-oui-0.ebuild,v 1.1 2012/09/05 20:56:58 axs Exp $
+
+EAPI=4
+
+DESCRIPTION="Getter via cron for oui.txt from standards.ieee.org"
+HOMEPAGE="http://standards.ieee.org/regauth/oui/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="sys-apps/util-linux
+ net-misc/wget
+ virtual/cron"
+
+S="${WORKDIR}"
+
+src_install() {
+ keepdir /var/lib/misc
+ exeinto /etc/cron.weekly
+ newexe "${FILESDIR}"/${P}.sh ${PN}
+}
+
+pkg_postinst() {
+ einfo "Launching cron.weekly/${PN} to get initial update ..."
+ /etc/cron.weekly/${PN}
+ if [ ! -e /var/lib/misc/oui.txt ]; then
+ eerror "Could not download current copy of oui.txt from standards.ieee.org ;"
+ eerror "Please re-emerge or manually run /etc/cron.weekly/${P} to update."
+ fi
+}
+
+pkg_prerm() {
+ rm -f /var/lib/misc/oui.txt
+}
diff --git a/net-misc/ieee-oui/metadata.xml b/net-misc/ieee-oui/metadata.xml
new file mode 100644
index 000000000000..8dc203120679
--- /dev/null
+++ b/net-misc/ieee-oui/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>axs@gentoo.org</email>
+</maintainer>
+<longdescription>Installer of a cron-job to download http://standards.ieee.org/regauth/oui/oui.txt (plus initial download)</longdescription>
+</pkgmetadata>