]> git.pld-linux.org Git - packages/apache1-mod_ssl.git/commitdiff
- add trigger for mod_sxnet, improved mod_ssl trigger
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 9 Feb 2005 21:15:21 +0000 (21:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_ssl.spec -> 1.95

apache1-mod_ssl.spec

index 840293c0329b2835a8a664ff1ec39e82dfff4092..b3d26eef1b1a7512bb74c551e8ee6e351e9b1e91 100644 (file)
@@ -1,3 +1,5 @@
+# TODO
+#  - other language's descriptions look weird, backslashes and quotes
 %define                SSLVER          2.8.22
 %define                APACHEVER       1.3.33
 %define                apxs            /usr/sbin/apxs1
@@ -21,7 +23,7 @@ Summary(sv):  Kryptografist
 Summary(uk):   íÏÄÕÌؠЦÄÔÒÉÍËÉ SSL × Apache
 Name:          apache1-mod_%{mod_name}
 Version:       %{SSLVER}_%{APACHEVER}
-Release:       1.7
+Release:       1.10
 License:       BSD
 Group:         Networking/Daemons
 Source0:       http://www.modssl.org/source/mod_%{mod_name}-%{SSLVER}-%{APACHEVER}.tar.gz
@@ -229,9 +231,22 @@ if [ "$1" = "0" ]; then
 fi
 
 %triggerpostun -- apache1-mod_ssl < 2.8.22_1.3.33-1.7
-sed -i -e '
-       s,^Include.*mod_ssl.conf,Include %{_sysconfdir}/conf.d/*_mod_ssl.conf,
-' /etc/apache/apache.conf
+if grep -q '^Include conf.d' /etc/apache/apache.conf; then
+       sed -i -e '
+               /^Include.*mod_%{mod_name}.conf/d
+       ' /etc/apache/apache.conf
+else
+       # they're still using old apache.conf
+       sed -i -e '
+               s,^Include.*mod_%{mod_name}.conf,Include %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf,
+       ' /etc/apache/apache.conf
+fi
+
+%triggerpostun -- apache1-mod_sxnet < 2.8.22_1.3.33-1.9
+# check that they're not using old apache.conf
+if ! grep -q '^Include conf.d' /etc/apache/apache.conf; then
+       %{apxs} -e -A -n sxnet %{_pkglibdir}/mod_sxnet.so 1>&2
+fi
 
 %post -n apache1-mod_sxnet
 if [ -f /var/lock/subsys/apache ]; then
This page took 0.040121 seconds and 4 git commands to generate.