• package: tis-ldapadminlaz
  • name: LDAPAdmin
  • version: 0.0.108-20
  • categories: Utilities,Security,System and network
  • maintainer: WAPT Team,Tranquil IT,Simon Fonteneau,Gaëtan SEGAT
  • licence: GNU General Public License
  • locale: all
  • target_os: macos
  • impacted_process: ldapadmin
  • architecture: x64
  • signature_date:
  • size: 6.64 Mo
  • installed_size: 4.19 Mo
  • homepage : http://www.ldapadmin.org/

package           : tis-ldapadminlaz
version           : 0.0.108-20
architecture      : x64
section           : base
priority          : optional
name              : LDAPAdmin
categories        : Utilities,Security,System and network
maintainer        : WAPT Team,Tranquil IT,Simon Fonteneau,Gaëtan SEGAT
description       : Ldap Admin is a free Windows LDAP client and administration tool for LDAP directory management.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : macos
min_wapt_version  : 2.0
sources           : https://github.com/ibv/LDAP-Admin
installed_size    : 4194304
impacted_process  : ldapadmin
description_fr    : Ldap Admin est un client LDAP Windows opensource et un outil d’administration pour la gestion des annuaires LDAP.
description_pl    : Ldap Admin to darmowe narzędzie klienckie i administracyjne LDAP dla systemu Windows do zarządzania katalogami LDAP
description_de    : Ldap Admin ist ein kostenloser Windows LDAP Client und Administrationswerkzeug für LDAP Verzeichnisverwaltung
description_es    : Ldap Admin es una herramienta de administración y cliente LDAP de Windows gratuita para la administración de directorios LDAP
description_pt    : Ldap Admin é um cliente Windows LDAP gratuito e uma ferramenta de administração para a gestão de directórios LDAP
description_it    : Ldap Admin è un client LDAP gratuito per Windows e uno strumento di amministrazione per la gestione delle directory LDAP
description_nl    : Ldap Admin is een gratis Windows LDAP-client en beheertool voor het beheer van LDAP-directory’s
description_ru    : Ldap Admin - это бесплатный клиент LDAP для Windows и инструмент администрирования для управления каталогами LDAP
audit_schedule    : 
editor            : 
keywords          : ldap
licence           : GNU General Public License
homepage          : http://www.ldapadmin.org/
package_uuid      : c7885b3d-17ac-43db-9363-7adf581e0818
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 9e93ffd5187567f8204b5d50043295dd7842fffd1be163f047042c157762fcc4
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-02-08T14:06:36.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : IY5JxUgpxdTwcSSToLo71JIqfEMcRzYmINK2VKqELm7X5ryaNPkp+DTfEtSLizv5LrSlbPrrUERGMKUrza2mKIwA+1wk2xfaCAAYJqVM9S93EOkCKmPKK8s67X7vfrqNTXy5yV367G+ftGjQu1fYeF1GT4RjZa8NJvmpMQ7Rc1tZ9taF5sZGKZwqQCA9C1Uc7tKBofKaTeSy5DCzYBCzop2PhKX39Q73opqJ2RvOkn5Y9T+kBTrkFPtj0DglERuSPOcurriuhCMdgL0pyZdFZpjchZhOwBWbvyW3LG9JB/O0np4AgKw4G3h00DuuXfHHBaDZCe8vhfB63iAlnl97fg==

# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    if not isdir("/Applications/ldapadmin.app/Contents/MacOS"):
        mkdirs("/Applications/ldapadmin.app/Contents/MacOS")
    filecopyto("LdapAdmin", "/Applications/ldapadmin.app/Contents/MacOS/LdapAdmin")
    run("chmod 755 /Applications/ldapadmin.app/Contents/MacOS/LdapAdmin")
    with open("/Applications/ldapadmin.app/Contents/Info.plist", "w") as f:
        f.write(info_plist % control.get_software_version())


def uninstall():
    if isdir("/Applications/ldapadmin.app"):
        remove_tree("/Applications/ldapadmin.app")


def audit():
    if not isfile("/Applications/ldapadmin.app/Contents/MacOS/LdapAdmin"):
        print("erreur file not found")
        return "ERROR"
    else:
        return "OK"


info_plist = r"""<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleName</key>
    <string>LdapAdmin</string>
        <key>CFBundleShortVersionString</key>
    <string>%s</string>
    <key>CFBundleExecutable</key>
    <string>LdapAdmin</string>
    <key>CFBundleIconFile</key>
    <string>icon.icns</string>
    <key>CFBundleIdentifier</key>
    <string>it.tranquil.ldapadmin</string>
    <key>NSHighResolutionCapable</key>
    <true/>
    <key>LSUIElement</key>
    <true/>
</dict>
</plist>"""

# -*- coding: utf-8 -*-
from setuphelpers import *
import os


def update_package():
    wget(
        "http://srvtemplates.ad.tranquil.it/binary_cache/windres",
        "/usr/local/bin/windres",
        sha256="035d0036e0968c4b21fe180b1938694baaf3cb78b8a0c146559e6d8fbedb7e06",
    )
    run("chown root:wheel /usr/local/bin/windres")
    run("chmod 755 /usr/local/bin/windres")
    # Compile
    mkdirs("/var/build")
    run("git clone https://github.com/ibv/LDAP-Admin.git /var/build")
    version = "0.0.%s" % run(r"git -C /var/build rev-list --count master").strip()
    control.version = "%s-%s" % (version, control.version.split("-", 1)[-1])
    control.save_control_to_wapt()
    run(r'git -C /var/build submodule update --progress --init -- "submodules/mORMot2"')
    
    wget('https://synopse.info/files/mormot2static.7z','mormot2static.7z')
    run('/usr/local/bin/7zz x -y mormot2static.7z -ostatic')
    remove_tree(r'/var/build/submodules/mORMot2/static')
    os.rename('static',r'/var/build/submodules/mORMot2/static')
    remove_file('mormot2static.7z')

    run('/Applications/Lazarus/lazbuild --add-package-link /var/build/submodules/mORMot2/packages/lazarus/mormot2.lpk --ws=cocoa')

    run("/Applications/Lazarus/lazbuild /var/build/Source/LdapAdmin.lpi --ws=cocoa --build-mode=Macos")
    # WAPT PAckage prepare
    filecopyto("/var/build/Source/LdapAdmin", "LdapAdmin")

55cabd73b7063afb2d1977891054b8b97ef19137c9c33675b6b33cd773a33128 : LdapAdmin
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
2bced8dc141272aa6f06f4b18f964a78d95e9cb1392ff17b342acf6fd3c33497 : WAPT/changelog.txt
72591ef7864a0574d62580cbcf20c402db8e1e5e9a2e6806cefe483a640bb989 : WAPT/control
9e93ffd5187567f8204b5d50043295dd7842fffd1be163f047042c157762fcc4 : WAPT/icon.png
58348aa678fec909962bf989d3c079624a20d2387fd74ddb3cb8cfa1d65056c8 : luti.json
fcfa032f76b084c855fbd491f3ed5f0b067d8570271564eaec42dcc7635bbebd : setup.py
4534c5a987dc0829708dd016818c7e84c7d10135bf51224f1b57dcf6893064c7 : update_package.py

1.8.3
===
slipt update package