Changeset View
Changeset View
Standalone View
Standalone View
databases/automysqlbackup/files/patch-automysqlbackup
- This file was added.
--- automysqlbackup.orig 2011-12-03 16:10:43 UTC | |||||
+++ automysqlbackup | |||||
@@ -55,8 +55,8 @@ let "N_backup_local_nofiles=0x20" | |||||
# @info: Default configuration options. | |||||
# @deps: (none) | |||||
load_default_config() { | |||||
- CONFIG_configfile="/etc/automysqlbackup/automysqlbackup.conf" | |||||
- CONFIG_backup_dir='/var/backup/db' | |||||
+ CONFIG_configfile="%%ETCDIR%%/automysqlbackup.conf" | |||||
+ CONFIG_backup_dir='/var/backups/automysqlbackup' | |||||
mmokhi: Maybe it's too much what I'm pointing, but I often use `%LOCALBASE%` (or in this case… | |||||
Done Inline ActionsWhen is %ETCDIR% replaced then? This is a patch file... Does the ports tree use some magic version of patch(1)? me_cschwarz.com: When is `%ETCDIR%` replaced then? This is a patch file... Does the ports tree use some magic… | |||||
Done Inline Actions${REINPLACE_CMD} in post-patch target 😊 mmokhi: `${REINPLACE_CMD}` in `post-patch` target 😊
letting the patch file put the `%ETCDIR%` then you… | |||||
CONFIG_multicore='yes' | |||||
CONFIG_multicore_threads=2 | |||||
CONFIG_do_monthly="01" | |||||
@@ -2252,4 +2252,4 @@ elif (( $# == 0 )) && (( ${#opt_flags[@]} == 0 )); the | |||||
method_backup | |||||
fi | |||||
-# END __main | |||||
\ No newline at end of file | |||||
+# END __main |
Maybe it's too much what I'm pointing, but I often use %LOCALBASE% (or in this case %ETCDIR%) and the ${REINPLACE_CMD} in post-patch 😅
Not saying it's better or worse to do so, but might help other people (who have diff place that /usr/local to use it as well 😊