mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
move imported udev into place
This commit is contained in:
parent
19c5f19d69
commit
3e2147858f
11
.gitignore
vendored
11
.gitignore
vendored
@ -107,3 +107,14 @@ ltmain.sh
|
||||
*.tar.gz
|
||||
*.tar.bz2
|
||||
libtool
|
||||
/accelerometer
|
||||
/ata_id
|
||||
/cdrom_id
|
||||
/collect
|
||||
/gtk-doc.make
|
||||
/keymap
|
||||
/mtd_probe
|
||||
/scsi_id
|
||||
/udevadm
|
||||
/udevd
|
||||
/v4l_id
|
||||
|
758
Makefile.am
758
Makefile.am
File diff suppressed because it is too large
Load Diff
25
TODO
25
TODO
@ -342,3 +342,28 @@ Regularly:
|
||||
* pahole
|
||||
|
||||
* set_put(), hashmap_put() return values check. i.e. == 0 doesn't free()!
|
||||
|
||||
udev:
|
||||
- find a way to tell udev to not cancel firmware
|
||||
requests in initramfs
|
||||
|
||||
- scsi_id -> sg3_utils?
|
||||
|
||||
- make gtk-doc optional like kmod
|
||||
|
||||
- move /usr/lib/udev/devices/ to tmpfiles
|
||||
|
||||
- trigger --subsystem-match=usb/usb_device
|
||||
|
||||
- kill rules_generator
|
||||
|
||||
- have a $attrs{} ?
|
||||
|
||||
- remove RUN+="socket:"
|
||||
|
||||
- libudev.so.1
|
||||
- symbol versioning
|
||||
- return object with *_unref()
|
||||
- udev_monitor_from_socket()
|
||||
- udev_queue_get_failed_list_entry()
|
||||
|
||||
|
@ -21,6 +21,7 @@ if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
|
||||
echo "Activated pre-commit hook."
|
||||
fi
|
||||
|
||||
gtkdocize
|
||||
intltoolize --force --automake
|
||||
autoreconf --force --install --symlink
|
||||
|
||||
@ -32,7 +33,8 @@ args="\
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--libdir=$(libdir /usr/lib) \
|
||||
--libexecdir=/usr/lib"
|
||||
--libexecdir=/usr/lib \
|
||||
--enable-gtk-doc"
|
||||
|
||||
if [ ! -L /bin ]; then
|
||||
args="$args \
|
||||
|
157
configure.ac
157
configure.ac
@ -1,6 +1,7 @@
|
||||
# This file is part of systemd.
|
||||
#
|
||||
# Copyright 2010 Lennart Poettering
|
||||
# Copyright 2010-2012 Lennart Poettering
|
||||
# Copyright 2010-2012 Kay Sievers
|
||||
#
|
||||
# systemd is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
@ -18,6 +19,7 @@
|
||||
AC_PREREQ(2.63)
|
||||
|
||||
AC_INIT([systemd],[44],[systemd-devel@lists.freedesktop.org])
|
||||
AC_SUBST(PACKAGE_URL, [http://www.freedesktop.org/wiki/Software/systemd])
|
||||
AC_CONFIG_SRCDIR([src/main.c])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
@ -25,16 +27,15 @@ AC_USE_SYSTEM_EXTENSIONS
|
||||
AC_SYS_LARGEFILE
|
||||
AC_PREFIX_DEFAULT([/usr])
|
||||
AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
|
||||
|
||||
AC_SUBST(PACKAGE_URL, [http://www.freedesktop.org/wiki/Software/systemd])
|
||||
|
||||
AM_SILENT_RULES([yes])
|
||||
AC_CANONICAL_HOST
|
||||
AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
|
||||
AS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
|
||||
test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
|
||||
[AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
|
||||
|
||||
AM_SILENT_RULES([yes])
|
||||
LT_PREREQ(2.2)
|
||||
LT_INIT
|
||||
|
||||
# i18n stuff for the PolicyKit policy files
|
||||
IT_PROG_INTLTOOL([0.40.0])
|
||||
@ -53,6 +54,9 @@ AC_PROG_CC_C99
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
|
||||
AC_PATH_PROG([M4], [m4])
|
||||
GTK_DOC_CHECK(1.10)
|
||||
|
||||
AC_CHECK_TOOL(OBJCOPY, objcopy)
|
||||
AC_CHECK_TOOL(STRINGS, strings)
|
||||
AC_CHECK_TOOL(GPERF, gperf)
|
||||
@ -110,9 +114,6 @@ CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
|
||||
-Wl,--gc-sections])
|
||||
AC_SUBST([GCLDFLAGS], $with_ldflags)
|
||||
|
||||
LT_PREREQ(2.2)
|
||||
LT_INIT
|
||||
|
||||
AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
|
||||
AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
|
||||
|
||||
@ -127,10 +128,11 @@ AC_SUBST(CAP_LIBS)
|
||||
# This makes sure pkg.m4 is available.
|
||||
m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
|
||||
|
||||
PKG_CHECK_MODULES(UDEV, [ libudev >= 172 ])
|
||||
PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.3.2 ])
|
||||
PKG_CHECK_MODULES(KMOD, [ libkmod >= 5 ])
|
||||
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
|
||||
PKG_CHECK_MODULES(KMOD, [libkmod >= 5])
|
||||
PKG_CHECK_MODULES(BLKID,[blkid >= 2.20])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_ima=yes
|
||||
AC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
|
||||
[case "${enableval}" in
|
||||
@ -144,6 +146,7 @@ if test "x${have_ima}" != xno ; then
|
||||
AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
|
||||
fi
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_selinux=no
|
||||
AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
|
||||
if test "x$enable_selinux" != "xno"; then
|
||||
@ -155,6 +158,7 @@ if test "x$enable_selinux" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_xz=no
|
||||
AC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
|
||||
if test "x$enable_xz" != "xno"; then
|
||||
@ -166,6 +170,7 @@ if test "x$enable_xz" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([tcpwrap],
|
||||
AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
|
||||
[case "${enableval}" in
|
||||
@ -190,6 +195,7 @@ else
|
||||
fi
|
||||
AC_SUBST(LIBWRAP_LIBS)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([pam],
|
||||
AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
|
||||
[case "${enableval}" in
|
||||
@ -227,6 +233,7 @@ fi
|
||||
AC_SUBST(PAM_LIBS)
|
||||
AM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([acl],
|
||||
AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
|
||||
[case "${enableval}" in
|
||||
@ -264,6 +271,7 @@ fi
|
||||
AC_SUBST(ACL_LIBS)
|
||||
AM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([audit],
|
||||
AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
|
||||
[case "${enableval}" in
|
||||
@ -300,6 +308,7 @@ else
|
||||
fi
|
||||
AC_SUBST(AUDIT_LIBS)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_libcryptsetup=no
|
||||
AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
|
||||
if test "x$enable_libcryptsetup" != "xno"; then
|
||||
@ -311,6 +320,7 @@ if test "x$enable_libcryptsetup" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_binfmt=no
|
||||
AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
|
||||
if test "x$enable_binfmt" != "xno"; then
|
||||
@ -318,6 +328,7 @@ if test "x$enable_binfmt" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_vconsole=no
|
||||
AC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
|
||||
if test "x$enable_vconsole" != "xno"; then
|
||||
@ -325,6 +336,7 @@ if test "x$enable_vconsole" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_readahead=no
|
||||
AC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
|
||||
if test "x$enable_readahead" != "xno"; then
|
||||
@ -332,6 +344,7 @@ if test "x$enable_readahead" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_quotacheck=no
|
||||
AC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
|
||||
if test "x$enable_quotacheck" != "xno"; then
|
||||
@ -339,6 +352,7 @@ if test "x$enable_quotacheck" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_randomseed=no
|
||||
AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
|
||||
if test "x$enable_randomseed" != "xno"; then
|
||||
@ -346,6 +360,7 @@ if test "x$enable_randomseed" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_logind=no
|
||||
AC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
|
||||
if test "x$enable_logind" != "xno"; then
|
||||
@ -354,6 +369,7 @@ fi
|
||||
AM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
|
||||
AS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_hostnamed=no
|
||||
AC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
|
||||
if test "x$enable_hostnamed" != "xno"; then
|
||||
@ -361,6 +377,7 @@ if test "x$enable_hostnamed" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_timedated=no
|
||||
AC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
|
||||
if test "x$enable_timedated" != "xno"; then
|
||||
@ -368,6 +385,7 @@ if test "x$enable_timedated" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_localed=no
|
||||
AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
|
||||
if test "x$enable_localed" != "xno"; then
|
||||
@ -375,6 +393,7 @@ if test "x$enable_localed" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_coredump=no
|
||||
AC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
|
||||
if test "x$enable_coredump" != "xno"; then
|
||||
@ -382,6 +401,92 @@ if test "x$enable_coredump" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
if test "x$cross_compiling" = "xno" ; then
|
||||
AC_CHECK_FILES([/usr/share/pci.ids], [pciids=/usr/share/pci.ids])
|
||||
AC_CHECK_FILES([/usr/share/hwdata/pci.ids], [pciids=/usr/share/hwdata/pci.ids])
|
||||
AC_CHECK_FILES([/usr/share/misc/pci.ids], [pciids=/usr/share/misc/pci.ids])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(usb-ids-path,
|
||||
[AS_HELP_STRING([--with-usb-ids-path=DIR], [Path to usb.ids file])],
|
||||
[USB_DATABASE=${withval}],
|
||||
[if test -n "$usbids" ; then
|
||||
USB_DATABASE="$usbids"
|
||||
else
|
||||
PKG_CHECK_MODULES(USBUTILS, usbutils >= 0.82)
|
||||
AC_SUBST([USB_DATABASE], [$($PKG_CONFIG --variable=usbids usbutils)])
|
||||
fi])
|
||||
AC_MSG_CHECKING([for USB database location])
|
||||
AC_MSG_RESULT([$USB_DATABASE])
|
||||
AC_SUBST(USB_DATABASE)
|
||||
|
||||
AC_ARG_WITH(pci-ids-path,
|
||||
[AS_HELP_STRING([--with-pci-ids-path=DIR], [Path to pci.ids file])],
|
||||
[PCI_DATABASE=${withval}],
|
||||
[if test -n "$pciids" ; then
|
||||
PCI_DATABASE="$pciids"
|
||||
else
|
||||
AC_MSG_ERROR([pci.ids not found, try --with-pci-ids-path=])
|
||||
fi])
|
||||
AC_MSG_CHECKING([for PCI database location])
|
||||
AC_MSG_RESULT([$PCI_DATABASE])
|
||||
AC_SUBST(PCI_DATABASE)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_WITH(firmware-path,
|
||||
AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
|
||||
[Firmware search path (default=ROOTPREFIX/lib/firmware/updates:ROOTPREFIX/lib/firmware)]),
|
||||
[], [with_firmware_path="$rootprefix/lib/firmware/updates:$rootprefix/lib/firmware"])
|
||||
OLD_IFS=$IFS
|
||||
IFS=:
|
||||
for i in $with_firmware_path; do
|
||||
if test "x${FIRMWARE_PATH}" = "x"; then
|
||||
FIRMWARE_PATH="\\\"${i}/\\\""
|
||||
else
|
||||
FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
|
||||
fi
|
||||
done
|
||||
IFS=$OLD_IFS
|
||||
AC_SUBST([FIRMWARE_PATH], [$FIRMWARE_PATH])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([gudev],
|
||||
AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
|
||||
[], [enable_gudev=yes])
|
||||
AS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0]) ])
|
||||
|
||||
AC_ARG_ENABLE([introspection],
|
||||
AS_HELP_STRING([--disable-introspection], [disable GObject introspection @<:@default=enabled@:>@]),
|
||||
[], [enable_introspection=yes])
|
||||
AS_IF([test "x$enable_introspection" = "xyes"], [
|
||||
PKG_CHECK_MODULES([INTROSPECTION], [gobject-introspection-1.0 >= 0.6.2])
|
||||
AC_DEFINE([ENABLE_INTROSPECTION], [1], [enable GObject introspection support])
|
||||
AC_SUBST([G_IR_SCANNER], [$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)])
|
||||
AC_SUBST([G_IR_COMPILER], [$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)])
|
||||
AC_SUBST([G_IR_GENERATE], [$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)])
|
||||
AC_SUBST([GIRDIR], [$($PKG_CONFIG --define-variable=datadir=${datadir} --variable=girdir gobject-introspection-1.0)])
|
||||
AC_SUBST([GIRTYPELIBDIR], [$($PKG_CONFIG --define-variable=libdir=${libdir} --variable=typelibdir gobject-introspection-1.0)])
|
||||
])
|
||||
AM_CONDITIONAL([ENABLE_INTROSPECTION], [test "x$enable_introspection" = "xyes"])
|
||||
AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([keymap],
|
||||
AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
|
||||
[], [enable_keymap=yes])
|
||||
AS_IF([test "x$enable_keymap" = "xyes"], [
|
||||
AC_PATH_PROG([GPERF], [gperf])
|
||||
if test -z "$GPERF"; then
|
||||
AC_MSG_ERROR([gperf is needed])
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found]))
|
||||
AC_SUBST([INCLUDE_PREFIX], [$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')])
|
||||
])
|
||||
AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_manpages=no
|
||||
AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
|
||||
if test "x$enable_manpages" != "xno"; then
|
||||
@ -389,11 +494,10 @@ if test "x$enable_manpages" != "xno"; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_MANPAGES, [test "$have_manpages" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
||||
AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
|
||||
|
||||
AC_PATH_PROG([M4], [m4])
|
||||
|
||||
AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux, mandriva, meego, mageia, angstrom or other]))
|
||||
if test "z$with_distro" = "z"; then
|
||||
if test "$cross_compiling" = yes; then
|
||||
@ -572,11 +676,6 @@ AC_ARG_WITH([dbusinterfacedir],
|
||||
[],
|
||||
[with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
|
||||
|
||||
AC_ARG_WITH([udevrulesdir],
|
||||
AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules]),
|
||||
[],
|
||||
[with_udevrulesdir=`pkg-config --variable=udevdir udev`/rules.d])
|
||||
|
||||
AC_ARG_WITH([rootprefix],
|
||||
AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
|
||||
[], [with_rootprefix=${ac_default_prefix}])
|
||||
@ -608,12 +707,18 @@ AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
|
||||
AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
|
||||
AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
|
||||
AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
|
||||
AC_SUBST([udevrulesdir], [$with_udevrulesdir])
|
||||
AC_SUBST([pamlibdir], [$with_pamlibdir])
|
||||
AC_SUBST([rootprefix], [$with_rootprefix])
|
||||
AC_SUBST([rootlibdir], [$with_rootlibdir])
|
||||
|
||||
AC_CONFIG_FILES([Makefile po/Makefile.in])
|
||||
AC_CONFIG_FILES([
|
||||
Makefile po/Makefile.in
|
||||
src/udev/docs/Makefile
|
||||
src/udev/docs/version.xml
|
||||
src/udev/gudev/docs/Makefile
|
||||
src/udev/gudev/docs/version.xml
|
||||
])
|
||||
|
||||
AC_OUTPUT
|
||||
AC_MSG_RESULT([
|
||||
$PACKAGE_NAME $VERSION
|
||||
@ -641,13 +746,23 @@ AC_MSG_RESULT([
|
||||
localed: ${have_localed}
|
||||
coredump: ${have_coredump}
|
||||
plymouth: ${have_plymouth}
|
||||
firmware path: ${FIRMWARE_PATH}
|
||||
usb.ids: ${USB_DATABASE}
|
||||
pci.ids: ${PCI_DATABASE}
|
||||
gudev: ${enable_gudev}
|
||||
gintrospection: ${enable_introspection}
|
||||
keymap: ${enable_keymap}
|
||||
|
||||
prefix: ${prefix}
|
||||
rootprefix: ${with_rootprefix}
|
||||
sysconf dir: ${sysconfdir}
|
||||
datarootdir: ${datarootdir}
|
||||
includedir: ${includedir}
|
||||
include_prefix: ${INCLUDE_PREFIX}
|
||||
libexec dir: ${libexecdir}
|
||||
lib dir: ${libdir}
|
||||
rootlib dir: ${with_rootlibdir}
|
||||
PAM modules dir: ${with_pamlibdir}
|
||||
udev rules dir: ${with_udevrulesdir}
|
||||
D-Bus policy dir: ${with_dbuspolicydir}
|
||||
D-Bus session dir: ${with_dbussessionservicedir}
|
||||
D-Bus system dir: ${with_dbussystemservicedir}
|
||||
|
1
m4/.gitignore
vendored
1
m4/.gitignore
vendored
@ -4,3 +4,4 @@ ltoptions.m4
|
||||
ltsugar.m4
|
||||
ltversion.m4
|
||||
lt~obsolete.m4
|
||||
gtk-doc.m4
|
||||
|
1
rules/.gitignore
vendored
Normal file
1
rules/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/99-systemd.rules
|
32
src/udev/.gitignore
vendored
32
src/udev/.gitignore
vendored
@ -1,31 +1,4 @@
|
||||
*~
|
||||
*.o
|
||||
*.a
|
||||
*.lo
|
||||
*.la
|
||||
.libs
|
||||
.deps
|
||||
.dirstamp
|
||||
Makefile
|
||||
Makefile.in
|
||||
/aclocal.m4
|
||||
/autom4te.cache
|
||||
/config.h
|
||||
/config.h.in
|
||||
/config.log
|
||||
/config.status
|
||||
/config.guess
|
||||
/config.sub
|
||||
/libtool
|
||||
/ltmain.sh
|
||||
/install-sh
|
||||
/missing
|
||||
/configure
|
||||
/stamp-h1
|
||||
/depcomp
|
||||
/gtk-doc.make
|
||||
/build-aux
|
||||
/udev-test-install
|
||||
/udevd
|
||||
/udevadm
|
||||
/test-udev
|
||||
@ -38,3 +11,8 @@ Makefile.in
|
||||
/v4l_id
|
||||
/keymap
|
||||
/scsi_id
|
||||
*.[78]
|
||||
*.html
|
||||
udev.pc
|
||||
libudev.pc
|
||||
udev*.service
|
||||
|
339
src/udev/COPYING
339
src/udev/COPYING
@ -1,339 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
6387
src/udev/ChangeLog
6387
src/udev/ChangeLog
File diff suppressed because it is too large
Load Diff
@ -1,44 +0,0 @@
|
||||
The options used usually look like:
|
||||
%configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--bindir=/usr/bin \
|
||||
--libdir=/usr/lib64 \
|
||||
--libexecdir=/usr/lib \
|
||||
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
||||
--with-selinux
|
||||
|
||||
The options used in a RPM spec file look like:
|
||||
%configure \
|
||||
--prefix=%{_prefix} \
|
||||
--sysconfdir=%{_sysconfdir} \
|
||||
--bindir=%{_bindir} \
|
||||
--libdir=%{_libdir} \
|
||||
--libexecdir=%{_prefix}/lib \
|
||||
--with-systemdsystemunitdir=%{_prefix}/lib/systemd/system \
|
||||
--with-selinux
|
||||
|
||||
The options to install udev in the rootfs instead of /usr,
|
||||
and udevadm in /sbin:
|
||||
--prefix=%{_prefix} \
|
||||
--with-rootprefix= \
|
||||
--sysconfdir=%{_sysconfdir} \
|
||||
--bindir=/sbin \
|
||||
--libdir=%{_libdir} \
|
||||
--with-rootlibdir=/lib64 \
|
||||
--libexecdir=/lib \
|
||||
--with-systemdsystemunitdir=/lib/systemd/system \
|
||||
--with-selinux
|
||||
|
||||
Some tools expect udevadm in 'sbin'. A symlink to udevadm in 'bin'
|
||||
needs to be manually created if needed.
|
||||
|
||||
The defined location for scripts and binaries which are called
|
||||
from rules is (/usr)/lib/udev/ on all systems and architectures. Any
|
||||
other location will break other packages, who rightfully expect
|
||||
the (/usr)/lib/udev/ directory, to install their rule helper and udev
|
||||
rule files.
|
||||
|
||||
Default udev rules and persistent device naming rules may be required
|
||||
by other software that depends on the data udev collects from the
|
||||
devices.
|
@ -1,712 +0,0 @@
|
||||
# Copyright (C) 2008-2012 Kay Sievers <kay.sievers@vrfy.org>
|
||||
# Copyright (C) 2009 Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
|
||||
|
||||
SUBDIRS = .
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
||||
|
||||
AM_MAKEFLAGS = --no-print-directory
|
||||
|
||||
LIBUDEV_CURRENT=13
|
||||
LIBUDEV_REVISION=2
|
||||
LIBUDEV_AGE=13
|
||||
|
||||
LIBGUDEV_CURRENT=1
|
||||
LIBGUDEV_REVISION=1
|
||||
LIBGUDEV_AGE=1
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-include $(top_builddir)/config.h \
|
||||
-I$(top_srcdir)/src \
|
||||
-DSYSCONFDIR=\""$(sysconfdir)"\" \
|
||||
-DPKGLIBEXECDIR=\""$(libexecdir)/udev"\"
|
||||
|
||||
AM_CFLAGS = \
|
||||
${my_CFLAGS} \
|
||||
-fvisibility=hidden \
|
||||
-ffunction-sections \
|
||||
-fdata-sections
|
||||
|
||||
AM_LDFLAGS = \
|
||||
-Wl,--gc-sections \
|
||||
-Wl,--as-needed
|
||||
|
||||
DISTCHECK_CONFIGURE_FLAGS = \
|
||||
--enable-debug \
|
||||
--enable-rule_generator \
|
||||
--enable-floppy \
|
||||
--with-selinux \
|
||||
--enable-gtk-doc \
|
||||
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
|
||||
|
||||
BUILT_SOURCES =
|
||||
EXTRA_DIST =
|
||||
CLEANFILES =
|
||||
INSTALL_EXEC_HOOKS =
|
||||
INSTALL_DATA_HOOKS =
|
||||
UNINSTALL_EXEC_HOOKS =
|
||||
DISTCHECK_HOOKS =
|
||||
DISTCLEAN_LOCAL_HOOKS =
|
||||
|
||||
udevhomedir = $(libexecdir)/udev
|
||||
udevhome_SCRIPTS =
|
||||
dist_udevhome_SCRIPTS =
|
||||
dist_udevhome_DATA =
|
||||
dist_man_MANS =
|
||||
|
||||
SED_PROCESS = \
|
||||
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
|
||||
-e 's,@VERSION\@,$(VERSION),g' \
|
||||
-e 's,@prefix\@,$(prefix),g' \
|
||||
-e 's,@rootprefix\@,$(rootprefix),g' \
|
||||
-e 's,@exec_prefix\@,$(exec_prefix),g' \
|
||||
-e 's,@libdir\@,$(libdir),g' \
|
||||
-e 's,@includedir\@,$(includedir),g' \
|
||||
-e 's,@bindir\@,$(bindir),g' \
|
||||
-e 's,@pkglibexecdir\@,$(libexecdir)/udev,g' \
|
||||
< $< > $@ || rm $@
|
||||
|
||||
%.pc: %.pc.in Makefile
|
||||
$(SED_PROCESS)
|
||||
|
||||
%.rules: %.rules.in Makefile
|
||||
$(SED_PROCESS)
|
||||
|
||||
%.service: %.service.in Makefile
|
||||
$(SED_PROCESS)
|
||||
|
||||
%.sh: %.sh.in Makefile
|
||||
$(SED_PROCESS)
|
||||
$(AM_V_GEN)chmod +x $@
|
||||
|
||||
%.pl: %.pl.in Makefile
|
||||
$(SED_PROCESS)
|
||||
$(AM_V_GEN)chmod +x $@
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
SUBDIRS += src/docs
|
||||
|
||||
include_HEADERS = src/libudev.h
|
||||
lib_LTLIBRARIES = libudev.la
|
||||
noinst_LTLIBRARIES = libudev-private.la
|
||||
|
||||
libudev_la_SOURCES =\
|
||||
src/libudev-private.h \
|
||||
src/libudev.c \
|
||||
src/libudev-list.c \
|
||||
src/libudev-util.c \
|
||||
src/libudev-device.c \
|
||||
src/libudev-enumerate.c \
|
||||
src/libudev-monitor.c \
|
||||
src/libudev-queue.c
|
||||
|
||||
libudev_la_LDFLAGS = \
|
||||
$(AM_LDFLAGS) \
|
||||
-version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE)
|
||||
|
||||
libudev_private_la_SOURCES =\
|
||||
$(libudev_la_SOURCES) \
|
||||
src/libudev-util-private.c \
|
||||
src/libudev-device-private.c \
|
||||
src/libudev-queue-private.c
|
||||
|
||||
if WITH_SELINUX
|
||||
libudev_private_la_SOURCES += src/libudev-selinux-private.c
|
||||
libudev_private_la_LIBADD = $(SELINUX_LIBS)
|
||||
endif
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = src/libudev.pc
|
||||
EXTRA_DIST += src/libudev.pc.in
|
||||
CLEANFILES += src/libudev.pc
|
||||
|
||||
EXTRA_DIST += src/COPYING
|
||||
# move lib from $(libdir) to $(rootlib_execdir) and update devel link, if needed
|
||||
libudev-install-move-hook:
|
||||
if test "$(libdir)" != "$(rootlib_execdir)"; then \
|
||||
mkdir -p $(DESTDIR)$(rootlib_execdir) && \
|
||||
so_img_name=$$(readlink $(DESTDIR)$(libdir)/libudev.so) && \
|
||||
so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
|
||||
ln -sf $$so_img_rel_target_prefix$(rootlib_execdir)/$$so_img_name $(DESTDIR)$(libdir)/libudev.so && \
|
||||
mv $(DESTDIR)$(libdir)/libudev.so.* $(DESTDIR)$(rootlib_execdir); \
|
||||
fi
|
||||
|
||||
libudev-uninstall-move-hook:
|
||||
rm -f $(DESTDIR)$(rootlib_execdir)/libudev.so*
|
||||
|
||||
INSTALL_EXEC_HOOKS += libudev-install-move-hook
|
||||
UNINSTALL_EXEC_HOOKS += libudev-uninstall-move-hook
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
udev-confdirs:
|
||||
-mkdir -p $(DESTDIR)$(sysconfdir)/udev/rules.d
|
||||
-mkdir -p $(DESTDIR)$(libexecdir)/udev/devices
|
||||
|
||||
INSTALL_DATA_HOOKS += udev-confdirs
|
||||
|
||||
udevrulesdir = $(libexecdir)/udev/rules.d
|
||||
dist_udevrules_DATA = \
|
||||
rules/42-usb-hid-pm.rules \
|
||||
rules/50-udev-default.rules \
|
||||
rules/60-persistent-storage-tape.rules \
|
||||
rules/60-persistent-serial.rules \
|
||||
rules/60-persistent-input.rules \
|
||||
rules/60-persistent-alsa.rules \
|
||||
rules/60-persistent-storage.rules \
|
||||
rules/75-net-description.rules \
|
||||
rules/75-tty-description.rules \
|
||||
rules/78-sound-card.rules \
|
||||
rules/80-drivers.rules \
|
||||
rules/95-udev-late.rules
|
||||
|
||||
udevconfdir = $(sysconfdir)/udev
|
||||
dist_udevconf_DATA = src/udev.conf
|
||||
|
||||
sharepkgconfigdir = $(datadir)/pkgconfig
|
||||
sharepkgconfig_DATA = src/udev.pc
|
||||
EXTRA_DIST += src/udev.pc.in
|
||||
CLEANFILES += src/udev.pc
|
||||
|
||||
if WITH_SYSTEMD
|
||||
dist_systemdsystemunit_DATA = \
|
||||
src/udev-control.socket \
|
||||
src/udev-kernel.socket
|
||||
|
||||
systemdsystemunit_DATA = \
|
||||
src/udev.service \
|
||||
src/udev-trigger.service \
|
||||
src/udev-settle.service
|
||||
|
||||
EXTRA_DIST += \
|
||||
src/udev.service.in \
|
||||
src/udev-trigger.service.in \
|
||||
src/udev-settle.service.in
|
||||
|
||||
CLEANFILES += \
|
||||
src/udev.service \
|
||||
src/udev-trigger.service \
|
||||
src/udev-settle.service
|
||||
|
||||
systemd-install-hook:
|
||||
mkdir -p $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants
|
||||
ln -sf ../udev-control.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/udev-control.socket
|
||||
ln -sf ../udev-kernel.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/udev-kernel.socket
|
||||
mkdir -p $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants
|
||||
ln -sf ../udev.service $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants/udev.service
|
||||
ln -sf ../udev-trigger.service $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants/udev-trigger.service
|
||||
|
||||
INSTALL_DATA_HOOKS += systemd-install-hook
|
||||
endif
|
||||
|
||||
bin_PROGRAMS = \
|
||||
udevadm
|
||||
|
||||
pkglibexec_PROGRAMS = \
|
||||
udevd
|
||||
|
||||
udev_common_sources = \
|
||||
src/udev.h \
|
||||
src/udev-event.c \
|
||||
src/udev-watch.c \
|
||||
src/udev-node.c \
|
||||
src/udev-rules.c \
|
||||
src/udev-ctrl.c \
|
||||
src/udev-builtin.c \
|
||||
src/udev-builtin-blkid.c \
|
||||
src/udev-builtin-firmware.c \
|
||||
src/udev-builtin-hwdb.c \
|
||||
src/udev-builtin-input_id.c \
|
||||
src/udev-builtin-kmod.c \
|
||||
src/udev-builtin-path_id.c \
|
||||
src/udev-builtin-usb_id.c
|
||||
|
||||
udev_common_CFLAGS = \
|
||||
$(BLKID_CFLAGS) \
|
||||
$(KMOD_CFLAGS)
|
||||
|
||||
udev_common_LDADD = \
|
||||
libudev-private.la \
|
||||
$(BLKID_LIBS) \
|
||||
$(KMOD_LIBS)
|
||||
|
||||
udev_common_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) \
|
||||
-DFIRMWARE_PATH="$(FIRMWARE_PATH)" \
|
||||
-DUSB_DATABASE=\"$(USB_DATABASE)\" -DPCI_DATABASE=\"$(PCI_DATABASE)\"
|
||||
|
||||
udevd_SOURCES = \
|
||||
$(udev_common_sources) \
|
||||
src/udevd.c \
|
||||
src/sd-daemon.h \
|
||||
src/sd-daemon.c
|
||||
udevd_CFLAGS = $(udev_common_CFLAGS)
|
||||
udevd_LDADD = $(udev_common_LDADD)
|
||||
udevd_CPPFLAGS = $(udev_common_CPPFLAGS)
|
||||
|
||||
udevadm_SOURCES = \
|
||||
$(udev_common_sources) \
|
||||
src/udevadm.c \
|
||||
src/udevadm-info.c \
|
||||
src/udevadm-control.c \
|
||||
src/udevadm-monitor.c \
|
||||
src/udevadm-settle.c \
|
||||
src/udevadm-trigger.c \
|
||||
src/udevadm-test.c \
|
||||
src/udevadm-test-builtin.c
|
||||
udevadm_CFLAGS = $(udev_common_CFLAGS)
|
||||
udevadm_LDADD = $(udev_common_LDADD)
|
||||
udevadm_CPPFLAGS = $(udev_common_CPPFLAGS)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
if ENABLE_MANPAGES
|
||||
dist_man_MANS += \
|
||||
src/udev.7 \
|
||||
src/udevadm.8 \
|
||||
src/udevd.8
|
||||
endif
|
||||
|
||||
EXTRA_DIST += \
|
||||
src/udev.xml \
|
||||
src/udevadm.xml \
|
||||
src/udevd.xml
|
||||
|
||||
if HAVE_XSLTPROC
|
||||
dist_noinst_DATA = \
|
||||
src/udev.html \
|
||||
src/udevadm.html \
|
||||
src/udevd.html
|
||||
|
||||
src/%.7 src/%.8 : src/%.xml
|
||||
$(AM_V_GEN)$(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
||||
|
||||
src/%.html : src/%.xml
|
||||
$(AM_V_GEN)$(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
|
||||
endif
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
TESTS = \
|
||||
test/udev-test.pl \
|
||||
test/rules-test.sh
|
||||
|
||||
check_PROGRAMS = \
|
||||
test-libudev \
|
||||
test-udev
|
||||
|
||||
test_libudev_SOURCES = src/test-libudev.c
|
||||
test_libudev_LDADD = libudev.la
|
||||
|
||||
test_udev_SOURCES = \
|
||||
$(udev_common_sources) \
|
||||
src/test-udev.c
|
||||
test_udev_CFLAGS = $(udev_common_CFLAGS)
|
||||
test_udev_LDADD = $(udev_common_LDADD)
|
||||
test_udev_CPPFLAGS = $(udev_common_CPPFLAGS)
|
||||
test_udev_DEPENDENCIES = test/sys
|
||||
|
||||
# packed sysfs test tree
|
||||
test/sys:
|
||||
$(AM_V_GEN)mkdir -p test && tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
|
||||
|
||||
test-sys-distclean:
|
||||
-rm -rf test/sys
|
||||
DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
|
||||
|
||||
EXTRA_DIST += test/sys.tar.xz
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
ata_id_SOURCES = src/ata_id/ata_id.c
|
||||
ata_id_LDADD = libudev-private.la
|
||||
pkglibexec_PROGRAMS += ata_id
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
cdrom_id_SOURCES = src/cdrom_id/cdrom_id.c
|
||||
cdrom_id_LDADD = libudev-private.la
|
||||
pkglibexec_PROGRAMS += cdrom_id
|
||||
dist_udevrules_DATA += src/cdrom_id/60-cdrom_id.rules
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
collect_SOURCES = src/collect/collect.c
|
||||
collect_LDADD = libudev-private.la
|
||||
pkglibexec_PROGRAMS += collect
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
scsi_id_SOURCES =\
|
||||
src/scsi_id/scsi_id.c \
|
||||
src/scsi_id/scsi_serial.c \
|
||||
src/scsi_id/scsi.h \
|
||||
src/scsi_id/scsi_id.h
|
||||
scsi_id_LDADD = libudev-private.la
|
||||
pkglibexec_PROGRAMS += scsi_id
|
||||
dist_man_MANS += src/scsi_id/scsi_id.8
|
||||
EXTRA_DIST += src/scsi_id/README
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
v4l_id_SOURCES = src/v4l_id/v4l_id.c
|
||||
v4l_id_LDADD = libudev-private.la
|
||||
pkglibexec_PROGRAMS += v4l_id
|
||||
dist_udevrules_DATA += src/v4l_id/60-persistent-v4l.rules
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
accelerometer_SOURCES = src/accelerometer/accelerometer.c
|
||||
accelerometer_LDADD = libudev-private.la -lm
|
||||
pkglibexec_PROGRAMS += accelerometer
|
||||
dist_udevrules_DATA += src/accelerometer/61-accelerometer.rules
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
if ENABLE_GUDEV
|
||||
SUBDIRS += src/gudev/docs
|
||||
|
||||
libgudev_includedir=$(includedir)/gudev-1.0/gudev
|
||||
libgudev_include_HEADERS = \
|
||||
src/gudev/gudev.h \
|
||||
src/gudev/gudevenums.h \
|
||||
src/gudev/gudevenumtypes.h \
|
||||
src/gudev/gudevtypes.h \
|
||||
src/gudev/gudevclient.h \
|
||||
src/gudev/gudevdevice.h \
|
||||
src/gudev/gudevenumerator.h
|
||||
|
||||
lib_LTLIBRARIES += libgudev-1.0.la
|
||||
|
||||
pkgconfig_DATA += src/gudev/gudev-1.0.pc
|
||||
EXTRA_DIST += src/gudev/gudev-1.0.pc.in
|
||||
CLEANFILES += src/gudev/gudev-1.0.pc
|
||||
|
||||
libgudev_1_0_la_SOURCES = \
|
||||
src/gudev/gudevenums.h \
|
||||
src/gudev/gudevenumtypes.h \
|
||||
src/gudev/gudevenumtypes.h\
|
||||
src/gudev/gudevtypes.h \
|
||||
src/gudev/gudevclient.h \
|
||||
src/gudev/gudevclient.c \
|
||||
src/gudev/gudevdevice.h \
|
||||
src/gudev/gudevdevice.c \
|
||||
src/gudev/gudevenumerator.h \
|
||||
src/gudev/gudevenumerator.c \
|
||||
src/gudev/gudevprivate.h
|
||||
|
||||
nodist_libgudev_1_0_la_SOURCES = \
|
||||
src/gudev/gudevmarshal.h \
|
||||
src/gudev/gudevmarshal.c \
|
||||
src/gudev/gudevenumtypes.h \
|
||||
src/gudev/gudevenumtypes.c
|
||||
BUILT_SOURCES += $(nodist_libgudev_1_0_la_SOURCES)
|
||||
|
||||
libgudev_1_0_la_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) \
|
||||
-I$(top_builddir)/src\
|
||||
-I$(top_srcdir)/src\
|
||||
-I$(top_builddir)/src/gudev \
|
||||
-I$(top_srcdir)/src/gudev \
|
||||
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
|
||||
-D_GUDEV_COMPILATION \
|
||||
-DG_LOG_DOMAIN=\"GUdev\"
|
||||
|
||||
libgudev_1_0_la_CFLAGS = \
|
||||
-fvisibility=default \
|
||||
$(GLIB_CFLAGS)
|
||||
|
||||
libgudev_1_0_la_LIBADD = libudev.la $(GLIB_LIBS)
|
||||
|
||||
libgudev_1_0_la_LDFLAGS = \
|
||||
-version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
|
||||
-export-dynamic -no-undefined \
|
||||
-export-symbols-regex '^g_udev_.*'
|
||||
|
||||
EXTRA_DIST += \
|
||||
src/gudev/COPYING \
|
||||
src/gudev/gudevmarshal.list \
|
||||
src/gudev/gudevenumtypes.h.template \
|
||||
src/gudev/gudevenumtypes.c.template \
|
||||
src/gudev/gjs-example.js \
|
||||
src/gudev/seed-example-enum.js \
|
||||
src/gudev/seed-example.js
|
||||
|
||||
src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
|
||||
$(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
|
||||
|
||||
src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
|
||||
$(AM_V_GEN)echo "#include \"gudevmarshal.h\"" > $@ && \
|
||||
glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
|
||||
|
||||
src/gudev/gudevenumtypes.h: src/gudev/gudevenumtypes.h.template src/gudev/gudevenums.h
|
||||
$(AM_V_GEN)glib-mkenums --template $^ > \
|
||||
$@.tmp && mv $@.tmp $@
|
||||
|
||||
src/gudev/gudevenumtypes.c: src/gudev/gudevenumtypes.c.template src/gudev/gudevenums.h
|
||||
$(AM_V_GEN)glib-mkenums --template $^ > \
|
||||
$@.tmp && mv $@.tmp $@
|
||||
|
||||
if ENABLE_INTROSPECTION
|
||||
src/gudev/GUdev-1.0.gir: libgudev-1.0.la $(G_IR_SCANNER)
|
||||
$(AM_V_GEN)$(G_IR_SCANNER) -v \
|
||||
--warn-all \
|
||||
--namespace GUdev \
|
||||
--nsversion=1.0 \
|
||||
--include=GObject-2.0 \
|
||||
--library=gudev-1.0 \
|
||||
--library-path=$(top_builddir)/src \
|
||||
--library-path=$(top_builddir)/src/gudev \
|
||||
--output $@ \
|
||||
--pkg=glib-2.0 \
|
||||
--pkg=gobject-2.0 \
|
||||
--pkg-export=gudev-1.0 \
|
||||
--c-include=gudev/gudev.h \
|
||||
-I$(top_srcdir)/src/\
|
||||
-I$(top_builddir)/src/\
|
||||
-D_GUDEV_COMPILATION \
|
||||
-D_GUDEV_WORK_AROUND_DEV_T_BUG \
|
||||
$(top_srcdir)/src/gudev/gudev.h \
|
||||
$(top_srcdir)/src/gudev/gudevtypes.h \
|
||||
$(top_srcdir)/src/gudev/gudevenums.h \
|
||||
$(or $(wildcard $(top_builddir)/src/gudev/gudevenumtypes.h),$(top_srcdir)/src/gudev/gudevenumtypes.h) \
|
||||
$(top_srcdir)/src/gudev/gudevclient.h \
|
||||
$(top_srcdir)/src/gudev/gudevdevice.h \
|
||||
$(top_srcdir)/src/gudev/gudevenumerator.h \
|
||||
$(top_srcdir)/src/gudev/gudevclient.c \
|
||||
$(top_srcdir)/src/gudev/gudevdevice.c \
|
||||
$(top_srcdir)/src/gudev/gudevenumerator.c
|
||||
|
||||
src/gudev/GUdev-1.0.typelib: src/gudev/GUdev-1.0.gir $(G_IR_COMPILER)
|
||||
$(AM_V_GEN)g-ir-compiler $< -o $@
|
||||
|
||||
girdir = $(GIRDIR)
|
||||
gir_DATA = src/gudev/GUdev-1.0.gir
|
||||
|
||||
typelibsdir = $(GIRTYPELIBDIR)
|
||||
typelibs_DATA = src/gudev/GUdev-1.0.typelib
|
||||
|
||||
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
|
||||
endif # ENABLE_INTROSPECTION
|
||||
|
||||
# move lib from $(libdir) to $(rootlib_execdir) and update devel link, if needed
|
||||
libgudev-install-move-hook:
|
||||
if test "$(libdir)" != "$(rootlib_execdir)"; then \
|
||||
mkdir -p $(DESTDIR)$(rootlib_execdir) && \
|
||||
so_img_name=$$(readlink $(DESTDIR)$(libdir)/libgudev-1.0.so) && \
|
||||
so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
|
||||
ln -sf $$so_img_rel_target_prefix$(rootlib_execdir)/$$so_img_name $(DESTDIR)$(libdir)/libgudev-1.0.so && \
|
||||
mv $(DESTDIR)$(libdir)/libgudev-1.0.so.* $(DESTDIR)$(rootlib_execdir); \
|
||||
fi
|
||||
|
||||
libgudev-uninstall-move-hook:
|
||||
rm -f $(DESTDIR)$(rootlib_execdir)/libgudev-1.0.so*
|
||||
|
||||
INSTALL_EXEC_HOOKS += libgudev-install-move-hook
|
||||
UNINSTALL_EXEC_HOOKS += libgudev-uninstall-move-hook
|
||||
endif
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
if ENABLE_KEYMAP
|
||||
keymap_SOURCES = src/keymap/keymap.c
|
||||
keymap_CPPFLAGS = $(AM_CPPFLAGS) -I src/keymap
|
||||
nodist_keymap_SOURCES = \
|
||||
src/keymap/keys-from-name.h \
|
||||
src/keymap/keys-to-name.h
|
||||
BUILT_SOURCES += $(nodist_keymap_SOURCES)
|
||||
|
||||
pkglibexec_PROGRAMS += keymap
|
||||
dist_doc_DATA = src/keymap/README.keymap.txt
|
||||
|
||||
dist_udevrules_DATA += \
|
||||
src/keymap/95-keymap.rules \
|
||||
src/keymap/95-keyboard-force-release.rules
|
||||
|
||||
dist_udevhome_SCRIPTS += src/keymap/findkeyboards
|
||||
udevhome_SCRIPTS += src/keymap/keyboard-force-release.sh
|
||||
|
||||
EXTRA_DIST += \
|
||||
src/keymap/check-keymaps.sh \
|
||||
src/keymap/keyboard-force-release.sh.in
|
||||
|
||||
CLEANFILES += \
|
||||
src/keymap/keys.txt \
|
||||
src/keymap/keys-from-name.gperf \
|
||||
src/keymap/keyboard-force-release.sh
|
||||
|
||||
udevkeymapdir = $(libexecdir)/udev/keymaps
|
||||
dist_udevkeymap_DATA = \
|
||||
src/keymap/keymaps/acer \
|
||||
src/keymap/keymaps/acer-aspire_5720 \
|
||||
src/keymap/keymaps/acer-aspire_8930 \
|
||||
src/keymap/keymaps/acer-aspire_5920g \
|
||||
src/keymap/keymaps/acer-aspire_6920 \
|
||||
src/keymap/keymaps/acer-travelmate_c300 \
|
||||
src/keymap/keymaps/asus \
|
||||
src/keymap/keymaps/compaq-e_evo \
|
||||
src/keymap/keymaps/dell \
|
||||
src/keymap/keymaps/dell-latitude-xt2 \
|
||||
src/keymap/keymaps/everex-xt5000 \
|
||||
src/keymap/keymaps/fujitsu-amilo_li_2732 \
|
||||
src/keymap/keymaps/fujitsu-amilo_pa_2548 \
|
||||
src/keymap/keymaps/fujitsu-amilo_pro_edition_v3505 \
|
||||
src/keymap/keymaps/fujitsu-amilo_pro_v3205 \
|
||||
src/keymap/keymaps/fujitsu-amilo_si_1520 \
|
||||
src/keymap/keymaps/fujitsu-esprimo_mobile_v5 \
|
||||
src/keymap/keymaps/fujitsu-esprimo_mobile_v6 \
|
||||
src/keymap/keymaps/genius-slimstar-320 \
|
||||
src/keymap/keymaps/hewlett-packard \
|
||||
src/keymap/keymaps/hewlett-packard-2510p_2530p \
|
||||
src/keymap/keymaps/hewlett-packard-compaq_elitebook \
|
||||
src/keymap/keymaps/hewlett-packard-pavilion \
|
||||
src/keymap/keymaps/hewlett-packard-presario-2100 \
|
||||
src/keymap/keymaps/hewlett-packard-tablet \
|
||||
src/keymap/keymaps/hewlett-packard-tx2 \
|
||||
src/keymap/keymaps/ibm-thinkpad-usb-keyboard-trackpoint \
|
||||
src/keymap/keymaps/inventec-symphony_6.0_7.0 \
|
||||
src/keymap/keymaps/lenovo-3000 \
|
||||
src/keymap/keymaps/lenovo-ideapad \
|
||||
src/keymap/keymaps/lenovo-thinkpad-usb-keyboard-trackpoint \
|
||||
src/keymap/keymaps/lenovo-thinkpad_x6_tablet \
|
||||
src/keymap/keymaps/lenovo-thinkpad_x200_tablet \
|
||||
src/keymap/keymaps/lg-x110 \
|
||||
src/keymap/keymaps/logitech-wave \
|
||||
src/keymap/keymaps/logitech-wave-cordless \
|
||||
src/keymap/keymaps/logitech-wave-pro-cordless \
|
||||
src/keymap/keymaps/maxdata-pro_7000 \
|
||||
src/keymap/keymaps/medion-fid2060 \
|
||||
src/keymap/keymaps/medionnb-a555 \
|
||||
src/keymap/keymaps/micro-star \
|
||||
src/keymap/keymaps/module-asus-w3j \
|
||||
src/keymap/keymaps/module-ibm \
|
||||
src/keymap/keymaps/module-lenovo \
|
||||
src/keymap/keymaps/module-sony \
|
||||
src/keymap/keymaps/module-sony-old \
|
||||
src/keymap/keymaps/module-sony-vgn \
|
||||
src/keymap/keymaps/olpc-xo \
|
||||
src/keymap/keymaps/onkyo \
|
||||
src/keymap/keymaps/oqo-model2 \
|
||||
src/keymap/keymaps/samsung-other \
|
||||
src/keymap/keymaps/samsung-90x3a \
|
||||
src/keymap/keymaps/samsung-sq1us \
|
||||
src/keymap/keymaps/samsung-sx20s \
|
||||
src/keymap/keymaps/toshiba-satellite_a100 \
|
||||
src/keymap/keymaps/toshiba-satellite_a110 \
|
||||
src/keymap/keymaps/toshiba-satellite_m30x \
|
||||
src/keymap/keymaps/zepto-znote
|
||||
|
||||
udevkeymapforcereldir = $(libexecdir)/udev/keymaps/force-release
|
||||
dist_udevkeymapforcerel_DATA = \
|
||||
src/keymap/force-release-maps/dell-touchpad \
|
||||
src/keymap/force-release-maps/hp-other \
|
||||
src/keymap/force-release-maps/samsung-other \
|
||||
src/keymap/force-release-maps/samsung-90x3a \
|
||||
src/keymap/force-release-maps/common-volume-keys
|
||||
|
||||
src/keymap/keys.txt: $(INCLUDE_PREFIX)/linux/input.h
|
||||
$(AM_V_at)mkdir -p src/keymap
|
||||
$(AM_V_GEN)$(AWK) '/^#define.*KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' < $< | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
|
||||
|
||||
src/keymap/keys-from-name.gperf: src/keymap/keys.txt
|
||||
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
|
||||
|
||||
src/keymap/keys-from-name.h: src/keymap/keys-from-name.gperf Makefile
|
||||
$(AM_V_GEN)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
|
||||
|
||||
src/keymap/keys-to-name.h: src/keymap/keys.txt Makefile
|
||||
$(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
|
||||
|
||||
keymaps-distcheck-hook: src/keymap/keys.txt
|
||||
$(top_srcdir)/src/keymap/check-keymaps.sh $(top_srcdir) $^
|
||||
DISTCHECK_HOOKS += keymaps-distcheck-hook
|
||||
endif
|
||||
|
||||
if ENABLE_MTD_PROBE
|
||||
# ------------------------------------------------------------------------------
|
||||
mtd_probe_SOURCES = \
|
||||
src/mtd_probe/mtd_probe.c \
|
||||
src/mtd_probe/mtd_probe.h \
|
||||
src/mtd_probe/probe_smartmedia.c
|
||||
mtd_probe_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
dist_udevrules_DATA += src/mtd_probe/75-probe_mtd.rules
|
||||
pkglibexec_PROGRAMS += mtd_probe
|
||||
endif
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
if ENABLE_RULE_GENERATOR
|
||||
dist_udevhome_SCRIPTS += \
|
||||
src/rule_generator/write_cd_rules \
|
||||
src/rule_generator/write_net_rules
|
||||
|
||||
dist_udevhome_DATA += \
|
||||
src/rule_generator/rule_generator.functions
|
||||
|
||||
dist_udevrules_DATA += \
|
||||
src/rule_generator/75-cd-aliases-generator.rules \
|
||||
src/rule_generator/75-persistent-net-generator.rules
|
||||
endif
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
if ENABLE_FLOPPY
|
||||
create_floppy_devices_SOURCES = src/floppy/create_floppy_devices.c
|
||||
create_floppy_devices_LDADD = libudev-private.la
|
||||
pkglibexec_PROGRAMS += create_floppy_devices
|
||||
dist_udevrules_DATA += src/floppy/60-floppy.rules
|
||||
endif
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
clean-local:
|
||||
rm -rf udev-test-install
|
||||
|
||||
distclean-local:
|
||||
rm -rf autom4te.cache
|
||||
|
||||
EXTRA_DIST += \
|
||||
$(TESTS) \
|
||||
test/rule-syntax-check.py
|
||||
|
||||
CLEANFILES += \
|
||||
$(BUILT_SOURCES)
|
||||
|
||||
install-exec-hook: $(INSTALL_EXEC_HOOKS)
|
||||
|
||||
install-data-hook: $(INSTALL_DATA_HOOKS)
|
||||
|
||||
uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
|
||||
|
||||
distcheck-hook: $(DISTCHECK_HOOKS)
|
||||
|
||||
distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
PREVIOUS_VERSION = `expr $(VERSION) - 1`
|
||||
changelog:
|
||||
@ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)"
|
||||
@ mv ChangeLog ChangeLog.tmp
|
||||
@ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
|
||||
@ echo "============================================" >> ChangeLog
|
||||
@ echo >> ChangeLog
|
||||
@ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog >> ChangeLog
|
||||
@ echo >> ChangeLog
|
||||
@ cat ChangeLog
|
||||
@ cat ChangeLog.tmp >> ChangeLog
|
||||
@ rm ChangeLog.tmp
|
||||
|
||||
test-install:
|
||||
rm -rf $(PWD)/udev-test-install/
|
||||
make DESTDIR=$(PWD)/udev-test-install install
|
||||
tree $(PWD)/udev-test-install/
|
||||
|
||||
git-release:
|
||||
head -1 ChangeLog | grep -q "to v$(VERSION)"
|
||||
head -1 NEWS | grep -q "udev $(VERSION)"
|
||||
git commit -a -m "release $(VERSION)"
|
||||
git tag -m "udev $(VERSION)" -s $(VERSION)
|
||||
git gc --prune=0
|
||||
|
||||
git-sync:
|
||||
git push
|
||||
git push --tags
|
||||
|
||||
tar-sync:
|
||||
rm -f udev-$(VERSION).tar.sign
|
||||
xz -d -c udev-$(VERSION).tar.xz | gpg --armor --detach-sign --output udev-$(VERSION).tar.sign
|
||||
kup put udev-$(VERSION).tar.xz udev-$(VERSION).tar.sign /pub/linux/utils/kernel/hotplug/
|
||||
|
||||
doc-sync:
|
||||
for i in src/*.html; do rm -f $$i.sign; gpg --armor --detach-sign --output=$$i.sign $$i; done
|
||||
for i in src/*.html; do echo $$i; kup put $$i $$i.sign /pub/linux/utils/kernel/hotplug/udev/; done
|
||||
for i in src/docs/html/*.{html,css,png}; do rm -f $$i.sign; gpg --armor --detach-sign --output=$$i.sign $$i; done
|
||||
for i in src/docs/html/*.{html,css,png}; do echo $$i; kup put $$i $$i.sign /pub/linux/utils/kernel/hotplug/libudev/; done
|
||||
for i in src/gudev/docs/html/*.{html,css,png}; do rm -f $$i.sign; gpg --armor --detach-sign --output=$$i.sign $$i; done
|
||||
for i in src/gudev/docs/html/*.{html,css,png}; do echo $$i; kup put $$i $$i.sign /pub/linux/utils/kernel/hotplug/gudev/; done
|
1735
src/udev/NEWS
1735
src/udev/NEWS
File diff suppressed because it is too large
Load Diff
101
src/udev/README
101
src/udev/README
@ -1,101 +0,0 @@
|
||||
udev - Linux userspace device management
|
||||
|
||||
Integrating udev in the system has complex dependencies and may differ from
|
||||
distribution to distribution. A system may not be able to boot up or work
|
||||
reliably without a properly installed udev version. The upstream udev project
|
||||
does not recommend replacing a distro's udev installation with the upstream
|
||||
version.
|
||||
|
||||
The upstream udev project's set of default rules may require a most recent
|
||||
kernel release to work properly.
|
||||
|
||||
Tools and rules shipped by udev are not public API and may change at any time.
|
||||
Never call any private tool in /usr/lib/udev from any external application; it
|
||||
might just go away in the next release. Access to udev information is only offered
|
||||
by udevadm and libudev. Tools and rules in /usr/lib/udev and the entire contents
|
||||
of the /run/udev directory are private to udev and do change whenever needed.
|
||||
|
||||
Requirements:
|
||||
- Version 2.6.34 of the Linux kernel with sysfs, procfs, signalfd, inotify,
|
||||
unix domain sockets, networking and hotplug enabled
|
||||
|
||||
- Some architectures might need a later kernel, that supports accept4(),
|
||||
or need to backport the accept4() syscall wiring in the kernel.
|
||||
|
||||
- These options are required:
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_HOTPLUG=y
|
||||
CONFIG_INOTIFY_USER=y
|
||||
CONFIG_NET=y
|
||||
CONFIG_PROC_FS=y
|
||||
CONFIG_SIGNALFD=y
|
||||
CONFIG_SYSFS=y
|
||||
CONFIG_SYSFS_DEPRECATED*=n
|
||||
CONFIG_UEVENT_HELPER_PATH=""
|
||||
|
||||
- These options might be needed:
|
||||
CONFIG_BLK_DEV_BSG=y (SCSI devices)
|
||||
CONFIG_TMPFS_POSIX_ACL=y (user ACLs for device nodes)
|
||||
|
||||
- The /dev directory needs the 'devtmpfs' filesystem mounted.
|
||||
Udev only manages the permissions and ownership of the
|
||||
kernel-provided device nodes, and possibly creates additional symlinks.
|
||||
|
||||
- Udev requires /run to be writable, which is usually done by mounting a
|
||||
'tmpfs' filesystem.
|
||||
|
||||
- This version of udev does not work properly with the CONFIG_SYSFS_DEPRECATED*
|
||||
option enabled.
|
||||
|
||||
- The deprecated hotplug helper /sbin/hotplug should be disabled in the
|
||||
kernel configuration, it is not needed today, and may render the system
|
||||
unusable because the kernel may create too many processes in parallel
|
||||
so that the system runs out-of-memory.
|
||||
|
||||
- The proc filesystem must be mounted on /proc, and the sysfs filesystem must
|
||||
be mounted at /sys. No other locations are supported by a standard
|
||||
udev installation.
|
||||
|
||||
- The default rule sset requires the following group names resolvable at udev startup:
|
||||
disk, cdrom, floppy, tape, audio, video, lp, tty, dialout, and kmem.
|
||||
Especially in LDAP setups, it is required that getgrnam() be able to resolve
|
||||
these group names with only the rootfs mounted and while no network is
|
||||
available.
|
||||
|
||||
- Some udev extras have external dependencies like:
|
||||
libglib2, usbutils, pciutils, and gperf.
|
||||
All these extras can be disabled with configure options.
|
||||
|
||||
Setup:
|
||||
- The udev daemon should be started to handle device events sent by the kernel.
|
||||
During bootup, the events for already existing devices can be replayed, so
|
||||
that they are configured by udev. The systemd service files contain the
|
||||
needed commands to start the udev daemon and the coldplug sequence.
|
||||
|
||||
- Restarting the daemon never applies any rules to existing devices.
|
||||
|
||||
- New/changed rule files are picked up automatically; there is usually no
|
||||
daemon restart or signal needed.
|
||||
|
||||
Operation:
|
||||
- Based on events the kernel sends out on device creation/removal, udev
|
||||
creates/removes device nodes and symlinks in the /dev directory.
|
||||
|
||||
- All kernel events are matched against a set of specified rules, which
|
||||
possibly hook into the event processing and load required kernel
|
||||
modules to set up devices. For all devices, the kernel exports a major/minor
|
||||
number; if needed, udev creates a device node with the default kernel
|
||||
device name. If specified, udev applies permissions/ownership to the device
|
||||
node, creates additional symlinks pointing to the node, and executes
|
||||
programs to handle the device.
|
||||
|
||||
- The events udev handles, and the information udev merges into its device
|
||||
database, can be accessed with libudev:
|
||||
http://www.kernel.org/pub/linux/utils/kernel/hotplug/libudev/
|
||||
http://www.kernel.org/pub/linux/utils/kernel/hotplug/gudev/
|
||||
|
||||
For more details about udev and udev rules, see the udev man pages:
|
||||
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/
|
||||
|
||||
Please direct any comment/question to the linux-hotplug mailing list at:
|
||||
linux-hotplug@vger.kernel.org
|
@ -1,22 +0,0 @@
|
||||
- find a way to tell udev to not cancel firmware
|
||||
requests in initramfs
|
||||
|
||||
- scsi_id -> sg3_utils?
|
||||
|
||||
- make gtk-doc optional like kmod
|
||||
|
||||
- move /usr/lib/udev/devices/ to tmpfiles
|
||||
|
||||
- trigger --subsystem-match=usb/usb_device
|
||||
|
||||
- kill rules_generator
|
||||
|
||||
- have a $attrs{} ?
|
||||
|
||||
- remove RUN+="socket:"
|
||||
|
||||
- libudev.so.1
|
||||
- symbol versioning
|
||||
- return object with *_unref()
|
||||
- udev_monitor_from_socket()
|
||||
- udev_queue_get_failed_list_entry()
|
@ -1,44 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
|
||||
cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
|
||||
chmod +x .git/hooks/pre-commit && \
|
||||
echo "Activated pre-commit hook."
|
||||
fi
|
||||
|
||||
gtkdocize
|
||||
autoreconf --install --symlink
|
||||
|
||||
libdir() {
|
||||
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
|
||||
}
|
||||
|
||||
args="$args \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--libdir=$(libdir /usr/lib) \
|
||||
--with-selinux \
|
||||
--enable-gtk-doc"
|
||||
|
||||
if [ -L /bin ]; then
|
||||
args="$args \
|
||||
--libexecdir=/usr/lib \
|
||||
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
||||
"
|
||||
else
|
||||
args="$args \
|
||||
--with-rootprefix= \
|
||||
---with-rootlibdir=$(libdir /lib) \
|
||||
--bindir=/sbin \
|
||||
--libexecdir=/lib \
|
||||
--with-systemdsystemunitdir=/lib/systemd/system \
|
||||
"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "----------------------------------------------------------------"
|
||||
echo "Initialized build system. For a common configuration please run:"
|
||||
echo "----------------------------------------------------------------"
|
||||
echo
|
||||
echo "./configure CFLAGS='-g -O1' $args"
|
||||
echo
|
@ -1,242 +0,0 @@
|
||||
AC_PREREQ(2.60)
|
||||
AC_INIT([udev],
|
||||
[182],
|
||||
[linux-hotplug@vger.kernel.org],
|
||||
[udev],
|
||||
[http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html])
|
||||
AC_CONFIG_SRCDIR([src/udevd.c])
|
||||
AC_CONFIG_AUX_DIR([build-aux])
|
||||
AM_INIT_AUTOMAKE([check-news foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects])
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
AC_SYS_LARGEFILE
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AM_SILENT_RULES([yes])
|
||||
LT_INIT([disable-static])
|
||||
AC_PROG_AWK
|
||||
AC_PROG_SED
|
||||
AC_PROG_MKDIR_P
|
||||
GTK_DOC_CHECK(1.10)
|
||||
AC_PREFIX_DEFAULT([/usr])
|
||||
|
||||
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
||||
AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
|
||||
|
||||
AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([POSIX RT library not found])])
|
||||
|
||||
PKG_CHECK_MODULES(BLKID, blkid >= 2.20)
|
||||
|
||||
PKG_CHECK_MODULES(KMOD, libkmod >= 5)
|
||||
|
||||
AC_ARG_WITH([rootprefix],
|
||||
AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
|
||||
[], [with_rootprefix=${ac_default_prefix}])
|
||||
AC_SUBST([rootprefix], [$with_rootprefix])
|
||||
|
||||
AC_ARG_WITH([rootlibdir],
|
||||
AS_HELP_STRING([--with-rootlibdir=DIR], [rootfs directory to install shared libraries]),
|
||||
[], [with_rootlibdir=$libdir])
|
||||
AC_SUBST([rootlib_execdir], [$with_rootlibdir])
|
||||
|
||||
AC_ARG_WITH([selinux],
|
||||
AS_HELP_STRING([--with-selinux], [enable SELinux support]),
|
||||
[], [with_selinux=no])
|
||||
AS_IF([test "x$with_selinux" = "xyes"], [
|
||||
LIBS_save=$LIBS
|
||||
AC_CHECK_LIB(selinux, getprevcon,
|
||||
[],
|
||||
AC_MSG_ERROR([SELinux selected but libselinux not found]))
|
||||
LIBS=$LIBS_save
|
||||
SELINUX_LIBS="-lselinux -lsepol"
|
||||
AC_DEFINE(WITH_SELINUX, [1] ,[SELinux support.])
|
||||
])
|
||||
AC_SUBST([SELINUX_LIBS])
|
||||
AM_CONDITIONAL(WITH_SELINUX, [test "x$with_selinux" = "xyes"])
|
||||
|
||||
AC_ARG_ENABLE([debug],
|
||||
AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
|
||||
[], [enable_debug=no])
|
||||
AS_IF([test "x$enable_debug" = "xyes"], [ AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.]) ])
|
||||
|
||||
AC_ARG_ENABLE([logging],
|
||||
AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),
|
||||
[], enable_logging=yes)
|
||||
AS_IF([test "x$enable_logging" = "xyes"], [ AC_DEFINE(ENABLE_LOGGING, [1], [System logging.]) ])
|
||||
|
||||
AC_ARG_ENABLE([manpages],
|
||||
AS_HELP_STRING([--disable-manpages], [disable man pages @<:@default=enabled@:>@]),
|
||||
[], enable_manpages=yes)
|
||||
AM_CONDITIONAL([ENABLE_MANPAGES], [test "x$enable_manpages" = "xyes"])
|
||||
|
||||
if test "x$cross_compiling" = "xno" ; then
|
||||
AC_CHECK_FILES([/usr/share/pci.ids], [pciids=/usr/share/pci.ids])
|
||||
AC_CHECK_FILES([/usr/share/hwdata/pci.ids], [pciids=/usr/share/hwdata/pci.ids])
|
||||
AC_CHECK_FILES([/usr/share/misc/pci.ids], [pciids=/usr/share/misc/pci.ids])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(usb-ids-path,
|
||||
[AS_HELP_STRING([--with-usb-ids-path=DIR], [Path to usb.ids file])],
|
||||
[USB_DATABASE=${withval}],
|
||||
[if test -n "$usbids" ; then
|
||||
USB_DATABASE="$usbids"
|
||||
else
|
||||
PKG_CHECK_MODULES(USBUTILS, usbutils >= 0.82)
|
||||
AC_SUBST([USB_DATABASE], [$($PKG_CONFIG --variable=usbids usbutils)])
|
||||
fi])
|
||||
AC_MSG_CHECKING([for USB database location])
|
||||
AC_MSG_RESULT([$USB_DATABASE])
|
||||
AC_SUBST(USB_DATABASE)
|
||||
|
||||
AC_ARG_WITH(pci-ids-path,
|
||||
[AS_HELP_STRING([--with-pci-ids-path=DIR], [Path to pci.ids file])],
|
||||
[PCI_DATABASE=${withval}],
|
||||
[if test -n "$pciids" ; then
|
||||
PCI_DATABASE="$pciids"
|
||||
else
|
||||
AC_MSG_ERROR([pci.ids not found, try --with-pci-ids-path=])
|
||||
fi])
|
||||
AC_MSG_CHECKING([for PCI database location])
|
||||
AC_MSG_RESULT([$PCI_DATABASE])
|
||||
AC_SUBST(PCI_DATABASE)
|
||||
|
||||
AC_ARG_WITH(firmware-path,
|
||||
AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
|
||||
[Firmware search path (default=ROOTPREFIX/lib/firmware/updates:ROOTPREFIX/lib/firmware)]),
|
||||
[], [with_firmware_path="$rootprefix/lib/firmware/updates:$rootprefix/lib/firmware"])
|
||||
OLD_IFS=$IFS
|
||||
IFS=:
|
||||
for i in $with_firmware_path; do
|
||||
if test "x${FIRMWARE_PATH}" = "x"; then
|
||||
FIRMWARE_PATH="\\\"${i}/\\\""
|
||||
else
|
||||
FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
|
||||
fi
|
||||
done
|
||||
IFS=$OLD_IFS
|
||||
AC_SUBST([FIRMWARE_PATH], [$FIRMWARE_PATH])
|
||||
|
||||
AC_ARG_WITH([systemdsystemunitdir],
|
||||
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
|
||||
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
||||
AS_IF([test "x$with_systemdsystemunitdir" != "xno"], [ AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) ])
|
||||
AM_CONDITIONAL(WITH_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != "xno" ])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# GUdev - libudev gobject interface
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([gudev],
|
||||
AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
|
||||
[], [enable_gudev=yes])
|
||||
AS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0]) ])
|
||||
|
||||
AC_ARG_ENABLE([introspection],
|
||||
AS_HELP_STRING([--disable-introspection], [disable GObject introspection @<:@default=enabled@:>@]),
|
||||
[], [enable_introspection=yes])
|
||||
AS_IF([test "x$enable_introspection" = "xyes"], [
|
||||
PKG_CHECK_MODULES([INTROSPECTION], [gobject-introspection-1.0 >= 0.6.2])
|
||||
AC_DEFINE([ENABLE_INTROSPECTION], [1], [enable GObject introspection support])
|
||||
AC_SUBST([G_IR_SCANNER], [$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)])
|
||||
AC_SUBST([G_IR_COMPILER], [$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)])
|
||||
AC_SUBST([G_IR_GENERATE], [$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)])
|
||||
AC_SUBST([GIRDIR], [$($PKG_CONFIG --define-variable=datadir=${datadir} --variable=girdir gobject-introspection-1.0)])
|
||||
AC_SUBST([GIRTYPELIBDIR], [$($PKG_CONFIG --define-variable=libdir=${libdir} --variable=typelibdir gobject-introspection-1.0)])
|
||||
])
|
||||
AM_CONDITIONAL([ENABLE_INTROSPECTION], [test "x$enable_introspection" = "xyes"])
|
||||
AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# keymap - map custom hardware's multimedia keys
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([keymap],
|
||||
AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
|
||||
[], [enable_keymap=yes])
|
||||
AS_IF([test "x$enable_keymap" = "xyes"], [
|
||||
AC_PATH_PROG([GPERF], [gperf])
|
||||
if test -z "$GPERF"; then
|
||||
AC_MSG_ERROR([gperf is needed])
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found]))
|
||||
AC_SUBST([INCLUDE_PREFIX], [$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')])
|
||||
])
|
||||
AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# mtd_probe - autoloads FTL module for mtd devices
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([mtd_probe],
|
||||
AS_HELP_STRING([--disable-mtd_probe], [disable MTD support @<:@default=enabled@:>@]),
|
||||
[], [enable_mtd_probe=yes])
|
||||
AM_CONDITIONAL([ENABLE_MTD_PROBE], [test "x$enable_mtd_probe" = "xyes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# rule_generator - persistent network and optical device rule generator
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([rule_generator],
|
||||
AS_HELP_STRING([--enable-rule_generator], [enable persistent network + cdrom links support @<:@default=disabled@:>@]),
|
||||
[], [enable_rule_generator=no])
|
||||
AM_CONDITIONAL([ENABLE_RULE_GENERATOR], [test "x$enable_rule_generator" = "xyes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# create_floppy_devices - historical floppy kernel device nodes (/dev/fd0h1440, ...)
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([floppy],
|
||||
AS_HELP_STRING([--enable-floppy], [enable legacy floppy support @<:@default=disabled@:>@]),
|
||||
[], [enable_floppy=no])
|
||||
AM_CONDITIONAL([ENABLE_FLOPPY], [test "x$enable_floppy" = "xyes"])
|
||||
|
||||
my_CFLAGS="-Wall \
|
||||
-Wmissing-declarations -Wmissing-prototypes \
|
||||
-Wnested-externs -Wpointer-arith \
|
||||
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
|
||||
-Wstrict-prototypes -Wshadow \
|
||||
-Wformat-security -Wtype-limits"
|
||||
AC_SUBST([my_CFLAGS])
|
||||
|
||||
AC_CONFIG_HEADERS(config.h)
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
src/docs/Makefile
|
||||
src/docs/version.xml
|
||||
src/gudev/docs/Makefile
|
||||
src/gudev/docs/version.xml
|
||||
])
|
||||
|
||||
AC_OUTPUT
|
||||
AC_MSG_RESULT([
|
||||
$PACKAGE $VERSION
|
||||
========
|
||||
|
||||
prefix: ${prefix}
|
||||
rootprefix: ${rootprefix}
|
||||
sysconfdir: ${sysconfdir}
|
||||
bindir: ${bindir}
|
||||
libdir: ${libdir}
|
||||
rootlibdir: ${rootlib_execdir}
|
||||
libexecdir: ${libexecdir}
|
||||
datarootdir: ${datarootdir}
|
||||
mandir: ${mandir}
|
||||
includedir: ${includedir}
|
||||
include_prefix: ${INCLUDE_PREFIX}
|
||||
systemdsystemunitdir: ${systemdsystemunitdir}
|
||||
firmware path: ${FIRMWARE_PATH}
|
||||
usb.ids: ${USB_DATABASE}
|
||||
pci.ids: ${PCI_DATABASE}
|
||||
|
||||
compiler: ${CC}
|
||||
cflags: ${CFLAGS}
|
||||
ldflags: ${LDFLAGS}
|
||||
xsltproc: ${XSLTPROC}
|
||||
gperf: ${GPERF}
|
||||
|
||||
logging: ${enable_logging}
|
||||
debug: ${enable_debug}
|
||||
selinux: ${with_selinux}
|
||||
|
||||
man pages ${enable_manpages}
|
||||
gudev: ${enable_gudev}
|
||||
gintrospection: ${enable_introspection}
|
||||
keymap: ${enable_keymap}
|
||||
mtd_probe: ${enable_mtd_probe}
|
||||
rule_generator: ${enable_rule_generator}
|
||||
floppy: ${enable_floppy}
|
||||
])
|
@ -1,3 +1,4 @@
|
||||
Makefile
|
||||
libudev-overrides.txt
|
||||
html/
|
||||
tmpl/
|
@ -21,7 +21,7 @@ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
|
||||
# gtk-doc will search all .c & .h files beneath here for inline comments
|
||||
# documenting the functions and macros.
|
||||
# e.g. DOC_SOURCE_DIR=../../../gtk
|
||||
DOC_SOURCE_DIR=$(top_srcdir)/src
|
||||
DOC_SOURCE_DIR=$(top_srcdir)/src/udev
|
||||
|
||||
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
|
||||
SCANGOBJ_OPTIONS=
|
||||
@ -48,8 +48,8 @@ FIXXREF_OPTIONS=
|
||||
# Used for dependencies. The docs will be rebuilt if any of these change.
|
||||
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
|
||||
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
|
||||
HFILE_GLOB=$(top_srcdir)/src/libudev*.h
|
||||
CFILE_GLOB=$(top_srcdir)/src/libudev*.c
|
||||
HFILE_GLOB=$(top_srcdir)/src/udev/libudev*.h
|
||||
CFILE_GLOB=$(top_srcdir)/src/udev/libudev*.c
|
||||
|
||||
# Extra header to include when scanning, which are not under DOC_SOURCE_DIR
|
||||
# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h
|
@ -1,3 +1,4 @@
|
||||
Makefile
|
||||
gudev-overrides.txt
|
||||
gudev-decl-list.txt
|
||||
gudev-decl.txt
|
@ -21,7 +21,7 @@ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
|
||||
# gtk-doc will search all .c & .h files beneath here for inline comments
|
||||
# documenting the functions and macros.
|
||||
# e.g. DOC_SOURCE_DIR=../../../gtk
|
||||
DOC_SOURCE_DIR=$(top_srcdir)/src
|
||||
DOC_SOURCE_DIR=$(top_srcdir)/src/udev/gudev
|
||||
|
||||
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
|
||||
SCANGOBJ_OPTIONS=
|
||||
@ -48,8 +48,8 @@ FIXXREF_OPTIONS=
|
||||
# Used for dependencies. The docs will be rebuilt if any of these change.
|
||||
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
|
||||
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
|
||||
HFILE_GLOB=$(top_srcdir)/src/gudev/*.h
|
||||
CFILE_GLOB=$(top_srcdir)/src/gudev/*.c
|
||||
HFILE_GLOB=$(top_srcdir)/src/udev/gudev/*.h
|
||||
CFILE_GLOB=$(top_srcdir)/src/udev/gudev/*.c
|
||||
|
||||
# Extra header to include when scanning, which are not under DOC_SOURCE_DIR
|
||||
# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h
|
||||
@ -80,8 +80,8 @@ expand_content_files=
|
||||
GTKDOC_CFLAGS = \
|
||||
$(DBUS_GLIB_CFLAGS) \
|
||||
$(GLIB_CFLAGS) \
|
||||
-I$(top_srcdir)/src/gudev \
|
||||
-I$(top_builddir)/src/gudev
|
||||
-I$(top_srcdir)/src/udev/gudev \
|
||||
-I$(top_builddir)/src/udev/gudev
|
||||
|
||||
GTKDOC_LIBS = \
|
||||
$(GLIB_LIBS) \
|
@ -423,7 +423,7 @@ int main(int argc, char **argv)
|
||||
if (f) {
|
||||
merge_table(fd, f);
|
||||
} else {
|
||||
snprintf(keymap_path, sizeof(keymap_path), "%s%s", PKGLIBEXECDIR "/keymaps/", filearg);
|
||||
snprintf(keymap_path, sizeof(keymap_path), "%s%s", UDEVLIBEXECDIR "/keymaps/", filearg);
|
||||
f = fopen(keymap_path, "r");
|
||||
if (f)
|
||||
merge_table(fd, f);
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user