Commit 6a4b58fa authored by Yoann Laissus's avatar Yoann Laissus

Reorganise kdf files with a src and a desktop folder.

Delete the unused unix_outputs dir and CTestConfig.cmake.
parent df319336
......@@ -14,7 +14,7 @@ endif(NOT UNIX)
set (QT_MIN_VERSION "5.2.0")
set (KF5_MIN_VERSION "5.6.0")
set(ECM_MIN_VERSION "1.6.0")
set (ECM_MIN_VERSION "1.6.0")
find_package(ECM ${ECM_MIN_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
......@@ -31,7 +31,7 @@ include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
ecm_setup_version(${KDE_APPLICATIONS_VERSION} VARIABLE_PREFIX KDF
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kdf_version.h"
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/kdf_version.h"
)
ecm_setup_version(${KDE_APPLICATIONS_VERSION} VARIABLE_PREFIX KDFPRIVATE
......@@ -57,112 +57,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
XmlGui
)
add_subdirectory(desktop)
add_subdirectory(doc)
add_subdirectory(pics)
########### kdfprivate library ###############
set(kdfprivate_SRCS
kdfwidget.cpp
kdfconfig.cpp
kdfitemdelegate.cpp
kdfsortproxymodel.cpp
mntconfig.cpp
disklist.cpp
disks.cpp
optiondialog.cpp
stdoption.cpp
)
ecm_qt_declare_logging_category(kdfprivate_SRCS
HEADER kdfprivate_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.private)
ki18n_wrap_ui(kdfprivate_SRCS
kdfconfig.ui
mntconfig.ui )
add_library(kdfprivate ${kdfprivate_SRCS})
generate_export_header(kdfprivate BASE_NAME kdfprivate)
target_link_libraries(kdfprivate PUBLIC
Qt5::Core
KF5::Completion
KF5::ConfigWidgets
KF5::I18n
KF5::IconThemes
KF5::KIOCore
KF5::WidgetsAddons
)
set_target_properties(kdfprivate PROPERTIES
VERSION ${KDFPRIVATE_VERSION_STRING}
SOVERSION ${KDFPRIVATE_SOVERSION}
)
install(TARGETS kdfprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
########### kdf executable ###############
set(kdf_SRCS kdf.cpp)
ecm_qt_declare_logging_category(kdf_SRCS
HEADER kdf_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.main)
add_executable(kdf ${kdf_SRCS})
target_link_libraries(kdf
kdfprivate
Qt5::Core
KF5::XmlGui
)
install(TARGETS kdf ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### kwikdisk executable ###############
set(kwikdisk_SRCS kwikdisk.cpp)
ecm_qt_declare_logging_category(kwikdisk_SRCS
HEADER kwikdisk_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.kwikdisk)
add_executable(kwikdisk ${kwikdisk_SRCS})
target_link_libraries(kwikdisk
kdfprivate
Qt5::Core
KF5::KIOWidgets
KF5::Notifications
)
install(TARGETS kwikdisk ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### kdf KCM ###############
set(kcm_kdf_PART_SRCS kcmdf.cpp)
ecm_qt_declare_logging_category(kcm_kdf_PART_SRCS
HEADER kcmdf_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.kcm)
add_library(kcm_kdf ${kcm_kdf_PART_SRCS})
target_link_libraries(kcm_kdf
kdfprivate
Qt5::Core
)
install(TARGETS kcm_kdf DESTINATION ${KDE_INSTALL_PLUGINDIR})
install( FILES kcmdf.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
########### install files ###############
install( PROGRAMS org.kde.kdf.desktop org.kde.kwikdisk.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install( FILES kdfui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kdf)
add_subdirectory(src)
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME "kdf")
set(CTEST_NIGHTLY_START_TIME "20:00:00 CET")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=kdf")
set(CTEST_DROP_SITE_CDASH TRUE)
########### install files ###############
install( PROGRAMS org.kde.kdf.desktop org.kde.kwikdisk.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install( FILES kdfui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kdf)
install( FILES kcmdf.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
########### kdfprivate library ###############
set(kdfprivate_SRCS
kdfwidget.cpp
kdfconfig.cpp
kdfitemdelegate.cpp
kdfsortproxymodel.cpp
mntconfig.cpp
disklist.cpp
disks.cpp
optiondialog.cpp
stdoption.cpp
)
ecm_qt_declare_logging_category(kdfprivate_SRCS
HEADER kdfprivate_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.private)
ki18n_wrap_ui(kdfprivate_SRCS
kdfconfig.ui
mntconfig.ui )
add_library(kdfprivate ${kdfprivate_SRCS})
generate_export_header(kdfprivate BASE_NAME kdfprivate)
target_link_libraries(kdfprivate PUBLIC
Qt5::Core
KF5::Completion
KF5::ConfigWidgets
KF5::I18n
KF5::IconThemes
KF5::KIOCore
KF5::WidgetsAddons
)
set_target_properties(kdfprivate PROPERTIES
VERSION ${KDFPRIVATE_VERSION_STRING}
SOVERSION ${KDFPRIVATE_SOVERSION}
)
install(TARGETS kdfprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
########### kdf executable ###############
set(kdf_SRCS kdf.cpp)
ecm_qt_declare_logging_category(kdf_SRCS
HEADER kdf_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.main)
add_executable(kdf ${kdf_SRCS})
target_link_libraries(kdf
kdfprivate
Qt5::Core
KF5::XmlGui
)
install(TARGETS kdf ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### kwikdisk executable ###############
set(kwikdisk_SRCS kwikdisk.cpp)
ecm_qt_declare_logging_category(kwikdisk_SRCS
HEADER kwikdisk_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.kwikdisk)
add_executable(kwikdisk ${kwikdisk_SRCS})
target_link_libraries(kwikdisk
kdfprivate
Qt5::Core
KF5::KIOWidgets
KF5::Notifications
)
install(TARGETS kwikdisk ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### kdf KCM ###############
set(kcm_kdf_PART_SRCS kcmdf.cpp)
ecm_qt_declare_logging_category(kcm_kdf_PART_SRCS
HEADER kcmdf_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.kcm)
add_library(kcm_kdf ${kcm_kdf_PART_SRCS})
target_link_libraries(kcm_kdf
kdfprivate
Qt5::Core
)
install(TARGETS kcm_kdf DESTINATION ${KDE_INSTALL_PLUGINDIR})
This diff is collapsed.
Filesystem 1024-blocks Used Available Capacity Mounted on
root_domain#root 265536 92583 159784 37% /
/proc 0 0 0 100% /proc
usr_domain#usr 1996712 553180 1424016 28% /usr
var_domain#var 1796712 74125 1714456 5% /var
/dev/rz17a 969738 115812 756952 14% /afscache
user_domain#calcul 1066986 626663 440323 59% /users/calcul
user_domain#atlas 444577 418063 26514 95% /users/atlas
user_domain#mecanique 444577 47918 396659 11% /users/mecanique
user_domain#elec 533493 527901 5592 99% /users/elec
user_domain#ams 889155 749420 139735 85% /users/ams
user_domain#theorie 1600479 1109849 490630 70% /users/theorie
data_domain#calcul 1043416 10376 1033040 1% /data/calcul
data_domain#elec 1043415 144 1043271 1% /data/elec
data_domain#admin 521707 24 521683 1% /data/admin
data_domain#l3 521707 331546 190161 64% /data/l3
data_domain#theorie 2608538 1558632 1049906 60% /data/theorie
data_domain#atlas 1043415 825608 217807 80% /data/atlas
data_domain#virgo 1043415 32 1043383 1% /data/virgo
data_domain#aleph 1565123 72119 1493004 5% /data/aleph
data_domain#na50 521707 16 521691 1% /data/na50
data_domain#babar 1043415 24 1043391 1% /data/babar
data_domain#cms 1043415 32 1043383 1% /data/cms
data_domain#ams 2086830 1016564 1070266 49% /data/ams
data_domain#nomad 1043415 32 1043383 1% /data/nomad
user_domain#l3 444577 116017 328560 27% /users/l3
user_domain#aleph 444577 9672 434905 3% /users/aleph
user_domain#na50 444577 16 444561 1% /users/na50
user_domain#babar 444577 6561 438016 2% /users/babar
user_domain#cms 444577 5902 438675 2% /users/cms
user_domain#nomad 444577 13956 430621 4% /users/nomad
user_domain#admin 444577 3294 441283 1% /users/admin
data_domain#mecanique 521707 42026 479681 9% /data/mecanique
user_domain#virgo 444577 58 444519 1% /users/virgo
user_domain#autres 444577 857 443720 1% /users/autres
data_domain#autres 521707 17216 504491 4% /data/autres
/COMMUN@lappa0 22764496 18302140 4313416 81% /COMMUN
/opt@lappa0 6245280 4713319 1392480 78% /opt
/var/spool/mail@lappa0 2653928 1201276 1415072 46% /var/spool/mail
/virgoa1_3@lappa0 8574909 7165973 551445 93% /virgoa1_3
/lappa6_2@lappa0 8598343 4844545 2893963 63% /lappa6_2
AFS 2000000 0 2000000 0% /afs
This diff is collapsed.
df(1M) df(1M)
NAME
df (generic) - report number of free file system disk blocks
SYNOPSIS
/usr/bin/df [-F FStype] [-befgiklnv] [-t|-P] [-o specific_options] [-V]
[special|directory]...
DESCRIPTION
The df command displays the number of free 512-byte blocks and free
inodes available for file systems by examining the counts kept in the
superblock or superblocks. If a special or a directory is not
specified, the free space on all mounted file systems is displayed.
If the arguments to df are path names, df reports on the file systems
containing the named files. If the argument to df is a special of an
unmounted file system, the free space in the unmounted file system is
displayed.
Options
df recognizes the following options:
-b Report only the number of kilobytes (KB) free.
-e Report the number of files free.
-f Report only the actual count of the blocks in the
free list (free inodes are not reported).
-F FStype Report only on the FStype file system type (see
fstyp(1M)).
-g Report the entire structure described in
statvfs(2).
-i Report the total number of inodes, the number of
free inodes, number of used inodes, and the
percentage of inodes in use.
-k Report the allocation in kilobytes (KB).
-l Report on local file systems only.
-n Report the file system name. If used with no
other options, display a list of mounted file
system types.
-o specific_options
Specify options specific to each file system type.
specific_options is a comma-separated list of
suboptions intended for a specific FStype module
of the command. See the file-system-specific
manual entries for further details.
Hewlett-Packard Company - 1 - HP-UX Release 10.10: November 1995
df(1M) df(1M)
-P Report the name of the file system, the size of
the file system, the number of blocks used, the
number of blocks free, the percentage of blocks
used and the directory below which the file system
hierarchy appears.
-t Report the total allocated block figures and the
number of free blocks.
-v Report the percentage of blocks used, the number
of blocks used, and the number of blocks free.
This option cannot be used with other options.
-V Echo the completed command line, but perform no
other action. The command line is generated by
incorporating the user-specified options and other
information derived from /etc/fstab. This option
allows the user to verify the command line.
EXTERNAL INFLUENCES
Environment Variables
LC_MESSAGES determines the language in which messages are displayed.
If LC_MESSAGES is not specified in the environment or is set to the
empty string, the value of LANG is used as a default for each
unspecified or empty variable. If LANG is not specified or is set to
the empty string, a default of "C" (see lang(5)) is used instead of
LANG.
If any internationalization variable contains an invalid setting, df
behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single-byte and multi-byte character code sets are supported.
EXAMPLES
Report the number of free disk blocks for all mounted file systems:
df
Report the number of free disk blocks for all mounted HFS file
systems:
df -F hfs
Report the number of free files for all mounted NFS file systems:
df -F nfs -e
Hewlett-Packard Company - 2 - HP-UX Release 10.10: November 1995
df(1M) df(1M)
Report the total allocated block figures and the number of free
blocks, for all mounted file systems:
df -t
Report the total allocated block figures and the number of free
blocks, for the file system mounted as /usr:
df -t /usr
FILES
/dev/dsk/* File system devices
/etc/fstab Static information about the file systems
/etc/mnttab Mounted file system table
SEE ALSO
du(1), df_FStype(1M), fsck(1M), fstab(4), fstyp(1M), statvfs(2),
mnttab(4).
STANDARDS CONFORMANCE
df: SVID2, SVID3, XPG2, XPG3, XPG4
Hewlett-Packard Company - 3 - HP-UX Release 10.10: November 1995
root_domain#root / advfs rw 0 0
/proc /proc procfs rw 0 0
usr_domain#usr /usr advfs rw 0 0
var_domain#var /var advfs rw 0 0
/dev/rz16b swap1 ufs sw 0 2
/dev/rz14a swap2 ufs sw 0 2
/dev/rz17a /afscache ufs rw 1 2
/COMMUN@lappa0 /COMMUN nfs rw,bg 0 0
/opt@lappa0 /opt nfs rw,bg 0 0
/var/spool/mail@lappa0 /var/spool/mail nfs rw,bg 0 0
/w3@lappa0 /w3 nfs rw,bg 0 0
/virgoa1_3@lappa0 /virgoa1_3 nfs rw,bg 0 0
/lappa6_2@lappa0 /lappa6_2 nfs rw,bg 0 0
user_domain#calcul /users/calcul advfs rw,userquota,groupquota 0 2
user_domain#atlas /users/atlas advfs rw,userquota,groupquota 0 2
user_domain#mecanique /users/mecanique advfs rw,userquota,groupquota 0 2
user_domain#elec /users/elec advfs rw,userquota,groupquota 0 2
user_domain#ams /users/ams advfs rw,userquota,groupquota 0 2
user_domain#theorie /users/theorie advfs rw,userquota,groupquota 0 2
data_domain#calcul /data/calcul advfs rw,userquota,groupquota 0 2
data_domain#elec /data/elec advfs rw,userquota,groupquota 0 2
data_domain#admin /data/admin advfs rw,userquota,groupquota 0 2
data_domain#l3 /data/l3 advfs rw,userquota,groupquota 0 2
data_domain#theorie /data/theorie advfs rw,userquota,groupquota 0 2
data_domain#atlas /data/atlas advfs rw,userquota,groupquota 0 2
data_domain#virgo /data/virgo advfs rw,userquota,groupquota 0 2
data_domain#aleph /data/aleph advfs rw,userquota,groupquota 0 2
data_domain#na50 /data/na50 advfs rw,userquota,groupquota 0 2
data_domain#babar /data/babar advfs rw,userquota,groupquota 0 2
data_domain#cms /data/cms advfs rw,userquota,groupquota 0 2
data_domain#ams /data/ams advfs rw,userquota,groupquota 0 2
data_domain#nomad /data/nomad advfs rw,userquota,groupquota 0 2
user_domain#l3 /users/l3 advfs rw,userquota,groupquota 0 2
user_domain#aleph /users/aleph advfs rw,userquota,groupquota 0 2
user_domain#na50 /users/na50 advfs rw,userquota,groupquota 0 2
user_domain#babar /users/babar advfs rw,userquota,groupquota 0 2
user_domain#cms /users/cms advfs rw,userquota,groupquota 0 2
user_domain#nomad /users/nomad advfs rw,userquota,groupquota 0 2
user_domain#admin /users/admin advfs rw,userquota,groupquota 0 2
data_domain#mecanique /data/mecanique advfs rw,userquota,groupquota 0 2
user_domain#virgo /users/virgo advfs rw,userquota,groupquota 0 2
user_domain#autres /users/autres advfs rw,userquota,groupquota 0 2
data_domain#autres /data/autres advfs rw,userquota,groupquota 0 2
/dev/vg00/lvol1 / hfs defaults 0 1
/dev/vg00/lvol3 ... swap defaults 0 0
/dev/vg00/lvol4 /home hfs defaults 0 2
/dev/vg00/lvol6 /tmp hfs defaults 0 2
/dev/vg00/lvol7 /usr hfs defaults 0 2
/dev/vg00/lvol8 /var hfs defaults 0 2
/dev/vg00/newlp /outils/newlp hfs rw,suid 0 2
#
/dev/export/lvol1 /export/sun hfs rw,suid 0 2
/dev/export/lvol2 /export/tektro hfs rw,suid 0 2
/dev/export/lvol3 /USERS/elec hfs rw,suid 0 2
/dev/export/lvol4 /export/solaris hfs rw,suid 0 2
/dev/export/lvol5 /export/hp hfs rw,suid 0 2
#
/dev/users_manip/lvol1 /users/na50 hfs rw,suid 0 2
/dev/users_manip/lvol2 /users/l3 hfs rw,suid 0 2
/dev/users_manip/lvol3 /users/cms hfs rw,suid 0 2
/dev/users_manip/lvol4 /users/nomad hfs rw,suid 0 2
/dev/users_manip/lvol5 /users/theorie hfs rw,suid 0 2
/dev/users_manip/lvol6 /users/autres hfs rw,suid 0 2
/dev/users_manip/lvol7 /users/virgo hfs rw,suid 0 2
/dev/users_manip/lvol8 /users/atlas hfs rw,suid 0 2
/dev/users_manip/lvol9 /users/aleph hfs rw,suid 0 2
/dev/users_manip/lvol10 /users/chooz hfs rw,suid 0 2
#
/dev/users_services/lvol1 /users/swap hfs rw,suid 0 2
/dev/users_services/lvol3 /users/ftp hfs rw,suid 0 2
/dev/users_services/lvol4 /users/calcul hfs rw,suid 0 2
/dev/users_services/lvol5 /users/admin hfs rw,suid 0 2
/dev/users_services/lvol7 /users/mecanique hfs rw,suid 0 2
/dev/users_services/lvol8 /export/www hfs rw,suid 0 2
/dev/users_services/lvol9 /export/cetia hfs rw,suid 0 2
/dev/users_services/rio /USERS/AMS hfs rw,suid 0 2
/dev/users_services/OVW /users/ovw hfs rw,suid 0 2
#
/dev/outils/lvol1 /outils/produits hfs rw,suid 0 2
/dev/outils/lvol2 /outils/tmp hfs rw,suid 0 2
/dev/outils/lvol3 /outils/adm hfs rw,suid 0 2
/dev/outils/lvol4 /export/fic hfs rw,suid 0 2
/dev/outils/lvol5 /outils/swap hfs rw,suid 0 2
/dev/outils/lvol5 /outils/swap swapfs min=12800,lim=38400,pri=1 0 2
/dev/outils/lvol6 /outils/mail hfs rw,suid 0 2
#
/dev/backup/lvol1 /backup/increm3 hfs rw,suid 0 2
/dev/backup/lvol2 /backup/incremental hfs rw,suid 0 2
/dev/backup/lvol3 /users/backup hfs rw,suid 0 2
/dev/backup/lvol4 /backup/increm2 hfs rw,suid 0 2
#
#----------------------------------------------------
# le CDROM est toujours a part
#-------------------------------------------
/dev/dsk/c1t2d0 /cdrom cdfs ro,suid 0 2
#
#-----------------------------------
# rondelles NFS
#---------------------------------------------------
# lapphp0
lapphp0.in2p3.fr:/lapphp0_3/cern /cern nfs rw,suid,bg 0 0
lapphp0.in2p3.fr:/lapphp0_3/produits/frame /outils/produits/frame nfs rw,suid,bg 0 0
lapphp0.in2p3.fr:/lapphp0_3/produits/rogue /outils/produits/rogue nfs rw,suid,bg 0 0
lapphp0.in2p3.fr:/lapphp1_6 /lapphp1_6 nfs rw,suid,bg 0 0
#lapphp0.in2p3.fr:/lapphp0_2/local /usr/local.hp0 nfs rw,suid,bg 0 0
# pour Alain Bazan (5/01/98)
#lapphp0.in2p3.fr:/usr/lib/X11R6 /usr/lib/X11R6 nfs rw,suid,bg 0 0
#lapphp0.in2p3.fr:/usr/lib/Motif1.2_R6 /usr/lib/Motif1.2_R6 nfs rw,suid,bg 0 0
# rondelles lapphp8 : produits logiciels a deplacer sur lapphp0
# pour eviter les NFS croises
lapphp8.in2p3.fr:/lapphp8/mupad /lapphp8/mupad nfs rw,suid,bg 0 0
lapphp8.in2p3.fr:/lapphp8/maple /lapphp8/maple nfs rw,suid,bg 0 0
# lappa0
lappa0:/COMMUN /COMMUN nfs rw,suid,bg 0 0
lappa0:/virgoa1_2 /nfs/virgoa1_2 nfs rw,suid,bg 0 0
/dev/vg00/securite /outils/securite hfs rw,suid 0 2
What about using builtin symbols defined by the compiler (gcc)