diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/makedev |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/makedev')
-rw-r--r-- | sys-apps/makedev/Manifest | 6 | ||||
-rw-r--r-- | sys-apps/makedev/files/makedev-3.23.1-headers.patch | 25 | ||||
-rw-r--r-- | sys-apps/makedev/makedev-3.23.1.ebuild | 52 | ||||
-rw-r--r-- | sys-apps/makedev/metadata.xml | 8 |
4 files changed, 91 insertions, 0 deletions
diff --git a/sys-apps/makedev/Manifest b/sys-apps/makedev/Manifest new file mode 100644 index 000000000000..f3524c16ed70 --- /dev/null +++ b/sys-apps/makedev/Manifest @@ -0,0 +1,6 @@ +AUX makedev-3.23.1-headers.patch 433 SHA256 6a8b842af468bfed5c91309dcb6243a50446bd8530eece27df5fd0c6aab089c4 SHA512 ffc80692b9bc317c0c14c5e7211155c4a7849967a9a3588a811f21feb6034da264c7aecdb7ce4e67786aa2a28f8d33af381ff410afd118ab44f47edddc421d0d WHIRLPOOL ace403881f0e7fd34b77c17a4dc33aa12f9589d725adc4f914fca5559aad9546e83b015b0b1dff204838d5f4aa90edd0e686cdafcf409ed60eb74d7a6e1af785 +DIST MAKEDEV-3.23-1.tar.gz 122613 SHA256 46cebf1e5e36838a5637bdd2b7af07eb1773599e1288c2d1c777e2875d721965 SHA512 5ca82cdcc4544042ede552370acf6266929fa34d177bd8e831573ccc1c57e06ec87766b9e60a686ec1449b204ae0ac3c048eab32b57ce8d610366219d3a77dbc WHIRLPOOL fa11a2e0a143755af7c877171f67a95f6ea566cf0e9e8218bd412b98e75e50763e06cfc1c659527596a50f39cc905a3484f2fd5578a96d6389c7dc22ecadd103 +EBUILD makedev-3.23.1.ebuild 1377 SHA256 d6dbcbb5231f43e037af677785c10bfc1b85e5036519826536ad277d2185274c SHA512 6dd5eb8d3d1bcbe7d459bcebd0eb69e9dbdbb69c6d42e4231bfd0f46261b5f3fd99e9084217c56011a8036f477429accf6e355e21ef0e1613d8e4358ac921b60 WHIRLPOOL 900cd49b2e5109efe980e84305995cdcb0696ae39b0fa19fb4e499e6ba9c1adce3cdccf77b1089e369849340b2bb984a6cf6e6b57b6d0974477a684942fb064f +MISC ChangeLog 3251 SHA256 5767ab5de5cb508da51e1389af9605685a842c18c5991398fc354f0fd371a520 SHA512 60a840de23d2ff025ee4b643ddbebbdbe14fd08ce4f5fa520b4f42d7c2332f53b5ce759383dfb83e79fb9db437cc2a147c73cbc5285149d5ebb5e90bafc48020 WHIRLPOOL 559404e2b8b300f95835e636adcca8b97c84ca6c6c146acdf9f3aa0c164d0ccab7ea979ef39d4fb410961459978fb8f52ce3fb96da56b4be3b8e7a2f304ad451 +MISC ChangeLog-2015 2344 SHA256 efeb9a1be38752d052c3126e980314f35dd4edf9dfbd17eb968dabc4332ca18c SHA512 329dc869c068370f3367a113c605f99119dd6810d7f0f8d66cb221de4beec7b53c98a8d850386d52391b55071eaccd607595a927ebd64a77e9f33f771d5198f8 WHIRLPOOL 4830be71933f555b02a0e7c9f20be6252d04375e37cb4f39e5245821643a437c68dc997a11a39ed364546d351286f8c090018e9fab0fd93a2e047120255d6f2e +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-apps/makedev/files/makedev-3.23.1-headers.patch b/sys-apps/makedev/files/makedev-3.23.1-headers.patch new file mode 100644 index 000000000000..981a80b14ed5 --- /dev/null +++ b/sys-apps/makedev/files/makedev-3.23.1-headers.patch @@ -0,0 +1,25 @@ +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> diff --git a/sys-apps/makedev/makedev-3.23.1.ebuild b/sys-apps/makedev/makedev-3.23.1.ebuild new file mode 100644 index 000000000000..a2b5d6f17d4c --- /dev/null +++ b/sys-apps/makedev/makedev-3.23.1.ebuild @@ -0,0 +1,52 @@ +# 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 +} diff --git a/sys-apps/makedev/metadata.xml b/sys-apps/makedev/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-apps/makedev/metadata.xml @@ -0,0 +1,8 @@ +<?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> |