Permalink
Browse files

Merge branch 'master' of git.funtoo.org:funtoo-overlay

  • Loading branch information...
2 parents e383681 + 048d4c4 commit 6b848391914f518fc6192914bac3278af32da80e @danielrobbins danielrobbins committed Sep 26, 2013
Showing with 97 additions and 2 deletions.
  1. +2 −2 sys-apps/net-tools/Manifest
  2. +95 −0 sys-apps/net-tools/net-tools-1.60_p20130513023548.ebuild
@@ -1,6 +1,6 @@
-DIST net-tools-1.60_p20110409135728-patches-1.tar.xz 3976 SHA256 6ec48e4e97f64734747c5a1639203179ab12a83faceaada739fa576e0a01df73 SHA512 22261c33860f3becc776e8f8da106052520096f482f7845ce687c5f8cbfd2ff467723ce83a0c0a95a0b8adb9dc9c27ebd97d75646f9728ab179e20a02d8817b7 WHIRLPOOL 29a9172791a4e52bd6b81e2ad1c9b0c34b69636a99fbcd019465cab6bc9b5058ef72a92fd541e8b1b71881d7800d37de111f3ce0c60d78698056b4c023024e2b
-DIST net-tools-1.60_p20110409135728.tar.xz 223168 SHA256 2379dab69c68c0b6755cd063c9cb170d4b3862be9f0154cf4c28d749d232b98f SHA512 17658210e27cf966b71dc89b7ec1b881490612b6919cba2c232edf04cffeef54b13a7dab5825466b46b366d079f72c43746c8df69c1250c9f3cecfa3ae02874c WHIRLPOOL 4d4bbbc2a9df8bc7fe5b47569738b6855de234c9f63799648261b2315128a158013577ad75c0940d48dfbaaab2e0b2752230cb79f5f9ba66b44d29886c7ca3ee
DIST net-tools-1.60_p201111202031570500-patches-1.tar.xz 3348 SHA256 98a5e20f4cc6aca911e3b24cc04a071bff0f694023013755dc195da26089f837 SHA512 9ec31a8df3a812bac3ef505a0bc3d092d1b8e6fb7665f23f9eacb2d14e30044db4cf46c1bc8362ff3a6aa39fe89b7a860781a6449441176495057410c15dac08 WHIRLPOOL 28ec1f2980d627f05e778fc53b05436c83c0a655d86797bf1e7e10d84c9e843f58bab9ae4bd2bd5fefc7bcf1c863a63c294692a245840d516f9871b14fc89f88
DIST net-tools-1.60_p201111202031570500.tar.xz 223532 SHA256 58bd85bd7d4776635754dc4ca2b2b164346967bad67cf661d4c9933e7d6b5474 SHA512 f894f59d4fce76cab97496df6d3dcc5cbca7b4146fd7e5daea95cb447e3460e448ad20398eb5a6b805b80f6050f30aa47e133c166b63f7a4cdfe9256383322d4 WHIRLPOOL d651b6f455faa5ffeb103aab08f0b28a95ff42fb8b77a73a1f8b1f9f0a9c3f39b5405c339696558a341c888e19c7486a807f83287cc6b4333dc72ed0480cee8a
DIST net-tools-1.60_p20120127084908-patches-1.tar.xz 3332 SHA256 1240a3c139b684da195f665447a80e1d05f0d6f3c2319dbf340dfcbb78b01501 SHA512 97602993e273d2fadac2bf3df892e09ba7c7cda44a7825209a644ada4d203e0c3d2248cbf976545afb07113976694fb581511641725ce1b95b00688d357d0a02 WHIRLPOOL 4fd537e042ab368795ff0db55717c424ef3bd7bc37302c5fa64936c4ffe4772557c25c83224f9ee0017f812817143b7168e70b2fdcf146abab06d18cafe3448d
DIST net-tools-1.60_p20120127084908.tar.xz 224992 SHA256 408a51964aa142a4f45c4cffede2478abbd5630a7c7346ba0d3611059a2a3c94 SHA512 1237a4bb0bba5273a25d707493d5bdb16f267bfa6731c526329cff459e06923e0d54aef6eded458d3cb72994bf4382f216212c34ad9329f5f1573a4228445996 WHIRLPOOL b14f24c13f2950fd92eb6b897cd14c5aa4d52e40062943fcb84de7e13555f98008db1aa6ec6fb6ca8f899a5bfdfc685f8822da2f3c0e5e002b9d20aec4d8b73c
+DIST net-tools-1.60_p20130513023548-patches-1.tar.xz 3352 SHA256 926240c304e20a0ab966c3d278703a6ef8e7833a54aaf636598854450bd01f4e SHA512 6dd3eef6469a18581a98fc91f424b418f3875cd0eff86724d6bdbacca1b83d1229a567a184b82e0187d01a428ea6be933d53090796b5c7d301009b2e211c4531 WHIRLPOOL fb638e122f85e95fda35b77336fbb5d4f6e89c5f5a5b76d759bd08f53eb0741feb9c7221940b836e0e7f5c60bd312d99d823c3af89340d6e254f1be96e34d2ce
+DIST net-tools-1.60_p20130513023548.tar.xz 196684 SHA256 e4f47c0736c5d73853f3bbfd30bec1922465f7a2b5bce25e5067774bac1d716d SHA512 d01404ac461f93fbd304f6c67a8dcc642b833f3653b97a5c2ecf3774bfef8489d6aa5631dbefe432a6675e2ce20e88ce1b9888a9ec055198076970505afd1f1b WHIRLPOOL 24e5917bb790d683507d9406213e0ee0ca94c36fcca469ff0ab7fa4c30517cb29a4cfafb98fdedf3a4ba94baa3f66da48ae3a2f359e522b9d42e6e1c599772fa
@@ -0,0 +1,95 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs eutils
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://net-tools.git.sourceforge.net/gitroot/net-tools/net-tools"
+ inherit git-2
+ KEYWORDS=""
+else
+ PATCH_VER="1"
+ SRC_URI="mirror://gentoo/${P}.tar.xz
+ mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz"
+ KEYWORDS="*"
+fi
+
+DESCRIPTION="Standard Linux networking tools"
+HOMEPAGE="http://net-tools.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="nls old-output selinux static"
+
+RDEPEND="!<sys-apps/openrc-0.9.9.3
+ selinux? ( sys-libs/libselinux )"
+DEPEND="${RDEPEND}
+ selinux? ( virtual/pkgconfig )
+ app-arch/xz-utils"
+
+maint_pkg_create() {
+ cd /usr/local/src/net-tools
+ #git-update
+ local stamp=$(date --date="$(git log -n1 --pretty=format:%ci master)" -u +%Y%m%d%H%M%S)
+ local pv="${PV/_p*}_p${stamp}"; pv=${pv/9999/1.60}
+ local p="${PN}-${pv}"
+ git archive --prefix="${p}/" master | tar xf - -C "${T}"
+ pushd "${T}" >/dev/null
+ sed -i "/^RELEASE/s:=.*:=${pv}:" */Makefile || die
+ tar cf - ${p}/ | xz > ${p}.tar.xz
+ popd >/dev/null
+
+ local patches="${p}-patches-${PATCH_VER:-1}"
+ local d="${T}/${patches}"
+ mkdir "${d}"
+ git format-patch -o "${d}" master..gentoo > /dev/null
+ echo "From http://git.overlays.gentoo.org/gitweb/?p=proj/net-tools.git" > "${d}"/README
+ tar cf - -C "${T}" ${d##*/} | xz > "${T}"/${patches}.tar.xz
+ rm -rf "${d}"
+
+ du -b "${T}"/*.tar.xz
+}
+
+pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; }
+
+set_opt() {
+ local opt=$1 ans
+ shift
+ ans=$("$@" && echo y || echo n)
+ einfo "Setting option ${opt} to ${ans}"
+ sed -i \
+ -e "/^bool.* ${opt} /s:[yn]$:${ans}:" \
+ config.in || die
+}
+
+src_prepare() {
+ if [[ -n ${PATCH_VER} ]] ; then
+ use old-output || EPATCH_EXCLUDE="0001-revert-621a2f376334f8097604b9fee5783e0f1141e66d-for-.patch"
+ EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${WORKDIR}"/${P}-patches-${PATCH_VER}
+ fi
+}
+
+src_configure() {
+ set_opt I18N use nls
+ set_opt HAVE_HWIB has_version '>=sys-kernel/linux-headers-2.6'
+ set_opt HAVE_HWTR has_version '<sys-kernel/linux-headers-3.5'
+ set_opt HAVE_HWSTRIP has_version '<sys-kernel/linux-headers-3.6'
+ set_opt SELINUX use selinux
+ if use static ; then
+ append-flags -static
+ append-ldflags -static
+ fi
+ tc-export AR CC
+ yes "" | ./configure.sh config.in || die
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install || die
+ dodoc README README.ipv6 TODO
+ dosym /bin/ifconfig /sbin/ifconfig
+}
+
+pkg_postinst() {
+ einfo "etherwake and such have been split into net-misc/ethercard-diag"
+}

0 comments on commit 6b84839

Please sign in to comment.