summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-11-17 16:22:12 -0500
committerAnthony G. Basile <blueness@gentoo.org>2012-11-17 16:22:12 -0500
commit7730dfb5e1fc7e2f8b1df0eb9ef62c451a5f725f (patch)
tree1f96b7f42e8326d11be9a11f12c98ee4a30cfc70 /src
parentb0dd066bccc9bfabc3df290debc1d55dfb9596e5 (diff)
Restructure src/ as per lu_zero
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am18
-rw-r--r--src/accelerometer/Makefile.am (renamed from src/udev/accelerometer/Makefile.am)0
-rw-r--r--src/accelerometer/accelerometer.c (renamed from src/udev/accelerometer/accelerometer.c)0
-rw-r--r--src/ata_id/Makefile.am (renamed from src/udev/ata_id/Makefile.am)0
-rw-r--r--src/ata_id/ata_id.c (renamed from src/udev/ata_id/ata_id.c)0
-rw-r--r--src/cdrom_id/Makefile.am (renamed from src/udev/cdrom_id/Makefile.am)0
-rw-r--r--src/cdrom_id/cdrom_id.c (renamed from src/udev/cdrom_id/cdrom_id.c)0
-rw-r--r--src/collect/Makefile.am (renamed from src/udev/collect/Makefile.am)0
-rw-r--r--src/collect/collect.c (renamed from src/udev/collect/collect.c)0
-rw-r--r--src/include/Makefile.am33
-rw-r--r--src/keymap/Makefile.am (renamed from src/udev/keymap/Makefile.am)0
-rw-r--r--src/keymap/README.keymap.txt (renamed from src/udev/keymap/README.keymap.txt)0
-rwxr-xr-xsrc/keymap/check-keymaps.sh (renamed from src/udev/keymap/check-keymaps.sh)0
-rwxr-xr-xsrc/keymap/findkeyboards (renamed from src/udev/keymap/findkeyboards)0
-rwxr-xr-xsrc/keymap/keyboard-force-release.sh.in (renamed from src/udev/keymap/keyboard-force-release.sh.in)0
-rw-r--r--src/keymap/keymap.c (renamed from src/udev/keymap/keymap.c)0
-rw-r--r--src/libudev/Makefile.am15
-rw-r--r--src/libudev/libudev-hwdb-def.h (renamed from src/include/libudev-hwdb-def.h)0
-rw-r--r--src/libudev/libudev-private.h (renamed from src/include/libudev-private.h)0
-rw-r--r--src/libudev/libudev.h (renamed from src/include/libudev.h)0
-rw-r--r--src/mtd_probe/Makefile.am (renamed from src/udev/mtd_probe/Makefile.am)3
-rw-r--r--src/mtd_probe/mtd_probe.c (renamed from src/udev/mtd_probe/mtd_probe.c)0
-rw-r--r--src/mtd_probe/mtd_probe.h (renamed from src/udev/mtd_probe/mtd_probe.h)0
-rw-r--r--src/mtd_probe/probe_smartmedia.c (renamed from src/udev/mtd_probe/probe_smartmedia.c)0
-rw-r--r--src/scsi_id/Makefile.am (renamed from src/udev/scsi_id/Makefile.am)0
-rw-r--r--src/scsi_id/README (renamed from src/udev/scsi_id/README)0
-rw-r--r--src/scsi_id/scsi.h (renamed from src/udev/scsi_id/scsi.h)0
-rw-r--r--src/scsi_id/scsi_id.c (renamed from src/udev/scsi_id/scsi_id.c)0
-rw-r--r--src/scsi_id/scsi_id.h (renamed from src/udev/scsi_id/scsi_id.h)0
-rw-r--r--src/scsi_id/scsi_serial.c (renamed from src/udev/scsi_id/scsi_serial.c)0
-rw-r--r--src/test/Makefile.am4
-rw-r--r--src/udev/Makefile.am50
-rw-r--r--src/udev/acl-util.h (renamed from src/include/acl-util.h)0
-rw-r--r--src/udev/cgroup-util.h (renamed from src/include/cgroup-util.h)0
-rw-r--r--src/udev/conf-files.h (renamed from src/include/conf-files.h)0
-rw-r--r--src/udev/def.h (renamed from src/include/def.h)0
-rw-r--r--src/udev/dev-setup.h (renamed from src/include/dev-setup.h)0
-rw-r--r--src/udev/exit-status.h (renamed from src/include/exit-status.h)0
-rw-r--r--src/udev/hashmap.h (renamed from src/include/hashmap.h)0
-rw-r--r--src/udev/ioprio.h (renamed from src/include/ioprio.h)0
-rw-r--r--src/udev/label.h (renamed from src/include/label.h)0
-rw-r--r--src/udev/log.h (renamed from src/include/log.h)0
-rw-r--r--src/udev/logind-acl.h (renamed from src/include/logind-acl.h)0
-rw-r--r--src/udev/macro.h (renamed from src/include/macro.h)0
-rw-r--r--src/udev/missing.h (renamed from src/include/missing.h)0
-rw-r--r--src/udev/mkdir.h (renamed from src/include/mkdir.h)0
-rw-r--r--src/udev/path-util.h (renamed from src/include/path-util.h)0
-rw-r--r--src/udev/sd-daemon.h (renamed from src/include/sd-daemon.h)0
-rw-r--r--src/udev/sd-login.h (renamed from src/include/sd-login.h)0
-rw-r--r--src/udev/set.h (renamed from src/include/set.h)0
-rw-r--r--src/udev/socket-util.h (renamed from src/include/socket-util.h)0
-rw-r--r--src/udev/sparse-endian.h (renamed from src/include/sparse-endian.h)0
-rw-r--r--src/udev/strbuf.h (renamed from src/include/strbuf.h)0
-rw-r--r--src/udev/strv.h (renamed from src/include/strv.h)0
-rw-r--r--src/udev/udev.h (renamed from src/include/udev.h)0
-rw-r--r--src/udev/util.h (renamed from src/include/util.h)0
-rw-r--r--src/v4l_id/Makefile.am (renamed from src/udev/v4l_id/Makefile.am)0
-rw-r--r--src/v4l_id/v4l_id.c (renamed from src/udev/v4l_id/v4l_id.c)0
58 files changed, 60 insertions, 63 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index e39260f020..ef91872e5e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,7 +3,21 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
libudev \
udev \
- gudev \
- include
+ gudev
# test
+
+# Helper programs
+#SUBDIRS += \
+# accelerometer
+# ata_id
+# cdrom_id
+# collect
+# mtd_probe
+# scsi_id
+# v4l_id
+
+#if ENABLE_KEYMAP
+#SUBDIRS += \
+# keymap
+#endif
diff --git a/src/udev/accelerometer/Makefile.am b/src/accelerometer/Makefile.am
index dc06d4f747..dc06d4f747 100644
--- a/src/udev/accelerometer/Makefile.am
+++ b/src/accelerometer/Makefile.am
diff --git a/src/udev/accelerometer/accelerometer.c b/src/accelerometer/accelerometer.c
index 67fed27c5e..67fed27c5e 100644
--- a/src/udev/accelerometer/accelerometer.c
+++ b/src/accelerometer/accelerometer.c
diff --git a/src/udev/ata_id/Makefile.am b/src/ata_id/Makefile.am
index 50cb070344..50cb070344 100644
--- a/src/udev/ata_id/Makefile.am
+++ b/src/ata_id/Makefile.am
diff --git a/src/udev/ata_id/ata_id.c b/src/ata_id/ata_id.c
index 488fed4ac4..488fed4ac4 100644
--- a/src/udev/ata_id/ata_id.c
+++ b/src/ata_id/ata_id.c
diff --git a/src/udev/cdrom_id/Makefile.am b/src/cdrom_id/Makefile.am
index b08faeb77a..b08faeb77a 100644
--- a/src/udev/cdrom_id/Makefile.am
+++ b/src/cdrom_id/Makefile.am
diff --git a/src/udev/cdrom_id/cdrom_id.c b/src/cdrom_id/cdrom_id.c
index 1056536b7d..1056536b7d 100644
--- a/src/udev/cdrom_id/cdrom_id.c
+++ b/src/cdrom_id/cdrom_id.c
diff --git a/src/udev/collect/Makefile.am b/src/collect/Makefile.am
index 4c954b99a9..4c954b99a9 100644
--- a/src/udev/collect/Makefile.am
+++ b/src/collect/Makefile.am
diff --git a/src/udev/collect/collect.c b/src/collect/collect.c
index 3c46e40de1..3c46e40de1 100644
--- a/src/udev/collect/collect.c
+++ b/src/collect/collect.c
diff --git a/src/include/Makefile.am b/src/include/Makefile.am
deleted file mode 100644
index 126d298a9e..0000000000
--- a/src/include/Makefile.am
+++ /dev/null
@@ -1,33 +0,0 @@
-ACLOCAL_AMFLAGS = -I m4
-
-nodist_include_HEADERS = \
- acl-util.h \
- cgroup-util.h \
- conf-files.h \
- def.h \
- dev-setup.h \
- exit-status.h \
- hashmap.h \
- ioprio.h \
- label.h \
- libudev-hwdb-def.h \
- libudev-private.h \
- log.h \
- logind-acl.h \
- macro.h \
- Makefile.am \
- missing.h \
- mkdir.h \
- path-util.h \
- sd-daemon.h \
- sd-login.h \
- set.h \
- socket-util.h \
- sparse-endian.h \
- strbuf.h \
- strv.h \
- udev.h \
- util.h
-
-dist_include_HEADERS = \
- libudev.h
diff --git a/src/udev/keymap/Makefile.am b/src/keymap/Makefile.am
index 80f87f7344..80f87f7344 100644
--- a/src/udev/keymap/Makefile.am
+++ b/src/keymap/Makefile.am
diff --git a/src/udev/keymap/README.keymap.txt b/src/keymap/README.keymap.txt
index 2cf2a4e88c..2cf2a4e88c 100644
--- a/src/udev/keymap/README.keymap.txt
+++ b/src/keymap/README.keymap.txt
diff --git a/src/udev/keymap/check-keymaps.sh b/src/keymap/check-keymaps.sh
index c4572745e0..c4572745e0 100755
--- a/src/udev/keymap/check-keymaps.sh
+++ b/src/keymap/check-keymaps.sh
diff --git a/src/udev/keymap/findkeyboards b/src/keymap/findkeyboards
index 9ce27429b2..9ce27429b2 100755
--- a/src/udev/keymap/findkeyboards
+++ b/src/keymap/findkeyboards
diff --git a/src/udev/keymap/keyboard-force-release.sh.in b/src/keymap/keyboard-force-release.sh.in
index b82674840f..b82674840f 100755
--- a/src/udev/keymap/keyboard-force-release.sh.in
+++ b/src/keymap/keyboard-force-release.sh.in
diff --git a/src/udev/keymap/keymap.c b/src/keymap/keymap.c
index 939407fd0b..939407fd0b 100644
--- a/src/udev/keymap/keymap.c
+++ b/src/keymap/keymap.c
diff --git a/src/libudev/Makefile.am b/src/libudev/Makefile.am
index 0be84fc9ac..36647d13ed 100644
--- a/src/libudev/Makefile.am
+++ b/src/libudev/Makefile.am
@@ -5,7 +5,7 @@ LIBUDEV_REVISION=0
LIBUDEV_AGE=2
AM_CPPFLAGS = \
- -I $(top_srcdir)/src/include
+ -I $(top_srcdir)/src/udev
lib_LTLIBRARIES = \
libudev.la
@@ -20,6 +20,13 @@ libudev_la_SOURCES =\
libudev-queue.c \
libudev-hwdb.c
+noinst_HEADERS = \
+ libudev-hwdb-def.h \
+ libudev-private.h
+
+include_HEADERS = \
+ libudev.h
+
libudev_la_CFLAGS = \
$(AM_CFLAGS) \
-fvisibility=hidden
@@ -28,8 +35,6 @@ libudev_la_LDFLAGS = \
$(AM_LDFLAGS) \
-version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE)
-noinst_LTLIBRARIES = \
- libudev-private.la
libudev_private_la_SOURCES =\
$(libudev_la_SOURCES) \
@@ -40,6 +45,10 @@ libudev_private_la_CFLAGS = \
$(AM_CFLAGS) \
-fvisibility=default
+noinst_LTLIBRARIES = \
+ libudev-private.la
+
+
pkgconfiglibdir=$(libdir)/pkgconfig
pkgconfiglib_DATA = \
libudev.pc
diff --git a/src/include/libudev-hwdb-def.h b/src/libudev/libudev-hwdb-def.h
index e167e2805b..e167e2805b 100644
--- a/src/include/libudev-hwdb-def.h
+++ b/src/libudev/libudev-hwdb-def.h
diff --git a/src/include/libudev-private.h b/src/libudev/libudev-private.h
index ff1cc8cefd..ff1cc8cefd 100644
--- a/src/include/libudev-private.h
+++ b/src/libudev/libudev-private.h
diff --git a/src/include/libudev.h b/src/libudev/libudev.h
index bb41532a21..bb41532a21 100644
--- a/src/include/libudev.h
+++ b/src/libudev/libudev.h
diff --git a/src/udev/mtd_probe/Makefile.am b/src/mtd_probe/Makefile.am
index 4b4db4f651..dc87d37fe3 100644
--- a/src/udev/mtd_probe/Makefile.am
+++ b/src/mtd_probe/Makefile.am
@@ -8,8 +8,7 @@ AM_CPPFLAGS = \
-DROOTPREFIX=\"$(rootprefix)\" \
-DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
-I $(top_srcdir)/src/libudev \
- -I $(top_srcdir)/src/udev \
- -I $(top_srcdir)/src/include
+ -I $(top_srcdir)/src/udev
udevlibexec_PROGRAMS = \
mtd_probe
diff --git a/src/udev/mtd_probe/mtd_probe.c b/src/mtd_probe/mtd_probe.c
index 70c04db40b..70c04db40b 100644
--- a/src/udev/mtd_probe/mtd_probe.c
+++ b/src/mtd_probe/mtd_probe.c
diff --git a/src/udev/mtd_probe/mtd_probe.h b/src/mtd_probe/mtd_probe.h
index 2a37ede578..2a37ede578 100644
--- a/src/udev/mtd_probe/mtd_probe.h
+++ b/src/mtd_probe/mtd_probe.h
diff --git a/src/udev/mtd_probe/probe_smartmedia.c b/src/mtd_probe/probe_smartmedia.c
index feadb5076c..feadb5076c 100644
--- a/src/udev/mtd_probe/probe_smartmedia.c
+++ b/src/mtd_probe/probe_smartmedia.c
diff --git a/src/udev/scsi_id/Makefile.am b/src/scsi_id/Makefile.am
index 9628bc2670..9628bc2670 100644
--- a/src/udev/scsi_id/Makefile.am
+++ b/src/scsi_id/Makefile.am
diff --git a/src/udev/scsi_id/README b/src/scsi_id/README
index 9cfe73991c..9cfe73991c 100644
--- a/src/udev/scsi_id/README
+++ b/src/scsi_id/README
diff --git a/src/udev/scsi_id/scsi.h b/src/scsi_id/scsi.h
index c423cac574..c423cac574 100644
--- a/src/udev/scsi_id/scsi.h
+++ b/src/scsi_id/scsi.h
diff --git a/src/udev/scsi_id/scsi_id.c b/src/scsi_id/scsi_id.c
index c90b6aa581..c90b6aa581 100644
--- a/src/udev/scsi_id/scsi_id.c
+++ b/src/scsi_id/scsi_id.c
diff --git a/src/udev/scsi_id/scsi_id.h b/src/scsi_id/scsi_id.h
index 828a98305f..828a98305f 100644
--- a/src/udev/scsi_id/scsi_id.h
+++ b/src/scsi_id/scsi_id.h
diff --git a/src/udev/scsi_id/scsi_serial.c b/src/scsi_id/scsi_serial.c
index 3c52dee62d..3c52dee62d 100644
--- a/src/udev/scsi_id/scsi_serial.c
+++ b/src/scsi_id/scsi_serial.c
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index b2f8737cc1..3c6095ee88 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -11,13 +11,13 @@ test_libudev_LDADD = \
$(top_srcdir)/src/libudev/libudev.la
test_libudev_CPPFLAGS = \
- -I $(top_srcdir)/src/include
+ -I $(top_srcdir)/src/libudev
test_udev_SOURCES = \
test-udev.c
test_udev_CPPFLAGS = \
- -I $(top_srcdir)/src/include
+ -I $(top_srcdir)/src/udev
test_udev_LDADD = \
$(top_srcdir)/src/udev/libudev-core.la \
diff --git a/src/udev/Makefile.am b/src/udev/Makefile.am
index 0607bea2e6..0052c75234 100644
--- a/src/udev/Makefile.am
+++ b/src/udev/Makefile.am
@@ -9,8 +9,7 @@ AM_CPPFLAGS = \
-DROOTPREFIX=\"$(rootprefix)\" \
-DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
-I $(top_srcdir)/src/libudev \
- -I $(top_srcdir)/src/udev \
- -I $(top_srcdir)/src/include
+ -I $(top_srcdir)/src/udev
sbin_PROGRAMS = \
udevd \
@@ -71,6 +70,34 @@ libudev_core_la_SOURCES = \
strv.c \
util.c
+noinst_HEADERS = \
+ acl-util.h \
+ cgroup-util.h \
+ conf-files.h \
+ def.h \
+ dev-setup.h \
+ exit-status.h \
+ hashmap.h \
+ ioprio.h \
+ label.h \
+ log.h \
+ logind-acl.h \
+ macro.h \
+ missing.h \
+ mkdir.h \
+ path-util.h \
+ sd-daemon.h \
+ sd-login.h \
+ set.h \
+ socket-util.h \
+ sparse-endian.h \
+ strbuf.h \
+ strv.h \
+ util.h
+
+include_HEADERS = \
+ udev.h
+
libudev_core_la_CFLAGS = \
$(AM_CFLAGS)
@@ -106,22 +133,3 @@ EXTRA_DIST = \
CLEANFILES = \
udev.pc
-
-# ------------------------------------------------------------------------------
-# Helper programs below
-#
-
-SUBDIR = \
- accelerometer \
- ata_id \
- cdrom_id \
- collect \
- mtd_probe \
- scsi_id \
- v4l_id
-
-if ENABLE_KEYMAP
-SUBDIR += \
- keymap
-endif
-
diff --git a/src/include/acl-util.h b/src/udev/acl-util.h
index 31fbbcd510..31fbbcd510 100644
--- a/src/include/acl-util.h
+++ b/src/udev/acl-util.h
diff --git a/src/include/cgroup-util.h b/src/udev/cgroup-util.h
index 697669deba..697669deba 100644
--- a/src/include/cgroup-util.h
+++ b/src/udev/cgroup-util.h
diff --git a/src/include/conf-files.h b/src/udev/conf-files.h
index f37ee1f3db..f37ee1f3db 100644
--- a/src/include/conf-files.h
+++ b/src/udev/conf-files.h
diff --git a/src/include/def.h b/src/udev/def.h
index 5ba170f965..5ba170f965 100644
--- a/src/include/def.h
+++ b/src/udev/def.h
diff --git a/src/include/dev-setup.h b/src/udev/dev-setup.h
index 320c0b30ba..320c0b30ba 100644
--- a/src/include/dev-setup.h
+++ b/src/udev/dev-setup.h
diff --git a/src/include/exit-status.h b/src/udev/exit-status.h
index d3b548fc96..d3b548fc96 100644
--- a/src/include/exit-status.h
+++ b/src/udev/exit-status.h
diff --git a/src/include/hashmap.h b/src/udev/hashmap.h
index 6fd71cf519..6fd71cf519 100644
--- a/src/include/hashmap.h
+++ b/src/udev/hashmap.h
diff --git a/src/include/ioprio.h b/src/udev/ioprio.h
index 9800fc2553..9800fc2553 100644
--- a/src/include/ioprio.h
+++ b/src/udev/ioprio.h
diff --git a/src/include/label.h b/src/udev/label.h
index 1220b18965..1220b18965 100644
--- a/src/include/label.h
+++ b/src/udev/label.h
diff --git a/src/include/log.h b/src/udev/log.h
index fd2285cb61..fd2285cb61 100644
--- a/src/include/log.h
+++ b/src/udev/log.h
diff --git a/src/include/logind-acl.h b/src/udev/logind-acl.h
index ec09843a78..ec09843a78 100644
--- a/src/include/logind-acl.h
+++ b/src/udev/logind-acl.h
diff --git a/src/include/macro.h b/src/udev/macro.h
index e930fdab53..e930fdab53 100644
--- a/src/include/macro.h
+++ b/src/udev/macro.h
diff --git a/src/include/missing.h b/src/udev/missing.h
index 0c8ae7f381..0c8ae7f381 100644
--- a/src/include/missing.h
+++ b/src/udev/missing.h
diff --git a/src/include/mkdir.h b/src/udev/mkdir.h
index ce1c35e9ba..ce1c35e9ba 100644
--- a/src/include/mkdir.h
+++ b/src/udev/mkdir.h
diff --git a/src/include/path-util.h b/src/udev/path-util.h
index e81821a28f..e81821a28f 100644
--- a/src/include/path-util.h
+++ b/src/udev/path-util.h
diff --git a/src/include/sd-daemon.h b/src/udev/sd-daemon.h
index fb7456d50f..fb7456d50f 100644
--- a/src/include/sd-daemon.h
+++ b/src/udev/sd-daemon.h
diff --git a/src/include/sd-login.h b/src/udev/sd-login.h
index 6bd1f2da4a..6bd1f2da4a 100644
--- a/src/include/sd-login.h
+++ b/src/udev/sd-login.h
diff --git a/src/include/set.h b/src/udev/set.h
index 9162e2ae80..9162e2ae80 100644
--- a/src/include/set.h
+++ b/src/udev/set.h
diff --git a/src/include/socket-util.h b/src/udev/socket-util.h
index 04cfb83f5a..04cfb83f5a 100644
--- a/src/include/socket-util.h
+++ b/src/udev/socket-util.h
diff --git a/src/include/sparse-endian.h b/src/udev/sparse-endian.h
index eb4dbf3615..eb4dbf3615 100644
--- a/src/include/sparse-endian.h
+++ b/src/udev/sparse-endian.h
diff --git a/src/include/strbuf.h b/src/udev/strbuf.h
index 2347fd4328..2347fd4328 100644
--- a/src/include/strbuf.h
+++ b/src/udev/strbuf.h
diff --git a/src/include/strv.h b/src/udev/strv.h
index 45558d8960..45558d8960 100644
--- a/src/include/strv.h
+++ b/src/udev/strv.h
diff --git a/src/include/udev.h b/src/udev/udev.h
index 23a04f766c..23a04f766c 100644
--- a/src/include/udev.h
+++ b/src/udev/udev.h
diff --git a/src/include/util.h b/src/udev/util.h
index a148ebbc58..a148ebbc58 100644
--- a/src/include/util.h
+++ b/src/udev/util.h
diff --git a/src/udev/v4l_id/Makefile.am b/src/v4l_id/Makefile.am
index 0cb18e8ad3..0cb18e8ad3 100644
--- a/src/udev/v4l_id/Makefile.am
+++ b/src/v4l_id/Makefile.am
diff --git a/src/udev/v4l_id/v4l_id.c b/src/v4l_id/v4l_id.c
index 8dcb645ed9..8dcb645ed9 100644
--- a/src/udev/v4l_id/v4l_id.c
+++ b/src/v4l_id/v4l_id.c