Changeset 0bb66b1


Ignore:
Timestamp:
Sep 16, 2006, 8:47:20 PM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
80a92ec
Parents:
e2f416c
Message:

Added LIBDIR= to udev rules install

File:
1 edited

Legend:

Unmodified
Added
Removed
  • udev/Makefile

    re2f416c r0bb66b1  
    44RULESMODE=644
    55CONFMODE=644
     6LIBDIR=lib
    67
    78all: help
     
    3031
    3132scripts:
    32         install -m ${SCRIPTMODE} load_floppy_module.sh ${DESTDIR}/lib/udev/load_floppy_module.sh
    33         install -m ${SCRIPTMODE} cdsymlink_helper.sh ${DESTDIR}/lib/udev/cdsymlink_helper.sh
     33        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
    3435
    3536boot:
     
    4243
    4344device_dirs:
    44         install -d -m ${DIRMODE} ${DESTDIR}/lib/udev/devices
    45         install -d -m ${DIRMODE} ${DESTDIR}/lib/udev/devices/pts
    46         install -d -m ${DIRMODE} ${DESTDIR}/lib/udev/devices/shm
    47         install -d -m ${DIRMODE} ${DESTDIR}/lib/udev/devices/net
     45        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
    4849
    4950device_links:
    50         ln -snf /proc/self/fd ${DESTDIR}/lib/udev/devices/fd
    51         ln -snf /proc/self/fd/0 ${DESTDIR}/lib/udev/devices/stdin
    52         ln -snf /proc/self/fd/1 ${DESTDIR}/lib/udev/devices/stdout
    53         ln -snf /proc/self/fd/2 ${DESTDIR}/lib/udev/devices/stderr
    54         ln -snf /proc/kcore ${DESTDIR}/lib/udev/devices/core
     51        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
    5556
    5657mknod_devices:
    5758        @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 ;\
    6061                fi \
    6162        fi
    6263        @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 ;\
    6566                fi \
    6667        fi
    6768        @if [ "$$UID" != "0" ]; then \
    68                 if ! [ -e ${DESTDIR}/lib/udev/devices/null ]; then \
     69                if ! [ -e ${DESTDIR}/${LIBDIR}/udev/devices/null ]; then \
    6970                        echo "You will need to issue the following command as the root user" ;\
    7071                        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" ;\
    7273                fi \
    7374        fi
    7475        @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" ;\
    7778                        echo "" ;\
    7879                fi \
     
    8990        @echo "make install-sound               install sound rules"
    9091        @echo "---------------------------------------------------------------------------------------"
     92        @echo "add LIBDIR=lib64                 when using /lib64/"
     93        @echo "example  make  LIBDIR=lib64 install"
     94        @echo "---------------------------------------------------------------------------------------"
    9195
    9296install-helper-functions:
    93         install -d ${DESTDIR}/lib/udev
     97        install -d ${DESTDIR}/${LIBDIR}/udev
    9498        install -d ${DESTDIR}/etc/sysconfig
    95         install -m 644 contrib/common/helper.functions ${DESTDIR}/lib/udev/helper.functions
     99        install -m 644 contrib/common/helper.functions ${DESTDIR}/${LIBDIR}/udev/helper.functions
    96100        install -m 644 contrib/common/udev_helper ${DESTDIR}/etc/sysconfig/udev_helper
    97101       
    98102install-device-mapper:
    99         install -d ${DESTDIR}/lib/udev
     103        install -d ${DESTDIR}/${LIBDIR}/udev
    100104        install -d ${DESTDIR}/etc/rc.d/init.d
    101105        install -m ${RULESMODE} 70-device-mapper.rules ${DESTDIR}/etc/udev/rules.d/70-device-mapper.rules
     
    110114
    111115install-sound:
    112         install -d ${DESTDIR}/lib/udev
     116        install -d ${DESTDIR}/${LIBDIR}/udev
    113117        install -d ${DESTDIR}/etc/rc.d/init.d
    114118        install -m ${RULESMODE} 55-sound.rules ${DESTDIR}/etc/udev/rules.d/55-sound.rules
    115119
    116120install-network-update:
    117         install -d ${DESTDIR}/lib/udev
     121        install -d ${DESTDIR}/${LIBDIR}/udev
    118122        install -d ${DESTDIR}/etc/rc.d/init.d
    119         install -m ${SCRIPTMODE} contrib/network/network_helper.sh ${DESTDIR}/lib/udev/network_helper.sh
     123        install -m ${SCRIPTMODE} contrib/network/network_helper.sh ${DESTDIR}/${LIBDIR}/udev/network_helper.sh
    120124        install -m ${INITMODE} contrib/network/network ${DESTDIR}/etc/rc.d/init.d/network
    121125
Note: See TracChangeset for help on using the changeset viewer.