summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-09-12 14:22:46 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-09-12 14:22:46 +0000
commitaa215d1abc285550150db70aa9b8ca1c62dd7d21 (patch)
tree8201e7f9e86826ba383103e72863e78ffb0a70c9 /sys-fs/devfsd
parentCleaning out older versions. (diff)
downloadhistorical-aa215d1abc285550150db70aa9b8ca1c62dd7d21.tar.gz
historical-aa215d1abc285550150db70aa9b8ca1c62dd7d21.tar.bz2
historical-aa215d1abc285550150db70aa9b8ca1c62dd7d21.zip
Add rcscript addons.
Package-Manager: portage-2.0.52-r1
Diffstat (limited to 'sys-fs/devfsd')
-rw-r--r--sys-fs/devfsd/ChangeLog6
-rw-r--r--sys-fs/devfsd/Manifest22
-rw-r--r--sys-fs/devfsd/devfsd-1.3.25-r8.ebuild5
-rwxr-xr-xsys-fs/devfsd/files/devfs-start.sh28
-rwxr-xr-xsys-fs/devfsd/files/devfs-stop.sh16
5 files changed, 64 insertions, 13 deletions
diff --git a/sys-fs/devfsd/ChangeLog b/sys-fs/devfsd/ChangeLog
index 912ef3ecfc71..b3ab55c3782a 100644
--- a/sys-fs/devfsd/ChangeLog
+++ b/sys-fs/devfsd/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-fs/devfsd
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/devfsd/ChangeLog,v 1.20 2005/05/30 02:45:55 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/devfsd/ChangeLog,v 1.21 2005/09/12 14:22:46 azarah Exp $
+
+ 12 Sep 2005; Martin Schlemmer <azarah@gentoo.org> +files/devfs-start.sh,
+ +files/devfs-stop.sh, devfsd-1.3.25-r8.ebuild:
+ Add rcscript addons.
29 May 2005; <solar@gentoo.org> devfsd-1.3.25-r8.ebuild:
- update sys-fs/devfsd to use libc expanded variable elibc_uclibc vs uclibc so
diff --git a/sys-fs/devfsd/Manifest b/sys-fs/devfsd/Manifest
index 414596c375d4..a8dd0811929b 100644
--- a/sys-fs/devfsd/Manifest
+++ b/sys-fs/devfsd/Manifest
@@ -1,20 +1,20 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 9bf4eb583b5b1978363d30805d9a6bce devfsd-1.3.25-r8.ebuild 1552
-MD5 d50807eeb7d837e79e28e431ca961938 ChangeLog 5736
+MD5 b7b66356f4e0c5f2e5b7766fd3d11c5f devfsd-1.3.25-r8.ebuild 1628
+MD5 2e7ca737af7fa52e5810a881dc1c693d ChangeLog 5885
MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-MD5 3df00d60f0ad517c5489f558c1a95056 files/devfsd-1.3.25-no-nis.patch 2142
-MD5 9483221bc19786c3f7cb5df05a664477 files/devfsd-1.3.25-pic.patch 529
MD5 c172caaf62b5ab4efc52f472220e2a09 files/devfsd.conf 5992
-MD5 41a6be534a78f5a0ad994b10e4134e6e files/devfsd-1.3.25-kernel-2.5.patch 3929
+MD5 c1478c7071d00ef2e6200643de97ac39 files/devfs-start.sh 622
MD5 b8ec7858c1ac54c47302ca839a52188f files/digest-devfsd-1.3.25-r8 65
+MD5 8c49d3404b021fc15ebed2c9ae05adc4 files/devfs-stop.sh 326
+MD5 9483221bc19786c3f7cb5df05a664477 files/devfsd-1.3.25-pic.patch 529
+MD5 41a6be534a78f5a0ad994b10e4134e6e files/devfsd-1.3.25-kernel-2.5.patch 3929
+MD5 3df00d60f0ad517c5489f558c1a95056 files/devfsd-1.3.25-no-nis.patch 2142
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.0 (GNU/Linux)
+Version: GnuPG v1.4.2 (GNU/Linux)
-iQCVAwUBQpp+bp4WFLgrx1GWAQKiBgP/aEtyojPMGaSeWXWtqTRXJ+8kO3hncjwG
-rZIcKJr+tFDZUQbKt62ahnvsVJju1ugX4jRwoCnsdLuTShM7H1tIkM+Q2+K/AyLo
-7psf1AilfQAmTiBYZnrBWrNukJIbZ+yectF5hvGT2RS27J4wE3sOX+hHNeudiecu
-Mq11oRwJWys=
-=U3uS
+iD8DBQFDJY+M1ZcsMnZjRyIRArG+AJwJ48XxdG7Y2TSBNr8sC0Smkc+5hgCfTafF
+qKt9P2q4t/FDUfnuEzj3zoc=
+=F2Ut
-----END PGP SIGNATURE-----
diff --git a/sys-fs/devfsd/devfsd-1.3.25-r8.ebuild b/sys-fs/devfsd/devfsd-1.3.25-r8.ebuild
index 6f2c84349086..197036aa60f3 100644
--- a/sys-fs/devfsd/devfsd-1.3.25-r8.ebuild
+++ b/sys-fs/devfsd/devfsd-1.3.25-r8.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/devfsd/devfsd-1.3.25-r8.ebuild,v 1.18 2005/05/30 02:45:55 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/devfsd/devfsd-1.3.25-r8.ebuild,v 1.19 2005/09/12 14:22:46 azarah Exp $
inherit eutils flag-o-matic toolchain-funcs
@@ -47,6 +47,9 @@ src_install() {
keepdir /etc/devfs.d
insinto /etc
doins ${FILESDIR}/devfsd.conf
+
+ insinto /lib/rcscripts/addons
+ doins "${FILESDIR}"/devfs-{start,stop}.sh
}
pkg_postinst() {
diff --git a/sys-fs/devfsd/files/devfs-start.sh b/sys-fs/devfsd/files/devfs-start.sh
new file mode 100755
index 000000000000..b8d832494e95
--- /dev/null
+++ b/sys-fs/devfsd/files/devfs-start.sh
@@ -0,0 +1,28 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+main() {
+ local mymounts=$(awk '($2 == "devfs") { print "yes"; exit 0 }' /proc/filesystems)
+
+ # Is devfs support compiled in?
+ if [[ ${mymounts} == "yes" ]] ; then
+ if [[ ${devfs_automounted} == "no" ]] ; then
+ ebegin "Mounting devfs at /dev"
+ try mount -n -t devfs devfs /dev
+ eend $?
+ else
+ ebegin "Kernel automatically mounted devfs at /dev"
+ eend 0
+ fi
+ ebegin "Starting devfsd"
+ /sbin/devfsd /dev >/dev/null
+ eend $? "Could not start /sbin/devfsd"
+ else
+ devfs="no"
+ fi
+}
+
+main
+
+
+# vim:ts=4
diff --git a/sys-fs/devfsd/files/devfs-stop.sh b/sys-fs/devfsd/files/devfs-stop.sh
new file mode 100755
index 000000000000..0b4856bc82c7
--- /dev/null
+++ b/sys-fs/devfsd/files/devfs-stop.sh
@@ -0,0 +1,16 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+main() {
+ # We need to properly terminate devfsd to save the permissions
+ if [[ -n $(ps --no-heading -C 'devfsd') ]]; then
+ ebegin "Stopping devfsd"
+ killall -15 devfsd &>/dev/null
+ eend $?
+ fi
+}
+
+main
+
+
+# vim:ts=4