]> git.pld-linux.org Git - packages/samba.git/commitdiff
- also enable dependant schemas for samba.schema
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 5 Mar 2005 20:42:38 +0000 (20:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    samba.spec -> 1.267

samba.spec

index b0e2706bf05e414b46e34aac8bd584573b3683a2..e26a12cfd6909de896705366464f6084676d8d8d 100644 (file)
@@ -5,6 +5,7 @@
 # - review configure options
 # - fix broken --without ldap, test functionality with other bconds
 # - check tdbtool (with tdb.spec)
+# - when pl for openldap-schema-samba done, rel up and STBR
 #
 # Conditional build:
 %bcond_without ads             # without ActiveDirectory support
@@ -39,7 +40,7 @@ Summary(uk):  SMB 
 Summary(zh_CN):        Samba ¿Í»§¶ËºÍ·þÎñÆ÷
 Name:          samba
 Version:       3.0.11
-Release:       2
+Release:       2.3
 Epoch:         1
 License:       GPL v2
 Group:         Networking/Daemons
@@ -1056,7 +1057,13 @@ if ! grep -q %{schemadir}/samba.schema /etc/openldap/slapd.conf; then
                /^include.*local.schema/{
                        i\
 include                %{schemadir}/samba.schema
-               }' /etc/openldap/slapd.conf
+               }
+
+               # enable dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
+               /^#include.*\(cosine\|inetorgperson\|nis\)\.schema/{
+                       s/^#//
+               }
+       ' /etc/openldap/slapd.conf
 fi
 
 if [ -f /var/lock/subsys/ldap ]; then
@@ -1068,6 +1075,9 @@ if [ "$1" = "0" ]; then
        if grep -q %{schemadir}/samba.schema /etc/openldap/slapd.conf; then
                sed -i -e '
                /^include.*\/usr\/share\/openldap\/schema\/samba.schema/d
+
+               # for symmetry it would be nice if we disable enabled schemas in post,
+               # but we really can not do that, it would break something else.
                ' /etc/openldap/slapd.conf
        fi
 
This page took 0.11918 seconds and 4 git commands to generate.