]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: move hwclock to sys-utils/
authorKarel Zak <kzak@redhat.com>
Thu, 31 May 2012 09:15:07 +0000 (11:15 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 26 Jun 2012 18:48:23 +0000 (20:48 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
Makefile.am
configure.ac
hwclock/.gitignore [deleted file]
hwclock/Makefile.am [deleted file]
sys-utils/Makemodule.am
sys-utils/hwclock-cmos.c [moved from hwclock/cmos.c with 99% similarity]
sys-utils/hwclock-kd.c [moved from hwclock/kd.c with 99% similarity]
sys-utils/hwclock-rtc.c [moved from hwclock/rtc.c with 99% similarity]
sys-utils/hwclock.8 [moved from hwclock/hwclock.8 with 100% similarity]
sys-utils/hwclock.c [moved from hwclock/hwclock.c with 99% similarity]
sys-utils/hwclock.h [moved from hwclock/clock.h with 100% similarity]

index 35cd0b9d0ace58801757fda151439984cc6a603d..8b8d5a95da218f07bb78988ddc14b0834683d893 100644 (file)
@@ -15,9 +15,6 @@ bin_PROGRAMS =
 sbin_PROGRAMS =
 dist_usrbin_exec_SCRIPTS =
 
-INSTALL_EXEC_HOOKS =
-UNINSTALL_HOOKS =
-
 INSTALL_EXEC_HOOKS =
 UNINSTALL_HOOKS =
 INSTALL_DATA_HOOKS =
@@ -39,10 +36,6 @@ SUBDIRS = \
 RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
                -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
 
-if BUILD_HWCLOCK
-SUBDIRS += hwclock
-endif
-
 if BUILD_PARTX
 SUBDIRS += partx
 endif
index 84031154cf5ae2f647da163344a19fa755bdb503..def8bb53a2c548e7516fd2f77d61098d69a9d32c 100644 (file)
@@ -1288,7 +1288,6 @@ Makefile
 disk-utils/Makefile
 fdisk/Makefile
 getopt/Makefile
-hwclock/Makefile
 libblkid/blkid.pc
 libblkid/docs/Makefile
 libblkid/docs/version.xml
diff --git a/hwclock/.gitignore b/hwclock/.gitignore
deleted file mode 100644 (file)
index 97f59f3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-hwclock
diff --git a/hwclock/Makefile.am b/hwclock/Makefile.am
deleted file mode 100644 (file)
index 90f5e01..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-include $(top_srcdir)/config/include-Makefile.am
-
-dist_man_MANS = hwclock.8
-
-sbin_PROGRAMS = hwclock
-
-hwclock_SOURCES = \
-       clock.h \
-       cmos.c \
-       hwclock.c \
-       kd.c \
-       $(top_srcdir)/lib/strutils.c
-hwclock_LDADD =
-
-if LINUX
-hwclock_SOURCES += rtc.c
-endif
-
-if HAVE_AUDIT
-hwclock_LDADD += -laudit
-endif
index b4adf634ec7f6067151575f70ed87a7c7669dd29..cc1a3f63a710840a0943267ac6d02dce0e05a4b4 100644 (file)
@@ -314,3 +314,23 @@ bin_PROGRAMS += arch
 dist_man_MANS += sys-utils/arch.1
 arch_SOURCES = sys-utils/arch.c
 endif
+
+if BUILD_HWCLOCK
+sbin_PROGRAMS += hwclock
+dist_man_MANS += sys-utils/hwclock.8
+hwclock_SOURCES = \
+       sys-utils/hwclock.c \
+       sys-utils/hwclock.h \
+       sys-utils/hwclock-cmos.c \
+       sys-utils/hwclock-kd.c \
+       lib/strutils.c
+
+if LINUX
+hwclock_SOURCES += sys-utils/hwclock-rtc.c
+endif
+
+hwclock_LDADD =
+if HAVE_AUDIT
+hwclock_LDADD += -laudit
+endif
+endif # BUILD_HWCLOCK
similarity index 99%
rename from hwclock/cmos.c
rename to sys-utils/hwclock-cmos.c
index 0c98fb899796483c1450a4527be08d059d791f46..366d934fbdda01fe5b7b6299b40260ac4357a57e 100644 (file)
@@ -93,7 +93,7 @@ int inb(int c __attribute__ ((__unused__)))
 }
 #endif                         /* __alpha__ */
 
-#include "clock.h"
+#include "hwclock.h"
 
 #define BCD_TO_BIN(val) ((val)=((val)&15) + ((val)>>4)*10)
 #define BIN_TO_BCD(val) ((val)=(((val)/10)<<4) + (val)%10)
similarity index 99%
rename from hwclock/kd.c
rename to sys-utils/hwclock-kd.c
index 36c1bb245c9979a9423421c6628d573f17e3fa60..ec98f45ba56b28a3a04a546dc3ee6b94edca2ae0 100644 (file)
 # include <sys/ioctl.h>
 # include <unistd.h>
 
-# include "clock.h"
 # include "nls.h"
 # include "usleep.h"
 
+# include "hwclock.h"
+
 /* Get defines for KDGHWCLK and KDSHWCLK (m68k) */
 # include <linux/kd.h>
 
similarity index 99%
rename from hwclock/rtc.c
rename to sys-utils/hwclock-rtc.c
index 33dbccc1e6a6b69b27d0d0cd3bb88a5d70a3e242..62adc49d7d6abf8be8903545bdcc9bec000ad525 100644 (file)
 #include <time.h>
 #include <unistd.h>
 
-#include "clock.h"
 #include "nls.h"
 
+#include "hwclock.h"
+
 /*
  * Get defines for rtc stuff.
  *
similarity index 100%
rename from hwclock/hwclock.8
rename to sys-utils/hwclock.8
similarity index 99%
rename from hwclock/hwclock.c
rename to sys-utils/hwclock.c
index 10ef8da428ce8c232600f4ba3a9ddece1274a3e2..c0ac678263d226b4829220c668f21cede3e03c1b 100644 (file)
 #define OPTUTILS_EXIT_CODE EX_USAGE
 
 #include "c.h"
-#include "clock.h"
 #include "closestream.h"
 #include "nls.h"
 #include "optutils.h"
 #include "pathnames.h"
 #include "strutils.h"
+#include "hwclock.h"
 
-#define EXCL_ERROR "--{adjust,getepoch,hctosys,predict,set,setepoch,show,systohc,systz}"
 #ifdef HAVE_LIBAUDIT
 #include <libaudit.h>
 static int hwaudit_fd = -1;
 static int hwaudit_on;
 #endif
 
+#define EXCL_ERROR "--{adjust,getepoch,hctosys,predict,set,setepoch,show,systohc,systz}"
+
 /* The struct that holds our hardware access routines */
 struct clock_ops *ur;
 
similarity index 100%
rename from hwclock/clock.h
rename to sys-utils/hwclock.h