public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-freebsd/virtio-kmod: virtio-kmod-0.228301-r1.ebuild ChangeLog virtio-kmod-0.228301.ebuild
@ 2012-06-14 15:45 Richard Yao (ryao)
  0 siblings, 0 replies; only message in thread
From: Richard Yao (ryao) @ 2012-06-14 15:45 UTC (permalink / raw
  To: gentoo-commits

ryao        12/06/14 15:45:33

  Modified:             ChangeLog
  Added:                virtio-kmod-0.228301-r1.ebuild
  Removed:              virtio-kmod-0.228301.ebuild
  Log:
  Add missing pkg_postrm() function
  
  (Portage version: 2.1.10.49/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  sys-freebsd/virtio-kmod/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/virtio-kmod/ChangeLog?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/virtio-kmod/ChangeLog?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/virtio-kmod/ChangeLog?r1=1.1&r2=1.2

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/virtio-kmod/ChangeLog,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ChangeLog	19 May 2012 20:47:29 -0000	1.1
+++ ChangeLog	14 Jun 2012 15:45:33 -0000	1.2
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/virtio-kmod
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/virtio-kmod/ChangeLog,v 1.1 2012/05/19 20:47:29 ryao Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/virtio-kmod/ChangeLog,v 1.2 2012/06/14 15:45:33 ryao Exp $
+
+*virtio-kmod-0.228301-r1 (14 Jun 2012)
+
+  14 Jun 2012; Richard Yao <ryao@gentoo.org> +virtio-kmod-0.228301-r1.ebuild,
+  -virtio-kmod-0.228301.ebuild:
+  Add missing pkg_postrm() function
 
 *virtio-kmod-0.228301 (19 May 2012)
 



1.1                  sys-freebsd/virtio-kmod/virtio-kmod-0.228301-r1.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/virtio-kmod/virtio-kmod-0.228301-r1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/virtio-kmod/virtio-kmod-0.228301-r1.ebuild?rev=1.1&content-type=text/plain

Index: virtio-kmod-0.228301-r1.ebuild
===================================================================
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/virtio-kmod/virtio-kmod-0.228301-r1.ebuild,v 1.1 2012/06/14 15:45:32 ryao Exp $

EAPI=4

inherit bsdmk flag-o-matic

DESCRIPTION="Virtio drivers from FreeBSD Ports' emulators/virtio-kmod."
HOMEPAGE="http://www.freshports.org/emulators/virtio-kmod/"
SRC_URI="mirror://freebsd/ports/local-distfiles/kuriyama/virtio-${PV}.tar.gz"

SLOT="0"
KEYWORDS="~x86-fbsd ~amd64-fbsd"
IUSE="custom-cflags +debug"
LICENSE="BSD-2"

DEPEND=">=sys-freebsd/freebsd-sources-8.2"
RDEPEND=""

QA_TEXTRELS="*"
RESTRICT="strip"
S="${WORKDIR}"

NEEDSUBDIRS="conf contrib dev/pci geom kern net netinet netinet6 sys tools vm
	x86 i386 amd64"

src_unpack() {
	default
	CPIO_ARGS="-dump"

	# When hardlinks are possible, use them to avoid copies when FEATURES=userpriv
	test $UID != 0 && export CPIO_ARGS+=l

	cd /usr/src/sys/
	for d in $NEEDSUBDIRS; do
		find $d ! -name @ | cpio --quiet "${CPIO_ARGS}" "${WORKDIR}"
	done

}

src_compile() {

	use debug && export DEBUG_FLAGS="-g"
	use custom-cflags || strip-flags
	append-cflags "-I${WORKDIR}"

	cd "${WORKDIR}/modules/virtio"
	mkmake SYSDIR="${WORKDIR}" LDFLAGS="$(raw-ldflags)" || die "mkmake failed"

}

src_install() {
	# Upstream does not provide an install target
	dodir /boot/modules
	cp "${WORKDIR}"/modules/virtio/*/*.ko{,.symbols} "${ED}/boot/modules"
}

pkg_postinst() {
	# Update linker.hints file
	/usr/sbin/kldxref "${EPREFIX}/boot/modules"

	# Print message from FreeBSD Ports
	elog "$(cat "${FILESDIR}/pkg-message")"
}

pkg_postrm() {
	# Update linker.hints file
	/usr/sbin/kldxref "${EPREFIX}/boot/modules"
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-14 15:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-14 15:45 [gentoo-commits] gentoo-x86 commit in sys-freebsd/virtio-kmod: virtio-kmod-0.228301-r1.ebuild ChangeLog virtio-kmod-0.228301.ebuild Richard Yao (ryao)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox