add passwd to ldap converter

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2562 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2010-10-21 19:07:23 +00:00
parent 7593626c67
commit c558d1b1a0
3 changed files with 69 additions and 0 deletions

3
net-nds/yap2lc/Manifest Normal file
View File

@ -0,0 +1,3 @@
AUX yap2lc-0.5.9-asneeded-1.patch 767 RMD160 c1c8613089bff1e55367752d95928bc0da400f02 SHA1 4c68260ff108eb8cd7104951ce74ef0642517c87 SHA256 727e607e8fa5b120f7edf22f8fb51e17dde7853a3414a1357cda02c6ebdb73fb
DIST yap2lc-0.5.9.tar.gz 58651 RMD160 c5538663917bd46dbda1e71834a8ccf145bbb4af SHA1 c63b36ec5068793b53c0a84db207209fc30be277 SHA256 0c822415348e1c8cf32f5cca2ca3d69a6afaf6e901e00b62fc9b522fc8a71298
EBUILD yap2lc-0.5.9.ebuild 1200 RMD160 69498b29d62ca624fff748d2a6c09eea1691555d SHA1 9dca5f02e93affbe402680f180f3d001a1768af5 SHA256 90fec3bc2e37197c1bf4e052302e28a4da3b5cd73bc84e377d36c0de46f20f5a

View File

@ -0,0 +1,19 @@
Submitted By: Your Name (your at email dot address)
Date: 2010-10-21
Initial Package Version: 0.5.9
Origin: me
Upstream Status: unknown
Description: correct linking order for asneeded
diff -Naur yap2lc-0.5.9.orig/Makefile.in yap2lc-0.5.9/Makefile.in
--- yap2lc-0.5.9.orig/Makefile.in 2003-12-22 18:47:56.000000000 +0000
+++ yap2lc-0.5.9/Makefile.in 2010-10-21 18:45:03.358405760 +0000
@@ -8,7 +8,7 @@
$(CC) -c $(CFLAGS) yap2lc_regexp.c
$(CC) -c $(CFLAGS) yap2lc_sanity.c
$(CC) -c $(CFLAGS) yap2lc_mals.c
- $(CC) $(LDFLAGS) -o yap2lc yap2lc.o yap2lc_log.o yap2lc_regexp.o yap2lc_sanity.o yap2lc_mals.o
+ $(CC) yap2lc.o yap2lc_log.o yap2lc_regexp.o yap2lc_sanity.o yap2lc_mals.o $(LDFLAGS) -o yap2lc
@echo Stripping the binary...
@strip yap2lc
@rm -f *.o

View File

@ -0,0 +1,47 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit db-use eutils
DESCRIPTION="Yet Another Passwd 2 LDIF Converter"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://sourceforge.net/projects/yap2lc/"
RDEPEND="berkdb? ( >=sys-libs/db-4 )"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="berkdb"
src_prepare() {
epatch "${FILESDIR}"/yap2lc-0.5.9-asneeded-1.patch
}
src_configure() {
local myconf
if use berkdb; then
local db_version
db_version="$(db_findver sys-libs/db)" || die "Unable to find Berkeley DB version"
db_version="$(db_ver_to_slot "${db_version}")"
db_version="${db_version/\./}"
myconf+=" --with-bdb --with-bdb-lib=/usr/$(get_libdir) --with-bdb-inc=$(db_includedir 2> /dev/null)"
#sed -i "s!-ldb!-ldb${db_version}!" configure
else
myconf+=" --without-bdb"
fi
econf ${myconf}
}
src_install() {
dobin ${PN} || die "dobin failed"
dodoc CHANGELOG README
docinto samples
dodoc samples/*
}