Changeset 0bb66b1
- Timestamp:
- Sep 16, 2006, 8:47:20 PM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 80a92ec
- Parents:
- e2f416c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
udev/Makefile
re2f416c r0bb66b1 4 4 RULESMODE=644 5 5 CONFMODE=644 6 LIBDIR=lib 6 7 7 8 all: help … … 30 31 31 32 scripts: 32 install -m ${SCRIPTMODE} load_floppy_module.sh ${DESTDIR}/ lib/udev/load_floppy_module.sh33 install -m ${SCRIPTMODE} cdsymlink_helper.sh ${DESTDIR}/ lib/udev/cdsymlink_helper.sh33 install -m ${SCRIPTMODE} load_floppy_module.sh ${DESTDIR}/${LIBDIR}/udev/load_floppy_module.sh 34 install -m ${SCRIPTMODE} cdsymlink_helper.sh ${DESTDIR}/${LIBDIR}/udev/cdsymlink_helper.sh 34 35 35 36 boot: … … 42 43 43 44 device_dirs: 44 install -d -m ${DIRMODE} ${DESTDIR}/ lib/udev/devices45 install -d -m ${DIRMODE} ${DESTDIR}/ lib/udev/devices/pts46 install -d -m ${DIRMODE} ${DESTDIR}/ lib/udev/devices/shm47 install -d -m ${DIRMODE} ${DESTDIR}/ lib/udev/devices/net45 install -d -m ${DIRMODE} ${DESTDIR}/${LIBDIR}/udev/devices 46 install -d -m ${DIRMODE} ${DESTDIR}/${LIBDIR}/udev/devices/pts 47 install -d -m ${DIRMODE} ${DESTDIR}/${LIBDIR}/udev/devices/shm 48 install -d -m ${DIRMODE} ${DESTDIR}/${LIBDIR}/udev/devices/net 48 49 49 50 device_links: 50 ln -snf /proc/self/fd ${DESTDIR}/ lib/udev/devices/fd51 ln -snf /proc/self/fd/0 ${DESTDIR}/ lib/udev/devices/stdin52 ln -snf /proc/self/fd/1 ${DESTDIR}/ lib/udev/devices/stdout53 ln -snf /proc/self/fd/2 ${DESTDIR}/ lib/udev/devices/stderr54 ln -snf /proc/kcore ${DESTDIR}/ lib/udev/devices/core51 ln -snf /proc/self/fd ${DESTDIR}/${LIBDIR}/udev/devices/fd 52 ln -snf /proc/self/fd/0 ${DESTDIR}/${LIBDIR}/udev/devices/stdin 53 ln -snf /proc/self/fd/1 ${DESTDIR}/${LIBDIR}/udev/devices/stdout 54 ln -snf /proc/self/fd/2 ${DESTDIR}/${LIBDIR}/udev/devices/stderr 55 ln -snf /proc/kcore ${DESTDIR}/${LIBDIR}/udev/devices/core 55 56 56 57 mknod_devices: 57 58 @if [ "$$UID" = "0" ]; then \ 58 if ! [ -e ${DESTDIR}/ lib/udev/devices/null ]; then \59 mknod -m 0666 ${DESTDIR}/ lib/udev/devices/null c 1 3 ;\59 if ! [ -e ${DESTDIR}/${LIBDIR}/udev/devices/null ]; then \ 60 mknod -m 0666 ${DESTDIR}/${LIBDIR}/udev/devices/null c 1 3 ;\ 60 61 fi \ 61 62 fi 62 63 @if [ "$$UID" = "0" ]; then \ 63 if ! [ -e ${DESTDIR}/ lib/udev/devices/console ]; then \64 mknod -m 0600 ${DESTDIR}/ lib/udev/devices/console c 5 1 ;\64 if ! [ -e ${DESTDIR}/${LIBDIR}/udev/devices/console ]; then \ 65 mknod -m 0600 ${DESTDIR}/${LIBDIR}/udev/devices/console c 5 1 ;\ 65 66 fi \ 66 67 fi 67 68 @if [ "$$UID" != "0" ]; then \ 68 if ! [ -e ${DESTDIR}/ lib/udev/devices/null ]; then \69 if ! [ -e ${DESTDIR}/${LIBDIR}/udev/devices/null ]; then \ 69 70 echo "You will need to issue the following command as the root user" ;\ 70 71 echo "" ;\ 71 echo "mknod -m 0666 ${DESTDIR}/ lib/udev/devices/null c 1 3" ;\72 echo "mknod -m 0666 ${DESTDIR}/${LIBDIR}/udev/devices/null c 1 3" ;\ 72 73 fi \ 73 74 fi 74 75 @if [ "$$UID" != "0" ]; then \ 75 if ! [ -e ${DESTDIR}/ lib/udev/devices/console ]; then \76 echo "mknod -m 0600 ${DESTDIR}/ lib/udev/devices/console c 5 1" ;\76 if ! [ -e ${DESTDIR}/${LIBDIR}/udev/devices/console ]; then \ 77 echo "mknod -m 0600 ${DESTDIR}/${LIBDIR}/udev/devices/console c 5 1" ;\ 77 78 echo "" ;\ 78 79 fi \ … … 89 90 @echo "make install-sound install sound rules" 90 91 @echo "---------------------------------------------------------------------------------------" 92 @echo "add LIBDIR=lib64 when using /lib64/" 93 @echo "example make LIBDIR=lib64 install" 94 @echo "---------------------------------------------------------------------------------------" 91 95 92 96 install-helper-functions: 93 install -d ${DESTDIR}/ lib/udev97 install -d ${DESTDIR}/${LIBDIR}/udev 94 98 install -d ${DESTDIR}/etc/sysconfig 95 install -m 644 contrib/common/helper.functions ${DESTDIR}/ lib/udev/helper.functions99 install -m 644 contrib/common/helper.functions ${DESTDIR}/${LIBDIR}/udev/helper.functions 96 100 install -m 644 contrib/common/udev_helper ${DESTDIR}/etc/sysconfig/udev_helper 97 101 98 102 install-device-mapper: 99 install -d ${DESTDIR}/ lib/udev103 install -d ${DESTDIR}/${LIBDIR}/udev 100 104 install -d ${DESTDIR}/etc/rc.d/init.d 101 105 install -m ${RULESMODE} 70-device-mapper.rules ${DESTDIR}/etc/udev/rules.d/70-device-mapper.rules … … 110 114 111 115 install-sound: 112 install -d ${DESTDIR}/ lib/udev116 install -d ${DESTDIR}/${LIBDIR}/udev 113 117 install -d ${DESTDIR}/etc/rc.d/init.d 114 118 install -m ${RULESMODE} 55-sound.rules ${DESTDIR}/etc/udev/rules.d/55-sound.rules 115 119 116 120 install-network-update: 117 install -d ${DESTDIR}/ lib/udev121 install -d ${DESTDIR}/${LIBDIR}/udev 118 122 install -d ${DESTDIR}/etc/rc.d/init.d 119 install -m ${SCRIPTMODE} contrib/network/network_helper.sh ${DESTDIR}/ lib/udev/network_helper.sh123 install -m ${SCRIPTMODE} contrib/network/network_helper.sh ${DESTDIR}/${LIBDIR}/udev/network_helper.sh 120 124 install -m ${INITMODE} contrib/network/network ${DESTDIR}/etc/rc.d/init.d/network 121 125
Note:
See TracChangeset
for help on using the changeset viewer.