openldap-2.6.6

slapd usr/bin/slapd dizinine alındı  comar /usr/bin/slapd olarak ayarlandı
This commit is contained in:
Rmys
2023-11-24 16:55:09 +03:00
committed by GitHub
parent 90b911eef8
commit dfe7d80443
4 changed files with 44 additions and 6 deletions
+9 -3
View File
@@ -19,7 +19,7 @@ def setup():
)
pisitools.dosed("servers/slapd/Makefile.in", "(\$\(DESTDIR\))\$\(localstatedir\)(\/run)", r"\1\2")
pisitools.flags.add("-D_REENTRANT -D_GNU_SOURCE -fPIC -Wl,--as-needed -DLDAP_CONNECTIONLESS")
# pisitools.flags.add("-D_REENTRANT -D_GNU_SOURCE -fPIC -Wl,--as-needed -DLDAP_CONNECTIONLESS")
# shelltools.system("sed -i 's|%LOCALSTATEDIR%/run|/run/openldap|' servers/slapd/slapd.{conf,ldif}")
shelltools.system("sed -i 's|-m 644 $(LIBRARY)|-m 755 $(LIBRARY)|' libraries/{liblber,libldap}/Makefile.in")
@@ -59,7 +59,7 @@ def setup():
if get.buildTYPE() == "emul32":
options += " --prefix=/emul32 \
--libdir=/usr/lib32 \
--libexecdir=/emul32/libexec \
--libexecdir=/usr/lib32 \
--disable-bdb \
--disable-hdb \
--disable-wrappers \
@@ -73,6 +73,8 @@ def setup():
else: options += " --enable-wrappers \
--enable-spasswd \
--enable-perl \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--enable-mdb=yes \
--with-cyrus-sasl \
--enable-bdb=yes \
@@ -96,6 +98,10 @@ def install():
pisitools.dosym("/usr/lib/libslapi.so.2.0.200", "/usr/lib/libldap-2.4.so.2")
pisitools.dosym("/usr/lib/liblber.so.2.0.200", "/usr/lib/liblber-2.4.so.2")
pisitools.dosym("/usr/lib/libslapi.so.2.0.200", "/usr/lib/libslapi-2.4.so.2")
# pisitools.dosym("/usr/lib/slapd", "/usr/libexec/slapd")
pisitools.dosym("/usr/lib/slapd", "/usr/bin/slapd")
pisitools.remove("/usr/lib32/*.la")
pisitools.remove("/usr/lib32/openldap/*.la")
return
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
@@ -107,4 +113,4 @@ def install():
pisitools.dodoc("ANNOUNCEMENT", "CHANGES", "COPYRIGHT", "README", "LICENSE")
pisitools.remove("/usr/lib/*.la")
pisitools.remove("/usr/libexec/openldap/*.la")
pisitools.remove("/usr/lib/openldap/*.la")
+1 -1
View File
@@ -10,7 +10,7 @@ def start():
os.environ["LC_ALL"] = "C"
os.environ["LANG"] = "C"
startService(command="/usr/libexec/slapd",
startService(command="/usr/bin/slapd",
args="-u ldap -g ldap %s" % config.get("OPTS", ""),
pidfile="/run/openldap/slapd.pid",
donotify=True)
+23
View File
@@ -0,0 +1,23 @@
from comar.service import *
serviceType = "server"
serviceDesc = _({"en": "OpenLDAP Server",
"tr": "OpenLDAP Sunucusu"})
serviceConf = "slapd"
def start():
import os
os.environ["LC_ALL"] = "C"
os.environ["LANG"] = "C"
startService(command="/usr/libexec/slapd",
args="-u ldap -g ldap %s" % config.get("OPTS", ""),
pidfile="/run/openldap/slapd.pid",
donotify=True)
def stop():
stopService(pidfile="/run/openldap/slapd.pid",
donotify=True)
def status():
return isServiceRunning("/run/openldap/slapd.pid")
+11 -2
View File
@@ -11,7 +11,7 @@
<License>OPENLDAP</License>
<Summary>Open-source suite of LDAP applications and development tools</Summary>
<Description>OpenLDAP is an open-source suite of LDAP (Lightweight Directory Access Protocol) applications and development tools</Description>
<Archive sha1sum="8ed73b552324a92d2f6e53381f9b1d10ca0b5485" type="targz">ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.6.4.tgz</Archive>
<Archive sha1sum="633bc0ce9b5d91852c1fe38c720763f32d18390f" type="targz">ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.6.6.tgz</Archive>
<BuildDependencies>
<Dependency>nss-devel</Dependency>
<Dependency>db-devel</Dependency>
@@ -79,7 +79,9 @@
<Path fileType="config">/etc/openldap</Path>
<Path fileType="config">/usr/lib/tmpfiles.d/openldap-server.conf</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="library">/usr/libexec</Path>
<Path fileType="library">/usr/lib/openldap</Path>
<Path fileType="library">/usr/lib/slapd</Path>
<Path fileType="executable">/usr/libexec/slapd</Path>
<Path fileType="man">/usr/share/man/man3</Path>
<Path fileType="man">/usr/share/man/man5</Path>
<Path fileType="man">/usr/share/man/man8</Path>
@@ -117,6 +119,13 @@
</Package>
<History>
<Update release="11">
<Date>2023-11-23</Date>
<Version>2.6.6</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="10">
<Date>2023-05-22</Date>
<Version>2.6.4</Version>