You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
978 B
36 lines
978 B
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/sys-fs/static-dev/static-dev-0.1.ebuild,v 1.16 2014/11/17 02:19:23 vapier Exp $
|
|
|
|
DESCRIPTION="A skeleton, statically managed /dev"
|
|
HOMEPAGE="http://bugs.gentoo.org/107875"
|
|
SRC_URI=""
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="sys-apps/makedev"
|
|
|
|
abort() {
|
|
echo
|
|
eerror "We have detected that you currently use udev or devfs or devtmpfs"
|
|
eerror "and this ebuild cannot install to the same mount-point."
|
|
die "Cannot install on udev/devfs tmpfs."
|
|
}
|
|
|
|
pkg_preinst() {
|
|
if [[ -d ${ROOT}/dev/.udev || -c ${ROOT}/dev/.devfs ]] ; then
|
|
abort
|
|
fi
|
|
if [[ ${ROOT} == "/" ]] && \
|
|
! awk '$2 == "/dev" && $3 == "devtmpfs" { exit 1 }' /proc/mounts ; then
|
|
abort
|
|
fi
|
|
}
|
|
|
|
pkg_postinst() {
|
|
MAKEDEV -d "${ROOT}"/dev generic sg scd rtc hde hdf hdg hdh input audio video
|
|
}
|