summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2022-07-11 20:15:10 +0300
committerJoonas Niilola <juippis@gentoo.org>2022-07-23 15:50:17 +0300
commitd840ce9bb5ad086dd35964e407da41dc0b875040 (patch)
tree2e2b95787c2d07a6d1382930b3600efeb801e3b3 /net-nds
parentmedia-libs/cal3d: update SRC_URI (diff)
downloadgentoo-d840ce9bb5ad086dd35964e407da41dc0b875040.tar.gz
gentoo-d840ce9bb5ad086dd35964e407da41dc0b875040.tar.bz2
gentoo-d840ce9bb5ad086dd35964e407da41dc0b875040.zip
net-nds/smbldap-tools: add 0.9.11
Closes: https://bugs.gentoo.org/699768 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/26350 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-nds')
-rw-r--r--net-nds/smbldap-tools/Manifest1
-rw-r--r--net-nds/smbldap-tools/metadata.xml3
-rw-r--r--net-nds/smbldap-tools/smbldap-tools-0.9.11.ebuild59
3 files changed, 63 insertions, 0 deletions
diff --git a/net-nds/smbldap-tools/Manifest b/net-nds/smbldap-tools/Manifest
index 6fe4bc4f6878..8ab4f6f78f6d 100644
--- a/net-nds/smbldap-tools/Manifest
+++ b/net-nds/smbldap-tools/Manifest
@@ -1 +1,2 @@
DIST smbldap-tools-0.9.10.tar.gz 336840 BLAKE2B 8df7cf34d1fedb54ece3f5c018b7bf03a1b0f0ca8813980eaa21d338113fe30535d7627c0d61b8d30c331e20ebb81449ae4a0ddcdfd4a93cb028f2c376a2ce76 SHA512 e1aef98d91ec722427b27f3aed25d8ef4cd4a6c845f98935e2f99075dea93275fc0335760d517398be8ca7898084bfee457ada0a718b66226e6ce3f38fdf2b2e
+DIST smbldap-tools-0.9.11.tar.gz 309879 BLAKE2B 8cec1ba808e146dd3ee8f087038ed50663b41b51b593a5b7857f88401c8aa6b83800d492e1805ce7755ca20595c73cd8c560bea75bb2a92331ddbd57878f9db5 SHA512 a41bd4c5b7b9d9ed09419b69a6124351cd92ea01d3b7142a97db8179120cd2de561ebb7fb7b1190966fb53339ce0df1d7bfedf3f3db871c32deeb1c621fe62fe
diff --git a/net-nds/smbldap-tools/metadata.xml b/net-nds/smbldap-tools/metadata.xml
index 09a9748a01cd..a11ec9dccf64 100644
--- a/net-nds/smbldap-tools/metadata.xml
+++ b/net-nds/smbldap-tools/metadata.xml
@@ -5,4 +5,7 @@
<email>samba@gentoo.org</email>
<name>Samba</name>
</maintainer>
+ <upstream>
+ <remote-id type="github">fumiyas/smbldap-tools</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/net-nds/smbldap-tools/smbldap-tools-0.9.11.ebuild b/net-nds/smbldap-tools/smbldap-tools-0.9.11.ebuild
new file mode 100644
index 000000000000..5f4a4c0ebd2c
--- /dev/null
+++ b/net-nds/smbldap-tools/smbldap-tools-0.9.11.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Samba LDAP management tools"
+HOMEPAGE="https://github.com/fumiyas/smbldap-tools"
+SRC_URI="https://github.com/fumiyas/smbldap-tools/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+
+RDEPEND="
+ dev-perl/perl-ldap
+ dev-perl/Crypt-SmbHash
+ dev-perl/Digest-SHA1
+ dev-perl/Unicode-MapUTF8
+ dev-perl/IO-Socket-SSL
+ net-nds/openldap
+ net-fs/samba"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+ eautoreconf
+ # Command from build/autogen.sh
+ sed -n \
+ -e "s/^/ /;s/$/ /;s/'/ ' /" \
+ -e "/^ ac_subst_vars=/,/'/s/^.* \([A-Za-z_][A-Za-z0-9_]*\) .*/\1=@\1@/p" \
+ configure > build/subst.vars.in || die
+}
+
+src_install() {
+ default
+
+ newsbin smbldap-config.cmd smbldap-config
+ dosym smbldap-passwd /usr/sbin/smbldap-passwd.cmd
+
+ dodoc CONTRIBUTORS ChangeLog FILES INFRA INSTALL README TODO doc/*conf* doc/smbldap-tools*
+ dodoc -r doc/migration_scripts
+
+ sed -i 's/.CMD//g' smbldap-[gpu]*.8 || die
+ doman smbldap-[gpu]*.8
+
+ insinto /etc/smbldap-tools
+ doins smbldap.conf smbldap_bind.conf
+
+ elog "Remember to read INSTALL when updating."
+}
+
+pkg_postinst() {
+ elog "- The configure script is installed as smbldap-configure.pl. Please run it to configure the tools."
+ elog "- Examples configuration files for Samba and slapd have been copied to ${EPREFIX}/usr/share/doc/${PF},"
+ elog " together with the migration-scripts."
+ elog "- Also remember to read INSTALL when updating."
+}