mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
sys-apps/makedev: remove unnecessary package
Remove unnecessary package sys-apps/makedev.
This commit is contained in:
parent
1a3e753bdc
commit
292e92707f
@ -1 +0,0 @@
|
|||||||
DIST MAKEDEV-3.23-1.tar.gz 122613 BLAKE2B 2b0a4a02db36d7a3a71018378396c7d5ac8bbd4e9f8b24a1d3659084f381e8cc686f3d9198dc54e1efd93095ea09c21aab3b9866b942bff8e8a393355403f28a SHA512 5ca82cdcc4544042ede552370acf6266929fa34d177bd8e831573ccc1c57e06ec87766b9e60a686ec1449b204ae0ac3c048eab32b57ce8d610366219d3a77dbc
|
|
@ -1,25 +0,0 @@
|
|||||||
http://bugs.gentoo.org/339674
|
|
||||||
|
|
||||||
--- a/sel.h
|
|
||||||
+++ b/sel.h
|
|
||||||
@@ -18,6 +18,7 @@
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef MAKEDEV_SELINUX
|
|
||||||
+#include <limits.h>
|
|
||||||
#include <selinux/selinux.h>
|
|
||||||
static char secontextname[PATH_MAX + 2];
|
|
||||||
static char secontextflag[PATH_MAX + 7];
|
|
||||||
|
|
||||||
https://bugs.gentoo.org/580500
|
|
||||||
|
|
||||||
--- a/MAKEDEV.c
|
|
||||||
+++ b/MAKEDEV.c
|
|
||||||
@@ -17,6 +17,7 @@
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
+#include <sys/sysmacros.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/socket.h>
|
|
@ -1,52 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="2"
|
|
||||||
|
|
||||||
inherit eutils toolchain-funcs
|
|
||||||
|
|
||||||
MY_PN="MAKEDEV"
|
|
||||||
MY_VER=${PV%.*}
|
|
||||||
MY_REL=${PV#${MY_VER}.}
|
|
||||||
MY_P="${MY_PN}-${MY_VER}"
|
|
||||||
DESCRIPTION="program used for creating device files in /dev"
|
|
||||||
HOMEPAGE="https://people.redhat.com/nalin/MAKEDEV/"
|
|
||||||
SRC_URI="https://people.redhat.com/nalin/MAKEDEV/${MY_P}-${MY_REL}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
|
|
||||||
IUSE="build selinux"
|
|
||||||
|
|
||||||
RDEPEND="!<sys-apps/baselayout-2.0.0_rc"
|
|
||||||
DEPEND=""
|
|
||||||
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${P}-headers.patch #339674
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
use selinux && export SELINUX=1
|
|
||||||
emake CC="$(tc-getCC)" OPTFLAGS="${CFLAGS}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# set devdir to makedevdir so we dont have to worry about /dev
|
|
||||||
emake install DESTDIR="${D}" makedevdir=/sbin devdir=/sbin || die
|
|
||||||
dodoc *.txt
|
|
||||||
keepdir /dev
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if use build ; then
|
|
||||||
# set up a base set of nodes to make recovery easier #368597
|
|
||||||
"${ROOT}"/sbin/MAKEDEV -c "${ROOT}"/etc/makedev.d \
|
|
||||||
-d "${ROOT}"/dev console hda input ptmx std sd tty
|
|
||||||
# trim useless nodes
|
|
||||||
rm -f "${ROOT}"/dev/fd[0-9]* # floppy
|
|
||||||
rm -f "${ROOT}"/dev/sd[a-d][a-z]* "${ROOT}"/dev/sd[e-z]* # excess sata/scsi
|
|
||||||
rm -f "${ROOT}"/dev/tty[a-zA-Z]* # excess tty
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>base-system@gentoo.org</email>
|
|
||||||
<name>Gentoo Base System</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
|
Loading…
Reference in New Issue
Block a user