From 83116fdec3d6179f4e9831c03a456560c4eb1d1f Mon Sep 17 00:00:00 2001 From: hasufell Date: Mon, 15 Feb 2016 02:05:14 +0100 Subject: [PATCH] net-misc/netifrc: initial import of version 0.3.1 --- metadata/categories.conf | 1 + .../net-misc/netifrc/netifrc-0.3.1.exheres-0 | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 packages/net-misc/netifrc/netifrc-0.3.1.exheres-0 diff --git a/metadata/categories.conf b/metadata/categories.conf index 74acaf80..296f2e46 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -5,6 +5,7 @@ dev-util games-board games-rpg games-strategy +net-misc sci-mathematics sys-apps x11-apps diff --git a/packages/net-misc/netifrc/netifrc-0.3.1.exheres-0 b/packages/net-misc/netifrc/netifrc-0.3.1.exheres-0 new file mode 100644 index 00000000..766c8c51 --- /dev/null +++ b/packages/net-misc/netifrc/netifrc-0.3.1.exheres-0 @@ -0,0 +1,47 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 +# +# Based in part upon 'netifrc-0.3.1.ebuild' from Gentoo, which is: +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +require udev-rules + +HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/" +DOWNLOADS="https://dev.gentoo.org/~robbat2/distfiles/${PNV}.tar.bz2" + +SUMMARY="Gentoo Network Interface Management Scripts" +LICENCES="BSD-2" +SLOT="0" + +PLATFORMS="~amd64 ~x86" + +DEPENDENCIES=" + run: + sys-apps/gentoo-functions + build: + virtual/pkg-config +" + +src_compile() { + MAKE_ARGS=" + UDEVDIR=${UDEVRULESDIR} + LIBEXECDIR=/usr/$(exhost --target)/libexec/${PN} + PF=${PNVR}" + + emake ${MAKE_ARGS} all +} + +src_install() { + emake ${MAKE_ARGS} DESTDIR="${IMAGE}" install + dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO ChangeLog +} + +pkg_postinst() { + if [[ ! -e "${ROOT}"/etc/conf.d/net ]]; then + elog "The network configuration scripts will use dhcp by" + elog "default to set up your interfaces." + elog "If you need to set up something more complete, see" + elog "${ROOT}/usr/share/doc/${PNVR}/README" + fi +}