Пакет openldap: Specfile

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
%define _unpackaged_files_terminate_build 1
%define so_ver 2
%add_verify_elf_skiplist %_libdir/libslapi*
### Build switches for enable or disable fiture ###
%def_enable doc
%def_disable sql
%def_disable perl
%def_enable sasl
### Disable, because while build by rpm is not passed
%def_disable debug
%def_disable slapi
%def_disable slp
%def_enable overlay
%def_enable aci
%def_enable yielding
%def_enable argon2
%def_disable static
%define contrib_slapo_name addpartial allop allowed authzid autogroup cloak datamorph denyop lastbind noopsrch passwd/sha2 passwd/pbkdf2 trace usn variant vc
Name: openldap
Version: 2.6.7
Release: alt0.port

Obsoletes: openldap2.4 < %version-%release

%define ldap_ssl_dir %_sysconfdir/%name/ssl
%define ssl_dir %_localstatedir/ssl/certs
%define ldap_dir %_localstatedir/ldap

Summary: LDAP libraries and sample clients
License: OLDAP-2.8
Group: System/Servers
Url: http://www.openldap.org/

Packager: OpenLDAP Maintainers Team <openldap@packages.altlinux.org>

# ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
Source: %name-%version.tar

# Docs for this products
#Source2: %name-README.upgrading
Source3: %name-README.ALT
Source4: %name-config-README.ALT

# System Specific source
Source11: %name.sysconfig
Source12: %name-slapd.init
Source13: %name.logrotate
Source14: %name-slapd.service

## Chroot config
Source15: %name-ldap.all
Source16: %name-ldap.conf
Source17: %name-ldap.lib
# This file we need to build from original dynamic
Source18: %name-slapd.conf
Source20: %name-slapd-access.conf
Source21: %name-slapd-mdb-db01.conf
# OLC config directory backup/restore scripts
Source40: %name-olc-backup
Source41: %name-olc-restore

# Extended OpenLDAP schemas
Source50: %name-addon-schemas.tar
Source51: %name-ALT-rootdse.ldif

### PATCHES
Patch1: %name-alt-defaults.patch

## Patch created by Alexander Bokovoy <ab@altlinux.ru>
Patch2: %name-2.3.34-alt-pid.patch

Patch4: %name-2.6.7-alt-makefile.patch

Patch13: %name-2.4.25-rh-ldaprc-currentdir.patch
Patch14: %name-2.4.25-rh-reentrant-gethostby.patch
Patch16: %name-2.6.3-rh-ai-addrconfig.patch
# fix back_perl problems with lt_dlopen()
# might cause crashes because of symbol collisions
# the proper fix is to link all perl modules against libperl
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=327585
Patch18: %name-2.6.3-rh-switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.patch
Patch19: %name-2.6.3-rh-add-export-symbols-LDAP_CONNECTIONLESS.patch

Patch20: %name-2.6.1-system-mdb.patch

Patch50: openldap-2.6.3-alt-tests-wait-longer.patch

### REQUIRE Section

%if_enabled doc
# For compile documentations need "sdf".
BuildRequires: sdf >= 2
%endif
%if_enabled sasl
# due to SASL_AUXPROP_PLUG_VERSION
BuildRequires: libsasl2-devel >= 2.1.24-alt1.cvs.20090508
%endif
%if_enabled sql
BuildRequires: libunixODBC-devel
%endif
%if_enabled perl
BuildRequires: perl-devel
%endif
%if_enabled slp
BuildRequires: libopenslp-devel
%endif
%{?_enable_argon2:BuildRequires: libargon2-devel}

BuildRequires: chrooted groff-base libltdl-devel libssl-devel shtool
BuildRequires: libsystemd-devel
BuildRequires: libevent-devel libuuid-devel
BuildRequires: liblmdb-devel
# for tests
#BuildRequires: krb5-kdc krb5-kinit cyrus-sasl2 libsasl2-plugin-gssapi openssl

%package -n libldap%{so_ver}
Summary: OpenLDAP libraries
Group: System/Libraries
Requires: %name-common = %version-%release
Provides: libldap = %version-%release

%package -n libldap-devel
Summary: OpenLDAP development libraries and header files
Group: Development/C
Requires: libldap%{so_ver} = %version-%release

Provides: openldap-devel = %version-%release
Obsoletes: openldap-devel < %version-%release

%package -n libldap-devel-static
Summary: OpenLDAP development static libraries
Group: Development/C
Requires: libldap-devel = %version-%release
Provides: openldap-devel-static = %version-%release
Obsoletes: openldap-devel-static < %version-%release

%package common
Summary: Common files for OpenLDAP
Group: System/Servers
Obsoletes: %name < 2.4.56-alt1
BuildArch: noarch

%package servers
Summary: LDAP servers
Group: System/Servers
Requires: libldap%{so_ver} = %version-%release

Provides: openldap2.4-servers = %version-%release
Obsoletes: openldap2.4-servers < %version-%release

%package clients
Summary: LDAP utilities, tools and sample clients
Group: Networking/Remote access
Requires: libldap%{so_ver} = %version-%release

Provides: openldap2.4-clients = %version-%release
Obsoletes: openldap2.4-clients < %version-%release

%package -n %name-doc
Summary: OpenLDAP administration guide
Group: Books/Computer books
BuildArch: noarch
Obsoletes: openldap2.4-doc < %version-%release

%package contrib
Summary: OpenLDAP Contrib Modules
Group: System/Servers
Requires: %name-servers = %version-%release

%description
OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
Protocol) applications and development tools.  LDAP is a set of
protocols for accessing directory services (usually phone book style
information, but other information is possible) over the Internet,
similar to the way DNS (Domain Name System) information is propagated
over the Internet.  The suite includes a stand-alone LDAP server
(slapd), libraries for implementing the LDAP protocol, utilities, 
tools, and sample clients.

Install %name if you need to run LDAP-based applications and tools.

%description -n libldap%{so_ver}
OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
Protocol) applications and development tools.  LDAP is a set of
protocols for accessing directory services (usually phone book style
information, but other information is possible) over the Internet,
similar to the way DNS (Domain Name System) information is propagated
over the Internet.  The suite includes a stand-alone LDAP server
(slapd), libraries for implementing the LDAP protocol, utilities, 
tools, and sample clients.

This package contains shared libraries needed for make works %name-based softare.

%description -n libldap-devel
OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
Protocol) applications and development tools.  LDAP is a set of
protocols for accessing directory services (usually phone book style
information, but other information is possible) over the Internet,
similar to the way DNS (Domain Name System) information is propagated
over the Internet.  The suite includes a stand-alone LDAP server
(slapd), libraries for implementing the LDAP protocol, utilities, 
tools, and sample clients.

This package includes the development libraries and header files needed
for developing applications that use LDAP internals. Install this package
only if you plan to develop or will need to compile customized LDAP clients.

%description -n libldap-devel-static
OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
Protocol) applications and development tools.  LDAP is a set of
protocols for accessing directory services (usually phone book style
information, but other information is possible) over the Internet,
similar to the way DNS (Domain Name System) information is propagated
over the Internet.  The suite includes a stand-alone LDAP server
(slapd), libraries for implementing the LDAP protocol, utilities, 
tools, and sample clients.

This package includes the static libraries needed for developing statically
linked applications that use LDAP internals.

%description common
Common files for OpenLDAP.

%description servers
OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
Protocol) applications and development tools.  LDAP is a set of
protocols for accessing directory services (usually phone book style
information, but other information is possible) over the Internet,
similar to the way DNS (Domain Name System) information is propagated
over the Internet.  The suite includes a stand-alone LDAP server
(slapd), libraries for implementing the LDAP protocol, utilities, 
tools, and sample clients.

Install %name-servers if you need LDAP servers.
The server provides several database backends and overlays.

%description clients
OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
Protocol) applications and development tools.  LDAP is a set of
protocols for accessing directory services (usually phone book style
information, but other information is possible) over the Internet,
similar to the way DNS (Domain Name System) information is propagated
over the Internet.  The suite includes a stand-alone LDAP server
(slapd), libraries for implementing the LDAP protocol, utilities, 
tools, and sample clients.

Install %name-client if you need LDAP applications and tools.

%description doc
OpenLDAP Administration Guide
HTML and TXT versions

%description contrib
Various overlays found in contrib/:
 * addpartial    Intercepts ADD requests, applies changes to existing entries
 * allop
 * allowed       Generates attributes indicating access rights
 * autogroup
 * authzid       implements RFC 3829 support
 * cloak
 * datamorph     store enumerated values and fixed size integers
 * denyop
 * lastbind      writes last bind timestamp to entry
 * noopsrch      handles no-op search control
 * pw-sha2       generates/validates SHA-2 password hashes
 * pw-pbkdf2     generates/validates PBKDF2 password hashes
 * smbk5pwd      generates Samba3 password hashes (heimdal krb disabled)
 * trace         traces overlay invocation
 * usn           usnCreated and usnChanged operational attributes
 * variant       allows attributes/values to be shared between several entries
 * vc            implements the verify credentials extended operation

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch4 -p1

%patch13 -p1
%patch14 -p1
%patch16 -p1
%patch18 -p1
%patch19 -p1
%patch20 -p1
%patch50 -p2
rm -r libraries/liblmdb

# Add some more schema for the sake of migration scripts and others
pushd servers/slapd
tar -xf %SOURCE50
popd

mv servers/slapd/back-perl/README{,.back_perl}

# fix documentation encoding
for filename in doc/drafts/draft-ietf-ldapext-acl-model-xx.txt; do
  iconv -f iso-8859-1 -t utf-8 "$filename" > "$filename.utf8"
  mv "$filename.utf8" "$filename"
done

%build
# Options -lresolv in line below need for some bad configure scripts like in auth_ldap package
#export LDFLAGS="$LDFLAGS -lresolv"
export CPPFLAGS="$CPPFLAGS -DLOG_DAEMON=1"

export CFLAGS="%optflags -Wno-format-extra-args -fno-strict-aliasing -DNDEBUG -DSLAP_SCHEMA_EXPOSE -DLDAP_COLLECTIVE_ATTRIBUTES -DOPENSSL_NO_MD2"
export STRIP=""
# enable experimental support for LDAP over UDP (LDAP_CONNECTIONLESS)
export CFLAGS="${CFLAGS} -DLDAP_CONNECTIONLESS"

#shtoolize all
#aclocal
#autoconf
#libtoolize --force --install
%autoreconf

%configure \
	%{subst_enable static} \
	--enable-syslog \
	--enable-dynamic \
	--enable-versioning \
	--enable-dynacl \
	--enable-cleartext \
	--enable-crypt \
	--with-tls=openssl \
	--with-threads \
	--enable-slapd \
	--enable-modules \
	--enable-backends=mod \
	--enable-mdb=yes \
	--disable-ndb \
	--disable-wt \
	--enable-balancer=mod \
	%{subst_enable argon2} \
	\
%if_enabled yielding
	--with-yielding-select \
%else
	--without-yielding-select \
%endif
%if_enabled aci
	--enable-aci \
%else
	--disable-aci \
%endif
%if_enabled slapi
	--enable-slapi \
%else
	--disable-slapi \
%endif
%if_enabled slp
	--enable-slp \
%else
	--disable-slp \
%endif
%if_enabled sql
	--enable-sql=mod \
%else
	--disable-sql \
%endif
%if_enabled sasl
	--with-cyrus-sasl \
	--enable-spasswd \
%else
	--without-cyrus-sasl \
%endif
%if_enabled perl
	--enable-perl=mod \
%else
	--disable-perl \
%endif
%if_enabled overlay
	--enable-overlays=mod \
%else
	--disable-overlays \
%endif
%if_enabled debug
	--enable-debug \
%endif


%__subst 's/^AC_CFLAGS.*/& %optflags_shared/' libraries/librewrite/Makefile

#%make depend
#export NPROCS=1
%make_build

pushd libraries/liblutil
rm -f libldif.la
MOD_LIBS="-L../liblber/.libs/ -L../libldap/.libs/ -llber -lldap" make
popd

# Build selected contrib overlays
for SLAPO_NAME in %contrib_slapo_name
do
  %make_build -C contrib/slapd-modules/${SLAPO_NAME} prefix="%_prefix" libdir="%_libdir" libexecdir="%_libexecdir" 
done
# slapo-smbk5pwd only for Samba password hashes
%make_build -C contrib/slapd-modules/smbk5pwd DEFS="-DDO_SAMBA" HEIMDAL_LIB="" prefix="%_prefix" libdir="%_libdir" libexecdir="%_libexecdir" 

%if_enabled doc
# Build Administrator Guide in html and text mode
pushd doc/guide/admin
sdf -2topics index.sdf
sdf -2txt guide.sdf
popd
%endif

%install
%makeinstall_std STRIP=""
###
## Install all slapd's file
###

# Install selected contrib overlays
for SLAPO_NAME in %contrib_slapo_name smbk5pwd
do
  %make_install -C contrib/slapd-modules/${SLAPO_NAME} STRIP="" DESTDIR="%buildroot" prefix="%_prefix" libdir="%_libdir" libexecdir="%_libexecdir" install
done

# Create the /var/lib data directory and chroot enviroment.
mkdir -p -m750 %buildroot%ldap_dir
mkdir -p -m750 %buildroot%ldap_dir/bases
mkdir -p -m770 %buildroot%ldap_dir/dblogs
#__mkdir_p -m750 %buildroot%ldap_dir/replica
mkdir -p -m755 %buildroot%ldap_dir/dev
mkdir -p -m750 %buildroot%ldap_dir%_sysconfdir/ssl
mkdir -p -m750 %buildroot%ldap_dir%_sysconfdir/schema
ln -s . %buildroot%ldap_dir%_sysconfdir/%name
mkdir -p -m775 %buildroot%ldap_dir/lib
ln -s lib %buildroot%ldap_dir/lib64
mkdir -p -m755 %buildroot%ldap_dir/usr/lib/%name
mkdir -p -m755 %buildroot%ldap_dir/usr/lib/sasl2-3
ln -s lib %buildroot%ldap_dir/usr/lib64
mkdir -p -m775 %buildroot%ldap_dir/var/run
mkdir -p -m775 %buildroot%ldap_dir%ldap_dir
ln -s ../../../bases %buildroot%ldap_dir%ldap_dir/
ln -s ../../../dblogs %buildroot%ldap_dir%ldap_dir/
mksock %buildroot%ldap_dir/dev/log

# Install init scripts.
install -pD -m644 %SOURCE11 %buildroot%_sysconfdir/sysconfig/ldap
install -pD -m755 %SOURCE12 %buildroot%_initdir/slapd
mkdir -p -m750 %buildroot%_sysconfdir/chroot.d
install -pD -m750 %SOURCE15 %buildroot%_sysconfdir/chroot.d/ldap.all
install -pD -m750 %SOURCE16 %buildroot%_sysconfdir/chroot.d/ldap.conf
install -pD -m750 %SOURCE17 %buildroot%_sysconfdir/chroot.d/ldap.lib
install -pD -m644 %SOURCE14 %buildroot%systemd_unitdir/slapd.service

# Install OLC (cn=config) directory backup/restore scripts
install -pD -m750 %SOURCE40 %buildroot%_sbindir/slapd-olc-backup
install -pD -m750 %SOURCE41 %buildroot%_sbindir/slapd-olc-restore

# log repository and logrotate config
#__mkdir_p -m750 %buildroot%_logdir/ldap
#__install -pD -m644 %SOURCE13 %buildroot%_logrotatedir/ldap

# syslog.d
mkdir -pm700 %buildroot%_sysconfdir/syslog.d
ln -s %ldap_dir/dev/log %buildroot%_sysconfdir/syslog.d/ldap

# config files
mkdir -p -m750 %buildroot%_sysconfdir/%name/ssl
install -pD -m640 %SOURCE18 %buildroot%_sysconfdir/%name/slapd.conf
install -pD -m640 %SOURCE20 %buildroot%_sysconfdir/%name/slapd-access.conf
install -pD -m640 %SOURCE21 %buildroot%_sysconfdir/%name/slapd-mdb-db01.conf
install -pD -m644 %SOURCE51 %buildroot%_sysconfdir/%name/rootdse.ldif

# We don't need the default files - let's move it.
mkdir -p %buildroot%_docdir/%name-servers-%version/default
mv %buildroot%_sysconfdir/%name/*.default \
	%buildroot%_docdir/%name-servers-%version/default/
rm -f %buildroot%_sysconfdir/%name/slapd.ldif

# Documentations for servers
mkdir -p %buildroot%_docdir/%name-servers-%version/{back-{null,perl,sql},schema,slapi,overlays}/
install -D -m644 servers/slapd/back-ldap/TODO.proxy \
	%buildroot%_docdir/%name-servers-%version/back-ldap/TODO.proxy
install -D -m644 servers/slapd/back-monitor/README \
	%buildroot%_docdir/%name-servers-%version/back-monitor/README
install -D -m644 servers/slapd/back-null/README \
	%buildroot%_docdir/%name-servers-%version/back-null/README
%if_enabled perl
install -D -m644 servers/slapd/back-perl/{README,SampleLDAP.pm} \
	%buildroot%_docdir/%name-servers-%version/back-perl/
%endif

%if_enabled sql
install -D -m644 servers/slapd/back-sql/docs/* \
	%buildroot%_docdir/%name-servers-%version/back-sql/
cp -r servers/slapd/back-sql/rdbms_depend \
	%buildroot%_docdir/%name-servers-%version/back-sql/
%endif

%if_enabled slapi
install -pD -m644 servers/slapd/slapi/TODO \
        %buildroot%_docdir/%name-servers-%version/slapi/TODO
%endif

%if_enabled overlay
install -pD -m644 servers/slapd/overlays/README \
        %buildroot%_docdir/%name-servers-%version/overlays/README
install -pD -m644 servers/slapd/overlays/slapover.txt \
        %buildroot%_docdir/%name-servers-%version/overlays/slapover.txt
install -pD -m644 contrib/slapd-modules/smbk5pwd/README \
        %buildroot%_docdir/%name-servers-%version/overlays/README.smbk5pwd
install -pD -m644 contrib/slapd-modules/allop/README \
        %buildroot%_docdir/%name-servers-%version/overlays/README.allop
%endif

install -p -m644 servers/slapd/schema/README \
	%buildroot%_docdir/%name-servers-%version/schema/README
##slapd
install -p -m644 %SOURCE3 \
	%buildroot%_docdir/%name-servers-%version/README.ALT
install -p -m644 %SOURCE4 \
	%buildroot%_docdir/%name-servers-%version/config-README.ALT

%if_enabled doc
## Install Administration Guide 
mkdir -p %buildroot%_docdir/%name-doc-%version/images
install -pD -m644 doc/guide/images/*.gif \
	%buildroot%_docdir/%name-doc-%version/images
mkdir -p %buildroot%_docdir/%name-doc-%version/admin-guide
#install -pD -m644 doc/guide/admin/*.gif \
#	%buildroot/%_docdir/%name-doc-%version/admin-guide/
install -pD -m644 doc/guide/admin/*.html \
	%buildroot%_docdir/%name-doc-%version/admin-guide/
install -p -m644 doc/guide/admin/guide.txt \
	%buildroot%_docdir/%name-doc-%version/
%endif

# Purge dependency_libs from .la files.
%__subst -p 's/^\(dependency_libs=\).*/\1'\'\'/ \
	%buildroot%_libexecdir/%name/*.la

#======
# Relocate some shared libraries from %_libdir/ to /%_lib/.
mkdir -p %buildroot/%_lib
for n in ldap lber; do
	for f in %buildroot%_libdir/lib$n.so; do
		t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
		[ -n "$t" ]
		ln -s -nf ../../%_lib/"$t" "$f"
	done
    mv %buildroot%_libdir/lib$n.so.* %buildroot/%_lib/
done

%check
# rm failed tests
rm -f tests/scripts/test063-delta-multiprovider
%make SLAPD_DEBUG=0 test

%pre servers
# Take care to only do ownership-changing if we're adding the user.
/usr/sbin/groupadd -rf ldap
/usr/sbin/useradd  -rM -c "LDAP User" -g ldap -u 55 -s /dev/null -d %ldap_dir ldap &>/dev/null
if [ -d "$ldap_ssl_dir" -a ! -L "$ldap_ssl_dir" ]; then
	echo "Your certificates are moved to $ldap_ssl_dir.rpmsave, please CHECK!"
	mv "$ldap_ssl_dir" "$ldap_ssl_dir".rpmsave
fi	

%post servers
# remove old libs from chroot
rm -f /var/lib/ldap/%_libdir/openldap/*
rm -f /var/lib/ldap/%_libdir/sasl2-3/*
rm -f /var/lib/ldap/%_libdir/*.so*
rm -f /var/lib/ldap/%_lib/*.so*

%post_service slapd

%preun servers
%preun_service slapd

%files -n libldap%{so_ver}
/%_lib/*.so.*

%files -n libldap-devel
%_libdir/*.so
%_includedir/*
%_pkgconfigdir/*.pc
%_man3dir/*
%doc doc/{drafts,rfc,devel}

%if_enabled static
%files -n libldap-devel-static
%_libdir/*.a
%endif

%files common
%doc ANNOUNCEMENT CHANGES COPYRIGHT LICENSE README
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/ldap.conf
%_man5dir/ld*

%files servers
%_sysconfdir/chroot.d/ldap.all
%_sysconfdir/chroot.d/ldap.conf
%_sysconfdir/chroot.d/ldap.lib
%_sysconfdir/syslog.d/ldap
#config(noreplace) %_sysconfdir/logrotate.d/ldap

%_sysconfdir/%name/schema
%attr(750,root,ldap) %dir %_sysconfdir/%name/ssl

%config(noreplace) %_sysconfdir/%name/rootdse.ldif
%attr(-,root,ldap)%config(noreplace) %_sysconfdir/%name/slapd-access.conf
%attr(-,root,ldap)%config(noreplace) %_sysconfdir/%name/slapd-mdb-db01.conf
%attr(-,root,ldap)%config(noreplace) %_sysconfdir/%name/slapd.conf

%_initdir/slapd
%systemd_unitdir/slapd.service
%config(noreplace) %_sysconfdir/sysconfig/ldap

%if_enabled slapi
%_libdir/libslapi*.so.*
%endif

%_sbindir/sl*
%dir %_libexecdir/%name
%_libexecdir/%name/accesslog*
%_libexecdir/%name/auditlog*
%_libexecdir/%name/autoca*
%_libexecdir/%name/argon2*
%_libexecdir/%name/back_asyncmeta*
%_libexecdir/%name/back_dnssrv*
%_libexecdir/%name/back_ldap*
%_libexecdir/%name/back_meta*
%_libexecdir/%name/back_null*
%_libexecdir/%name/back_passwd*
%_libexecdir/%name/back_relay*
%_libexecdir/%name/back_sock*
%_libexecdir/%name/collect*
%_libexecdir/%name/constraint*
%_libexecdir/%name/dds*
%_libexecdir/%name/deref*
%_libexecdir/%name/dyngroup*
%_libexecdir/%name/dynlist*
%_libexecdir/%name/home*
%_libexecdir/%name/lloadd*
%_libexecdir/%name/memberof*
%_libexecdir/%name/otp*
%_libexecdir/%name/pcache*
%_libexecdir/%name/ppolicy*
%_libexecdir/%name/refint*
%_libexecdir/%name/remoteauth*
%_libexecdir/%name/retcode*
%_libexecdir/%name/rwm*
%_libexecdir/%name/seqmod*
%_libexecdir/%name/sssvlv*
%_libexecdir/%name/syncprov*
%_libexecdir/%name/translucent*
%_libexecdir/%name/unique*
%_libexecdir/%name/valsort*

%_man5dir/sl*
%_man5dir/ll*
%_man8dir/*

%doc %_docdir/%name-servers-%version
#attr(0775,root,ldap) %dir %_logdir/ldap

%attr(0750,root,ldap) %dir %ldap_dir
%attr(1770,root,ldap) %dir %ldap_dir/bases
%attr(1770,root,ldap) %ldap_dir/dblogs
%attr(0775,root,ldap) %dir %ldap_dir/dev
%ghost %attr(0666,root,root) %ldap_dir/dev/log
%attr(0755,root,ldap) %ldap_dir/etc
%attr(0750,root,ldap) %ldap_dir/lib
%ldap_dir/lib64
%ldap_dir/usr
%ldap_dir/var
%attr(0775,root,ldap) %dir %ldap_dir/var/run

##### CLIENTS
%files clients
%_bindir/*
%_man1dir/*

%if_enabled doc
##### GUIDE
%files doc
%_docdir/%name-doc-%version/*
%dir %_docdir/%name-doc-%version/
%endif

##### CONTRIB modules
%files contrib
%_libexecdir/%name/addpartial*
%_libexecdir/%name/allop*
%_libexecdir/%name/allowed*
%_libexecdir/%name/authzid*
%_libexecdir/%name/autogroup*
%_libexecdir/%name/cloak*
%_libexecdir/%name/datamorph*
%_libexecdir/%name/denyop*
%_libexecdir/%name/lastbind*
%_libexecdir/%name/noopsrch*
%_libexecdir/%name/pw-pbkdf2*
%_libexecdir/%name/pw-sha2*
%_libexecdir/%name/smbk5pwd*
%_libexecdir/%name/trace*
%_libexecdir/%name/usn*
%_libexecdir/%name/variant*
%_libexecdir/%name/vc*

###
# TODO for 2.2.x
#
#[global] correct install all docs to %_docdir
#[global] Correct build with SASL(+++) Need tests
#[FR] Translate Admin Guide
#[FR] Translate LDAP Tools and add working in LOCALE Run-Time envirement.
#[FR] Make load modules correctly by dlopen without *.la files
#[global] Copy or not in back-meta/data directory (may be need to copy this data to Docs dir).
#[NeedBugFix] Remove TEXTREL from back-{modules}
#[global] What is back-tcl ?? man is here, but back modules isn't.
#[global] Generate slapd.conf according slapd.conf in source and man pages back-*
#[global] Create new config shema
#[FR] Import, may be, backup shema from MDK
#[global] Work on SSL/TLS cert dir!(+++) Need tests. 
#[FR] Correct patch for aacls for latest version
#[FR] Create separate package with OpenLDAP test for ALT Specific chroot env
#[FR] Create chroot-scripts dynamic while build package 

%changelog
* Sat Mar 23 2024 Ivan A. Melnikov <iv@altlinux.org> 2.6.7-alt0.port
- tests: increase some timeouts to fix FTBS
  on mipsel and riscv64

* Wed Mar 20 2024 Alexey Shabalin <shaba@altlinux.org> 2.6.7-alt1
- 2.6.7

* Wed Oct 04 2023 Alexey Shabalin <shaba@altlinux.org> 2.6.6-alt1
- 2.6.6

* Fri Mar 24 2023 Alexey Shabalin <shaba@altlinux.org> 2.6.4-alt1
- 2.6.4

* Mon Sep 05 2022 Alexey Shabalin <shaba@altlinux.org> 2.6.3-alt1
- 2.6.3
- rename package libldap to libldap%%{so_ver}

* Fri Aug 26 2022 Alexey Shabalin <shaba@altlinux.org> 2.5.13-alt1
- 2.5.13
- Retired backends by upstream: bdb, hdb, shell
- Deprecated backends (and disable build): sql, perl
- Disable build slp
- Build new password hashing module argon2
- Drop ntlm support
- Disable build static libs
- Cleanup patches
- Add patches from RH
- Build with system liblmdb and libuuid
- Build all backends modules, exept nbd and wt
- Build all overlay modules
- Add contrib package with contrib overlay modules

* Mon Aug 16 2021 Andrey Cherepanov <cas@altlinux.org> 2.4.59-alt1
- 2.4.59
- Fixes:
  + CVE-2021-27212 Fixed slapd validity checks for issuerAndThisUpdateCheck
- Enable experimental support for LDAP over UDP (LDAP_CONNECTIONLESS)
- Fix coverity issues
- Build without MD2 support

* Sat Feb 13 2021 Alexey Shabalin <shaba@altlinux.org> 2.4.57-alt1
- 2.4.57
- Fixes:
  + CVE-2020-36221 Fixed slapd crashes in Certificate Exact Assertion processing
  + CVE-2020-36222 Fixed slapd assertion failures in saslAuthzTo validation
  + CVE-2020-36223 Fixed slapd crash in Values Return Filter control handling
  + CVE-2020-36224 Fixed slapd crashes in saslAuthzTo processing
  + CVE-2020-36225 Fixed slapd crashes in saslAuthzTo processing
  + CVE-2020-36226 Fixed slapd crashes in saslAuthzTo processing
  + CVE-2020-36227 Fixed slapd infinite loop with Cancel operation
  + CVE-2020-36228 Fixed slapd crash in Certificate List Exact Assertion processing
  + CVE-2020-36229 Fixed slapd crash in X.509 DN parsing
  + CVE-2020-36230 Fixed slapd assertion failure in X.509 DN parsing

* Sun Dec 27 2020 Alexey Shabalin <shaba@altlinux.org> 2.4.56-alt1
- 2.4.56 (Fixes: CVE-2020-25709, CVE-2020-25710)
- do not strip binaries to produce correct .debuginfo packages (ALT#27895)
- move common file to openldap-common (ALT#18754)

* Sun Dec 27 2020 Alexey Shabalin <shaba@altlinux.org> 2.4.56-alt1
- 2.4.55 (Fixes: CVE-2020-25692)

* Fri Oct 23 2020 Alexey Shabalin <shaba@altlinux.org> 2.4.54-alt1
- 2.4.54 (Fixes: CVE-2020-12243)

* Sat Sep 19 2020 Igor Vlasenko <viy@altlinux.ru> 2.4.48-alt3.1
- rebuild with new perl 5.30.2 and libdb4.8

* Mon Oct 07 2019 Anton V. Boyarshinov <boyarsh@altlinux.org> 2.4.48-alt3
- sasl fix fixed

* Fri Oct 04 2019 Anton V. Boyarshinov <boyarsh@altlinux.org> 2.4.48-alt2
- sasl in chroot fixed

* Wed Aug 28 2019 Alexey Shabalin <shaba@altlinux.org> 2.4.48-alt1
- 2.4.48 (Fixes: CVE-2019-13057, CVE-2019-13565)

* Fri Jun 14 2019 Stanislav Levin <slev@altlinux.org> 2.4.47-alt2
- Fixed LDAPI with SASL_NOCANON (RH BZ: #960222).

* Sun Apr 21 2019 Alexey Shabalin <shaba@altlinux.org> 2.4.47-alt1
- 2.4.47

* Thu Jan 24 2019 Igor Vlasenko <viy@altlinux.ru> 2.4.46-alt1.1
- rebuild with new perl 5.28.1

* Wed Aug 29 2018 Alexey Shabalin <shaba@altlinux.org> 2.4.46-alt1
- 2.4.46
- build with openssl-1.1
- build without tcp_wrappers

* Thu Jul  5 2018 Leonid Krivoshein <klark@altlinux.org> 2.4.45-alt5
- /etc/sysconfig/ldap: use SLAPD_BACKEND= for ldap-dn create calls.

* Thu Jan 18 2018 Stanislav Levin <slev@altlinux.org> 2.4.45-alt4
- fix default value of TLS_REQCERT (NEVER -> DEMAND) in ldap.conf
  accoding to upstream. Some of applications expect to use the default
  DEMAND behavior.

* Tue Dec 19 2017 Leonid Krivoshein <klark@altlinux.org> 2.4.45-alt3
- added support OLC (cn=config or /etc/openldap/slapd.d);
- added backup/restore scripts for slapd.d directory;
- now used mdb backend by default.

* Fri Dec 15 2017 Igor Vlasenko <viy@altlinux.ru> 2.4.45-alt2.1
- rebuild with new perl 5.26.1

* Tue Oct 24 2017 Dmitry V. Levin <ldv@altlinux.org> 2.4.45-alt2
- slapd:
  + dropped bogus chown from %%pre script;
  + fixed ldapi:/// (closes: #34023).

* Mon Sep 11 2017 Anton V. Boyarshinov <boyarsh@altlinux.org> 2.4.45-alt1
- updated to 2.4.45 (Fixes: CVE-2017-9287)

* Fri Feb 03 2017 Igor Vlasenko <viy@altlinux.ru> 2.4.42-alt4.1
- rebuild with new perl 5.24.1

* Wed Aug 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.4.42-alt4
- general libldap manpages moved out of %name-servers (ALT#32385).

* Wed Jun 08 2016 Anton V. Boyarshinov <boyarsh@altlinux.org> 2.4.42-alt3
- ssl keys generation added to service file

* Fri Jun 03 2016 Anton V. Boyarshinov <boyarsh@altlinux.org> 2.4.42-alt2
- support for multiple LDAP URLs in systemd service

* Wed Nov 25 2015 Igor Vlasenko <viy@altlinux.ru> 2.4.42-alt1.1
- rebuild with new perl 5.22.0

* Wed Sep 30 2015 Anton V. Boyarshinov <boyarsh@altlinux.ru> 2.4.42-alt1
- updated to 2.4.42
- obsolete patches removed
- CVE-2015-6908 fixed

* Mon Jun 01 2015 Anton V. Boyarshinov <boyarsh@altlinux.ru> 2.4.32-alt2.1.1.1
- build with gcc 5.1 fixed

* Tue Dec 09 2014 Igor Vlasenko <viy@altlinux.ru> 2.4.32-alt2.1.1
- rebuild with new perl 5.20.1

* Thu Oct 31 2013 Sergey Y. Afonin <asy@altlinux.ru> 2.4.32-alt2.1
- NMU: rebuilt with cyrus-sasl 2.1.26 (ALT #29485)

* Fri Aug 30 2013 Vladimir Lettiev <crux@altlinux.ru> 2.4.32-alt2
- built for perl 5.18

* Thu Sep 13 2012 Anton V. Boyarshinov <boyarsh@altlinux.ru> 2.4.32-alt1
- 2.4.32

* Mon Sep 10 2012 Alexey Shabalin <shaba@altlinux.ru> 2.4.31-alt7
- fix files for libldap on i586 (ALT #27713)

* Tue Sep 04 2012 Vladimir Lettiev <crux@altlinux.ru> 2.4.31-alt6
- rebuilt for perl-5.16

* Sat Jun 30 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.31-alt5
- update rh patches
- CVE-2012-2668

* Wed May 16 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.31-alt4
- remove TimeoutSec from unit file

* Mon May 14 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.31-alt3
- fix systemd unit file

* Fri May 04 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.31-alt2
- add systemd unit file
- rename to openldap

* Wed Apr 25 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.31-alt1
- 2.4.31

* Tue Mar 06 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.30-alt1
- 2.4.30 with Fedora patches

* Wed Feb 15 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.29-alt1
- 2.4.29

* Thu Dec 08 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.28-alt1
- 2.4.28 with Fedora patches

* Tue Oct 18 2011 Alexey Tourbin <at@altlinux.ru> 2.4.26-alt1.1
- rebuilt for perl-5.14

* Tue Aug 02 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.26-alt1
- 2.4.26 with Fedora patches

* Mon Mar 28 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.25-alt1
- 2.4.25 with Fedora patches
- enable ipv6 (ALT #25829)

* Fri Mar 25 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.24-alt5
- add libgcc_s.so.1 to chroot (ALT #25280)

* Fri Mar 18 2011 Alexey Tourbin <at@altlinux.ru> 2.4.24-alt4
- libldap-devel: removed dependencies on libopenslp-devel libsasl2-devel

* Tue Mar 01 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.24-alt3
- disable samba3 schema by default (ALT #25153)

* Wed Feb 16 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.24-alt2
- openldap-2.4.24-rh-export-ldif.patch

* Sun Feb 13 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.24-alt1
- 2.4.24

* Fri Nov 05 2010 Vladimir Lettiev <crux@altlinux.ru> 2.4.23-alt3.1
- rebuilt with perl 5.12

* Wed Oct 06 2010 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.23-alt3
- Automate figureing out required libs in chroot

* Fri Oct 01 2010 Dmitry V. Levin <ldv@altlinux.org> 2.4.23-alt2
- Rebuilt with libcrypto.so.10.

* Wed Jun 30 2010 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.23-alt1
- 2.4.23
- security fixes: CVE-2010-0212 and CVE-2010-0211

* Wed May 26 2010 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.22-alt1
- 2.4.22

* Tue Mar 09 2010 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.21-alt1
- 2.4.21
- strcpy-memcpy patch to fix fraud overflow

* Mon Nov 09 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.19-alt1
- new upstream version

* Tue Aug 18 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.16-alt4.4
- fixed Provides from %%name to %%name = %%version-%%release

* Mon Aug 17 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.16-alt4.3
- corrected openldap version provides (thanks ldv)

* Mon Aug 17 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.16-alt4.2
- enabled test

* Mon Aug 17 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.16-alt4.1
- simple fixes around openldap package

* Mon Aug 03 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.16-alt4
- added suffix '2.4' for packages
- deleted database auto migration
- removed lib*2.3 provides

* Thu Jul 09 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.16-alt3
- renamed backup dir from .rpmorig to .rpmsave
- added symlink for libldap_r-2.3.so.0

* Tue Jun 30 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.16-alt2.2
- installation fix 

* Tue Jun 30 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.16-alt2.1
- fixed x86_64 compat lib support

* Mon Jun 29 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.16-alt2
- added database automigration from 2.3 to 2.4

* Tue Jun 02 2009 Lebedev Sergey <barabashka@altlinux.org> 2.4.16-alt1
- new upstream version 2.4.16
- removed ldbm backend
- removed slurpd daemon
- fixed configure options
- fixed default config
- disabled openldap-2.3.34-alt-meta-backend.patch
- fixed #20271 #20392

* Mon May 18 2009 Dmitry V. Levin <ldv@altlinux.org> 2.3.43-alt2.2
- NMU.
- Backported upstream build fixes with fresh toolchain (closes: #20035).
- Rebuilt slapd with libsasl2-2.1.24-alt1.cvs.20090508 (closes: #20036).
- Packaged openldap-doc as noarch package.

* Sat May 02 2009 Alexey I. Froloff <raorn@altlinux.org> 2.3.43-alt2.1
- NMU (closes: #19714):
  + Use cert-sh-functions for SSL cerificate generation
  + Point TLS* option examples to /var/lib/ssl/
  + Copy public certificates and slapd.key to chroot

* Fri Dec 12 2008 OpenLDAP Maintainers Team <eostapets@altlinux.org> 2.3.43-alt2
- fix build with new glibc-kernheaders

* Mon Aug 11 2008 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.43-alt1
- 2.3.43

* Wed Jul 02 2008 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.41-alt2
- fix for CVE-2008-2952 (patch from OpenLDAP CVS)
- set more specific BuildRequires:
  + libdb4.4-devel

* Mon Feb 25 2008 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.41-alt1
- 2.3.41
  + fix for CVE-2008-0658 (#14431)

* Mon Oct 29 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.39-alt1
- 2.3.39
- #8241 add support for GSSAPI to slapd chroot

* Thu Oct 11 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.38-alt1
- 2.3.38
- change default syslog facility/level to daemon/info (/etc/sysconfig/ldap)
- remove /var/log/ldap and /etc/logrotate.d/ldap from package
- #11097 move administrator's guide to openldap-doc-x.xx.x/admin-guid
- #11101 add logo files to doc package
- #11861 config-README.ALT and /etc/chroot.d/ldap.conf fixed
- fix slapd init-script:
  + altranative fix for #11879 -- add -u to slaptest;
  + add '--expect-user ldap' to start_daemon parameters

* Wed Aug 08 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.37-alt1
- 2.3.37
- update samba3.schema from samba-3.0.25-alt1
- bugs fixed (bugzilla.altlinux.org):
  - #11426 add NTLM support
  - #11879 chroot directory owner

* Wed Apr 18 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.35-alt0
- 2.3.35

* Sun Mar 04 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.34-alt1
- additional .schema files:
  + updated courier.schema
  + new freeradius.schema

* Thu Feb 22 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.34-alt1
- 2.3.34

* Wed Dec 27 2006 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.31-alt1
- 2.3.31

* Sat Nov 25 2006 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.30-alt1
- 2.3.30

* Mon Oct 30 2006 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.28-alt1
- 2.3.28
- add samba.schema from samba-3.0.23a-alt1
- decrease default in-memory cache size for BDB from 128Mb to 64Mb

* Thu Aug 24 2006 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.27-alt1
- 2.3.27

* Tue Apr 25 2006 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.21-alt1
- 2.3.21
- fix chroot permissions
- misc fixes in the init-scripts and default configs
- disable build of SLAPI library
- slapd:
  + move backend database config into separate files: slapd-hdb-dbNN.conf

* Sat Mar 04 2006 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.20-alt0.1
- rename libldap package to libldap2.3 - soname changed
- spec/scripts fixes for x86_64 build

* Fri Feb 24 2006 Dmitry Lebkov <dlebkov@altlinux.ru> 2.3.20-alt0
- 2.3.20 with Berkeley DB 4.4.20
- change default backend to HDB (replacement for DBD)
- modify default DB_CONFIG
- misc fixes in chroot.d/* scripts

* Thu Nov 24 2005 Nick S. Grechukh <gns@altlinux.org> 2.3.12-alt3
- update to new version. fixed patches 8,9,20

* Sun Sep 04 2005 Serge A. Volkov <vserge at altlinux.ru> 2.2.28-alt1
- Update to new version 2.2.28

* Tue Jun 28 2005 Anton D. Kachalov <mouse@altlinux.org> 2.2.27-alt1.1
- Build with gcc3.4
- Eliminated TEXTRELs
- x86_64 support

* Sun Jun 19 2005 Serge A. Volkov <vserge at altlinux.ru> 2.2.27-alt1
- Update to new version 2.2.27
- Fix slapd.conf bug (alt bugzilla #)

* Sun May 01 2005 Serge A. Volkov <vserge at altlinux.ru> 2.2.26-alt1
- Update to new version 2.2.26
- Update openldap-ldap.lib for FIX bug #6284 (bugzilla.altlinux.ru)

* Fri Apr 29 2005 Serge A. Volkov <vserge at altlinux.ru> 2.2.25-alt1
- Update to new version 2.2.25
- Update Fix bug #6284 (bugzilla.altlinux.ru)

* Sat Mar 26 2005 Serge A. Volkov <vserge at altlinux.ru> 2.2.24-alt1
- Update to new version 2.2.24 
- Disable test by dafault
- Fix bug #6284 (bugzilla.altlinux.ru)
- Update openldap-README.ALT (NOW LDBM by DEFALUT!!!)

* Mon Feb 14 2005 Serge A. Volkov <vserge at altlinux.ru> 2.2.23-alt2
- Rebuild with libdb-4.3
- Set GCC version to 3.3 (becouse back_bdb not work)
- Update chroot scripts (Fix bug #6132 [bugzilla.altlinux.ru])
- Add dir /var/lib/ldap/usr/lib/sasl2 for sasl2 libs

* Fri Jan 28 2005 Serge A. Volkov <vserge at altlinux.ru> 2.2.23-alt1
- Update to new stable release 2.2.23
- Disable aacls (need patch coorections)

* Mon Jan 24 2005 Serge A. Volkov <vserge at altlinux.ru> 2.2.22-alt2
- Add AACLS patch from aacls.sf.net

* Mon Jan 24 2005 Serge A. Volkov <vserge at altlinux.ru> 2.2.22-alt1
- Update to new version 2.2.22 (bugfix release)
- FIX bug in initscript (slapd)
- Remove patch10 %name-2.2.18-configure.in-back-bdb-mod-compile.patch now in HEAD

* Sun Jan 02 2005 Serge A. Volkov <vserge at altlinux.ru> 2.2.20-alt1
- Update to new version 2.2.20
- Add openldap-bdb-DB_CONFIG from MDK for back_bdb (BerkeleyDB options)
- Add openldap-config-README.ALT - TODO configurations files structures
- Add openldap-slapd-access.conf - default slapd.access.conf from MDK
- Spec cleanup
- $ldap_ssl_dir move to pre_servers sections. Now create while install/update package (Need test!)
- Update openldap-slapd.init
- Update ldap.conf (made no verbose)

* Sun Dec 12 2004 Serge A. Volkov <vserge at altlinux.ru> 2.2.19-alt2
- Update Admin Guide from CVS (tag OPENLDAP_REL_ENG_2_2)

* Tue Dec 07 2004 Serge A. Volkov <vserge at altlinux.ru> 2.2.19-alt1
- Update to new version 2.2.19
- Update README.ALT
- Correct slapd.conf

* Sat Dec 04 2004 Serge A. Volkov <vserge at altlinux.ru> 2.2.18-alt6
- FIX back-bdb build dynamic (openldap-2.2.18-configure.in-back-bdb-mod-compile.patch)

* Wed Dec 01 2004 Serge A. Volkov <vserge at altlinux.ru> 2.2.18-alt5
- FIX libs soft linking to /lib from /usr/lib (path by ldv)
- Add %%def_enable ldbm
- FIX upgrade ssl dirs, move old certs to rpmsave dir
- Update README.ALT ( info about back-bdb - It's build static)

* Thu Nov 25 2004 Serge A. Volkov <vserge at altlinux.ru> 2.2.18-alt4
- Bugfixs (buzilla.altlinux.ru):
  - #5558 - copiing schemas to chroot env
  - #5566 - update openldap-slapd.init, check compilations of module bdb
  - #4820 - update chroot env: ldap.conf replace /etc/openldap/ssl by soft link to /var/lib/ssl/certs
  - #5574 - add example

* Thu Nov 11 2004 Serge A. Volkov <vserge at altlinux.ru> 2.2.18-alt3
- FIX libldap-devel: link of /usr/lib/libldap.so

* Sat Oct 30 2004 Serge A. Volkov <vserge at altlinux.ru> 2.2.18-alt2
- SPEC cleanup
- Add NPROCS=1 for correct build on SMP system

* Wed Oct 27 2004 Serge A. Volkov <vserge@altlinux.org> 2.2.18-alt1
- Update to new version 2.2.18
- Remove
  - CPPFLAGS -DNEW_LOGGING=1
  - SOURCE2 = openldap-README.upgrading
- Enable old CPPFLAGS
- FIXED bugs (Bugzilla at altlinux.ru)
  - #4968 update openldap.sysconfig file
  - #5332 update openldap-README.ALT and openldap-slapd.conf
  - #5142 update openldap-slapd.conf

* Mon Oct 11 2004 Serge A. Volkov <vserge@altlinux.org> 2.2.17-alt2
- FIX creating soft link to libs liblber and libldap 

* Fri Oct 01 2004 Serge A. Volkov <vserge@altlinux.org> 2.2.17-alt1
- Update to new version

* Thu Aug 05 2004 Serge A. Volkov <vserge@altlinux.org> 2.2.15-alt2
- Add "-DLDAP_CONNECTIONLESS=1 " in CPPFLAGS for samba integration

* Thu Aug 05 2004 Serge A. Volkov <vserge@altlinux.org> 2.2.15-alt1
- Update
  + new version 2.2.15
  + alt-servers-path.patch

* Tue Jul 6 2004 Serge A. Volkov <vserge@altlinux.org> 2.2.14-alt2
- Update
  + ldv libs scripts
  + openldap-slapd.init script
  + spec cleanup: docs installation scripts

* Thu Jul 1 2004 Serge A. Volkov <vserge@altlinux.org> 2.2.14-alt1
- Spec cleanup
- Update
  + to new version 2.2.14
  + patch9 for fix location of slapd and slurpd
  + OLAG from CVS
  + patch19 %name-2.2.14-alt-pid.patch
  + qmail.shema from qmail-ldap.org (Thanks Konstantin Klimchev)
- Remove patches, becose it's applied to the HEAD
  - Patch22: %name-perl-PLD.patch
  - Patch15: %name-ALT-OLAG.patch
  - Patch17: %name-mark-benson-030616.patch
  - disable krb!!!
- Add
  + -DLOG_DAEMON=1 for log to syslog as a DAEMON
  + shtoolize (Update to new version of shtool scripts)
  + configure options for slp, slapi, overlay, back_hdb, back_dnssrv, wrappers
  + try to strip TEXTREL from modules
  + RPM package options set_verify_elf_method textrel=relaxed
    and add_verify_elf_skiplist %%buildroot/%%_libdir/%%name/* for package modules 
  + Require: libopenslp for %name-servers package

* Sun May 16 2004 Igor Muratov <migor@altlinux.org> 2.1.30-alt3
- Move shared libraries to /lib again

* Tue May 11 2004 ALT QA Team Robot <qa-robot@altlinux.org> 2.1.30-alt2.1
- Rebuilt with openssl-0.9.7d.

* Mon Apr 26 2004 Igor Muratov <migor@altlinux.org> 2.1.30-alt2
- Fix slapd config
- Fix logrotate config
- Fix preinstall script
- Fix chroot script
- Fix file permissions
- Replace dns.schema by dnszone.schema

* Wed Apr 21 2004 Igor Muratov <migor@altlinux.org> 2.1.30-alt1
- Remove old patches and unused sources
- Remove gencert.sh Use openssl script instead
- Patch slurpd to change uid/gid and root directory
- Move slapd and slurpd to chroot
- Fix for execution privileges. Switch to ldap user

* Tue Feb 17 2004 Alexander Bokovoy <ab@altlinux.ru> 2.1.26-alt3.1
- Rebuild against libkrb5-1.3.1-alt3

* Fri Feb 13 2004  Serge A. Volkov <vserge@altlinux.ru> 2.1.26-alt3
- Add patches from CVS:
  + openldap-2.1.26-CVS-cyrus.c.patch
  + openldap-2.1.26-CVS-265-connections.c.patch not installed
  + openldap-2.1.26-CVS-266-connections.c.patch not installed

* Sat Jan 31 2004  Serge A. Volkov <vserge@altlinux.ru> 2.1.26-alt2
- Update to new version 2.1.26
- Merge pathes from PLD

* Wed Dec 10 2003  Serge A. Volkov <vserge@altlinux.ru> 2.1.25-alt1
- Update to new version 2.1.25

* Wed Dec 10 2003  Serge A. Volkov <vserge@altlinux.ru> 2.1.24-alt2
- Add configure options --disable-ltdl
- Fix permission on files *.txt in libldap-devel

* Fri Dec 05 2003 Serge A. Volkov <vserge@altlinux.ru> 2.1.24-alt1
- Update to version 2.1.24 
- Remove Patch21 it's fix in 2.1.24
- Fix some file installations

* Wed Dec 03 2003 Dmitry V. Levin <ldv@altlinux.org> 2.1.23-alt3
- libldap-devel: do not package .la files.
- openldap-servers: purge dependency_libs from .la files.

* Thu Oct 16 2003  Serge A. Volkov <vserge@altlinux.ru> 2.1.23-alt2
- Update slapd configfile patch.

* Mon Oct 13 2003  Serge A. Volkov <vserge@altlinux.ru> 2.1.23-alt1
- Update to new version 2.1.23
- Disable sasl
- Remove patch slurpd-pid - now in mainstream
- Correct server package Requires for libsasl2 and linkrb5
- Update slapd.conf patch

* Thu Oct  9 2003  Serge A. Volkov <vserge@altlinux.ru> 2.1.22-alt12
- Add perl build options to spec, but not enabled it

* Wed Oct  8 2003  Serge A. Volkov <vserge@altlinux.ru> 2.1.22-alt11
- Fixed:
  + slurpd pid file creations
- Add:
  + ALT root DSE ldif
- Remove
  + patch11 MDK for sql-backend it's fix in mainstream

* Mon Sep 29 2003 Alexander Bokovoy <ab@altlinux.ru> 2.1.22-alt10
- Fixed:
  + Missed dependency for libldap-devel on libkrb5-devel
  + Makefile target for liblber which prevented the package from build
  + Build dependencies for libtool -- libtool 1.5 is *required*
- Added:
  + SQL backend build is optional now (needed for AW/XScale project)

* Wed Sep 03 2003 Serge A. Volkov <vserge@altlinux.ru> 2.1.22-alt9
- Spec cleanup
- Enable build with Cirus-sasl libs
- Correct Requires for openldap-servers to openssl
- Correct slapd.conf patch

* Wed Sep 03 2003 Alexander Bokovoy <ab@altlinux.ru> 2.1.22-alt8
- fileutils -> coreutils dependency in openldap-servers

* Tue Sep 02 2003 Serge A. Volkov <vserge@altlinux.ru> 2.1.22-alt7
- Added by Alexander Bokovoy <ab@altlinux.ru>:
  + Samba 3.0 schema as samba3.schema
  + Configure options:
    - --with-yielding-select
    - --enable-cleartext
- Fixed by Alexander Bokovoy <ab@altlinux.ru>:
  + Build with autoconf-2.5/automake-1.6 now
  + Do not remove pid file when just doing check of configuration in slapd
- Spec updated by Alexander Bokovoy <ab@altlinux.ru>, all --with moved to enable/disable
- Spec cleanup, update openldap-README.ALT

* Sun Aug 24 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.22-alt6
- Update slapd.conf (%name-ALT-0.8-slapd.conf.patch): add replogfile
- Add dir %%_var/lib/ldap/replica for slurpd
- Update %name.sysconfig: add SLURPDURLLIST

* Sun Aug 24 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.22-alt5
- Replace all addons schemas by one tar file.
- Replace old initscripts "ldap" to new two "slapd" and "slurpd" and update it for Sisyphus
- Update BuildReq
- Update slapd.conf (openldap-ALT-0.7-slapd.conf.patch): add new options and comments

* Wed Aug 20 2003 Dmitry V. Levin <ldv@altlinux.org> 2.1.21-alt4
- Explicitly use old libtool for build.

* Mon Aug 18 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.22-alt3
- Remove %name-conffile.patch, becose with it TLS not work. Thanks Serge Vlasov.

* Sat Jul 19 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.22-alt2
- Add samba3.shema for samba3.0 support
- Rename old samba.schema to samba2.schema
- Add patches:
  - from Dmitry Lebkov for schemas
- Add script from stunnel package for generation ssl certificate
- Update openldap-ALT-slapd.conf.patch for last changes

* Wed Jul 02 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.22-alt1
- Update to version 2.1.22

* Mon Jun 2 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.21-alt1
- Change Release to alt1 for move package from Daedalus to Sisyphus

* Mon Jun 2 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.21-alt0.4
- Add patch for OpenLDAP Admin Guide

* Mon Jun 2 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.21-alt0.3
- Correct Packager:

* Mon Jun 2 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.21-alt0.2
- Correct BuildPreReq: libunixODBC-devel

* Fri May 30 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.21-alt0.1
- Update to new version 2.1.21
- Enable test for ldbm

* Fri May 30 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.20-alt0.2
- Enable back_BDB dynamic
- Add patches:
  - Masato-Taruishi-030326.patch for tests dynamic modules with corrections
  - openldap-2.1.20-ALT-test-dinamic-modules.patch addon for Masato-Taruishi patch
  - update slapd.conf.patch to new version of slapd.conf - see README.ALT
- New version of ldap init script. Update for new version of service-0.3-alt1
- Update README.ALT and rename it to openldap-README.ALT

* Thu May 22 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.20-alt0.1
- Update to version 2.1.20

* Sat May 10 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.19-alt0.2
- Add patch:
  - Masato-Taruishi-030326.patch for tests dynamic modules
  - OLAG.patch - OpenLDAP Administration Guide for correct sdf compilation.
- Docs install cleanup

* Sat May 10 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.19-alt0.1
- Update to new version 2.1.19
- We need fix OpenLDAP ITS#2354 and my new.

* Fri May 09 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.18-alt0.2
- SPEC cleanup and correct e-mail address
- ADD
  - %%If_with {krb,guide,sasl} for future builds
- Build BDB backend by default and make it buildin

* Tue May 06 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.18-alt0.1
- Update to new version 2.1.18

* Mon May 05 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.17-alt0.5
- Reorganize docs structures.

* Sun Apr 13 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.17-alt0.4
- Update initscript
  - Add function check
- Add README.ALT file for log changes which ALT Linux Team will do.
- Update slapd.conf patch
  - Update for version of OpenLDAP 2.1.17
  - Add back_monitor enable by default

* Sat Apr 12 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.17-alt0.3
- Add to CFLAGS="-DNEW_LOGGING=1" for New loggig format!!!

* Sun Apr 06 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.17-alt0.2
- Fix bdb module compile

* Sat Apr 05 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.17-alt0.1
- Update to new version 2.1.17
- Remove slapd.conf patch (we need redesign ALT-slapd.conf)

* Sun Mar 30 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.16-alt0.3
- Correct CFLAGS and LDFLAGS veraibles for build for Sisyphus. This veraibles
now EXPORTs
- Update BuildRequrs

* Mon Mar 24 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.16-alt0.2
- Add LDFLAGS and CPPFLAGS for Sysiphus correct Kerberos detection
- Add configure options:
  --with-kerberos=k5
  --enable-kpasswd

* Sat Mar 15 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.16-alt0.1
- Update to new version 2.1.16
- Rebuild against libdb4.1 and enable DBD backend

* Wed Mar 05 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.14-alt0.1
- Update to new version 2.1.14

* Wed Feb 26 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.13-alt0.1
- Update to new version 2.1.13 (Bugfix release see Changelog)
- Update RH-syslog.patch for v2.1.13
- Rename openldap-2.0.25-configure-tinfo.patch to openldap-2.0.25-ALT-configure-tinfo.patch this is ALT specific
- Remove bdb module becose in sisyphus libdb4 v4.0.14, but need v4.1
- Add Cyrus-SASL 2 support

* Mon Jan 20 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.12-alt2.2
- Add back-glue module
- Change --datadir=%%_datadir/%%name to --datadir=%%_datadir
- Add Attention message. In TODO write script to migrate from old version of OpenLDAP (2.0.27)
- Correct openldap-2.1.3-slapd.conf.patch for OpenLDAP directory bases (/var/lib/ldap/bases)

* Mon Jan 20 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.12-alt2.1
- Add --multimaster (%%configure)
- Remove alt-sasl2.patch, becouse not need with > libsasl2-2.1.10-alt1.2
- Applay recomandation from Alexander Belov <asbel@mail.ru>
  - Updated /usr/share/openldap/gencert.sh
  - Updated man pages (%%_man5dir/slapd*)
  - Include ucdata dir in package openldap-servers (%%_datadir/%%name/ucdata)
  - Add some RH patches:
    - %name-1.2.11-RH-cldap.patch
    - %name-2.1.2-RH-syslog.patch
- Rename %name-2.0.17-shell-backend-Makefile.patch to %name-2.0.17-RH-shell-backend-Makefile.patch
- Rename %name-2.0.7-schema.patch to %name-2.0.7-MDK-schema.patch and reactivate it
- Rename %name-MDK-sql.patch to %name-MDK-sql.patch

* Mon Jan 13 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.12-alt2
- Separate from one srpms support KERBEROS and SASL in diffrent packages
  If you whan to look in openldap-sasl2 and openldap-krb.
- Update BuildReq

* Fri Jan 10 2003 Aleksandr Blokhin 'Sass' <sass@altlinux.ru> 2.1.12-alt1.1
- Updated BuildRequires

* Thu Jan 09 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.12-alt1
- Update to new release openldap-2.1.12
- Rebuild against libsasl2-2.1.10-alt1.2

* Tue Jan 07 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.11-alt2
- Enable SASL2 support
- Add patch for configure sasl2 alt-specific patch (%_includedir/sasl2/*)
- Add script by Dmitry Levin find and replace for support libsasl2
  - in source files for "#include <sasl/sasl.h>" -> "#include <sasl2/sasl.h>"
  - in source files for "#ifdef HAVE_SASL_SASL_H" -> "#ifdef HAVE_SASL2_SASL_H"

* Sat Jan 04 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.11-alt1
- Update to new version 2.1.11
- Update OpenLDAP Administration Guide for 2.1 but not ganarate HTML files
- Update BuildReq

* Fri Jan 03 2003 Serge A. Volkov <vserge at altlinux dot ru> 2.1.10-alt1
- Update to new version 2.1.10
- Add debug info to standart build
- Spec cleanup
  - Create veriables for configure script COMMONFLAGS and MODULESFLAGS
  - Add veriables krb and sasl for make same packages (see doc about %%if_with)
- Remove from build two backends, becose not compile in TODO now
  - perl
  - sql

* Sun Dec 22 2002 Serge A. Volkov <vserge at altlinux dot ru> 2.1.9-alt2
- Create different packages for SASL and Kerberos, but SASL package in work.
- Kerberos NOT Work. Need do like in postfix package.

* Sun Dec 22 2002 Serge A. Volkov <vserge at altlinux dot ru> 2.1.9-alt1
- Update to version 2.1.9
- Add Kerberos 5 support buildin.

* Thu Oct 31 2002 Serge A. Volkov <vserge at altlinux dot ru> 2.1.8-alt1
- Update for version 2.1.8
- Add BuildRequires: libunixODBC-devel-static
- Add dpendensise for automake_1.4 and autoconf_2.13
- Spec cleanup
  - remove install old files (ud programm)
- Remove SQL-backend module not compile -- in TODO

* Fri Aug 2 2002 Serge A. Volkov <vserge at altlinux dot ru> 2.1.3-alt1
- First release for version 2.1.x
- Remove files in man see CHANGELOG

* Tue Jul 09 2002 Serge A. Volkov <vserge at altlinux dot ru> 2.0.25-alt3
- Update for use terminfo with "ud" program
  - patch for configure (libtinfo)

* Wed Jun 26 2002 Serge A. Volkov <vserge at altlinux dot ru> 2.0.25-alt2
- Add schemas from MDK %name package
  - cron.schema
  - netscape-profile.schema
  - qmailControl.schema
  - trust.schema
  - turbo.schema
  - dns.schema
- Update schemas
  - samba.schema
  - kerberosobject.schema
- schema rfc822-MailMember.schema come back to package but by default is off
- Update guide: in root guide in html by chapter and archive with sdf files
- Update patch for slapd.conf
- Fix bugs #??? according bugs.altlinux.ru

* Thu Jun 13 2002 Serge A. Volkov <vserge at altlinux dot ru> 2.0.25-alt1
- Update to release 2.0.25
- Add courier.schema from courier-imap
- Correct Requires for libunixODBC-devel need for back-sql

* Wed Apr 17 2002 Dmitry V. Levin <ldv@altlinux.org> 2.0.23-alt4
- Dropped useless compatibility symlinks.

* Tue Apr 16 2002 Dmitry V. Levin <ldv@altlinux.org> 2.0.23-alt3
- Relocated lib{ldap,lber}.so.* from %_libdir/ to lib/
  (compatibility symlinks created).
- openldap: requires MTA.
- Build with libdb4, updated buildrequires.

* Thu Mar 21 2002 Dmitry V. Levin <ldv@altlinux.org> 2.0.23-alt2
- libldap: Conflicts: %name < %%version-%%release.
- openldap: PreReq: libldap = %%version-%%release.

* Tue Feb 19 2002 Serge A. Volkov <vserge at altlinux dot ru> 2.0.23-alt1
- Update to 2.0.23 stable release
- Update openldap-guide last CVS version

* Wed Jan 16 2002 Serge A. Volkov <vserge at altlinux dot ru> 2.0.21-alt1
- Update to 2.0.21 stable release

* Tue Jan 15 2002 Serge A. Volkov <vserge at altlinux dot ru> 2.0.20-alt1
- Update to 2.0.20

* Mon Jan 14 2002 Serga A. Volkov <vserge at altlinux dot ru> 2.0.19-alt1head
- Compile the CVS repository
- Add configure options:
  --with-phonetic; --enable-aci; --enable-dynamic; --enable-slurpd

* Fri Dec 21 2001 Serge A. Volkov <vserge at altlinux dot ru> 2.0.19-alt1
- Update to 2.0.19 release
- Cleanup spec

* Fri Dec 14 2001 Serge A. Volkov <vserge at altlinux dot ru> 2.0.18-alt2
- Removed "reload" function in initscript
- Update slapd.conf
- added script for corretion syslog.conf

* Fri Oct 26 2001 Serge	A. Volkov <vserge at altlinux dot ru> 2.0.18-alt1
- Update to 2.0.18

* Thu Oct 25 2001 Serge A. Volkov <vserge at altlinux dot ru> 2.0.17-alt3
- Clean up spec
- Correced slapd.conf patch

* Mon Oct 22 2001 Serge A. Volkov <vserge@altlinux,ru> 2.0.17-alt2
- Fixed compile problem patch by Peter Marshall

* Tue Oct 16 2001 Serge A. Volkov <vserge at altlinux dot ru> 2.0.17-alt1
- Fixed "export ac_cv_func_getaddrinfo=no" hack.
- Updated:
  - to release 2.0.17
  - OpenLDAP Guide last cvs

* Thu Sep 27 2001 Igor Muratov <migor@altlinux.ru> 2.0.15-alt2
- Set TLS to OpenSSL

* Fri Sep 21 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.0.15-alt2
- Specfile cleanup.
- Built with db3-3.3.11.

* Fri Sep 21 2001 Volkov A. Serge <vserge@hotbox.ru> 2.0.15-alt1
- Update to 2.0.15 release.

* Mon Sep 10 2001 Volkov A.Serge <vserge@hotbox.ru> 2.0.14-alt1
- OpenLDAP 2.0.14

* Mon Sep 10 2001 Volkov A.Serge <vserge@hotbox.ru> 2.0.13-alt1
- OpenLDAP 2.0.13

* Fri Sep 7 2001 Volkov A. Serge <vserge@hotbox.ru> 2.0.12-alt2
- Remove from this package Migration Tools package.

* Mon Sep 3 2001 Volkov A. Serge <vserge@hotbox.ru> 2.0.12-alt1
- New release 2.0.12. Add patch for not use getaddrinfo function in sources, becose it's core dumped all soft.
  Remove Red-Hat patch for 2.0.3 version, it's conflict with new sources.

* Mon Aug 6 2001 Volkov A. Serge <vserge@menatepspb.msk.ru> 2.0.11-alt1
- Clean some errors in spec. Remove the major variable it's not need in Sysiphus.

* Fri Aug 3 2001 Volkov A. Serge <vserge@menatepspb.msk.ru> 2.0.11-alt1
- Devide 4 packeges to 7 packeges. Add Guide as package. Made libldap2-static and devel.

* Tue Jul 3 2001 Volkov A. Serge <vserge@menatepspb.msk.ru> 2.0.11-alt1
- OpenLDAP 2.0.11 and Migration tool 38. It's my first redation. I look the spec file from Mandrake Linux.

* Thu May 3 2001 Rider <rider@altlinux.ru> 2.0.7-ipl4
- Migration tool 37

* Tue Apr 17 2001 Alexander Bokovoy <ab@avilink.net> 2.0.7-ipl3
- Broken ldap.init script fixed

* Thu Mar 15 2001 Dmitry V. Levin <ldv@fandra.org> 2.0.7-ipl2
- missing link to libresolv.so added

* Sun Jan 28 2001 Dmitry V. Levin <ldv@fandra.org> 2.0.7-ipl1
- RE adaptions.

* Fri Dec 29 2000 Nalin Dahyabhai <nalin@redhat.com>
- change automount object OID from 1.3.6.1.1.1.2.9 to 1.3.6.1.1.1.2.13,
  per mail from the ldap-nis mailing list

* Tue Dec  5 2000 Nalin Dahyabhai <nalin@redhat.com>
- force -fPIC so that shared libraries don't fall over

* Mon Dec  4 2000 Nalin Dahyabhai <nalin@redhat.com>
- add Norbert Klasen's patch (via Del) to fix searches using ldaps URLs
  (OpenLDAP ITS #889)
- add "-h ldaps:///" to server init when TLS is enabled, in order to support
  ldaps in addition to the regular STARTTLS (suggested by Del)

* Mon Nov 27 2000 Nalin Dahyabhai <nalin@redhat.com>
- correct mismatched-dn-cn bug in migrate_automount.pl

* Mon Nov 20 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to the correct OIDs for automount and automountInformation
- add notes on upgrading

* Tue Nov  7 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to 2.0.7
- drop chdir patch (went mainstream)

* Thu Nov  2 2000 Nalin Dahyabhai <nalin@redhat.com>
- change automount object classes from auxiliary to structural

* Tue Oct 31 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to Migration Tools 27
- change the sense of the last simple patch

* Wed Oct 25 2000 Nalin Dahyabhai <nalin@redhat.com>
- reorganize the patch list to separate MigrationTools and OpenLDAP patches
- switch to Luke Howard's rfc822MailMember schema instead of the aliases.schema
- configure slapd to run as the non-root user "ldap" (#19370)
- chdir() before chroot() (we don't use chroot, though) (#19369)
- disable saving of the pid file because the parent thread which saves it and
  the child thread which listens have different pids

* Wed Oct 11 2000 Nalin Dahyabhai <nalin@redhat.com>
- add missing required attributes to conversion scripts to comply with schema
- add schema for mail aliases, autofs, and kerberosSecurityObject rooted in
  our own OID tree to define attributes and classes migration scripts expect
- tweak automounter migration script

* Mon Oct  9 2000 Nalin Dahyabhai <nalin@redhat.com>
- try adding the suffix first when doing online migrations
- force ldapadd to use simple authentication in migration scripts
- add indexing of a few attributes to the default configuration
- add commented-out section on using TLS to default configuration

* Thu Oct  5 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to 2.0.6
- add buildprereq on cyrus-sasl-devel, krb5-devel, openssl-devel
- take the -s flag off of slapadd invocations in migration tools
- add the cosine.schema to the default server config, needed by inetorgperson

* Wed Oct  4 2000 Nalin Dahyabhai <nalin@redhat.com>
- add the nis.schema and inetorgperson.schema to the default server config
- make ldapadd a hard link to ldapmodify because they're identical binaries

* Fri Sep 22 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to 2.0.4

* Fri Sep 15 2000 Nalin Dahyabhai <nalin@redhat.com>
- remove prereq on /etc/init.d (#17531)
- update to 2.0.3
- add saucer to the included clients

* Wed Sep  6 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to 2.0.1

* Fri Sep  1 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to 2.0.0
- patch to build against MIT Kerberos 1.1 and later instead of 1.0.x

* Tue Aug 22 2000 Nalin Dahyabhai <nalin@redhat.com>
- remove that pesky default password
- change "Copyright:" to "License:"

* Sun Aug 13 2000 Nalin Dahyabhai <nalin@redhat.com>
- adjust permissions in files lists
- move libexecdir from %prefix/sbin to %_sbindir

* Fri Aug 11 2000 Nalin Dahyabhai <nalin@redhat.com>
- add migrate_automount.pl to the migration scripts set

* Tue Aug  8 2000 Nalin Dahyabhai <nalin@redhat.com>
- build a semistatic slurpd with threads, everything else without
- disable reverse lookups, per email on OpenLDAP mailing lists
- make sure the execute bits are set on the shared libraries

* Mon Jul 31 2000 Nalin Dahyabhai <nalin@redhat.com>
- change logging facility used from local4 to daemon (#11047)

* Thu Jul 27 2000 Nalin Dahyabhai <nalin@redhat.com>
- split off clients and servers to shrink down the package and remove the
  base package's dependency on Perl
- make certain that the binaries have sane permissions

* Mon Jul 17 2000 Nalin Dahyabhai <nalin@redhat.com>
- move the init script back

* Thu Jul 13 2000 Nalin Dahyabhai <nalin@redhat.com>
- tweak the init script to only source /etc/sysconfig/network if it's found

* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild

* Mon Jul 10 2000 Nalin Dahyabhai <nalin@redhat.com>
- switch to gdbm; I'm getting off the db merry-go-round
- tweak the init script some more
- add instdir to @INC in migration scripts

* Thu Jul  6 2000 Nalin Dahyabhai <nalin@redhat.com>
- tweak init script to return error codes properly
- change initscripts dependency to one on /etc/init.d

* Tue Jul  4 2000 Nalin Dahyabhai <nalin@redhat.com>
- prereq initscripts
- make migration scripts use mktemp

* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
- do condrestart in post and stop in preun
- move init script to /etc/init.d

* Fri Jun 16 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to 1.2.11
- add condrestart logic to init script
- munge migration scripts so that you don't have to be
  /usr/share/openldap/migration to run them
- add code to create pid files in /var/run

* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
- FHS tweaks
- fix for compiling with libdb2

* Thu May  4 2000 Bill Nottingham <notting@redhat.com>
- minor tweak so it builds on ia64

* Wed May  3 2000 Nalin Dahyabhai <nalin@redhat.com>
- more minimalistic fix for bug #11111 after consultation with OpenLDAP team
- backport replacement for the ldapuser patch

* Tue May  2 2000 Nalin Dahyabhai <nalin@redhat.com>
- fix segfaults from queries with commas in them in in.xfingerd (bug #11111)

* Tue Apr 25 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to 1.2.10
- add revamped version of patch from kos@bastard.net to allow execution as
  any non-root user
- remove test suite from %build because of weirdness in the build system

* Wed Apr 12 2000 Nalin Dahyabhai <nalin@redhat.com>
- move the defaults for databases and whatnot to /var/lib/ldap (bug #10714)
- fix some possible string-handling problems

* Mon Feb 14 2000 Bill Nottingham <notting@redhat.com>
- start earlier, stop later.

* Thu Feb  3 2000 Nalin Dahyabhai <nalin@redhat.com>
- auto rebuild in new environment (release 4)

* Tue Feb  1 2000 Nalin Dahyabhai <nalin@redhat.com>
- add -D_REENTRANT to make threaded stuff more stable, even though it looks
  like the sources define it, too
- mark *.ph files in migration tools as config files

* Fri Jan 21 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to 1.2.9

* Mon Sep 13 1999 Bill Nottingham <notting@redhat.com>
- strip files

* Sat Sep 11 1999 Bill Nottingham <notting@redhat.com>
- update to 1.2.7
- fix some bugs from bugzilla (#4885, #4887, #4888, #4967)
- take include files out of base package

* Fri Aug 27 1999 Jeff Johnson <jbj@redhat.com>
- missing ;; in init script reload) (#4734).

* Tue Aug 24 1999 Cristian Gafton <gafton@redhat.com>
- move stuff from /usr/libexec to /usr/sbin
- relocate config dirs to /etc/openldap

* Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
- initscript munging

* Wed Aug 11 1999 Cristian Gafton <gafton@redhat.com>
- add the migration tools to the package

* Fri Aug 06 1999 Cristian Gafton <gafton@redhat.com>
- upgrade to 1.2.6
- add rc.d script
- split -devel package

* Sun Feb 07 1999 Preston Brown <pbrown@redhat.com>
- upgrade to latest stable (1.1.4), it now uses configure macro.

* Fri Jan 15 1999 Bill Nottingham <notting@redhat.com>
- build on arm, glibc2.1

* Wed Oct 28 1998 Preston Brown <pbrown@redhat.com>
- initial cut.
- patches for signal handling on the alpha