]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
icap: Changed config file directory.
authorChristian Schmidt <christian.schmidt@ipfire.org>
Sat, 12 May 2012 16:23:13 +0000 (18:23 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 May 2012 15:21:40 +0000 (17:21 +0200)
There is a dependency when building the packages, the modules seem
to rely on the master sysconfdir and ignoring there own sysconfdir.
This is whierd when building the modules with the old icap master
packages leading to config files in /etc even when you point it
elsewhere. You need to build the icap packages first and point the
sysconfdir to /etc/anywhere and then the modules will install there
too, ignoring what you´ve configured with the sysconfdir for the
package.

Thats why both will install in /etc/c-icap because you can not link
the modules elsewhere.

Fixes #10125

c_icap/c_icap.nm
c_icap_modules/c_icap_modules.nm

index 53d74bcf4e41b29937b1577949298a9d165eeb8a..acf65d0c3c8f3bde24bc6f7673fb3a953bd494c4 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = c_icap
 version    = 0.1.7
-release    = 2
+release    = 3
 
 maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
 groups     = Networking/Daemons
@@ -33,7 +33,7 @@ build
        configure_options += \
                --enable-large-files \
                --enable-ipv6 \
-               --sysconfdir=/etc \
+               --sysconfdir=/etc/c-icap \
                --localstatedir=/var
 
        prepare_cmds
@@ -50,6 +50,13 @@ end
 packages
        package %{name}
                requires = %{name}_modules
+
+               configfiles
+                       /etc/c-icap/c-icap.conf
+                       /etc/c-icap/c-icap.conf.default
+                       /etc/c-icap/c-icap.magic
+                       /etc/c-icap/c-icap.magic.default
+               end
        end
 
        package %{name}-debuginfo
index 5f34d46a64c10256e10f738d68ad6e2805a8bbec..d6e2911c8c0c60f9999a58f955cbf5f2cb3edaa0 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = c_icap_modules
 version    = 0.1.6
-release    = 1
+release    = 2
 
 maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
 groups     = Networking/Daemons
@@ -25,14 +25,14 @@ build
        requires
                autoconf
                automake
-               c_icap
+               c_icap >= 0.1.7-3
                clamav-devel
                db4-devel
                libtool-devel
        end
 
        configure_options += \
-               --sysconfdir=/etc \
+               --sysconfdir=/etc/c-icap \
                --localstatedir=/var
 
        prepare_cmds
@@ -40,13 +40,19 @@ build
        end
 
        install
-               mkdir -pv %{BUILDROOT}/etc
+               mkdir -pv %{BUILDROOT}/etc/c-icap
                make install DESTDIR=%{BUILDROOT}
        end
 end
 
 packages
        package %{name}
+               configfiles
+                       /etc/c-icap/srv_clamav.conf
+                       /etc/c-icap/srv_clamav.conf.default
+                       /etc/c-icap/srv_url_check.conf
+                       /etc/c-icap/srv_url_check.conf.default
+               end
        end
 
        package %{name}-debuginfo