hotplug: initial import to opt
This commit is contained in:
parent
0b3b8c3e82
commit
e8b1ad30bb
38
hotplug/.footprint
Normal file
38
hotplug/.footprint
Normal file
@ -0,0 +1,38 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/hotplug.d/
|
||||
drwxr-xr-x root/root etc/hotplug.d/default/
|
||||
-rwxr-xr-x root/root etc/hotplug.d/default/default.hotplug
|
||||
drwxr-xr-x root/root etc/hotplug/
|
||||
-rw-r--r-- root/root etc/hotplug/blacklist
|
||||
-rwxr-xr-x root/root etc/hotplug/dasd.agent
|
||||
-rwxr-xr-x root/root etc/hotplug/firmware.agent
|
||||
-rwxr-xr-x root/root etc/hotplug/hotplug.functions
|
||||
-rwxr-xr-x root/root etc/hotplug/ieee1394.agent
|
||||
-rwxr-xr-x root/root etc/hotplug/input.agent
|
||||
-rwxr-xr-x root/root etc/hotplug/input.rc
|
||||
-rwxr-xr-x root/root etc/hotplug/net.agent
|
||||
-rwxr-xr-x root/root etc/hotplug/pci.agent
|
||||
-rwxr-xr-x root/root etc/hotplug/pci.rc
|
||||
drwxr-xr-x root/root etc/hotplug/pci/
|
||||
-rwxr-xr-x root/root etc/hotplug/pnp.rc
|
||||
-rwxr-xr-x root/root etc/hotplug/scsi.agent
|
||||
-rwxr-xr-x root/root etc/hotplug/tape.agent
|
||||
-rwxr-xr-x root/root etc/hotplug/usb.agent
|
||||
-rw-r--r-- root/root etc/hotplug/usb.distmap
|
||||
-rw-r--r-- root/root etc/hotplug/usb.handmap
|
||||
-rwxr-xr-x root/root etc/hotplug/usb.rc
|
||||
-rw-r--r-- root/root etc/hotplug/usb.usermap
|
||||
drwxr-xr-x root/root etc/hotplug/usb/
|
||||
drwxr-xr-x root/root lib/
|
||||
drwxr-xr-x root/root lib/firmware/
|
||||
drwxr-xr-x root/root sbin/
|
||||
-rwxr-xr-x root/root sbin/hotplug
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/man/
|
||||
drwxr-xr-x root/root usr/man/man8/
|
||||
-rwxr-xr-x root/root usr/man/man8/hotplug.8.gz
|
||||
drwxr-xr-x root/root var/
|
||||
drwxr-xr-x root/root var/log/
|
||||
drwxr-xr-x root/root var/log/hotplug/
|
||||
drwxr-xr-x root/root var/run/
|
||||
drwx------ root/root var/run/usb/
|
2
hotplug/.md5sum
Normal file
2
hotplug/.md5sum
Normal file
@ -0,0 +1,2 @@
|
||||
1a53a557d195de40ae8174b847286bd6 hotplug-2004_09_23-default.patch
|
||||
58e6995f9df71ce59b0ec2787019e5fe hotplug-2004_09_23.tar.bz2
|
32
hotplug/Pkgfile
Normal file
32
hotplug/Pkgfile
Normal file
@ -0,0 +1,32 @@
|
||||
# $Id: Pkgfile,v 1.7 2005/08/19 20:49:27 jaeger Exp $
|
||||
# Description: Linux USB/PCI Hotplug scripts
|
||||
# URL: http://linux-hotplug.sourceforge.net/
|
||||
# Maintainer: Matt Housh <jaeger at morpheus dot net>
|
||||
# Depends on: pciutils, usbutils
|
||||
|
||||
name=hotplug
|
||||
version=2004_09_23
|
||||
release=7
|
||||
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
|
||||
$name-$version-default.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
patch -p0 etc/hotplug.d/default/default.hotplug \
|
||||
< $SRC/$name-$version-default.patch
|
||||
install -D sbin/hotplug $PKG/sbin/hotplug
|
||||
mkdir -p $PKG/etc/hotplug/{pci,usb} $PKG/lib/firmware
|
||||
install -D etc/hotplug.d/default/default.hotplug \
|
||||
$PKG/etc/hotplug.d/default/default.hotplug
|
||||
for i in etc/hotplug/{*.{agent,rc},hotplug.functions}
|
||||
do
|
||||
install $i $PKG/etc/hotplug/
|
||||
done
|
||||
for i in etc/hotplug/{blacklist,usb.{user,hand,dist}map}
|
||||
do
|
||||
install -m 0644 $i $PKG/etc/hotplug/
|
||||
done
|
||||
install -D $name.8 $PKG/usr/man/man8/$name.8
|
||||
mkdir -p $PKG/var/log/hotplug $PKG/var/run
|
||||
install -d -m 0700 $PKG/var/run/usb
|
||||
}
|
10
hotplug/README
Normal file
10
hotplug/README
Normal file
@ -0,0 +1,10 @@
|
||||
$Id: README,v 1.2 2005/03/01 20:15:41 jaeger Exp $
|
||||
|
||||
README for hotplug
|
||||
|
||||
|
||||
If you need coldplugging support (modules loaded for devices that were present
|
||||
at boot-time that would normally be hotplugged), install coldplug and add
|
||||
"coldplug" to the SERVICES array in /etc/rc.conf. This port no longer has
|
||||
an init script so it's safe to remove "hotplug" from SERVICES.
|
||||
|
14
hotplug/hotplug-2004_09_23-default.patch
Normal file
14
hotplug/hotplug-2004_09_23-default.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff -urN hotplug-2004_09_23.orig/etc/hotplug.d/default/default.hotplug hotplug-2004_09_23/etc/hotplug.d/default/default.hotplug
|
||||
--- hotplug-2004_09_23.orig/etc/hotplug.d/default/default.hotplug 2004-09-20 16:40:27.000000000 -0500
|
||||
+++ hotplug-2004_09_23/etc/hotplug.d/default/default.hotplug 2005-08-19 15:47:47.172431432 -0500
|
||||
@@ -23,6 +23,10 @@
|
||||
# $Id: default.hotplug,v 1.4 2004/09/20 21:40:27 kroah Exp $
|
||||
#
|
||||
|
||||
+if [ ! -e /dev/null ]
|
||||
+then
|
||||
+ /bin/mknod -m 0666 /dev/null c 1 3
|
||||
+fi
|
||||
exec < /dev/null
|
||||
test -t 1 || exec > /dev/null
|
||||
test -t 2 || exec 2>&1
|
Loading…
x
Reference in New Issue
Block a user