File tree 5 files changed +41
-4
lines changed
5 files changed +41
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,31 @@ repository history](https://github.com/ddclient/ddclient/commits/main).
5
5
6
6
## v4.0.0-rc.2 (unreleased work-in-progress)
7
7
8
+ ### Breaking changes
9
+
10
+ * ddclient now looks for ` ddclient.conf ` in ` ${sysconfdir}/ddclient ` by
11
+ default instead of ` ${sysconfdir} ` .
12
+ [ #789 ] ( https://github.com/ddclient/ddclient/pull/789 )
13
+
14
+ To retain the previous behavior, pass ` '--with-confdir=${sysconfdir}' ` to
15
+ ` configure ` . For example:
16
+
17
+ ``` shell
18
+ # Before v4.0.0:
19
+ ./configure --sysconfdir=/etc
20
+ # Equivalent with v4.0.0 and later (the single quotes are intentional):
21
+ ./configure --sysconfdir=/etc --with-confdir=' ${sysconfdir}'
22
+ ```
23
+
24
+ or:
25
+
26
+ ` ` ` shell
27
+ # Before v4.0.0:
28
+ ./configure --sysconfdir=/etc/ddclient
29
+ # Equivalent with v4.0.0 and later:
30
+ ./configure --sysconfdir=/etc
31
+ ` ` `
32
+
8
33
# ## New features
9
34
10
35
* New ` --mail-from` option to control the " From:" header of email messages.
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ $(subst_files): Makefile
28
28
-e ' s|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
29
29
-e ' 1 s|^#\!.*perl$$|#\!$(PERL)|g' \
30
30
-e ' s|@localstatedir[@]|$(localstatedir)|g' \
31
+ -e ' s|@confdir[@]|$(confdir)|g' \
31
32
-e ' s|@runstatedir[@]|$(runstatedir)|g' \
32
- -e ' s|@sysconfdir[@]|$(sysconfdir)|g' \
33
33
-e ' s|@CURL[@]|$(CURL)|g' \
34
34
" $$ {in}" > ' $@' .tmp && \
35
35
{ ! test -x " $$ {in}" || chmod +x ' $@' .tmp; }
@@ -40,7 +40,7 @@ ddclient.conf: $(srcdir)/ddclient.conf.in
40
40
41
41
bin_SCRIPTS = ddclient
42
42
43
- sysconf_DATA = ddclient.conf
43
+ conf_DATA = ddclient.conf
44
44
45
45
install-data-local :
46
46
$(MKDIR_P ) ' $(DESTDIR)$(localstatedir)' /cache/ddclient
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ operating system. See the image to the right for a list of distributions with a
105
105
` ` ` shell
106
106
./configure \
107
107
--prefix=/usr \
108
- --sysconfdir=/etc/ddclient \
108
+ --sysconfdir=/etc \
109
109
--localstatedir=/var
110
110
make
111
111
make VERBOSE=1 check
Original file line number Diff line number Diff line change @@ -23,6 +23,18 @@ AC_REQUIRE_AUX_FILE([tap-driver.sh])
23
23
AM_INIT_AUTOMAKE ( [ 1.11 -Wall -Werror foreign subdir-objects parallel-tests] )
24
24
AM_SILENT_RULES
25
25
26
+ m4_define ( [ CONFDIR_DEFAULT] , [ ${sysconfdir}/AC_PACKAGE_NAME] )
27
+ AC_ARG_WITH (
28
+ [ confdir] ,
29
+ [ AS_HELP_STRING (
30
+ [ --with-confdir=DIR] ,
31
+ m4_expand ( [ [ look for ddclient.conf in DIR @<:@ default: ] CONFDIR_DEFAULT[ @:>@ ] ] ) ) ] ,
32
+ [ ] ,
33
+ # The single quotes are intentional; see:
34
+ # https://www.gnu.org/software/automake/manual/html_node/Uniform.html
35
+ [ with_confdir='CONFDIR_DEFAULT'] )
36
+ AC_SUBST ( [ confdir] , [ ${with_confdir}] )
37
+
26
38
AC_PROG_MKDIR_P
27
39
28
40
# The Fedora Docker image doesn't come with the 'findutils' package.
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ sub subst_var {
132
132
return $subst ;
133
133
}
134
134
135
- my $etc = subst_var(' @sysconfdir @' , ' /etc/ddclient' );
135
+ my $etc = subst_var(' @confdir @' , ' /etc/ddclient' );
136
136
my $cachedir = subst_var(' @localstatedir@' , ' /var' ) . ' /cache/ddclient' ;
137
137
our @curl = (subst_var(' @CURL@' , ' curl' ));
138
138
You can’t perform that action at this time.
0 commit comments