diff options
Diffstat (limited to 'sysutils/kdeadmin3')
-rw-r--r-- | sysutils/kdeadmin3/distinfo | 4 | ||||
-rw-r--r-- | sysutils/kdeadmin3/files/patch-kcron_cttask.cpp | 42 |
2 files changed, 44 insertions, 2 deletions
diff --git a/sysutils/kdeadmin3/distinfo b/sysutils/kdeadmin3/distinfo index c064c6d108ce..a71a740c4d1d 100644 --- a/sysutils/kdeadmin3/distinfo +++ b/sysutils/kdeadmin3/distinfo @@ -1,2 +1,2 @@ -MD5 (KDE/kdeadmin-3.2.2.tar.bz2) = 4a39ce0d9abdd2dccb4531466ee7f229 -SIZE (KDE/kdeadmin-3.2.2.tar.bz2) = 1559783 +MD5 (KDE/kdeadmin-3.2.3.tar.bz2) = 52cac3afb5ae527f7d65cdd27937ecf4 +SIZE (KDE/kdeadmin-3.2.3.tar.bz2) = 1551138 diff --git a/sysutils/kdeadmin3/files/patch-kcron_cttask.cpp b/sysutils/kdeadmin3/files/patch-kcron_cttask.cpp new file mode 100644 index 000000000000..dcf2078dd383 --- /dev/null +++ b/sysutils/kdeadmin3/files/patch-kcron_cttask.cpp @@ -0,0 +1,42 @@ +--- kcron/cttask.cpp 2003/03/31 12:18:41 1.14 ++++ kcron/cttask.cpp 2004/06/01 14:12:34 1.14.2.1 +@@ -44,6 +44,39 @@ CTTask::CTTask(string tokStr, string _co + { + silent = false; + } ++ ++ if (tokStr.substr(0,1) == "@") ++ { ++ if (tokStr.substr(1,6) == "reboot") ++ { ++ // Dunno what to do with this... ++ tokStr = "0 0 1 1 *"+tokStr.substr(7,tokStr.length()-1); ++ } ++ else if (tokStr.substr(1,6) == "yearly") ++ { ++ tokStr = "0 0 1 1 *"+tokStr.substr(7,tokStr.length()-1); ++ } ++ else if (tokStr.substr(1,8) == "annually") ++ { ++ tokStr = "0 0 1 1 *"+tokStr.substr(9,tokStr.length()-1); ++ } ++ else if (tokStr.substr(1,7) == "monthly") ++ { ++ tokStr = "0 0 1 * *"+tokStr.substr(8,tokStr.length()-1); ++ } ++ else if (tokStr.substr(1,6) == "weekly") ++ { ++ tokStr = "0 0 * * 0"+tokStr.substr(7,tokStr.length()-1); ++ } ++ else if (tokStr.substr(1,5) == "daily") ++ { ++ tokStr = "0 0 * * *"+tokStr.substr(6,tokStr.length()-1); ++ } ++ else if (tokStr.substr(1,6) == "hourly") ++ { ++ tokStr = "0 * * * *"+tokStr.substr(7,tokStr.length()-1); ++ } ++ } + + int spacepos(tokStr.find_first_of(" \t")); + minute.initialize(tokStr.substr(0,spacepos)); |