diff options
Diffstat (limited to 'sys-apps/dmidecode/dmidecode-3.1.ebuild')
-rw-r--r-- | sys-apps/dmidecode/dmidecode-3.1.ebuild | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/sys-apps/dmidecode/dmidecode-3.1.ebuild b/sys-apps/dmidecode/dmidecode-3.1.ebuild deleted file mode 100644 index 7db50407baf5..000000000000 --- a/sys-apps/dmidecode/dmidecode-3.1.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit flag-o-matic toolchain-funcs eutils - -DESCRIPTION="DMI (Desktop Management Interface) table related utilities" -HOMEPAGE="https://www.nongnu.org/dmidecode/" -SRC_URI="https://savannah.nongnu.org/download/${PN}/${P}.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="-* amd64 arm ~arm64 ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-solaris" -IUSE="selinux" - -RDEPEND="selinux? ( sec-policy/selinux-dmidecode )" -DEPEND="" - -src_prepare() { - sed -i \ - -e "/^prefix/s:/usr/local:${EPREFIX}/usr:" \ - -e "/^docdir/s:dmidecode:${PF}:" \ - -e '/^PROGRAMS !=/d' \ - Makefile || die -} - -src_compile() { - emake \ - CFLAGS="${CFLAGS} ${CPPFLAGS}" \ - LDFLAGS="${LDFLAGS}" \ - CC="$(tc-getCC)" -} - -pkg_postinst() { - if [[ ${CHOST} == *-solaris* ]] ; then - einfo "dmidecode needs root privileges to read /dev/xsvc" - einfo "To make dmidecode useful, either run as root, or chown and setuid the binary." - einfo "Note that /usr/sbin/ptrconf and /usr/sbin/ptrdiag give similar" - einfo "information without requiring root privileges." - fi -} |